
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.top-bar {
    background-color: #002f6c !important;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar * {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #fff !important;  /* white text for contrast */
}

.top-bar input, .top-bar textarea, .top-bar select {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    border-radius: 0 !important;
}

.main-header {
    background-color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    height: 60px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #002f6c;
    font-weight: 600;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #002f6c;
}

nav.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-section {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 30%;
    left: 10%;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-overlay h1 {
    font-size: 42px;
}

.hero-overlay p {
    font-size: 18px;
    margin: 10px 0;
}

.apply-btn {
    background-color: #2e7d32;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}

.section {
    padding: 60px 40px;
    text-align: center;
}
.apply-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.apply-image, .apply-form {
    flex: 1 1 45%;
    min-width: 280px;
}

.apply-image img {
    width: 100%;
    border-radius: 8px;
}

.admission-form input,
.admission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.admission-form button {
    background-color: #002f6c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    width: 250px;
    text-align: center;
}

.card img {
    width: 40px;
    margin-bottom: 10px;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background: #ffffff;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #002f6c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer {
    background-color: #002f6c;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.full-width-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}


.full-width-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}

.top-nav-links {
    background: white;
    padding: 10px 0;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.top-nav-links .container a {
    margin-left: 15px;
    color: #002f6c;
    text-decoration: none;
}

.sidebar-buttons {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-btn, .whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background-color: #002f6c;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-left: 2px solid #2e7d32;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.sidebar-btn:hover, .whatsapp-btn:hover {
    background-color: #004080;
}

.infrastructure-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    background-color: #004080;
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
}

.infrastructure-layout .video-block {
    flex: 1 1 50%;
    min-width: 300px;
}

.infrastructure-layout .description-block {
    flex: 1 1 40%;
    min-width: 300px;
}

.infrastructure-layout .description-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.infrastructure-layout .description-block p {
    font-size: 16px;
    margin-bottom: 20px;
}

.infrastructure-layout .apply-btn {
    background-color: white;
    color: #004080;
    font-weight: 600;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.footer {
    background-color: #004080 !important;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-columns .column {
    flex: 1 1 220px;
}

.footer-columns h4 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid #ffffff50;
    padding-bottom: 5px;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columns ul li {
    margin: 5px 0;
}

.footer-columns ul li::before {
    content: '›';
    margin-right: 8px;
    color: #00ffcc;
}

.footer-columns p {
    margin: 8px 0;
}

.footer .social-icons a {
    margin-right: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.footer .container p:last-child {
    text-align: center;
    border-top: 1px solid #ffffff30;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 13px;
}
.footer .container,
.footer-columns.container {
    background: transparent !important;
}

@media (max-width: 768px) {
    .container.header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    nav#navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }

    nav#navbar.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    .container.header-container {
        gap: 10px;
    }

    nav#navbar a {
        font-size: 14px;
    }

    .logo {
        width: 140px;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admission-form, .apply-form, .container > div {
  animation: fadeInUp 1s cubic-bezier(.42,0,.58,1) both;
}

/* Optional: Delay the map/info so it appears after the form */
.container > div:nth-child(2) {
  animation-delay: 0.4s;
}
.apply-btn, button.apply-btn {
    transition: background 0.3s, transform 0.3s;
}
.apply-btn:hover, button.apply-btn:hover {
    background-color: #2e7d32;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 18px -6px #002f6c44;
}
.admission-form input:focus,
.admission-form textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 6px #2e7d3255;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.container {
    box-shadow: 0 4px 24px -10px #002f6c22;
    border-radius: 10px;
    background: #fff;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px);}
  to   { opacity: 1; transform: translateX(0);}
}
.container > div:nth-child(2) iframe {
  animation: slideInRight 1s cubic-bezier(.42,0,.58,1) 0.5s both;
}


nav#navbar.active {
    animation: slideDown 0.3s ease forwards;
}
/* --- Animation Enhancements --- */

/* Testimonials */
.testimonial-grid .testimonial {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: fadeInUpTestimonial 1s cubic-bezier(.55,0,.1,1) forwards;
}
.testimonial-grid .testimonial:nth-child(1) { animation-delay: 0.2s;}
.testimonial-grid .testimonial:nth-child(2) { animation-delay: 0.4s;}
.testimonial-grid .testimonial:nth-child(3) { animation-delay: 0.6s;}
@keyframes fadeInUpTestimonial {
    0% { opacity: 0; transform: translateY(40px) scale(0.97);}
    100% { opacity: 1; transform: none;}
}

/* About section */
.about-campus .container > * {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInAbout 1s cubic-bezier(.55,0,.1,1) forwards;
}
.about-campus .container > *:nth-child(1) { animation-delay: 0.2s;}
.about-campus .container > *:nth-child(2) { animation-delay: 0.4s;}
@keyframes fadeInAbout {
    0% { opacity: 0; transform: translateY(40px);}
    100% { opacity: 1; transform: none;}
}

/* Image grid (gallery) */
.image-grid .image-grid-item {
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    animation: fadeInImageGrid 0.9s cubic-bezier(.55,0,.1,1) forwards;
}
.image-grid .image-grid-item:nth-child(1) { animation-delay: 0.15s;}
.image-grid .image-grid-item:nth-child(2) { animation-delay: 0.3s;}
.image-grid .image-grid-item:nth-child(3) { animation-delay: 0.45s;}
.image-grid .image-grid-item:nth-child(4) { animation-delay: 0.6s;}
@keyframes fadeInImageGrid {
    0% { opacity: 0; transform: scale(0.96) translateY(30px);}
    100% { opacity: 1; transform: none;}
}
/* Hero section fade-in and slide-up */
.hero-section {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInHero 1.2s cubic-bezier(.55,0,.1,1) forwards;
}
.hero-overlay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInHeroOverlay 1s cubic-bezier(.55,0,.1,1) forwards;
    animation-delay: 0.7s;
}
@keyframes fadeInHero {
    0% { opacity: 0; transform: translateY(40px);}
    100% { opacity: 1; transform: none;}
}
@keyframes fadeInHeroOverlay {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: none;}
}

