* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #001a4d;
    --primary-blue: #0033cc;
    --secondary-blue: #0052ff;
    --accent-blue: #00a8ff;
    --light-blue: #e8f4ff;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ================================
   NAVIGATION
================================ */

nav {
    background: linear-gradient(
        135deg,
        #050b2b 0%,
        var(--primary-dark) 100%
    );

    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 8px 32px rgba(0, 51, 204, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;

    display: flex;
    align-items: center;
    gap: 12px;

    letter-spacing: 1px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-blue);

    background: rgba(0, 168, 255, 0.2);

    padding: 8px 10px;
    border-radius: 8px;
}

nav button {
    background: none;
    border: none;

    color: rgba(255, 255, 255, 0.75);

    cursor: pointer;

    font-size: 0.95rem;
    padding: 10px 18px;
    margin: 0 5px;

    border-radius: 8px;

    transition: all 0.3s;
    font-weight: 600;
}

nav button:hover {
    color: var(--white);

    background: rgba(255, 255, 255, 0.08);
}

nav button.active {
    background: linear-gradient(
        135deg,
        #268de9,
        #2454d9
    );

    color: var(--white);

    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
}


/* =================================
   HERO SECTION - ELITE ITALY STYLE
================================= */

.hero {
    position: relative;
    min-height: 650px;
    height: calc(100vh - 78px);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(3, 13, 55, 0.98) 0%,
            rgba(5, 25, 85, 0.94) 42%,
            rgba(5, 30, 100, 0.75) 70%,
            rgba(5, 25, 85, 0.55) 100%
        ),
        url("rome.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ================================
   DARK OVERLAY
================================ */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 10% 65%,
            rgba(0, 168, 255, 0.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 50%,
            rgba(0, 82, 255, 0.18),
            transparent 40%
        );

    pointer-events: none;
}


/* ================================
   BLUE LIGHT EFFECT
================================ */

.hero::after {
    content: "";

    position: absolute;

    width: 900px;
    height: 300px;

    left: -300px;
    bottom: 100px;

    border-radius: 50%;

    border: 2px solid rgba(0, 168, 255, 0.35);

    box-shadow:
        0 0 30px rgba(0, 168, 255, 0.3),
        0 0 80px rgba(0, 82, 255, 0.2);

    transform: rotate(12deg);

    pointer-events: none;
}


/* ================================
   HERO CONTENT
================================ */

.hero-content {
    position: relative;
    z-index: 5;

    max-width: 1000px;

    text-align: center;

    padding: 40px 20px;

    margin-top: -40px;
}


.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);

    font-weight: 900;

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;

    color: #ffffff;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.5);
}


.hero p {
    max-width: 850px;

    margin: 0 auto 35px;

    font-size: clamp(1rem, 2vw, 1.3rem);

    color: rgba(255, 255, 255, 0.85);

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4);
}


/* ================================
   BUTTONS
================================ */

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.btn {
    min-width: 230px;

    padding: 16px 30px;

    border-radius: 12px;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}


.btn-primary {
    background: linear-gradient(
        135deg,
        #1689e8,
        #2948d8
    );

    color: #ffffff;

    border: none;

    box-shadow:
        0 10px 30px rgba(0, 82, 255, 0.4);
}


.btn-primary:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(0, 82, 255, 0.6);
}


.btn-secondary {
    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.4);

    backdrop-filter: blur(10px);
}


.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);

    border-color: #00a8ff;

    transform: translateY(-4px);
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .hero {
        min-height: 650px;
        height: auto;

        padding: 100px 20px 80px;

        background-position: 65% center;
    }

    .hero-content {
        margin-top: 0;
        padding: 20px 10px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 350px;
    }

    .hero::after {
        width: 600px;
        left: -300px;
    }
}


/* ================================
   STATS SECTION
================================ */

.stats-section {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            #020b2d
        );

    color: var(--white);

    padding: 60px 20px;

    width: 100%;
}


.container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;
}


.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 40px;
}


