/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* Design System & Root variables */
:root {
  --primary-color: #1e3f20;       /* Deep Forest Green */
  --primary-light: #2d5a27;       /* Rich Sage Green */
  --primary-rgb: 30, 63, 32;
  --secondary-color: #dfd5c6;     /* Soft Sand/Timber */
  --secondary-dark: #a38f75;      /* Warm Earth Wood */
  --accent-color: #d98324;        /* Saffron/Flame Orange */
  --accent-hover: #b86b19;
  --accent-rgb: 217, 131, 36;
  --text-dark: #2c302d;           /* Charcoal with green tint */
  --text-muted: #6b756e;          /* Muted Sage */
  --bg-cream: #faf8f5;            /* Cozy Soft Ivory */
  --bg-white: #ffffff;
  --bg-glass: rgba(250, 248, 245, 0.9);
  --bg-glass-dark: rgba(30, 63, 32, 0.9);
  --font-family-heading: 'Montserrat', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --border-radius-custom: 16px;
}

/* Global Styles */
body {
  font-family: var(--font-family-body);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--bg-cream);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-custom);
  transition: var(--transition-smooth);
}
.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: var(--bg-cream);
  font-weight: 600;
  border: 2px solid var(--accent-color);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-custom);
  transition: var(--transition-smooth);
}
.btn-accent-custom:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 131, 36, 0.3);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-custom);
  transition: var(--transition-smooth);
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Navigation Bar */
.navbar {
  transition: var(--transition-smooth);
  padding: 1.2rem 0;
  z-index: 1000;
}
.navbar.navbar-scrolled {
  background-color: var(--bg-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link {
  color: var(--primary-color) !important;
}
.navbar.navbar-scrolled .navbar-toggler-icon {
  filter: none;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--bg-cream) !important;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}
.navbar-brand span {
  color: var(--accent-color);
}
.nav-link {
  color: var(--bg-cream) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: var(--transition-smooth);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}
.nav-link:hover {
  color: var(--accent-color) !important;
}
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 95vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--bg-cream);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 32, 16, 0.75) 0%,
    rgba(30, 63, 32, 0.5) 70%,
    rgba(26, 48, 27, 0.85) 100%
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 0 20px;
}
.hero-subtitle {
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  display: inline-block;
  position: relative;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Sub-page Header (Banner) */
.sub-header {
  position: relative;
  height: 45vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--bg-cream);
  z-index: 1;
  margin-bottom: 5rem;
}
.sub-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 32, 16, 0.8) 0%,
    rgba(30, 63, 32, 0.6) 100%
  );
  z-index: 2;
}
.sub-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
}
.sub-header-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}
.breadcrumb {
  justify-content: center;
  margin-top: 1rem;
}
.breadcrumb-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-item.active {
  color: var(--bg-cream);
  opacity: 0.8;
}

/* Core Values / Features */
.features-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}
.feature-card {
  background: var(--bg-cream);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-custom);
  text-align: center;
  height: 100%;
  transition: var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
  border-color: rgba(30, 63, 32, 0.1);
}
.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(30, 63, 32, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  color: var(--primary-color);
  font-size: 2rem;
  transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary-color);
  color: var(--bg-cream);
  transform: rotateY(180deg);
}

/* Course Showcase Section */
.courses-section {
  padding: 6rem 0;
}
.section-tag {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.course-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-custom);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.course-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.course-card:hover .course-img {
  transform: scale(1.08);
}
.course-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--bg-cream);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.course-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.course-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.course-meta i {
  color: var(--accent-color);
}
.course-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.course-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}
.course-price-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.2rem;
}
.course-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
}
.course-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* About & Intro section split */
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}
.about-img-box {
  position: relative;
  padding: 20px;
}
.about-img-main {
  width: 100%;
  border-radius: var(--border-radius-custom);
  box-shadow: var(--shadow-md);
  z-index: 2;
  position: relative;
}
.about-img-sub {
  width: 60%;
  position: absolute;
  bottom: -40px;
  right: -20px;
  border-radius: var(--border-radius-custom);
  border: 8px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.about-experience-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: var(--accent-color);
  color: var(--bg-cream);
  padding: 1.5rem;
  border-radius: var(--border-radius-custom);
  box-shadow: var(--shadow-md);
  z-index: 4;
  text-align: center;
}
.about-experience-badge h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bg-cream);
  margin-bottom: 0;
}
.about-experience-badge p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0;
}

/* Review Page & Star rating system */
.reviews-section {
  padding: 6rem 0;
}
.review-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-custom);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 63, 32, 0.1);
}
.rating-stars {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.review-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
}
.review-text::before {
  content: '“';
  font-family: var(--font-family-heading);
  font-size: 3.5rem;
  position: absolute;
  top: -25px;
  left: -15px;
  color: rgba(30, 63, 32, 0.08);
  line-height: 1;
}
.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.2rem;
}
.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--secondary-color);
}
.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.1rem;
}
.reviewer-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Glassmorphic Review Submission Form */
.review-form-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--border-radius-custom);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}
.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.15);
}
.rating-input-stars {
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
}
.rating-input-stars i {
  transition: var(--transition-smooth);
}
.rating-input-stars i.active {
  color: var(--accent-color);
}

/* Gallery Section (Home Page) */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-custom);
  height: 280px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 63, 32, 0.7);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}
.gallery-info {
  position: absolute;
  bottom: -20px;
  left: 20px;
  z-index: 2;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--bg-cream);
}
.gallery-info h5 {
  color: var(--bg-cream);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-info {
  opacity: 1;
  bottom: 20px;
}

/* Contact page elements */
.contact-section {
  padding: 6rem 0;
}
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-custom);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}
.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.contact-info-icon {
  width: 60px;
  height: 60px;
  background: rgba(30, 63, 32, 0.05);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-info-content h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-info-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}
.map-container {
  border-radius: var(--border-radius-custom);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Footer styling */
.footer {
  background-color: var(--primary-color);
  color: rgba(253, 251, 247, 0.75);
  padding: 5rem 0 2rem 0;
  font-size: 0.95rem;
  border-top: 5px solid var(--accent-color);
}
.footer-logo {
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--bg-cream) !important;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-decoration: none;
}
.footer-logo span {
  color: var(--accent-color);
}
.footer-heading {
  color: var(--bg-cream);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: rgba(253, 251, 247, 0.75);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}
.footer-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-contact-item i {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(253, 251, 247, 0.1);
  color: var(--bg-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--bg-cream);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(253, 251, 247, 0.1);
  margin-top: 4rem;
  padding-top: 2.2rem;
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
  }
  .navbar.navbar-scrolled {
    background-color: var(--primary-color) !important;
  }
  .navbar-scrolled .navbar-brand,
  .navbar-scrolled .nav-link {
    color: var(--bg-cream) !important;
  }
  .navbar-collapse {
    margin-top: 1rem;
  }
  .nav-link {
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(253, 251, 247, 0.08);
  }
  .nav-link::after {
    display: none;
  }
  .hero-section {
    height: 85vh;
  }
  .about-img-box {
    margin-top: 3rem;
  }
}
