:root {
    --navy: #002D62;
    --yellow: #FFD700;
    --white: #ffffff;
    --gray: #f4f7f6;
}

body {
    background-color: var(--gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Navigation Styles --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--yellow);
    padding: 10px 5%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-badge {
    height: 50px;
    width: 50px;
    border-radius: 50%; /* Makes logo circular */
    object-fit: cover;
    background: white;
}

.school-name {
    font-weight: bold;
    color: var(--navy);
    font-size: 1.2rem;
}

.utility-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-store {
    background: var(--navy);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.main-nav {
    background-color: var(--navy);
    padding: 15px 5%;
    display: flex;
    justify-content: flex-end; /* Pushes main links to the right */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
}

/* Hero Section */
.academics-hero {
    background: linear-gradient(rgba(0,45,98,0.8), rgba(0,45,98,0.8)), 
                url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    text-align: center;
}

.academics-hero h1 { 
    font-size: 3rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: slideDown 0.8s ease;
 }

/* Layout Containers */
.container {
    max-width: 900px;
    margin: -50px auto 50px;
    padding: 0 20px;
}

/* Section Cards & Effects */
.section-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-left: 5px solid var(--yellow);
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
}

h2 {
    color: var(--navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* List Styling */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--yellow);
}

/* Grid for Activities */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.activities-grid span {
    background: var(--navy);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* Contact CTA */
.contact-cta {
    background: var(--navy);
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
}

.contact-cta h2 { color: var(--yellow); justify-content: center; }

.btn-animate {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: var(--yellow);
    color: var(--navy);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-animate:hover {
    letter-spacing: 2px;
    background: white;
}

/* Responsive Image for School Excursion */
.excursion-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.excursion-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}


/* Entrance Animations */
.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Fixes */
@media (max-width: 600px) {
    .container { margin-top: 20px; }
    .academics-hero h1 { font-size: 2rem; }
}

/* Footer Styling */
.main-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 20px 20px 20px;
    margin-top: 50px;
    border-top: 5px solid var(--yellow);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-div h3, .footer-div h4 {
    color: var(--yellow);
    margin-bottom: 20px;
}

.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 50px;
    height: auto;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.footer-div p {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #cbd5e0;
}

/* Quick Links Styling */
.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin-bottom: 12px;
}

.quick-links ul li a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links ul li a:hover {
    color: var(--yellow);
    padding-left: 8px;
}

/* Social Grid Styling */
.social-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-item:hover {
    color: var(--sky-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-area {
        justify-content: center;
    }
    .quick-links ul li a, .social-item {
        justify-content: center;
    }
}

/* ---------------------------
   Responsive navigation toggle
   (CSS-only using checkbox hack)
   --------------------------- */

/* Hidden checkbox (off-screen) */
.nav-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Menu button (label) */
.nav-toggle-label {
  display: none; /* shown on small screens via media query */
  position: absolute;
  right: 5%;
  top: 14px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

/* inner icon displayed by the label (three bars) */
.nav-toggle-label .menu-icon,
.nav-toggle-label .menu-icon::before,
.nav-toggle-label .menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yellow);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 1px;
}

/* create top & bottom bars */
.nav-toggle-label .menu-icon::before,
.nav-toggle-label .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-label .menu-icon::before { top: -6px; }
.nav-toggle-label .menu-icon::after  { top: 6px; }

/* Mobile breakpoint: hide inline nav-links and show toggle */
@media (max-width: 900px) {
  .main-nav {
    padding: 12px 5%;
    position: relative;
  }

  /* hide the inline links initially */
  .nav-links {
    display: none;
    width: 100%;
    background: var(--navy);
    position: absolute;
    left: 0;
    top: 100%;
    transform-origin: top;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    z-index: 1050;
  }

  /* stack links vertically inside dropdown */
  .nav-links a {
    display: block;
    padding: 14px 20px;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: left;
  }

  /* show menu button */
  .nav-toggle-label {
    display: flex;
  }

  /* When checkbox checked, show nav-links with sliding animation */
  .nav-toggle:checked + .nav-toggle-label + .main-nav .nav-links,
  .nav-toggle:checked ~ .main-nav .nav-links {
    display: block;
    animation: navDrop 0.32s ease forwards;
  }

  /* Transform the menu icon into an X when checked */
  .nav-toggle:checked + .nav-toggle-label .menu-icon {
    background: transparent;
  }
  .nav-toggle:checked + .nav-toggle-label .menu-icon::before {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label .menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Slightly reduce hero height for small screens */
  .academics-hero {
    height: 240px;
  }

  /* reduce logo size a bit */
  .school-badge { height: 42px; }
  .school-name { font-size: 1rem; }
}

/* slide down animation for nav dropdown */
@keyframes navDrop {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Accessibility: focus styles for the label when keyboard focused */
.nav-toggle-label:focus {
  outline: 2px solid rgba(255,210,0,0.35);
  outline-offset: 3px;
}

/* Ensure nav-links are visible again on wider screens */
@media (min-width: 901px) {
  .nav-toggle-label { display: none; }
  .nav-links { display: block !important; position: static; box-shadow: none; background: transparent; }
  .nav-links a { padding: 0; margin-left: 30px; display: inline-block; border-top: none; }
}
