@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
  --primary-color: #1B5E3C;
  --primary-dark: #113A25;
  --primary-light: #2a7a52;
  --secondary-color: #f8f9fa;
  --accent-color: #F2B705;
  --text-dark: #2d3748;
  --text-light: #ffffff;
  --text-muted: #718096;
  --bg-light: #ffffff;
  --bg-gray: #f7fafc;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-gray);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: #13462b;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.2rem); color: var(--primary-color); letter-spacing: -0.01em; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2vw + 0.5rem, 1.4rem); letter-spacing: -0.01em; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.text-primary { color: var(--primary-color); }
.text-white { color: var(--text-light); }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.bg-white { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color) !important; color: var(--text-light) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; color: white !important; }
.bg-gray { background-color: var(--bg-gray); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius-pill);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: #ffd033;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-light);
}

.btn-outline-white:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navbar */
.navbar {
  background-color: #eef2f3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 50px;
  padding: 0 10px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-color);
  flex: 1; /* Helps balance the space */
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
  flex: 2; /* Takes up middle space */
}

.navbar-action {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Page Header */
.page-header {
  padding: 180px 0 80px;
  background: linear-gradient(rgba(10, 25, 15, 0.75), rgba(10, 25, 15, 0.9)), url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white !important;
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 25, 15, 0.75), rgba(10, 25, 15, 0.9)), url('../images/bg-hero.jpg');
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-text {
  text-align: left;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic svg {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(242, 183, 5, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: var(--border-radius-pill);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .text-accent {
  color: var(--accent-color);
}

.hero p {
  max-width: 90%;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card-grid {
  margin-top: 50px;
}

.card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(27, 94, 60, 0.1) 0%, rgba(27, 94, 60, 0.05) 100%);
  color: var(--primary-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--primary-color);
  color: var(--text-light);
  transform: rotate(5deg) scale(1.1);
}

/* Program Preview */
.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.program-item {
  background-color: var(--bg-gray);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--primary-color);
}

.program-item h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.program-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: #f4f8f9;
  color: var(--text-muted);
  padding: 60px 40px 20px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-contact svg {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Floating WA */
.floating-wa-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-wa {
  background-color: #25D366;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  font-weight: 600;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
  color: white;
}

.floating-wa svg {
  width: 20px;
  height: 20px;
}

/* ================================
   CAROUSEL CLASSES
================================ */
.carousel-container {
  position: relative;
  width: 100%;
  padding: 0 40px; /* Space for arrows */
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.carousel-track > * {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary-color);
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Hide arrows and disable carousel on desktop by default unless forced */
.carousel-mobile-only .carousel-btn {
  display: none;
}

.carousel-mobile-only .carousel-track {
  display: grid;
  overflow-x: visible;
  padding: 0;
  gap: 30px;
}
.carousel-mobile-only .carousel-track > * {
  flex: unset;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Enable carousel mode only on mobile */
@media (max-width: 768px) {
  .carousel-mobile-only .carousel-container {
    padding: 0 35px;
  }
  .carousel-mobile-only .carousel-btn {
    display: flex;
  }
  .carousel-mobile-only .carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 10px 0 !important;
  }
  .carousel-mobile-only .carousel-track > * {
    flex: 0 0 85% !important;
  }
  .hero-text .badge {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
  }
}


/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero p {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-graphic {
    display: none; /* Hide graphic on smaller screens to save space */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    gap: 15px;
  }

  .navbar-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .navbar-action {
    display: none; /* Hide button on mobile or move it into mobile menu */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
  }
  
  /* Footer Mobile Centering */
  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-col .navbar-brand {
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-contact p {
    justify-content: center;
  }
}

/* Accordion for Program Page */
.accordion {
  margin-top: 30px;
}

.accordion-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  background-color: var(--bg-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--bg-gray);
}

.accordion-header::after {
  content: '\25BC';
  font-size: 0.8rem;
  transition: var(--transition);
}

.accordion-item.active .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 20px;
  max-height: 1000px; /* Arbitrary large number */
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary-color);
  color: var(--text-light);
}

tr:nth-child(even) {
  background-color: var(--bg-gray);
}

/* Modern Table */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.modern-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
  padding: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-align: left;
}

.modern-table td {
  padding: 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover td {
  background-color: var(--bg-gray);
}

/* Responsive Table container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Pricing Card */
.pricing-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.pricing-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.pricing-price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-list {
  list-style: none;
  padding: 0;
  flex-grow: 1;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.pricing-list li svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background-color: var(--bg-gray);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--bg-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}
