/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    background-color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    line-height: 1.6;
    color: #333;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('../images/Uc-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Rest of your existing CSS remains the same... */

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add a very subtle hover effect to benefit cards */
.benefit-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
}

/* Add a gentle glow animation to the registration form */
.registration-form {
    transition: box-shadow 0.3s ease;
}

.registration-form:hover {
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #4a90e2, #5637d9);
    padding: 1rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-img {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    margin-left: 0.75rem;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    opacity: 1;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1 0 auto;
}

.page-title {
    text-align: center;
    margin: 2rem 0 3rem;
}

.page-title h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Registration Container */
.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Benefits Section */
.registration-content {
    padding-right: 2rem;
}

.registration-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.registration-content > p {
    color: #666;
    margin-bottom: 2rem;
}

.benefits h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.benefit-icon {
    font-size: 1.75rem;
    margin-right: 1.25rem;
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
    line-height: 1;
}

.benefit-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Styles */
.registration-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    color: #666;
    font-size: 0.95rem;
}

.checkbox-group a {
    color: #4a90e2;
    text-decoration: none;
}

.register-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4a90e2, #5637d9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #357abd, #4527b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.form-footer a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #dc3545;
}

.alert-success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #38a169;
}

.alert-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* 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);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #4a90e2, #5637d9);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #555;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
footer {
    margin-top: auto;
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .registration-content {
        padding-right: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.5rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        display: none;
    }

    .nav-links a {
        color: #2c3e50;
        padding: 0.75rem 1rem;
        margin: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(86, 55, 217, 0.1);
        color: #5637d9;
        box-shadow: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .page-title {
        margin: 1.5rem 0 2rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .benefit-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .benefit-icon {
        font-size: 1.5rem;
        margin-right: 1rem;
        padding: 0.5rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .checkbox-group {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    .page-title h1 {
        font-size: 1.75rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto 1rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer Modal Styles */
.footer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.footer-modal.show {
    display: flex;
    opacity: 1;
}

.footer-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.footer-modal.show .footer-modal-content {
    transform: translateY(0);
}

.footer-modal-header {
    background: linear-gradient(135deg, #4a90e2, #5637d9);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.footer-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.footer-modal-body h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.footer-modal-body p {
    margin-bottom: 1rem;
    color: #555;
}

.footer-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.footer-modal-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

.footer-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.footer-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Email Link Styling in Footer Modal */
.footer-modal-body a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.footer-modal-body a:hover {
    text-decoration: underline;
}

/* Responsive styles for footer modals */
@media (max-width: 768px) {
    .footer-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .footer-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .footer-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .footer-modal-body {
        padding: 1.5rem;
        max-height: 65vh;
    }
}
