/* ======================== */
/* IMPORTS & GLOBAL SETUP */
/* ======================== */
:root {
  --primary-blue: #002855;
  --secondary-blue: #004f9e;
  --accent-gold: #f3c22d;
  --accent-gold-light: #ffd84d;
  --light-bg: #f9fafb; /* Slightly textured or very light pattern can be nice */
  --white: #ffffff;
  --dark-text: #333;
  --medium-text: #555;
  --light-text: #e0e0e0;
  --whatsapp-green: #25D366;
  --shadow: 0 12px 35px rgba(0, 40, 85, 0.1); /* Softer, larger shadow */
  --shadow-light: 0 6px 20px rgba(0, 40, 85, 0.07);
  --gradient-blue: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  --border-radius: 12px; /* Consistent border radius */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif; background-color: var(--white);
  color: var(--dark-text); line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* Smoother fonts */
}
.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; } /* Increased padding */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--primary-blue); margin-bottom: 20px; }
h1 { font-size: 3.5em; font-weight: 800; text-shadow: 1px 1px 3px rgba(0,0,0,0.1); }
h2 { font-size: 2.8em; text-align: center; margin-bottom: 25px; position: relative; }
.section-subtitle { font-size: 1.15em; color: var(--medium-text); text-align: center; max-width: 750px; margin: 0 auto 60px auto; }
h2::after { content: ''; display: block; width: 80px; height: 4px; background: var(--accent-gold); margin: 15px auto 0; border-radius: 2px; }
h3 { font-size: 1.9em; color: var(--secondary-blue); font-weight: 600; }
p { margin-bottom: 18px; color: var(--medium-text); font-size: 1.05em; }
img { max-width: 100%; height: auto; border-radius: var(--border-radius); display: block; }
ul { list-style: none; padding-left: 0; }
li { margin-bottom: 10px; color: var(--dark-text); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; } /* Increased gap */
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 35px; }
.text-center { text-align: center; }

/* ======================== */
/* FADE-IN ANIMATION */
/* ======================== */
.aos-init { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.aos-init.visible { opacity: 1; transform: translateY(0); }
[data-aos-delay="100"].visible { transition-delay: 0.1s; } [data-aos-delay="200"].visible { transition-delay: 0.2s; }
[data-aos-delay="300"].visible { transition-delay: 0.3s; } [data-aos-delay="400"].visible { transition-delay: 0.4s; }
[data-aos-delay="500"].visible { transition-delay: 0.5s; } [data-aos-delay="600"].visible { transition-delay: 0.6s; }

/* ======================== */
/* DYNAMIC NAVIGATION */
/* ======================== */
.navbar {
  display: flex; justify-content: center; align-items: center; padding: 20px 40px;
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; background-color: transparent;
}
.navbar.scrolled { background-color: var(--white); padding: 15px 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.navbar-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; }
.nav-logo img { max-height: 55px; width: auto; transition: all 0.3s ease; border-radius: 0; }
.nav-menu { display: flex; list-style: none; gap: 35px; }
.nav-link { text-decoration: none; color: var(--white); font-weight: 500; font-size: 1em; transition: color 0.4s ease; position: relative; padding-bottom: 5px; }
.navbar.scrolled .nav-link { color: var(--primary-blue); }
.nav-link:hover { color: var(--accent-gold); }
.nav-link::after { content: ''; display: block; width: 0; height: 2px; background: var(--accent-gold); transition: width .3s; position: absolute; bottom: 0; left: 0; }
.nav-link:hover::after { width: 100%; }
/* Highlight event links */
.nav-link.event-link { font-weight: 600; }
.nav-link.event-link.talentx { color: var(--accent-gold); }
.nav-link.event-link.kg-olympiad { color: #ff8c00; } /* Orange */
.navbar.scrolled .nav-link.event-link { color: inherit; } /* Reset color on scroll if needed, or keep highlighted */
.navbar.scrolled .nav-link.event-link.talentx:hover,
.navbar.scrolled .nav-link.event-link.kg-olympiad:hover { color: var(--accent-gold); }


/* Burger Icon Styles */
.menu-toggle { display: none; cursor: pointer; }
.menu-toggle .bar { display: block; width: 28px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--primary-blue); }
.navbar:not(.scrolled) .menu-toggle .bar { background-color: var(--white); }

/* ======================== */
/* HERO SECTION */
/* ======================== */
#hero {
  height: 100vh; min-height: 700px;
  /* IMPORTANT: Replace with YOUR high-quality hero image */
  background-image: linear-gradient(rgba(0, 40, 85, 0.75), rgba(0, 40, 85, 0.75)), url('images/hero-image.jpg');
  background-size: cover; background-position: center; background-attachment: fixed; /* Parallax effect */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--white); padding: 0 20px;
}
#hero h1 { color: var(--white); margin-bottom: 20px; max-width: 850px; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
#hero p { font-size: 1.3em; color: rgba(255, 255, 255, 0.95); margin-bottom: 40px; max-width: 700px; font-weight: 300; }
.hero-buttons .btn { margin: 0 10px; }

