/* Optimized and Consolidated CSS */
:root {
  --primary: #FF9A04;
  --secondary: #2C3E50;
  --light: #F5F5F5;
  --success: #4CAF50;
  --text-dark: #333;
  --text-light: #666;
  --white: #fff;
  --black: #000;
  --border-light: #ddd;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--secondary);
  background: var(--light);
  overflow-x: hidden; /* IMPORTANT: This hides horizontal scroll. If issues persist, remove this to find the overflowing element. */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: #e68a00; /* Darker primary */
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TOP BAR */
.top-bar {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 5%;
  text-align: center;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  height: 35px; /* Explicit height for calculation */
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-bar i {
  margin-right: 0.5rem;
}

/* NAVIGATION */
.navbar {
  padding: 1.2rem 6%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  position: fixed;
  width: 100%;
  top: 35px; /* Matches top-bar height */
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px var(--shadow-medium);
  height: 76px; /* Explicit height for calculation */
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo img {
  max-height: 50px;
  width: auto;
  transition: var(--transition-normal);
}
.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-menu a {
  color: var(--secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary);
  transition: var(--transition-normal);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.8rem;
  padding: 0.5rem;
}

/* HERO SECTION WITH WAVE & PARALLAX */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(35px + 76px + 50px); /* top-bar height + navbar height + extra padding */
  padding-bottom: 180px; /* Space for the wave */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
              url('images/portfolio1.jpg') center/cover fixed;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px; /* Wave height */
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 150' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,49 C150,150 350,0 500,49 L500,150 L0,150 Z' style='fill:rgb(255,154,4);' /%3E%3C/svg%3E"); /* Replaced var(--primary) with actual color for SVG compatibility */
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}
.hero-content {
  max-width: 900px;
  z-index: 2;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 1s forwards 0.3s;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  color: var(--white);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--primary);
  color: var(--white) !important;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-normal);
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(255,154,4,0.2);
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255,154,4,0.3);
  background: #e68a00;
}
.cta-button i {
  font-size: 1.1em;
}

/* GENERAL SECTION STYLING */
.about-ankelba, .why-choose-us, .testimonials, .programs, .portfolio, .daily-schedule, .events, .contact {
  padding: 6rem 6%;
}

/* TRUST BADGES */
.trust-badges {
  padding: 5rem 6%;
  background: var(--light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.badge-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-light);
  text-align: center;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(30px);
}
.badge-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}
.badge-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}
.badge-card p {
  font-size: 0.95rem;
}
.rating-stars { /* This class isn't used in HTML, but .rating is. Styling .rating directly. */
  color: #ffd700;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}
.rating-text {
  font-size: 0.9rem;
  color: var(--secondary);
  vertical-align: middle;
  margin-left: 0.3rem;
}
.review-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.review-link:hover {
  text-decoration: underline;
}

/* ABOUT SECTIONS */
.about-ankelba, .why-choose-us {
  background: var(--light);
  text-align: center;
}
.about-ankelba h2, .why-choose-us h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 3rem; /* Increased margin for underline */
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}
.about-ankelba h2::after, .why-choose-us h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.about-text {
  max-width: 800px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards 0.3s;
}

/* WHY CHOOSE US */
.why-choose-us {
    background: var(--white);
}
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  text-align: left;
  margin-top: 3rem;
}
.why-item {
  background: var(--light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--primary);
}
.why-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255,154,4,0.15);
}
.why-item h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.8rem;
}
.why-item h3::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--primary);
  font-size: 1.8rem;
}
.why-item p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--light);
  text-align: center;
}
.testimonials h2 {
   margin-bottom: 3rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px var(--shadow-medium);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px var(--shadow-strong);
}
.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  width: 100%;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.testimonial-info {
  padding: 2rem 1.5rem;
  text-align: center;
  flex-grow: 1;
}
.testimonial-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.testimonial-info .rating { /* Styling for the div with class rating */
  color: #ffd700; /* Gold color for stars */
  font-size: 1.3rem; /* Size of stars */
  margin: 0.5rem 0 1rem;
}

/* OUR SERVICES / PROGRAMS */
.programs {
  background: var(--white);
}
.programs h2 {
  text-align: center;
  margin-bottom: 3.5rem;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.program-card {
  padding: 2.5rem 2rem;
  border-radius: 15px;
  background: var(--light);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  text-align: center;
  border: 1px solid var(--border-light);
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transition: var(--transition-normal);
}
.program-card:hover::before {
  height: 10px;
}
.program-card i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}
.program-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--secondary);
}
.program-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}
.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* PORTFOLIO / GALLERY SECTION */
.portfolio {
  background: var(--light);
  padding-bottom: 6rem; /* Ensure bottom padding if top is 0 due to section-subtitle margin */
}
.portfolio h2, .portfolio .section-subtitle {
    text-align: center;
}
.portfolio .section-subtitle {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 0 5%;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-medium);
  transition: var(--transition-fast);
}
.portfolio-item:hover {
    box-shadow: 0 8px 20px var(--shadow-strong);
}
.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  transition: opacity 0.4s ease-out;
  text-align: center;
  padding: 1rem;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}