.stat-box {
    text-align: center;

    padding: 30px;

    transition: all 0.3s;
}


.stat-box:hover {
    transform: translateY(-6px);
}


.stat-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 2rem;

    color: var(--accent-blue);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(0, 82, 255, 0.35),
            rgba(0, 168, 255, 0.1)
        );

    border: 1px solid rgba(0, 168, 255, 0.4);
}


.stat-box h3 {
    font-size: 2.5rem;

    margin-bottom: 5px;

    font-weight: 900;
}


.stat-box p {
    font-size: 1rem;

    opacity: 0.85;
}


/* ================================
   SECTIONS
================================ */

.section {
    display: none;

    background: #f8f9fa;

    width: 100%;
}


.section.active {
    display: block;
}


.section-content {
    padding: 70px 20px;
}


.section-title {
    font-size: 2.8rem;

    color: var(--primary-dark);

    margin-bottom: 50px;

    text-align: center;

    font-weight: 900;

    position: relative;
}


.section-title::after {
    content: "";

    position: absolute;

    bottom: -15px;

    left: 50%;

    transform: translateX(-50%);

    width: 80px;

    height: 4px;

    background:
        linear-gradient(
            135deg,
            var(--secondary-blue),
            var(--accent-blue)
        );

    border-radius: 5px;
}


/* ================================
   HOW IT WORKS
================================ */

.how-it-works {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}


.work-step {
    background: var(--white);

    padding: 35px;

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    transition: all 0.3s;

    border: 1px solid rgba(0, 82, 255, 0.08);
}


.work-step:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 40px rgba(0, 51, 204, 0.15);
}


.step-number {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    margin: 0 auto 20px;

    color: var(--secondary-blue);

    background: var(--light-blue);

    font-weight: 900;
}


.step-icon {
    font-size: 2.8rem;

    color: var(--secondary-blue);

    margin-bottom: 15px;
}


.work-step h3 {
    color: var(--primary-dark);

    margin-bottom: 15px;
}


.work-step p {
    color: var(--text-light);
}


/* ================================
   ADMISSIONS SECTION
================================ */

.admissions-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));

    gap: 25px;

    margin-bottom: 40px;
}


.admission-card {
    background: var(--white);

    border-radius: 15px;

    overflow: hidden;

    transition: all 0.3s ease;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    border: 1px solid rgba(0, 82, 255, 0.1);

    display: flex;

    flex-direction: column;
}


.admission-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 40px rgba(0, 51, 204, 0.15);

    border-color: var(--accent-blue);
}


.admission-letter-image {
    position: relative;

    width: 100%;

    height: 350px;

    overflow: hidden;

    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));

    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: all 0.3s ease;
}


.admission-letter-image:hover {
    transform: scale(1.02);
}

.admission-letter-image:hover .image-click-hint {
    opacity: 1;
}


.admission-letter-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
    
    border-radius: 8px 8px 0 0;
    
    transition: all 0.3s ease;
}


.image-click-hint {
    position: absolute;
    
    top: 50%;
    left: 50%;
    
    transform: translate(-50%, -50%);
    
    background: rgba(0, 0, 0, 0.7);
    
    color: white;
    
    padding: 12px 20px;
    
    border-radius: 8px;
    
    font-weight: 700;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    opacity: 0;
    
    transition: opacity 0.3s ease;
}


/* ================================
   IMAGE MODAL
================================ */

