
/* Ensure html and body take full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* === FOOTER SECTION === */
.footer {
    /* background-color: #003366; */
    color: #fff;
    padding: 50px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
   
}
h2{
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    padding: 0%;
    margin-bottom:10px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    color: indigo;
    font-weight: 700;
    margin: auto;
    gap: 30px;
}

.footer-column {
    
    min-width: 250px;
    text-align: center;
}

.footer-logo {
    width: 250px;
    height: 115px;
}
.footer-column2{
    font-size: 20px;
    color: #ffcc00;
}
.footer-column h4 {
    font-size: 20px;
    margin-bottom: 15px;
    
    cursor: pointer;
}

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

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.quick-links-wrapper {
    padding-left: 0;
    list-style: none;
    column-count: 3;
    column-gap: 110px;
    display: block;
}

.quick-links-wrapper li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.quick-links-wrapper li:first-child {
    column-span: all;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 12px;
    text-align: center;
    font-size: 20px;
}

.quick-col ul {
    padding-left: 0;
}

.social-icons a {
    margin-right: 10px;
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffcc00;
}

.footer-bottom {
    text-align: center;
    padding: 20px 10px 0;
    font-size: 14px;
    border-top: 1px solid #555;
    margin-top: 30px;
}
.footer{
    padding: 20px;
}
.footer-bottom a {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 5px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffcc00;
    color: #003366;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    z-index: 999;
}

.accordion-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
}

