/* ============================================
   HOME PAGE - MODERN STYLES
   ============================================ */

/* Hero Carousel - Enhanced */
.hero {
  position: relative;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
}

#bannerCarousel {
  position: relative;
  width: 100%;
  height: clamp(450px, 65vh, 700px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel .slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide.prev {
  opacity: 0;
  transform: scale(0.95);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .55s ease, filter .55s ease;
  display: block;
}

#bannerCarousel:hover .slide.active img {
  transform: scale(1.075);
  filter: saturate(1.04);
}

/* Slide Overlay Content - Fixed to only show text with minimal overlay */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  padding: 40px;
  z-index: 3;
  pointer-events: none;
}

.slide-content {
  max-width: 700px;
  text-align: left;
  position: relative;
  pointer-events: auto;
}

/* Remove the ::before pseudo-element since we have gradient on overlay now */
.slide-content::before {
  display: none;
}

.slide-title {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Carousel Navigation */
.carousel .prev,
.carousel .next {
  display: none !important;
}

.carousel .prev {
  left: 20px;
}

.carousel .next {
  right: 20px;
}

.carousel .prev:hover,
.carousel .next:hover {
  display: none !important;
}

/* Hero Title Section */
.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--brand, #0078ff), var(--brand2, #00c6ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.muted {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 32px;
}

.hero .actions {
  margin-bottom: 60px;
}

/* Panel Grid - Responsive Cards */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.panel-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.panel-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.panel-card:hover .panel-image img {
  transform: scale(1.075);
  filter: saturate(1.04);
}

.panel-content {
  padding: 20px;
}

.panel-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
}

/* University Marquee */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, 
    var(--panel, #f9fafb) 0%, 
    #fff 50%, 
    var(--panel, #f9fafb) 100%
  );
  padding: 24px 0;
  margin: 40px 0;
  border-radius: 12px;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted, #6b7280);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span:hover {
  opacity: 1;
  color: var(--brand, #0078ff);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--panel, #f9fafb), #fff);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand, #0078ff);
  display: block;
  margin-bottom: 8px;
}

/* Steps - How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.step {
  text-align: center;
  position: relative;
  padding: 32px 24px;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-8px);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #0078ff), var(--brand2, #00c6ff));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0, 120, 255, 0.3);
}

/* Testimonials */
#testimonials {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

#testimonials .track {
  display: flex;
  transition: transform 0.5s ease;
}

.t-card {
  min-width: 100%;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #fff, var(--panel, #f9fafb));
}

.t-avatar {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Avatar image support */
.t-card img[alt] {
  margin: 0 auto 16px;
  display: block;
}

.t-text {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 16px 0;
  color: var(--text, #111);
}

.t-author {
  font-weight: 600;
}

/* Remove navigation buttons - keep for backward compatibility but hide them */
#testimonials .prev,
#testimonials .next {
  display: none;
}

/* Testimonial indicators (dots) */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border, #e5e7eb);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--brand, #0078ff);
  width: 24px;
  border-radius: 5px;
}

.testimonial-dot:hover {
  background: var(--brand2, #00c6ff);
}

/* Testimonial Navigation Arrows */
#testimonials .testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-shadow: 0 3px 15px rgba(0, 0, 255, 1);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}

#testimonials:hover .testimonial-nav {
  opacity: 1;
  pointer-events: auto;
}

#testimonials .testimonial-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--brand, #0078ff);
  color: var(--brand, #0078ff);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 120, 255, 0.3);
  text-shadow: none;
}

#testimonials .testimonial-nav.prev {
  left: 20px;
}

#testimonials .testimonial-nav.next {
  right: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #testimonials .testimonial-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
    opacity: 0.7;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
  }
  
  #testimonials .testimonial-nav:hover {
    opacity: 1;
  }
  
  #testimonials .testimonial-nav.prev {
    left: 10px;
  }
  
  #testimonials .testimonial-nav.next {
    right: 10px;
  }
}

/* FAQ */
.faq details {
  margin-bottom: 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq details[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: var(--panel, #f9fafb);
  transition: background 0.3s;
}

.faq summary:hover {
  background: #fff;
}

.faq details p {
  padding: 0 20px 20px;
  margin: 0;
}

/* CTA Section */
/* ============================================
   ENHANCED CTA SECTION - BLUE THEME
   ============================================ */
.cta {
  position: relative;
  text-align: center;
  padding: 70px 40px;
  background: linear-gradient(135deg, #0078ff 0%, #6366f1 50%, #8b5cf6 100%);
  color: #fff;
  border-radius: 24px;
  margin: 80px 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 120, 255, 0.25);
}
/* Animated background pattern */
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: patternMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.cta h2 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta .muted {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta .btn.primary {
  background: #fff;
  color: #0078ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta .btn.primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cta .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}


/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Featured Programs */
#homeFeatured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  #homeFeatured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #homeFeatured {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-6px);
}

.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.featured-card h4 {
  margin: 16px 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .slide-overlay {
    padding: 20px;
  }
  
  .slide-content {
    max-width: 100%;
  }
  
  .carousel .prev,
  .carousel .next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel .prev {
    left: 10px;
  }
  
  .carousel .next {
    right: 10px;
  }
}

/* ============================================
   COMPACT FOOTER - BLUE THEME
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #312e81 100%);
  color: #fff;
  padding: 50px 0 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}



/* Decorative top wave */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0078ff, #6366f1, #8b5cf6, #a855f7, #0078ff);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  padding: 25px 0;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(90deg, #0078ff, #00c6ff);
  border-radius: 2px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #00c6ff;
  padding-left: 22px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-contact li:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #00c6ff;
}

/* Enhanced Social Links */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-links a img {
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-4px) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 120, 255, 0.4);
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover img {
  filter: brightness(0) invert(1);
}

/* Footer Bottom - Compact with better spacing */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #00c6ff;
  transition: width 0.3s ease;
}

.footer-legal a:hover {
  color: #00c6ff;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* Make sure container has proper padding */
.site-footer .container {
  padding-left: 20px;
  padding-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 0 0;
    margin-top: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================
   PROFESSIONAL FOOTER OVERRIDE
   ============================================ */
.site-footer {
  margin: 34px 0 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  overflow: visible;
}

.site-footer::before {
  display: none;
}

.site-footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 18px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  background: color-mix(in oklab, var(--panel) 94%, transparent);
  box-shadow: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(170px, 1fr)) minmax(190px, .9fr);
  gap: 26px;
  margin: 0;
  padding: 0 0 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-col h4::after,
.footer-links a::before,
.social-links a::before {
  display: none;
}

.footer-col p,
.footer-links a,
.footer-contact li,
.footer-contact a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin: 0;
}

.footer-links a {
  display: inline-flex;
  padding: 0;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--brand);
  padding-left: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact img {
  width: 18px !important;
  height: 18px !important;
  margin-right: 0 !important;
  opacity: .8;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: none;
}

.social-links a:hover {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 9%, var(--bg));
  transform: translateY(-1px);
}

.social-links a img {
  width: 19px !important;
  height: 19px !important;
  margin-right: 0 !important;
  filter: none;
  opacity: .85;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--brand);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer .container {
    padding: 22px 18px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}
