/* Color Palette & Variables */
:root {
    --navy: #002347;
    --yellow: #FFD200;
    --sky-blue: #6A91D1;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
}
/* --- 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;
}
.contact-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1000px;
    width: 100%;
}

.section-title {
    color: var(--navy);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Flexbox Layout */
.contact-wrapper {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    animation: slideUp 0.8s ease-out;
}

/* Left Side: Info */
.contact-info {
    background: var(--navy);
    color: var(--white);
    padding: 40px;
    flex: 1;
}

.contact-info h3 {
    color: var(--yellow);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    color: var(--yellow);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Right Side: Form */
.contact-form {
    padding: 40px;
    flex: 1.5;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--sky-blue);
}

.btn-submit {
    background: var(--yellow);
    color: var(--navy);
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--navy);
    color: var(--yellow);
    transform: scale(1.05);
}

/* Social Media Icons */
.social-icons {
    margin-top: 30px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--yellow);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

/* 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);
  }

  /* 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; }
}