/* ======================== */
/* BUTTONS */
/* ======================== */
.btn { text-decoration: none; font-weight: 600; font-size: 1.05em; padding: 15px 32px; border-radius: 50px; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; display: inline-block; text-align: center; }
.btn-primary { background-color: var(--accent-gold); color: var(--primary-blue); box-shadow: 0 6px 20px rgba(243, 194, 45, 0.3); }
.btn-primary:hover { background-color: var(--accent-gold-light); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(243, 194, 45, 0.4); }
.btn-secondary { background-color: transparent; border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-secondary:hover { background-color: var(--accent-gold); color: var(--primary-blue); transform: translateY(-3px); }
.btn-outline { background-color: transparent; border: 2px solid var(--secondary-blue); color: var(--secondary-blue); padding: 10px 25px; font-size: 1em; align-self: flex-start; }
.btn-outline:hover { background-color: var(--secondary-blue); color: var(--white); transform: translateY(-2px); }
/* ======================== */
/* WHATSAPP FAB             */
/* ======================== */
.whatsapp-fab {
  position: fixed; /* Keep it fixed relative to the viewport */
  bottom: 30px;    /* Distance from the bottom edge */
  right: 30px;     /* Distance from the right edge */
  z-index: 1000;   /* Ensure it stays on top of other content */

  background-color: #25D366; /* Official WhatsApp Green */
  color: #ffffff;             /* White icon color */
  
  width: 60px;     /* Button width */
  height: 60px;    /* Button height */
  border-radius: 50%; /* Make it perfectly round */
  
  display: flex; /* Use flexbox to center the icon */
  align-items: center;
  justify-content: center;
  
  text-decoration: none; /* Remove underline from the link */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  
  /* Smooth transition for hover effects */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; 
}

.whatsapp-fab svg {
  width: 32px;     /* Icon size */
  height: 32px;    /* Icon size */
  fill: currentColor; /* Use the color defined in .whatsapp-fab */
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-4px); /* Enlarge and lift slightly */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

/* Optional: Adjust size for smaller screens */
@media (max-width: 768px) {
  .whatsapp-fab {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }
}

/* ======================== */
/* AUDIENCE SECTION */
/* ======================== */
#audience { background: var(--light-bg); }
.audience-card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-align: center; border-bottom: 6px solid var(--secondary-blue); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.audience-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(0, 40, 85, 0.15); border-color: var(--accent-gold); }
.audience-card .icon { font-size: 4em; color: var(--secondary-blue); margin-bottom: 15px; line-height: 1; transition: color 0.3s ease; }
.audience-card:hover .icon { color: var(--accent-gold); }
.audience-card h3 { font-size: 1.6em; color: var(--primary-blue); margin-top: 10px; }

/* ======================== */
/* WHY HMTA (STATS) SECTION */
/* ======================== */
#why-hmta { background: var(--white); } /* White background for contrast */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.stat-item { background: var(--gradient-blue); color: var(--white); padding: 35px 25px; border-radius: var(--border-radius); text-align: center; box-shadow: 0 10px 30px rgba(0, 79, 158, 0.25); }
.stat-number { font-size: 3.8em; font-weight: 800; color: var(--accent-gold); margin-bottom: 5px; line-height: 1; }
.stat-title { font-size: 1.05em; font-weight: 400; color: rgba(255, 255, 255, 0.9); }

/* ======================== */
/* CORE PROGRAMS (COURSES) */
/* ======================== */
#programs { background-color: var(--light-bg); }
.courses-grid { margin-top: 40px; }
.course-card { background: var(--white); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0, 40, 85, 0.18); }
.course-card img { width: 100%; height: 230px; object-fit: cover; border-radius: var(--border-radius) var(--border-radius) 0 0; }
.course-card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.5em; color: var(--primary-blue); margin-bottom: 10px; }
.course-card p { font-size: 0.95em; margin-bottom: 25px; flex-grow: 1; }

