/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(245, 245, 245, 0.6), rgba(245, 245, 245, 0.6)), url('./slider_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden; /* Prevent all scrolling */
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 60px;
    max-width: 100%;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0056b3;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Animated hamburger menu */
.bar.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.bar.active:nth-child(2) {
    opacity: 0;
}

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

/* Main Content Styles */
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login Buttons Styles */
.login-buttons {
    margin: 30px 0;
}

.button-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.login-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
    width: 220px;
    height: auto;
    text-align: center;
}

.login-btn:hover {
    transform: translateY(-5px);
    background-color: #003d7a;
}

.btn-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-text {
    font-weight: bold;
}

/* Content Sections */
.content-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h2 {
    color: #0056b3;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2rem;
}

.modal h3 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: normal;
}

.institution-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.institution-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
    border-color: #0056b3;
}

.institution-card h4 {
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.institution-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.apply-btn {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.apply-btn:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Footer Styles - Hidden */
footer {
    display: none;
}

footer a {
    color: #0056b3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Tablet and Mobile Styles */
    .hamburger-menu {
        display: flex;
        z-index: 101;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        flex-direction: column;
        background-color: #fff;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .login-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Modal responsive styles */
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .modal h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .institution-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .institution-card {
        padding: 20px;
        margin-bottom: 10px;
    }

    .institution-card h4 {
        font-size: 1.2rem;
    }

    .institution-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .apply-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .close {
        font-size: 24px;
        right: 15px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    /* Small Mobile Styles */
    .logo {
        max-height: 50px;
    }
    
    header {
        padding: 8px 15px;
    }
    
    .login-btn {
        padding: 12px 15px;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    main {
        padding: 15px;
    }

    /* Modal styles for very small screens */
    .modal-content {
        margin: 2% auto;
        padding: 15px;
        width: 98%;
        border-radius: 10px;
    }

    .modal h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .modal h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .institution-card {
        padding: 15px;
        border-radius: 8px;
    }

    .institution-card h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .institution-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .apply-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .close {
        font-size: 22px;
        right: 12px;
        top: 8px;
    }
}