.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* DAILY SCHEDULE */
.daily-schedule {
  background: var(--white);
}
.daily-schedule h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 3.5rem;
  position: relative;
}
.daily-schedule h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.schedule-card {
  background: var(--light);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: 0 5px 15px var(--shadow-light);
  border-top: 5px solid var(--primary);
}
.schedule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px var(--shadow-medium);
}
.schedule-card i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
  text-align: center;
  transition: var(--transition-fast);
}
.schedule-card:hover i {
  transform: scale(1.1);
}
.schedule-card h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
}
.schedule-card .activity-features p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
}
.schedule-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.schedule-card li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.schedule-card li::before {
  content: "\2713";
  color: var(--success);
  font-size: 1.2rem;
  line-height: 1;
}

/* EVENTS SECTION */
.events {
  background: var(--light);
  text-align: center;
}
.events h2 {
  margin-bottom: 3.5rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
  text-align: left;
}
.event-card {
  background: var(--white);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  border-left: 5px solid var(--primary);
  box-shadow: 0 5px 15px var(--shadow-light);
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px var(--shadow-medium);
}
.event-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}
.event-card:hover i {
  color: #FF6B00;
}
.event-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.event-dates {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}
.event-dates span {
  display: inline-block;
  background: var(--light);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 500;
  color: var(--secondary);
}
.event-details .activities {
  color: var(--text-dark);
  font-weight: 500;
  margin: 1rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}
.event-details .goal {
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}
.events-cta {
  text-align: center;
  margin-top: 3rem;
}

/* CONTACT SECTION */
.contact {
  background: var(--white);
  text-align: center;
}
.contact h2 {
  margin-bottom: 1.5rem;
}
.contact p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}
.contact a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact a:hover {
    text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin: 2.5rem 0;
}
.social-links a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--white);
}
.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-0.25rem) scale(1.1);
}
.social-links i {
  color: var(--white);
  font-size: 1.4rem;
}
.social-links img {
    filter: brightness(0) invert(1);
}


/* CONTACT MAP */
.contact-map-container {
    padding: 0 6%;
    margin-bottom: 4rem;
}
.contact-map {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-medium);
  max-width: 1100px;
  margin: 2rem auto;
}
.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(10%);
}

/* FOOTER */
.footer {
  background: var(--secondary);
  color: #ddd;
  padding: 5rem 0 0; /* Removed bottom padding here, will be on .footer-bottom */
  line-height: 1.8;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 3rem;
}
.footer-section h3, .footer-column h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}
.footer-section h3::after, .footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 1px;
}
.footer-section p, .footer-column p {
  margin: 0.8rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-section p i, .footer-column p i {
  width: 1.25rem;
  text-align: center;
  color: var(--primary);
  margin-top: 0.2em;
}
.footer-section a, .footer-column a {
  color: #ddd;
  transition: var(--transition-fast);
}
.footer-section a:hover, .footer-column a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.location-item {
  margin: 1.5rem 0;
}
.location-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--primary);
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
}
.location-link:hover {
  background: rgba(255,255,255,0.07);
  transform: translateX(5px);
}
.location-link i {
  font-size: 1.8rem;
  margin-top: 0.1em;
}
.location-link p.branch-name { margin: 0; font-weight: 600; color: var(--white); }
.location-link small {
  display: block;
  color: #bbb;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.hours-list {
  display: grid;
  gap: 1rem;
}
.day-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.day-time span:first-child { font-weight: 500; }
.time-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.time-separator {
  color: var(--primary);
}
.current-time {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  animation: pulse 2s infinite;
}
.current-time i { color: var(--primary); }

.footer-main {
  padding-top: 1rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}
.footer-column ul { padding-left: 0.5rem; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column ul a::before {
    content: "» ";
    color: var(--primary);
    margin-right: 0.3rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.subscribe-form input {
  flex: 1;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 0.95rem;
}
.subscribe-form input::placeholder { color: #aaa; }
.subscribe-form button {
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.subscribe-form button:hover {
  background: #e68a00;
}
.footer-bottom {
  text-align: center;
  padding: 2.5rem 0 2rem; /* Added bottom padding */
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}
.credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.credit a:hover {
  text-decoration: underline;
}

/* MODAL (If uncommented in HTML) */
.enroll-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.modal-open .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: var(--primary);
}
#enrollTitle {
    text-align: center;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255,154,4,0.2);
}


/* FAQ CHATBOT WIDGET */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1999;
}
#chat-toggle:hover {
  background: #e68a00;
  transform: scale(1.1) translateY(-3px);
}
#chat-widget {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 550px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}
#chat-widget.open {
    opacity: 1;
    transform: translateY(0);
}

#chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
#chat-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0;
  color: var(--white);
}
#chat-header button#chat-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
#chat-header button#chat-close:hover {
  opacity: 1;
}
#chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.message {
  line-height: 1.5;
  max-width: 88%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.message.ai {
  background: #e9ecef;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
#chat-input {
  padding: 1rem;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}
