/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --white: #fefefe;
  --dark: #1a1a1a;
  --accent: #d1bfa7;
  --bg: #faf7f2;
  --muted: #b6a994;
  --highlight: #e4d8c6;
  --transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Body + Fonts */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, .hero-content {
  font-family: 'Playfair Display', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader img {
  width: 120px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Top Banner */
.top-banner {
  background-color: #585858;
  color: var(--white);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.top-banner .location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-banner .location i {
  color: var(--accent);
}

.top-banner .location a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.top-banner .location a:hover {
  color: var(--accent);
}

.top-banner .social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-banner .social-icons a {
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.top-banner .social-icons a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background-color: rgba(17, 17, 17, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 10px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .logo img {
  height: 40px;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  height: 36px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--accent);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: var(--transition);
}

.nav-menu li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 15px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu li a:hover {
  color: var(--accent);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: var(--transition);
}

.nav-menu .btn.join {
  background-color: var(--accent);
  color: #111;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu .btn.join:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209, 191, 167, 0.3);
}

/* Dropdown Container */
.nav-menu .dropdown {
  position: relative;
  list-style: none;
}

.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  display: none;
  z-index: 999;
  min-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
}

.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-menu .dropdown-menu li {
  padding: 8px 20px;
  transition: var(--transition);
  
}

.nav-menu .dropdown-menu li:hover {
  background-color: rgba(209, 191, 167, 0.1);
}

.nav-menu .dropdown-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: var(--transition);
}

.nav-menu .dropdown-menu li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  padding: 0 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInRight 0.8s ease forwards 0.3s;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInRight 0.8s ease forwards 0.5s;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInRight 0.8s ease forwards 0.7s;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn.primary {
  background-color: var(--accent);
  color: #111;
}

.btn.primary:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 20px;
  }
  
  .nav-menu {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 8px 15px;
  }

  .top-banner .social-icons {
    justify-content: center;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #111;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 25px;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    justify-content: center;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static !important;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    border-radius: 5px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
    align-items: center;
  }

  .hero-content h1, 
  .hero-content p,
  .hero-buttons {
    text-align: center;
    transform: translateY(20px) !important;
    animation: fadeInUp 0.8s ease forwards !important;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* About */
.about {
  background-color: var(--bg);
  padding: 100px 20px;
}

.section-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.about-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark);
  opacity: 0.85;
}

.about-text .btn {
  margin-top: 20px;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}


/* Classes */
.classes {
  padding: 100px 20px;
  background-color: #ffffff;
}

.class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.class-card {
  background-color: #f9f7f3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.class-card:hover {
  transform: translateY(-8px);
}

.class-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.class-content {
  padding: 25px 20px 30px;
}

.class-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--deep-brown, #28221e);
}

.class-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #5D4A3D;
  opacity: 0.9;
}

.class-benefits {
  list-style: none;
  padding: 0;
}

.class-benefits li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #5D4A3D;
}

.class-benefits i {
  color: var(--accent, #9dc09d);
  margin-right: 10px;
}

/* View More Button */
.view-all {
  margin-top: 50px;
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent, #9dc09d);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.view-all-btn:hover {
  background-color: var(--deep-brown, #28221e);
  transform: translateY(-3px);
}


/* Testimonial Section */
.testimonial-carousel {
  background: #fcf9f4;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.testimonial-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 950px;
  margin: 0 auto;
  height: 320px; /* fixed height */
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s ease;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.quote-icon {
  font-size: 20px;
  color: var(--accent, #d1bfa7);
  margin-bottom: 15px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-left: 20px;
}

.student-info {
  display: flex;
  align-items: center;
  margin-left: 20px;
  gap: 20px;
}

.student-image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, #d1bfa7);
}

.student-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.rating i {
  color: #f7c14b;
  font-size: 14px;
}

.carousel-prev,
.carousel-next {
  background: #fff;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 5;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--accent, #d1bfa7);
  color: #fff;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 15px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--accent, #d1bfa7);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-wrapper {
    height: 360px;
  }

  .carousel-prev,
  .carousel-next {
    top: auto;
    bottom: -50px;
    transform: none;
  }

  .carousel-prev {
    left: 30%;
  }

  .carousel-next {
    right: 30%;
  }
}


/* FAQ Section */
.faq-section {
  background: #fefbf8;
  padding: 80px 20px;
}

.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd0c8;
  transition: all 0.3s ease;
  padding: 18px 0;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
}

.faq-icon {
  color: var(--accent, #c2a28a);
  font-size: 20px;
  flex-shrink: 0;
}

.faq-header h3 {
  flex-grow: 1;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.faq-toggle i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 5px;
}

.faq-item.active .faq-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

.faq-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
}


/* Responsive */
@media (max-width: 768px) {
  .faq-header h3 {
    font-size: 16px;
  }

  .faq-icon {
    font-size: 18px;
  }

  .faq-content p {
    font-size: 15px;
  }
}

/* === Social Media Section === */
.social-posts {
  background: #fffefc;
  padding: 80px 20px;
}

.social-posts .section-intro {
  text-align: center;
  margin-bottom: 40px;
}


.social-posts .section-subtitle {
  font-size: 18px;
  color: #666;
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.divider-line {
  height: 1px;
  width: 40px;
  background-color: #ccc;
  margin: 0 10px;
}

/* Slider Container */
.social-slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}

.social-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* Each Slide */
.social-slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 280px;
  aspect-ratio: 4/5;
  height: 460px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.instagram-media:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}



/* Arrows */
.social-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  color: #444;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  transition: all 0.3s ease;
}

.social-arrow.left {
  left: 10px;
}

.social-arrow.right {
  right: 10px;
}

.social-arrow:hover {
  background-color: #f2f2f2;
}

/* Mobile & Tablet View */
@media (max-width: 1024px) {
  .social-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .social-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .social-arrow.left,
  .social-arrow.right {
    top: auto;
    bottom: -40px;
    transform: none;
  }
}


/* Footer */
.footer {
  background-color: #111;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px 30px;
  border-top: 2px solid var(--accent);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  text-align: center;
}

.footer-content > div {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--white);
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--accent);
}

.footer p {
  font-size: 15px;
  line-height: 1.7;
  color: #ccc;
  margin: 0 0 12px;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.footer .social-links a {
  color: var(--white);
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer .social-links a:hover {
  color: var(--accent);
}

.footer-divider {
  border-top: 1px solid var(--accent);
  margin: 30px auto 20px;
  width: 80%;
}

.footer-bottom {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-content > div {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }
}