/* ======================== */
/* WHY CHOOSE US & FACILITIES */
/* ======================== */
#why-choose-us { background: var(--white); }
.benefit-list.large-icons li { font-size: 1.1em; position: relative; padding-left: 45px; margin-bottom: 18px; font-weight: 500; }
.benefit-list.large-icons li::before { content: attr(data-icon); /* Use data-icon attribute in HTML if possible, or fallback */ content: '✓'; /* Fallback check */ font-family: 'Arial'; /* Or an icon font */ color: var(--accent-gold); font-weight: 900; position: absolute; left: 0; top: -2px; font-size: 1.6em; line-height: 1; }

/* ======================== */
/* TESTIMONIALS SECTION */
/* ======================== */
#testimonials { background-color: var(--light-bg); }
.testimonial-card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow); border-left: 6px solid var(--primary-blue); position: relative; }
.testimonial-card::before { /* Quote icon */ content: '“'; position: absolute; top: 20px; left: 20px; font-size: 4em; color: var(--accent-gold); opacity: 0.2; line-height: 1; }
.testimonial-card blockquote { font-size: 1.15em; font-style: italic; color: var(--medium-text); margin: 0 0 20px 0; border: none; padding: 0; }
.testimonial-card .author { font-size: 1.1em; font-weight: 700; color: var(--primary-blue); margin-top: 15px; }
.testimonial-card .author-title { font-size: 0.9em; color: var(--secondary-blue); margin-top: -15px; }

/* ======================== */
/* RECOGNITION (PARTNERS) */
/* ======================== */
#recognition { background: var(--white); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 45px; margin-top: 40px; }
.logo-grid img { max-height: 75px; width: auto; opacity: 0.6; filter: grayscale(100%); transition: all 0.3s; border-radius: 0; }
.logo-grid img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }

/* ======================== */
/* CTA SECTION */
/* ======================== */
#cta { background: var(--gradient-blue); color: var(--white); text-align: center; border-radius: var(--border-radius); margin: 60px auto; max-width: 1200px; padding: 80px 40px; } /* Contained CTA */
#cta h2 { color: var(--white); } #cta h2::after { background: var(--accent-gold); }
#cta .section-subtitle { color: rgba(255, 255, 255, 0.9); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }

/* ======================== */
/* CONTACT FORM */
/* ======================== */
#contact { background-color: var(--light-bg); }
.contact-grid { gap: 60px; }
.contact-info p { font-size: 1.05em; line-height: 1.8; }
.contact-info a { color: var(--secondary-blue); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.contact-info a:hover { color: var(--accent-gold); text-decoration: underline; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary-blue); font-size: 0.95em; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 1em; transition: border-color 0.3s, box-shadow 0.3s; background: var(--white); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary-blue); box-shadow: 0 0 0 3px rgba(0, 79, 158, 0.1); }
.form-message { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.form-message.success { background: #e0f8e9; color: #1d7b45; border: 1px solid #a6e7c1; }
.form-message.error { background: #fdebee; color: #c92a47; border: 1px solid #f7c5ce; }

/* ======================== */
/* FOOTER Styles            */
/* ======================== */
#footer { 
    background: var(--primary-blue); 
    color: rgba(255, 255, 255, 0.85); /* Slightly brighter text */
    padding-top: 80px; 
    font-size: 0.95rem; /* Base font size for footer */
    line-height: 1.8;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 40px 30px; /* Row and column gap */
    padding-bottom: 50px; 
}

.footer-col {
    padding-right: 20px; /* Add some space between columns */
}
.footer-col:last-child {
    padding-right: 0;
}

.footer-logo { 
    max-width: 170px; 
    margin-bottom: 20px; 
    border-radius: 0; 
    background: var(--white); /* Add white background if logo is transparent */
    padding: 5px;
    border-radius: 5px;
}

footer h4 { 
    font-size: 1.15rem; 
    color: var(--white); 
    margin-bottom: 25px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--accent-gold); 
    display: inline-block; /* Make border fit content */
}

footer p { 
    font-size: 0.95em; 
    color: rgba(255, 255, 255, 0.85); 
    margin-bottom: 15px;
}

footer ul { list-style: none; padding: 0; margin: 0;} 
footer li { margin-bottom: 12px; }

footer a { 
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none; 
    transition: color 0.3s ease, padding-left 0.3s ease; 
    position: relative; 
    font-size: 0.95em;
    display: inline-block; /* Prevent links taking full width */
}
footer a:hover { 
    color: var(--accent-gold); 
    padding-left: 5px; 
}
footer .footer-contact a {
    display: flex; /* Align icons and text */
    align-items: center;
    gap: 8px; /* Space between icon and text */
}
footer .footer-contact a:hover {
    padding-left: 0; /* Don't shift contact links */
}


address { 
    font-style: normal; 
    line-height: 1.8; 
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85); 
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.social-icons a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
    padding-left: 0; /* Override general link hover */
}
/* Add Font Awesome CSS link in header.php if using i tags */
/* Example: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> */


