:root {
    --royal-blue: #0a2e73;
    --gold: #d4af37;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar {
    background: var(--royal-blue) !important;
}

.btn-primary, .bg-primary {
    background-color: var(--royal-blue) !important;
    border-color: var(--royal-blue) !important;
}

.btn-outline-primary {
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--royal-blue);
}

.badge.bg-primary {
    background-color: var(--royal-blue) !important;
}

.badge.bg-gold {
    background-color: var(--gold);
}

.hero-section {
    background-image:
        linear-gradient(120deg, rgba(7, 26, 66, 0.95), rgba(227, 10, 23, 0.85)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23de2910'/%3E%3Cpolygon points='9,2 11,8 17,8 12,11 14,17 9,13.5 4,17 6,11 1,8 7,8' fill='%23ffde00'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23e30a17'/%3E%3Ccircle cx='22' cy='20' r='9' fill='%23fff'/%3E%3Ccircle cx='24.5' cy='20' r='7' fill='%23e30a17'/%3E%3C/svg%3E");
    background-size: cover, 220px, 220px;
    background-position: center, top left, bottom right;
    background-repeat: no-repeat, repeat, repeat;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(90deg, #f4c95d, #f6f0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gold {
    background: linear-gradient(120deg, #f4c95d, #f7b733);
    border: none;
    color: #1b1b1b;
}

.hero-checklist {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.hero-checklist li {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.hero-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #f4c95d;
}

.hero-visual {
    display: grid;
    gap: 1rem;
    max-width: 480px;
}

.hero-card {
    position: relative;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-card.primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-card.secondary {
    background: #fff;
}

.hero-service-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hero-service-card {
    position: relative;
    border-radius: 1rem;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.hero-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.65));
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.contact-hero {
    background-image:
        linear-gradient(135deg, rgba(7, 26, 66, 0.9), rgba(210, 0, 40, 0.85)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23de2910'/%3E%3Cpolygon points='9,2 11,8 17,8 12,11 14,17 9,13.5 4,17 6,11 1,8 7,8' fill='%23ffde00'/%3E%3Cpolygon points='18,4 19,6 21,6 19.5,7.2 20,9 18,8 16,9 16.5,7.2 15,6 17,6' fill='%23ffde00'/%3E%3Cpolygon points='22,8 23,10 25,10 23.5,11.2 24,13 22,12 20,13 20.5,11.2 19,10 21,10' fill='%23ffde00'/%3E%3Cpolygon points='22,2 23,4 25,4 23.5,5.2 24,7 22,6 20,7 20.5,5.2 19,4 21,4' fill='%23ffde00'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23e30a17'/%3E%3Ccircle cx='22' cy='20' r='9' fill='%23fff'/%3E%3Ccircle cx='24.5' cy='20' r='7' fill='%23e30a17'/%3E%3Cpolygon points='33,20 38,22 35,17 35,23 38,18' fill='%23fff'/%3E%3C/svg%3E");
    background-size: cover, 200px, 200px;
    background-position: center, left top, right bottom;
    background-repeat: no-repeat, repeat, repeat;
    color: #fff;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(7, 26, 66, 0.25);
}

.contact-card,
.contact-info-card {
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 20px 40px rgba(7, 26, 66, 0.08);
    padding: 2rem;
}

.contact-info-card .info-block + .info-block {
    border-top: 1px solid rgba(10, 46, 115, 0.1);
    padding-top: 1rem;
}

.contact-info-card h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.program-hero {
    background: linear-gradient(120deg, #071a42, #0a2e73);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.program-tabs .nav-tabs {
    border-bottom: 2px solid rgba(10, 46, 115, 0.15);
    gap: 0.5rem;
}

.program-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--royal-blue);
    font-weight: 600;
}

.program-tabs .nav-link.active {
    border-color: var(--royal-blue);
    color: var(--royal-blue);
    background: rgba(10, 46, 115, 0.05);
}

.program-tabs .tab-content {
    background: #fff;
}

.program-card {
    border: 1px solid rgba(10, 46, 115, 0.1);
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fdfdfd;
    height: 100%;
    box-shadow: 0 10px 20px rgba(7, 26, 66, 0.05);
}

.program-group-card {
    border: 1px solid rgba(10, 46, 115, 0.12);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 15px 25px rgba(7, 26, 66, 0.07);
}

.program-group-card ul {
    margin: 0;
    padding-left: 0;
}

.program-group-card li {
    border-bottom: 1px dashed rgba(10, 46, 115, 0.1);
    padding-bottom: 0.75rem;
}

.program-group-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-card {
    border: 1px solid rgba(10, 46, 115, 0.1);
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 26, 66, 0.08);
}

.service-card {
    border: 1px solid rgba(10, 46, 115, 0.1);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(7, 26, 66, 0.06);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(10, 46, 115, 0.1);
    color: var(--royal-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pathways .pathway-card {
    border-radius: 1.75rem;
    padding: 2rem;
    background: #f7f8ff;
    border: 1px solid rgba(10, 46, 115, 0.08);
    height: 100%;
}

.pathway-card ul {
    padding-left: 1rem;
}

.journey-timeline .timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.timeline-step {
    border: 1px solid rgba(10, 46, 115, 0.1);
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    position: relative;
}

.timeline-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--royal-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.scholarship-card {
    border: 1px solid rgba(10, 46, 115, 0.08);
}

.support-band {
    background: linear-gradient(90deg, #0a2e73, #193b87);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-band {
    background: #f4f6ff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(10, 46, 115, 0.08);
}

.trust-metric {
    text-align: center;
    padding: 1rem;
}

.trust-metric h3 {
    font-size: 2.25rem;
    color: var(--royal-blue);
    margin-bottom: 0.5rem;
}

.country-hero {
    border-radius: 2rem;
    padding: 3rem;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.country-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.country-hero > * {
    position: relative;
    z-index: 2;
}

.country-hero.china {
    background-image:
        linear-gradient(135deg, rgba(222, 41, 16, 0.85), rgba(122, 9, 9, 0.9)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23de2910'/%3E%3Cpolygon points='9,2 11,8 17,8 12,11 14,17 9,13.5 4,17 6,11 1,8 7,8' fill='%23ffde00'/%3E%3Cpolygon points='18,4 19,6 21,6 19.5,7.2 20,9 18,8 16,9 16.5,7.2 15,6 17,6' fill='%23ffde00'/%3E%3Cpolygon points='22,8 23,10 25,10 23.5,11.2 24,13 22,12 20,13 20.5,11.2 19,10 21,10' fill='%23ffde00'/%3E%3Cpolygon points='22,2 23,4 25,4 23.5,5.2 24,7 22,6 20,7 20.5,5.2 19,4 21,4' fill='%23ffde00'/%3E%3C/svg%3E");
}

.country-hero.turkey {
    background-image:
        linear-gradient(135deg, rgba(177, 0, 41, 0.9), rgba(245, 39, 67, 0.8)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23e30a17'/%3E%3Ccircle cx='22' cy='20' r='9' fill='%23fff'/%3E%3Ccircle cx='24.5' cy='20' r='7' fill='%23e30a17'/%3E%3Cpolygon points='33,20 38,22 35,17 35,23 38,18' fill='%23fff'/%3E%3C/svg%3E");
}

.country-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.country-highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    min-width: 140px;
    color: #fff;
}

.spotlight-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
    padding: 2rem;
}

.country-card {
    border: 1px solid rgba(10, 46, 115, 0.12);
    border-radius: 1.5rem;
    padding: 1.5rem;
    height: 100%;
    background: #fff;
    box-shadow: 0 15px 35px rgba(7, 26, 66, 0.08);
}

.country-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.section-heading .btn {
    white-space: nowrap;
}

.alphabet-nav {
    border: 1px solid rgba(10, 46, 115, 0.08);
    border-radius: 9999px;
    padding: 0.5rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(7, 26, 66, 0.08);
}

.alphabet-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.search-field {
    display: flex;
    gap: 0.5rem;
}

.search-field .form-control {
    border-radius: 999px;
}

.alphabet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(10, 46, 115, 0.15);
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
}

.alphabet-pill.active,
.alphabet-pill:hover {
    background: var(--royal-blue);
    color: #fff;
}

.letter-section .school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.school-card {
    border: 1px solid rgba(10, 46, 115, 0.08);
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 25px rgba(7, 26, 66, 0.05);
}

.school-card h5 {
    margin-bottom: 0.35rem;
    color: var(--royal-blue);
}

.letter-header .badge {
    font-size: 0.9rem;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-grid span {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 46, 115, 0.08);
    font-size: 0.9rem;
}

.mobile-table-scroll {
    overflow-x: auto;
}

.student-gallery .gallery-card {
    position: relative;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(7, 26, 66, 0.18);
}

.student-gallery .gallery-card.tall {
    min-height: 400px;
}

.student-gallery .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem;
    }

    .hero-card.secondary {
        left: 0;
        width: 100%;
    }

    .country-hero {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .program-tabs .nav-tabs {
        flex-wrap: wrap;
    }

    .program-tabs .nav-link {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }

    .contact-card,
    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-hero {
        text-align: center;
    }

    .contact-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .pathway-card ul {
        padding-left: 1rem;
    }

    .journey-timeline .timeline {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .support-band .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .mobile-table-scroll {
        margin-bottom: 1rem;
    }

    table.table {
        font-size: 0.9rem;
    }
}