.image-modal {
    display: none;
    
    position: fixed;
    
    z-index: 2000;
    
    left: 0;
    top: 0;
    
    width: 100%;
    height: 100%;
    
    background-color: rgba(0, 0, 0, 0.95);
    
    align-items: center;
    justify-content: center;
    
    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.modal-content {
    position: relative;
    
    max-width: 90vw;
    max-height: 90vh;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    animation: zoomIn 0.3s ease;
}


@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.modal-content img {
    max-width: 90vw;
    max-height: 85vh;
    
    width: auto;
    height: auto;
    
    object-fit: contain;
    
    border-radius: 12px;
    
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}


.close-modal {
    position: absolute;
    
    top: 20px;
    right: 30px;
    
    color: #ffffff;
    
    font-size: 40px;
    
    font-weight: bold;
    
    cursor: pointer;
    
    transition: all 0.3s ease;
    
    z-index: 2001;
}


.close-modal:hover {
    color: var(--accent-blue);
    
    transform: scale(1.2);
}


.modal-caption {
    color: rgba(255, 255, 255, 0.9);
    
    text-align: center;
    
    margin-top: 20px;
    
    font-size: 1.1rem;
    
    max-width: 80vw;
}


@media (max-width: 768px) {
    .modal-content img {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-caption {
        font-size: 0.95rem;
    }
}


.admission-badge {
    position: absolute;

    top: 10px;

    right: 10px;

    background: linear-gradient(135deg, #1689e8, #2948d8);

    color: white;

    padding: 6px 14px;

    border-radius: 20px;

    font-size: 0.8rem;

    font-weight: 700;

    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}


.admission-content {
    padding: 25px;

    flex: 1;

    display: flex;

    flex-direction: column;
}


.admission-content h3 {
    font-size: 1.4rem;

    color: var(--primary-dark);

    margin-bottom: 8px;

    font-weight: 800;
}


.admission-country {
    color: var(--secondary-blue);

    font-weight: 600;

    margin-bottom: 15px;

    font-size: 0.95rem;
}


.admission-details {
    background: rgba(0, 82, 255, 0.05);

    padding: 15px;

    border-radius: 8px;

    margin: 15px 0;

    font-size: 0.9rem;

    border-left: 3px solid var(--secondary-blue);
}


.admission-details p {
    margin: 8px 0;

    color: var(--text-dark);
}


.admission-details strong {
    color: var(--secondary-blue);
}


.admission-testimonial {
    font-style: italic;

    color: var(--text-light);

    margin: 15px 0;

    padding: 12px;

    border-left: 3px solid var(--accent-blue);

    line-height: 1.6;

    flex-grow: 1;
}


.admission-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 15px;

    border-top: 1px solid #f0f0f0;

    font-size: 0.9rem;
}


.admission-year {
    color: var(--text-light);

    font-weight: 600;
}


.admission-status {
    color: #4CAF50;

    font-weight: 700;

    display: flex;

    align-items: center;

    gap: 5px;
}


.admissions-filters {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;

    margin: 30px 0;
}


/* ================================
   UNIVERSITIES
================================ */

.unis-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));

    gap: 25px;
}


.uni-card {
    background: var(--white);

    border-radius: 15px;

    padding: 30px;

    transition: all 0.3s;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    border: 1px solid rgba(0, 82, 255, 0.1);
}


.uni-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 40px rgba(0, 51, 204, 0.15);

    border-color: var(--accent-blue);
}


.uni-name {
    font-size: 1.4rem;

    color: var(--primary-dark);

    margin-bottom: 15px;

    font-weight: 800;
}


.uni-info {
    margin: 12px 0;

    color: var(--text-light);
}


.uni-info label {
    color: var(--secondary-blue);

    font-weight: 700;
}


.badge {
    display: inline-block;

    padding: 6px 14px;

    border-radius: 20px;

    font-size: 0.8rem;

    margin: 5px;

    font-weight: 600;
}


.badge-ielts-yes {
    background: #d4edda;

    color: #155724;
}


.badge-ielts-no {
    background: #fff3cd;

    color: #856404;
}


.tuition-price {
    font-size: 1.4rem;

    color: var(--secondary-blue);

    font-weight: 900;

    margin-top: 15px;
}


/* ================================
   FILTER SECTION
================================ */

.filter-section {
    background: var(--white);

    padding: 25px;

    border-radius: 12px;

    margin-bottom: 30px;

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    align-items: center;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    border-left:
        4px solid var(--secondary-blue);
}


.filter-group {
    display: flex;

    gap: 10px;

    align-items: center;
}


