/* Fixed Navigation Bar Styles */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4B9CD3 0%, #13294B 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.nav-brand {
    font-size: 20px;
    font-weight: bold;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-brand a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.nav-link-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-family: inherit;
}

.nav-link-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Adjust body to account for fixed navbar */
body {
    padding-top: 70px;
}

/* About Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 1920px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4B9CD3 0%, #13294B 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 8px;
    overflow-y: auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 25px;
}

.about-section h3 {
    color: #13294B;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 2px solid #4B9CD3;
    padding-bottom: 8px;
}

.about-section p {
    color: #333;
    margin-bottom: 10px;
}

.about-section ul {
    margin-left: 20px;
    color: #555;
}

.about-section li {
    margin-bottom: 8px;
}

.about-section strong {
    color: #13294B;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 12px 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    body {
        padding-top: 120px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 18px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .about-section h3 {
        font-size: 18px;
    }
}

/* Terms & Conditions Acceptance Styles */
.terms-acceptance {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.terms-divider {
    border-top: 2px solid #4B9CD3;
    margin-bottom: 20px;
}

.terms-agreement {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

.terms-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox-label span {
    user-select: none;
}

.btn-accept-terms {
    background: #4B9CD3;
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.btn-accept-terms:hover:not(:disabled) {
    background: #3A7BB0;
}

.btn-accept-terms:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

@media (max-width: 480px) {
    .terms-checkbox-label {
        font-size: 14px;
    }
    
    .btn-accept-terms {
        padding: 14px 40px;
        font-size: 16px;
        min-width: 160px;
    }
}