#accordion-icon {
    font-size: 14px;
    margin-left: 10px;
}
/* Top Bar */
.top-bar {
    background: #eee;
    padding: 5px 15px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header */
header {
    background: linear-gradient(to right, #1e40af, #9333ea);
    padding: 10px 20px;
    color: white;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1001;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    max-height: 120px;
    height: auto;
    width: auto;
}

/* Navigation for Desktop */
nav {
    flex-grow: 1;
    text-align: right;
    position: relative;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 0;
    margin-right: 10px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-links a, .nav-links .dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    background: transparent;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Glowing border animation for desktop */
@media (min-width: 769px) {
    .nav-links a:hover::after,
    .nav-links .dropdown-toggle:hover::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 2px solid transparent;
        border-radius: 7px;
        box-shadow: 0 0 8px #ffffff, 0 0 12px #9333ea;
        animation: drawBorder 2s linear infinite;
    }

    @keyframes drawBorder {
        0% { border-color: transparent; border-top-color: #ffffff; }
        25% { border-color: transparent; border-top-color: #ffffff; border-right-color: #ffffff; }
        50% { border-color: transparent; border-right-color: #ffffff; border-bottom-color: #ffffff; }
        75% { border-color: transparent; border-bottom-color: #ffffff; border-left-color: #ffffff; }
        100% { border-color: transparent; border-left-color: #ffffff; border-top-color: #ffffff; }
    }
}

/* Dropdown Menu for Desktop */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e3a8a;
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

.nav-item:nth-child(n+4) .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-menu a {
    padding: 12px 15px;
    color: white;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    background: transparent;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}


.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        display: flex;
    }
}

/* Hamburger Icon for Desktop - hidden */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Header Text (assuming this is a separate bar below the main header) */
.header-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a4a72;
    color: #fff;
    padding: 10px 90px;
    padding-right: 20px;
    font-size: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.header-info-left {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-text a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-text a:hover {
    color: #ffeb3b;
}

.header-text-logo img {
    max-height: 30px;
    height: auto;
    width: auto;
}

.email-icon img, .phone-icon img, .login-icon img {
    max-height: 16px;
    height: auto;
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}

.login-button {
    background-color: #ffd700;
    color: #1a4a72;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (min-width: 769px) {
    .login-button:hover::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 2px solid transparent;
        border-radius: 7px;
        box-shadow: 0 0 8px #ffffff, 0 0 12px #9333ea;
        animation: drawBorder 2s linear infinite;
    }
}


/* Floating WhatsApp Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 55px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    text-decoration: none; /* Remove underline from link */
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
    
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* WhatsApp Modal Overlay */
.whatsapp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top of everything */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.whatsapp-modal-overlay.active {
    display: flex; /* Show when active */
    opacity: 1;
}

/* WhatsApp Modal Content Box */
.whatsapp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px; /* Max width for desktop */
    width: 90%; /* Responsive width */
    transform: translateY(20px); /* Start slightly below center */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.whatsapp-modal-overlay.active .whatsapp-modal-content {
    opacity: 1;
    transform: translateY(0); /* Slide into view */
}

/* Close Button for Modal */
.whatsapp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.whatsapp-modal-close:hover {
    color: #f00;
}

/* WhatsApp Contacts Container (Flexbox for cards) */
.whatsapp-contacts-container {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    gap: 20px; /* Space between cards */
    justify-content: center; /* Center cards if they don't fill the row */
    margin-top: 20px;
}

/* Individual WhatsApp Contact Card */
.whatsapp-contact-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(50% - 10px); /* Two cards per row on wider screens, with gap accounted for */
    max-width: calc(50% - 10px); /* Max width for two columns */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.whatsapp-contact-card:hover {
    transform: translateY(-5px);
}

.whatsapp-contact-card .whatsapp-contact-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover; /* Ensures image covers the circle without distortion */
    margin: 0 auto 15px auto; /* Center image and add bottom margin */
    border: 3px solid #25D366; /* Green border around image */
}

.whatsapp-contact-card h3 {
    margin-bottom: 5px;
    color: #333;
}

.whatsapp-contact-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.whatsapp-chat-button {
    display: inline-flex; /* Use inline-flex to center content and allow icon */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-chat-button:hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: translateY(-2px);
}

.whatsapp-chat-button i {
    font-size: 1.2em; /* Size of the WhatsApp icon */
}


/* MOBILE SPECIFIC STYLES - All previous and new modal responsiveness */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    header {
        padding: 10px 15px;
        min-height: 80px;
    }
    .logo img {
        height: 60px;
        max-height: 60px;
    }

    /* Hamburger: Always display on mobile */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
      
        transform: translateY(-50%);
        z-index: 1100;
    }

    /* Main Navigation Links Container */
    .nav-links {
        display: none;
        width: 100vw;
        flex-direction: column;
        align-items: stretch;
        background: #1e40af;
        max-height: 100vh;
        padding-top: 80px; /* Adjust this to roughly match your header's actual height */
        padding-bottom: 20px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        box-sizing: border-box;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links .nav-item {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
    }
    .nav-links .nav-item:last-child {
        border-bottom: none;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 16px;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        display: block;
        box-sizing: border-box;
        white-space: normal;
        background: transparent;
        border-radius: 0;
    }

    .nav-links .nav-item.open > .dropdown-toggle,
    .nav-links a:active,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.15);
        outline: none;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: #2b4cb9;
        padding: 0;
        display: none;
        box-sizing: border-box;
        max-width: 100%;
    }

    .dropdown-menu a {
        font-size: 14px;
        padding: 12px 35px;
        width: 100%;
        box-sizing: border-box;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        border-radius: 0;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .nav-item.open .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    /* Mobile specific adjustments for .header-text */
    .header-text {
        padding: 10px 15px;
        font-size: 12px;
        justify-content: center;
        text-align: center;
    }

    .header-info-left,
    .header-info-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .login-button {
        width: auto;
        padding: 8px 15px;
    }

    /* WhatsApp Modal Mobile Adjustments */
    .whatsapp-float {
        bottom: 60px;
        right: 15px;
        width: 50px;
        height: 50px;
        /* Remove the top: 780px line completely */
    }
    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-modal-content {
        width: 95%; /* Wider on very small screens */
        padding: 20px; /* Less padding on mobile */
    }

    .whatsapp-contacts-container {
        flex-direction: column; /* Stack cards vertically on mobile */
        gap: 15px; /* Less gap when stacked */
    }

    .whatsapp-contact-card {
        flex: 1 1 100%; /* Each card takes full width */
        max-width: 100%; /* Ensure it doesn't exceed 100% */
        padding: 15px; /* Less padding for cards on mobile */
    }
}
/* === Mobile Responsive === */
@media (max-width: 768px) {
    .quick-links-wrapper {
        display: none;
        flex-direction: column;
    }
    .accordion-toggle {
        display: flex;
    }
    .footer-column {
        flex: 1 1 100%;
    }
    .footer-logo {
        width: 220px;
        display: block;
        margin: 0 auto 20px;
    }
}




/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    /* General adjustments */
    body {
        font-size: 14px;
    }

    .header-text {
        padding: 5px;
        flex-direction: column;
        text-align: center;
    }

    .left-info,
    .right-info {
        flex: none; /* Reset flex-grow */
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 5px; /* Add some space */
    }

    .logo-menu-row {
        padding: 10px;
        flex-direction: column; /* Stack logo and nav vertically */
    }

    .logo {
        margin-bottom: 15px; /* Space between logo and nav */
    }

    .nav-links {
        margin-top: 10px;
        display: flex; /* Change to flex for horizontal scrolling */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden;
        white-space: nowrap; /* Prevent wrapping */
        width: 100%;
        justify-content: flex-start; /* Align items to the start */
        gap: 15px; /* Smaller gap for horizontal scroll */
        padding-bottom: 5px; /* Prevent scrollbar from overlapping content */
    }

    .nav-links a {
        flex-shrink: 0; /* Prevent links from shrinking */
        font-size: 15px;
        padding: 5px 10px; /* Add padding for touch targets */
        border-radius: 5px;
        background-color: #f0f0f0; /* Slight background for better visibility */
    }


   

    .registration-info {
        font-size: 12px;
        padding: 15px 10px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .card {
        width: 95%; /* Adjust card width for better fit on small screens */
        max-width: 400px; /* Limit max-width for very wide small screens */
    }

    

   
    .alumni-content {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure it takes full width */
        background-color: transparent; /* Remove background if it caused issues */
    }

    .alumni-column {
        min-width: unset; /* Reset min-width for columns */
        width: 100%; /* Take full width */
        padding: 20px; /* Consistent padding */
        text-align: center; /* Center content in columns */
    }

    .quick-links-container {
        flex-direction: column; /* Stack quick link columns vertically */
        gap: 20px; /* Space between stacked columns */
    }

    .quick-col {
        align-items: center; /* Center links in columns */
    }

    .social-icons ul {
        flex-direction: column; /* Stack social icons vertically */
        align-items: center;
    }

    .site-footer {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .proud-box {
        width: 80%; /* One box per row on very small screens */
    }

    .student-card {
        width: 48%; /* Two student cards per row */
    }
}