.filter-group label {
    font-weight: 700;

    color: var(--primary-dark);
}


.filter-group input,
.filter-group select {
    padding: 10px 14px;

    border: 2px solid #e0e0e0;

    border-radius: 6px;

    font-size: 0.95rem;
}


.filter-group input:focus,
.filter-group select:focus {
    outline: none;

    border-color: var(--secondary-blue);

    box-shadow:
        0 0 0 3px rgba(0, 82, 255, 0.1);
}


/* ================================
   RESOURCES
================================ */

.resources-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 25px;
}


.resource-card {
    background: var(--white);

    border-radius: 15px;

    padding: 35px;

    text-align: center;

    transition: all 0.3s;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    border: 1px solid rgba(0, 82, 255, 0.1);
}


.resource-card:hover {
    transform: translateY(-8px);

    border-color: var(--accent-blue);

    box-shadow:
        0 15px 40px rgba(0, 51, 204, 0.15);
}


.resource-icon {
    font-size: 3rem;

    color: var(--secondary-blue);

    margin-bottom: 15px;
}


.resource-card h3 {
    color: var(--primary-dark);

    margin-bottom: 15px;
}


.resource-card p {
    color: var(--text-light);

    margin-bottom: 15px;
}


.resource-link {
    color: var(--secondary-blue);

    text-decoration: none;

    font-weight: 700;
}


/* ================================
   SERVICES
================================ */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}


.service-box {
    background:
        linear-gradient(
            135deg,
            rgba(0, 82, 255, 0.05),
            rgba(0, 168, 255, 0.05)
        );

    padding: 35px;

    border-radius: 12px;

    border-left:
        5px solid var(--secondary-blue);

    transition: all 0.3s;
}


.service-box:hover {
    transform: translateX(6px);

    border-left-color: var(--accent-blue);
}


.service-box h3 {
    color: var(--primary-dark);

    margin-bottom: 15px;
}


.service-box i {
    color: var(--secondary-blue);

    margin-right: 10px;
}


.service-box p {
    color: var(--text-light);
}


/* ================================
   PRICING
================================ */

.pricing-cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;
}


.price-card {
    background: var(--white);

    border-radius: 15px;

    padding: 40px 30px;

    text-align: center;

    transition: all 0.3s;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);

    border-top:
        4px solid #e0e0e0;
}


.price-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 15px 45px rgba(0, 51, 204, 0.15);
}


.price-card.featured {
    border-top:
        4px solid var(--secondary-blue);

    transform: scale(1.04);
}


.price-card h3 {
    color: var(--primary-dark);

    font-size: 1.4rem;

    margin-bottom: 15px;
}


.price-amount {
    font-size: 2.8rem;

    color: var(--secondary-blue);

    font-weight: 900;

    margin: 20px 0;
}


.features-list {
    list-style: none;

    text-align: left;

    margin: 25px 0;
}


.features-list li {
    padding: 12px 0;

    border-bottom:
        1px solid #f0f0f0;

    color: var(--text-light);
}


.features-list li::before {
    content: "✓";

    color: var(--secondary-blue);

    font-weight: 900;

    margin-right: 12px;
}


/* ================================
   CONTACT FORM
================================ */

.form-container {
    max-width: 600px;

    margin: 40px auto;

    background: var(--white);

    padding: 45px;

    border-radius: 15px;

    box-shadow:
        0 5px 25px rgba(0, 51, 204, 0.08);
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--primary-dark);

    font-weight: 700;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 14px;

    border:
        2px solid #e0e0e0;

    border-radius: 8px;

    font-size: 1rem;

    font-family: inherit;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;

    border-color: var(--secondary-blue);

    box-shadow:
        0 0 0 3px rgba(0, 82, 255, 0.1);
}


.form-group textarea {
    resize: vertical;

    min-height: 120px;
}


.success-message {
    background: #d4edda;

    color: #155724;

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;

    display: none;
}


/* ================================
   FOOTER
================================ */