.footer-map iframe {
    width: 100%;
    height: 220px; /* Adjusted height */
    border: 0;
    border-radius: 8px;
    margin-top: 15px;
    filter: grayscale(80%); /* Subtle map style */
    transition: filter 0.3s ease;
}
.footer-map iframe:hover {
    filter: grayscale(0%);
}

.footer-bottom { 
    text-align: center; 
    padding: 25px 20px; 
    font-size: 0.9em; 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    margin-top: 50px; 
    color: rgba(255, 255, 255, 0.75); 
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-grid { 
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax for better stacking */
      gap: 35px; 
  }
  footer h4 { margin-bottom: 20px; }
  .footer-col { padding-right: 0; } /* Remove padding on mobile */
}

@media (max-width: 768px) {
    #footer { padding-top: 60px; }
    .footer-grid { text-align: center; } /* Center text in columns */
    .footer-logo { margin: 0 auto 20px auto; } /* Center logo */
    footer h4 { display: block; border-bottom: none; padding-bottom: 0; margin-bottom: 15px;} /* Center heading, remove border */
    footer h4::after { /* Add underline below centered heading */
        content: ''; display: block; width: 50px; height: 2px; 
        background: var(--accent-gold); margin: 8px auto 0; border-radius: 1px;
    }
    footer ul { display: inline-block; text-align: left; } /* Keep list items left-aligned */
    .social-icons { justify-content: center; } /* Center social icons */
    .footer-map iframe { height: 250px; } /* Maybe larger map on mobile */
    .footer-bottom { margin-top: 40px; }
}

/* Ensure WhatsApp FAB styles are present */
.whatsapp-fab { 
    /* Styles should be present from previous step or main style.css */
    position: fixed; bottom: 30px; right: 30px; z-index: 1000; 
    background-color: #25D366; color: #ffffff; width: 60px; height: 60px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; 
}
.whatsapp-fab svg { width: 32px; height: 32px; fill: currentColor; }
.whatsapp-fab:hover { transform: scale(1.1) translateY(-4px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
@media (max-width: 768px) {
  .whatsapp-fab { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .whatsapp-fab svg { width: 28px; height: 28px; }
}
/* ======================== */
/* MOBILE MENU STYLES */
/* ======================== */
@media screen and (max-width: 992px) {
    .nav-menu {
        display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; 
        padding-top: 100px; background: rgba(0, 40, 85, 0.98); /* Dark blue overlay */
        backdrop-filter: blur(5px); /* Blur effect */
        transition: left 0.4s ease-in-out; z-index: 999; gap: 20px; overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-link { color: var(--white); font-size: 1.3em; padding: 8px 0; }
    .navbar.scrolled .nav-link { color: var(--white); } /* Keep links white on mobile */
    .nav-link:hover { color: var(--accent-gold); }
    .nav-link::after { display: none; } /* Hide underline on mobile */
    .menu-toggle { display: block; z-index: 1001; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .navbar.scrolled .menu-toggle.is-active .bar { background-color: var(--primary-blue); }
    .navbar:not(.scrolled) .menu-toggle.is-active .bar { background-color: var(--white); }
    .nav-logo { z-index: 1001; }
}

/* ======================== */
/* GENERAL MOBILE RESPONSIVENESS */
/* ======================== */
@media (max-width: 992px) {
  .container { padding: 80px 15px; }
  h1 { font-size: 2.5em; } h2 { font-size: 2.1em; } h3 { font-size: 1.7em; }
  .grid-2-col, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .navbar { padding: 15px 20px; } .navbar.scrolled { padding: 10px 20px; }
  #hero h1 { font-size: 2.8em; } #hero p { font-size: 1.1em; }
  .section-subtitle { font-size: 1.05em; }
  #about img, #for-schools img { margin-top: 30px; } /* Stack images below text */
  .footer-grid { text-align: center; } .footer-about, .footer-links, .footer-contact { margin-bottom: 30px; }
  .footer-logo { margin-left: auto; margin-right: auto; }
}
@media screen and (max-width: 480px) {
    h1 { font-size: 2.2em; } h2 { font-size: 1.9em; }
    .nav-link { font-size: 1.1em; }
    .nav-logo img { max-height: 45px; }
    .btn { padding: 12px 28px; font-size: 1em; }
    .cta-buttons .btn { display: block; width: 80%; margin: 10px auto; } /* Stack CTA buttons */
}