#user-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 0.95rem;
  margin-right: 0.8rem;
  transition: border-color 0.2s ease;
}
#user-input:focus {
    outline: none;
    border-color: var(--primary);
}
#send-btn {
  background: var(--primary);
  border: none;
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#send-btn:hover {
  background: #e68a00;
  transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) { /* Tablet */
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .why-list, .programs-grid, .events-grid, .schedule-grid, .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .about-ankelba, .why-choose-us, .testimonials, .programs, .portfolio, .daily-schedule, .events, .contact {
      padding-top: 4rem;
      padding-bottom: 4rem;
    }
}

@media (max-width: 768px) { /* Mobile */
  .top-bar {
    font-size: 0.8rem;
    padding: 0.4rem 3%;
    height: 30px;
  }
  .navbar {
    padding: 1rem 5%;
    top: 30px;
    height: 70px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255,255,255,0.98);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1.5rem 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px var(--shadow-medium);
    text-align: center;
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding-top: calc(30px + 70px + 30px);
    min-height: calc(100vh - (30px + 70px));
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }

  .trust-badges, .programs-grid, .events-grid, .schedule-grid, .testimonial-grid,
  .footer-grid, .footer-container, .portfolio-container {
    grid-template-columns: 1fr;
  }
  .badge-card, .program-card, .event-card, .schedule-card, .testimonial-card, .portfolio-item {
    margin-bottom: 1.5rem;
  }
  .contact-map {
    padding-bottom: 75%;
  }
  .footer-grid, .footer-main {
    padding-left: 5%; padding-right: 5%;
  }
  .day-time {
    flex-direction: column;
    align-items: flex-start;
  }
  .day-time .time-slot { margin-top: 0.3rem; }

  #chat-widget {
    width: calc(100% - 40px);
    max-height: calc(100vh - 110px); /* 100% of viewport height minus some offset */
    bottom: 80px;
    right: 20px;
    left: 20px;
  }
  .about-ankelba h2, .why-choose-us h2, .daily-schedule h2, .events h2, .programs h2 {
    font-size: 2rem;
  }
  .about-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .about-ankelba, .why-choose-us, .testimonials, .programs, .portfolio, .daily-schedule, .events, .contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 480px) { /* Smaller Mobile */
  .logo { font-size: 1.5rem; }
  .logo img { max-height: 40px; }

  .hero::after { /* Smaller wave on very small screens */
    height: 120px;
  }
  .hero { /* Adjust padding to match new wave height */
    padding-bottom: 120px;
  }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.9rem; }
  .cta-button { padding: 0.8rem 1.5rem; font-size: 0.85rem;}
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }

  .badge-card, .program-card, .event-card, .schedule-card, .testimonial-card {
    padding: 1.5rem;
  }
  .program-card i, .schedule-card i, .event-card i { font-size: 2.2rem; }

  #chat-toggle { width: 50px; height: 50px; font-size: 1.5rem; }
  #chat-widget { bottom: 75px; max-height: calc(100vh - 100px); } /* Further adjust max-height */

  .about-ankelba, .why-choose-us, .testimonials, .programs, .portfolio, .daily-schedule, .events, .contact {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Ensure footer has no extra margin causing scroll or gaps */
footer.footer {
  margin-bottom: 0;
}

/* === SUMMER CAMP NAVIGATION BUTTON & POPUP MODAL STYLES === */

/* Style for the new button in the main navigation bar */
.nav-button-highlight {
  background: #28a745; /* A fresh green color to stand out */
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.nav-button-highlight:hover {
  background: #218838; /* A darker green on hover */
  transform: translateY(-2px);
}

/* Styles for the popup (modal) overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5000;
  display: none; /* Hidden by default, JS will show it */
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* Safari support */
}

/* The actual popup content box */
.modal-content {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  width: 100%;
  display: flex; /* Side-by-side layout for image and text */
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Animation class added by JavaScript */
.modal-overlay.visible .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* The 'X' close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* The wrapper that makes the whole popup a clickable link */
.modal-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

/* The image part of the popup */
.modal-image {
  flex-basis: 45%;
  overflow: hidden;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
/* A subtle zoom effect on the image when hovering the popup */
.modal-link-wrapper:hover .modal-image img {
  transform: scale(1.05);
}

/* The text part of the popup */
.modal-text {
  flex-basis: 55%;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-text h2 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}
.modal-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.modal-cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  align-self: flex-start; /* Aligns button to the left */
  transition: all 0.3s ease;
}
.modal-link-wrapper:hover .modal-cta-button {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,154,4,0.3);
}

/* Responsive styles for the popup on smaller screens */
@media (max-width: 600px) {
  .modal-link-wrapper {
    flex-direction: column; /* Stack image on top of text */
  }
  .modal-image {
    height: 180px; /* Give the image a fixed height */
  }
  .modal-text {
    padding: 2rem 1.5rem;
  }
  .modal-text h2 {
    font-size: 1.6rem;
  }
  .modal-text p {
    font-size: 0.95rem;
  }
}