footer {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            #020b2d
        );

    color: var(--white);

    padding: 50px 20px 30px;
}


.footer-content {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;

    margin-bottom: 40px;
}


.footer-col h4 {
    margin-bottom: 20px;

    color: var(--accent-blue);
}


.footer-col a,
.footer-col p {
    display: block;

    color: rgba(255, 255, 255, 0.8);

    text-decoration: none;

    margin: 10px 0;
}


.footer-col a:hover {
    color: var(--accent-blue);
}


footer .divider {
    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    padding-top: 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.7);
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    nav {
        padding: 1rem;
    }

    .nav-container {
        gap: 15px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav button {
        padding: 7px 10px;

        font-size: 0.8rem;

        margin: 0;
    }


    .hero {
        min-height: 650px;

        height: auto;

        padding: 100px 20px 80px;

        background-position: 65% center;
    }


    .hero-content {
        margin-top: 0;

        padding: 20px 10px;
    }


    .hero h1 {
        font-size: 2.8rem;

        letter-spacing: -1px;
    }


    .hero p {
        font-size: 1rem;
    }


    .cta-buttons {
        flex-direction: column;

        align-items: center;
    }


    .btn {
        width: 100%;

        max-width: 350px;
    }


    .stats-grid,
    .unis-grid,
    .resources-grid,
    .pricing-cards,
    .how-it-works,
    .admissions-grid {
        grid-template-columns: 1fr;
    }


    .price-card.featured {
        transform: scale(1);
    }


    .filter-section {
        flex-direction: column;

        align-items: stretch;
    }


    .filter-group {
        flex-direction: column;

        align-items: stretch;
    }


    .section-title {
        font-size: 2rem;
    }


    .form-container {
        padding: 25px 20px;
    }

    .admissions-filters {
        flex-direction: column;
    }

    .admissions-filters .btn {
        width: 100%;
    }
}

/*majors-section*/
.majors-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.majors-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.majors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.major-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 15px;
    background: #e8efff;
    color: #0033cc;
    font-size: 13px;
}
/* ===== ADMISSION IMAGE ===== */

.admission-letter-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.admission-letter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.admission-letter-image:hover img {
    transform: scale(1.03);
}


/* ================================
   FULL SCREEN IMAGE MODAL + ZOOM
================================ */

.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.95);

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* IMAGE AREA */
.modal-image-container {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* BIG IMAGE */
.modal-image {
    max-width: 90%;
    max-height: 85%;

    width: auto;
    height: auto;

    object-fit: contain;

    cursor: zoom-in;

    transition: transform 0.2s ease;

    user-select: none;
}

/* When zoomed */
.modal-image.zoomed {
    cursor: grab;
}

.modal-image.zoomed:active {
    cursor: grabbing;
}

/* CLOSE BUTTON */
.image-modal-close {
    position: absolute;

    top: 15px;
    right: 30px;

    color: white;

    font-size: 50px;
    font-weight: bold;

    cursor: pointer;

    z-index: 100000;

    line-height: 1;
}

.image-modal-close:hover {
    color: #00a8ff;
}

/* ZOOM CONTROLS */
.zoom-controls {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    z-index: 100000;
}

.zoom-controls button {
    width: 50px;
    height: 50px;

    border: none;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 25px;
    font-weight: bold;

    cursor: pointer;

    backdrop-filter: blur(10px);
}

.zoom-controls button:hover {
    background: #0052ff;
}

/* CAPTION */
.modal-caption {
    position: absolute;

    bottom: 90px;

    left: 50%;

    transform: translateX(-50%);

    color: white;

    font-size: 16px;

    text-align: center;

    max-width: 90%;

    z-index: 100000;
}

/* MOBILE */
@media (max-width: 768px) {

    .modal-image {
        max-width: 95%;
        max-height: 80%;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .zoom-controls button {
        width: 45px;
        height: 45px;
    }
}

/* THE WHOLE ADMISSION LETTER */

.modal-image {
    max-width: 95%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}


/* CLOSE BUTTON */

.image-modal-close {
    position: absolute;

    top: 15px;
    right: 30px;

    color: white;

    font-size: 50px;
    font-weight: bold;

    cursor: pointer;

    z-index: 100000;

    line-height: 1;
}

.image-modal-close:hover {
    color: #00a8ff;
}


/* CAPTION */

.modal-caption {
    color: white;

    font-size: 16px;
    text-align: center;

    margin-top: 12px;

    max-width: 90%;
}


/* MOBILE */

@media (max-width: 768px) {

    .admission-letter-image {
        height: 300px;
    }

    .modal-image {
        max-width: 98%;
        max-height: 85vh;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

}


/* ==========================================
   ELITEITALY CUSTOM LANGUAGE SELECTOR
   ========================================== */

.elite-language {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    z-index: 9999;
}


/* Main button */

.elite-language-btn {
    display: flex;
    align-items: center;
    gap: 7px;

    height: 40px;
    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.elite-language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.65);
}

.elite-language-btn:active {
    transform: scale(0.96);
}


/* Flag */

#eliteFlag {
    font-size: 18px;
    line-height: 1;
}


/* Language text */

#eliteLangText {
    letter-spacing: 0.5px;
}


