/**
 * ===================================================================
 * TABLE OF CONTENTS
 * ===================================================================
 *
 * 1.  Theme Variables
 * 2.  Base & Typography
 * 3.  General Layout & Animations
 * 4.  Components
 * 4.1. Navbar
 * 4.2. Hero Section
 * 4.3. Buttons
 * 4.4. Cards (Blog, Offerings)
 * 4.5. Testimonials Carousel
 * 4.6. Contact Form
 * 4.7. Footer
 * 5.  Page-Specific Styles
 * 5.1. About Page
 * 6.  Responsive Media Queries
 *
 * ===================================================================
 */

/* ===================================================================
   1. Theme Variables
   =================================================================== */
:root {
  --primary-color: #6a7a7d; /* muted teal */
  --secondary-color: #f4f1ea; /* warm off-white */
  --dark-color: #343a40;
  --light-color: #ffffff;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

/* ===================================================================
   2. Base & Typography
   =================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  padding-top: 56px; /* For fixed navbar */
  background-color: var(--light-color);
  color: #495057;
  /* The overflow rule is now on the html tag */
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-secondary);
  color: var(--dark-color);
}

/* ===================================================================
   3. General Layout & Animations
   =================================================================== */
.content-section {
  padding: 100px 0;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   4. Components
   =================================================================== */

/* --- 4.1. Navbar --- */
.navbar {
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}
.nav-link {
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link.active,
.nav-link:hover {
  color: var(--primary-color) !important;
}
.navbar-logo {
  height: 40px;
  width: auto;
}

/* --- 4.2. Hero Section --- */
.hero-section {
  background: url('../img/hero-bg.png') no-repeat center center/cover;
  height: 90vh;
  position: relative;
  color: var(--light-color);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* --- 4.3. Buttons --- */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-primary:hover {
  background-color: #566466;
  border-color: #566466;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  color: var(--light-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* --- 4.4. Cards (Blog, Offerings) --- */
.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.blog-card img {
  height: 200px;
  object-fit: cover;
}
.explore-blogs .blog-card {
  display: flex;
  flex-direction: column;
}
.explore-blogs .blog-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.explore-blogs .blog-card .btn {
  margin-top: auto;
}
.offering-card {
  background: var(--light-color);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.offering-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}
.offering-card .icon-container {
  color: var(--primary-color);
  transition: color 0.3s;
}
.offering-card:hover .icon-container {
  color: #566466;
}

/* --- 4.5. Testimonials Carousel --- */
.testimonial-wrap {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.testimonials .testimonial-figure {
  max-width: 100%;
  padding: 2.25rem 2rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}
.testimonials .testimonial-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}
.testimonials .testimonial-author {
  margin-top: 15px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 0.2px;
}
.testimonials .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}
.testimonials .carousel-indicators {
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 0;
  position: static;
}
.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
  width: 2.4rem;
  height: 2.4rem;
  background-size: 100% 100%;
  background-color: #fff;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.testimonials .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236a7a7d' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 2 L4.5 8 L10.5 14'/%3E%3C/svg%3E");
}
.testimonials .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236a7a7d' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 2 L11.5 8 L5.5 14'/%3E%3C/svg%3E");
}
.testimonials .carousel-control-prev,
.testimonials .carousel-control-next {
  width: auto;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}
.testimonials .carousel-control-prev {
  left: -8px;
}
.testimonials .carousel-control-next {
  right: -8px;
}

/* --- 4.6. Contact Form --- */
.contact-form-container {
  background: var(--light-color);
}
.contact-details-container {
  background: var(--secondary-color);
  height: 100%;
}
.form-control-lg {
  border-radius: 8px;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}
.form-control-lg:focus {
  background: var(--light-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(106, 122, 125, 0.25);
}
.social-icons a {
  color: var(--dark-color);
  margin-right: 20px;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--primary-color);
}

/* --- 4.7. Footer --- */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--light-color) !important;
}

/* ===================================================================
   5. Page-Specific Styles
   =================================================================== */

/* --- 5.1 About Page Layout --- */
.about-feature {
  margin-bottom: 6rem;
}
.about-feature:last-child {
  margin-bottom: 0;
}
.about-feature img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
}
.about-text-box {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

/* ===================================
   5.2 Offerings Page
   =================================== */
.class-list .class-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef; /* A light separator */
}

.class-list .class-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.class-title {
  font-family: var(--font-secondary);
  color: var(--dark-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.class-details {
  color: #495057; /* Standard body text color */
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.class-details i {
  color: var(--primary-color);
  width: 20px; /* Align icons */
  text-align: center;
}

/* ===================================
   5.3 Homepage Specifics
   =================================== */

/* --- Benefits Section --- */
#benefits {
  background-color: var(--light-color);
}
.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}
.benefit-icon:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: scale(1.1);
}

/* --- New Testimonials Section --- */
#testimonials {
  background-color: var(--secondary-color);
  padding: 80px 0;
}
.testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  height: 100%;
  position: relative;
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}
.quote-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
}
.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 2rem; /* Space below the quote icon */
}
.testimonial-author {
  display: block;
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  font-family: var(--font-primary);
}

/* --- Offerings Preview Section --- */
#offerings-preview .offering-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

#offerings-preview .offering-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.offering-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#offerings-preview .offering-card h3 {
  font-family: var(--font-secondary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ===================================================================
   6. Responsive Media Queries
   =================================================================== */

/* --- Large screens and up (Desktops, >= 992px) --- */
/* --- Large screens and up (Desktops, >= 992px) --- */
@media (min-width: 992px) {
  /* About Page Overlap Effect using transform */

  /* First section (Text is on the left): Pull text box RIGHT */
  .about-feature .order-lg-1 .about-text-box {
    transform: translateX(50px);
  }

  /* Second section (Text is on the right): Pull text box LEFT */
  .about-feature .col-lg-6:not(.order-lg-1) .about-text-box {
    transform: translateX(-50px);
  }
}

/* --- Medium screens (Tablets, < 992px) --- */
@media (max-width: 991.98px) {
  /* General Layout Adjustments */
  .content-section {
    padding: 60px 0;
  }
  .display-3,
  .display-4 {
    font-size: 2.5rem;
  }
  /* Hero Section */
  .hero-section {
    height: 60vh;
  }
  /* About Page Stacked Layout */
  .about-feature {
    margin-bottom: 3rem;
  }
  .about-feature .about-image-col {
    margin-bottom: 1.5rem;
  }
  /* Testimonials */
  .testimonial-wrap {
    max-width: 760px;
  }
  .testimonials .testimonial-figure {
    padding: 1.75rem 1.5rem;
  }
}

/* --- Small screens (Mobiles, < 576px) --- */
@media (max-width: 576px) {
  /* General Layout Adjustments */
  .content-section {
    padding: 40px 0;
  }
  .display-3,
  .display-4 {
    font-size: 2.25rem;
  }
  /* Hero Section */
  .hero-section {
    height: 70vh;
    min-height: 400px;
  }
  /* Testimonials */
  .testimonial-wrap {
    max-width: 100%;
    padding: 0 10px;
  }
  .testimonials .testimonial-figure {
    padding: 1.1rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .testimonials .testimonial-quote {
    font-size: 1rem;
    line-height: 1.5;
  }
  .testimonials .carousel-control-prev-icon,
  .testimonials .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
  .testimonials .carousel-control-prev {
    left: 6px;
  }
  .testimonials .carousel-control-next {
    right: 6px;
  }
  .testimonials .carousel-indicators {
    margin-top: 8px;
  }
}