/* Arrow */

.elite-chevron {
    font-size: 14px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.elite-language.open .elite-chevron {
    transform: rotate(180deg);
}


/* ==========================================
   DROPDOWN
   ========================================== */

.elite-language-menu {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    width: 165px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid rgba(0, 82, 255, 0.12);

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px) scale(0.97);

    transform-origin: top right;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


/* Open */

.elite-language.open .elite-language-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* ==========================================
   LANGUAGE OPTIONS
   ========================================== */

.elite-language-menu button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 11px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #001a4d;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.elite-language-menu button:hover {
    background: #eef5ff;
    transform: translateX(2px);
}

.elite-flag {
    font-size: 20px;
    line-height: 1;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 768px) {

    .elite-language {
        margin-left: 0;
        margin-top: 8px;
    }

    .elite-language-btn {
        height: 38px;
        padding: 0 10px;
    }

    .elite-language-menu {
        right: 0;
        width: 155px;
    }
}
[dir="rtl"] body { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .elite-language-menu { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .elite-language-menu button { text-align: right; }
.modal-image-wrapper { width: 100%; height: 85%; display: flex; align-items: center; justify-content: center; overflow: auto; }
@media (max-width: 768px) {

    /* English / French: menu opens from the left edge of the button */
    .elite-language-menu {
        left: 0;
        right: auto;
        transform-origin: top left;
    }

    /* Arabic: the button is on the right, so the menu opens from the right edge */
    [dir="rtl"] .elite-language-menu {
        left: auto;
        right: 0;
        transform-origin: top right;
    }
}

/* CIMEA APPLICATION */

.cimea-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

#cimea .form-container {
    max-width: 850px;
    margin: auto;
}

#cimea form h3 {
    color: var(--primary-dark);
    margin: 25px 0 20px;
    font-weight: 800;
}

#cimea form hr {
    border: 0;
    border-top: 1px solid #e5eaf2;
    margin: 30px 0;
}

#cimea input[type="text"],
#cimea input[type="email"],
#cimea input[type="tel"],
#cimea select,
#cimea textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

#cimea input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f7f9fc;
    border: 1px dashed #9bb5df;
    border-radius: 8px;
    margin-top: 8px;
}

.cimea-note {
    color: var(--text-light);
    font-size: .9rem;
    margin-bottom: 20px;
}

.cimea-consent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cimea-consent input {
    width: 20px;
    height: 20px;
}

.cimea-consent label {
    margin: 0;
}

.cimea-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 800;
}

#cimeaSuccess {
    display: none;
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 8px;
    background: #e8f8ee;
    color: #168044;
    font-weight: 700;
}

#cimeaSuccess.error {
    background: #fff0f0;
    color: #c62828;
}

