/* GAC Main Stylesheet */
/* PART 1: VARIABLES & GLOBAL */
:root {
    /* Colors - Premium Purple Palette */
    --primary-dark: #2b0d3e;
    --primary-base: #7a3f91;
    --primary-light: #c59dd9;
    --primary-tint: #f3ebf7;

    --secondary-base: #ff9d00;
    --secondary-light: #ffc978;

    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;

    --text-base: #2D3748;
    --text-muted: #718096;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-base) 100%);
    --gradient-light: linear-gradient(135deg, var(--white) 0%, var(--primary-tint) 100%);

    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(122, 63, 145, 0.1);
    --shadow-md: 0 10px 30px rgba(122, 63, 145, 0.15);
    --shadow-lg: 0 15px 40px rgba(122, 63, 145, 0.2);
    --shadow-hover: 0 20px 40px rgba(43, 13, 62, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-circle: 50%;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
button,
input,
select,
textarea,
.nav-link,
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    color: var(--text-base);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-tint);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-base);
    border-radius: 10px;
    border: 3px solid var(--primary-tint);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title-left {
    text-align: left;
}

.section-title-left:after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-dark {
    color: var(--primary-dark);
}

.text-primary-base {
    color: var(--primary-base);
}

.bg-primary-tint {
    background-color: var(--primary-tint) !important;
}

/* ===== LOGO STYLES ===== */
.navbar-logo {
    height: 70px;
    /* Increased from 50px */
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 55px;
    /* Increased from 45px */
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

/* ===== BUTTON STYLES ===== */
.btn-primary-custom {
    background: var(--primary-base);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary-custom:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary-custom:hover:before {
    left: 0;
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary-custom {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-base);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary-custom:hover {
    background: var(--primary-tint);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-base);
    border: 2px solid var(--primary-base);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline-custom:hover {
    background: var(--primary-base);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--white);
    /* Changed to white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: var(--white);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link {
    color: var(--primary-dark) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--primary-dark) !important;
    /* Changed from white to primary-dark */
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    padding: 8px 0 !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    user-select: none;
}

.currency-selector:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.navbar.scrolled .currency-selector {
    color: var(--primary-dark);
}

/* Currency Dropdown Styles */
.currency-dropdown-menu {
    min-width: 270px;
    padding: 12px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--primary-light) !important;
    margin-top: 8px !important;
}

.currency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.currency-item:hover {
    background: var(--primary-tint);
    border-color: var(--primary-light);
}

.currency-item.active {
    background: var(--primary-base);
    color: var(--white);
}

/* ===== THIN LOGIN BUTTON ===== */
.btn-login-thin {
    background: transparent;
    color: var(--primary-base);
    border: 1.5px solid var(--primary-base);
    padding: 7px 22px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-login-thin:hover {
    background: var(--primary-base);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-login-thin:active {
    transform: translateY(0);
}

/* ===== TESLA-STYLE HERO CAROUSEL - CLEAR IMAGES ===== */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-media video,
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SOLID overlay - no transparency */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-base) 100%);
    opacity: 0.3;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.slide-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    color: var(--white);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
    color: var(--white);
    max-width: 800px;
    opacity: 0.9;
}

/* Tesla-style dot navigation */
.carousel-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-base);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.carousel-arrow:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* PART 2: HERO & SEARCH */
/* ===== SEARCH SECTION ===== */
.search-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.search-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 1s ease;
    border: 1px solid var(--primary-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-tint);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tab {
    padding: 12px 30px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    border-radius: 40px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: transparent;
    border: 1px solid transparent;
}

.search-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-base);
}

.search-tab:hover:not(.active) {
    background: var(--primary-tint);
    border-color: var(--primary-light);
}

.search-box {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-base);
    font-size: 1.3rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid var(--primary-light);
    border-radius: 60px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-base);
    box-shadow: 0 0 0 4px rgba(197, 157, 217, 0.3);
}

.search-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid var(--primary-light);
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--primary-tint);
}

.suggestion-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-base);
    font-size: 1.3rem;
    border: 1px solid var(--primary-light);
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-size: 1rem;
}

.suggestion-subtitle {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
}

.category-pill {
    background: var(--primary-tint);
    color: var(--primary-dark);
    padding: 10px 25px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-base);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== COUNTRY FLAGS SECTION ===== */
.country-flags-section {
    padding: 100px 0 60px;
    background: var(--white);
}

.country-flags-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.country-flag-card {
    text-align: center;
    padding: 18px 10px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    cursor: pointer;
    border: 1px solid var(--primary-tint);
    position: relative;
    overflow: hidden;
}

.country-flag-card:hover {
    background: var(--primary-base);
    border-color: var(--primary-base);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.country-flag-card:hover .country-name {
    color: var(--white);
}

.country-flag-card:hover .country-universities {
    color: rgba(255, 255, 255, 0.85);
}

.country-flag-card:hover .country-flag-emoji {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.country-flag-emoji {
    font-size: 2.8rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(122, 63, 145, 0.2));
    transition: filter 0.35s ease;
}

.country-name {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: color 0.35s ease;
}

.country-universities {
    font-size: 0.8rem;
    color: var(--primary-base);
    font-weight: 500;
    transition: color 0.35s ease;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--primary-tint);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.service-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    transition: all 0.45s ease;
    border: 2px solid transparent;
}

.service-card:hover .service-icon {
    background: var(--primary-base) !important;
    color: var(--white) !important;
    transform: rotateY(360deg) scale(1.1);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== VISA SECTION ===== */
.visa-section {
    padding: 80px 0;
    background: var(--gradient-light);
    overflow: hidden;
}

.visa-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--primary-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visa-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-tint);
    border-radius: 50%;
    opacity: 0.3;
    transform: translate(30px, 30px);
}

.visa-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.visa-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.visa-card:hover .visa-icon {
    transform: rotateY(360deg);
    box-shadow: var(--shadow-md);
}

.visa-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.visa-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.visa-progress {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
    z-index: 2;
    border: 2px solid var(--white);
}

.step.completed {
    background: var(--primary-base);
    color: var(--white);
}

.step.active {
    border: 2px solid var(--primary-base);
    background: var(--white);
    color: var(--primary-base);
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--primary-tint);
    margin: 0 5px;
    position: relative;
    top: 21px;
    z-index: 1;
}

.step-line.completed {
    background: var(--primary-base);
}

/* ===== VISA ICON STEP TRACKER ===== */
.visa-steps-icon-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.visa-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.visa-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-tint);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.visa-step-item.completed .visa-step-icon {
    background: var(--primary-base);
    border-color: var(--primary-base);
    color: var(--white);
}

.visa-step-item.active .visa-step-icon {
    background: var(--white);
    border-color: var(--primary-base);
    color: var(--primary-base);
    box-shadow: 0 0 0 3px rgba(122, 63, 145, 0.15);
}

.visa-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.visa-step-item.completed .visa-step-label {
    color: var(--primary-base);
}

.visa-step-item.active .visa-step-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.visa-step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 2px;
    margin-top: 18px;
    /* vertically align with center of icon */
    align-self: flex-start;
}

.visa-step-line.completed {
    background: var(--primary-base);
}

/* ===== UNIVERSITY CARDS ===== */
.featured-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.university-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    border: 1px solid var(--primary-tint);
}

.university-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.university-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}

.university-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.university-img:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.university-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.university-card:hover .university-img img {
    transform: scale(1.1);
}

.university-logo-wrapper {
    position: absolute;
    bottom: -35px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    border: 3px solid var(--white);
}

.university-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.university-content {
    padding: 50px 20px 25px;
}

.university-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
    line-height: 1.4;
}

.university-location {
    color: var(--primary-base);
    font-size: 0.95rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.university-location i {
    font-size: 0.9rem;
    color: var(--primary-light);
}

.university-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--primary-tint);
    border-bottom: 1px solid var(--primary-tint);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    color: var(--primary-base);
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.university-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.university-price {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.university-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-600);
}

.compare-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.compare-checkbox input {
    cursor: pointer;
    accent-color: var(--primary-base);
    width: 18px;
    height: 18px;
}

/* ===== COMPARISON TOOL ===== */
.comparison-toolbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 60px;
    padding: 15px 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    border: 2px solid var(--primary-light);
    display: none;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.comparison-toolbar.show {
    display: flex;
    animation: slideUp 0.5s ease;
}

.comparison-count {
    background: var(--primary-base);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.comparison-items {
    display: flex;
    gap: 12px;
}

.comparison-item {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--primary-light);
}

.comparison-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-btn {
    background: var(--primary-base);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comparison-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comparison-clear {
    color: var(--gray-600);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

.comparison-clear:hover {
    color: var(--primary-base);
    background: var(--primary-tint);
}

/* Comparison Section */
.comparison-section {
    padding: 60px 0;
    background: var(--primary-tint);
}

.comparison-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.comparison-type {
    padding: 15px 40px;
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.comparison-type.active {
    background: var(--primary-base);
    color: var(--white);
    border-color: var(--primary-light);
}

.comparison-type:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.comparison-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.comparison-select {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-size: 1rem;
    color: var(--primary-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.comparison-select:focus {
    outline: none;
    border-color: var(--primary-base);
    box-shadow: 0 0 0 3px rgba(197, 157, 217, 0.3);
}

.comparison-vs {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-base);
    text-shadow: 2px 2px 4px rgba(122, 63, 145, 0.2);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--primary-tint);
}

.comparison-university {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comparison-university img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    padding: 5px;
    border: 1px solid var(--gray-200);
}

.comparison-score {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* ===== TEAM CARDS ===== */
.team-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.team-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMTBhMjAgMjAgMCAwIDEgMjAgMjAgMjAgMjAgMCAwIDEtNDAgMCAyMCAyMCAwIDAgMSAyMC0yMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.1;
}

.team-section .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.team-section .section-subtitle {
    color: var(--primary-light);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.team-card {
    flex: 0 0 calc(25% - 25px);
    min-width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.team-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-light);
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-dark), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.team-card:hover .team-overlay {
    opacity: 0.9;
}

.team-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-base);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.team-card:hover .team-social a {
    transform: translateY(0);
    opacity: 1;
}

.team-social a:hover {
    background: var(--primary-base);
    color: var(--white);
    transform: translateY(-5px) !important;
}

.team-social a:nth-child(2) {
    transition-delay: 0.1s;
}

.team-social a:nth-child(3) {
    transition-delay: 0.2s;
}

.team-content {
    padding: 25px 20px;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
}

.team-position {
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.team-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--primary-tint);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--primary-base);
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.service-card:hover .service-icon {
    background: var(--primary-base);
    color: var(--white);
    transform: rotateY(360deg) scale(1.1);
    border-color: var(--primary-light);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== COURSE CARDS ===== */
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--primary-tint);
    position: relative;
    overflow: hidden;
}

.course-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
}

.course-card:hover:before {
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-tint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    color: var(--primary-base);
    transition: all 0.4s ease;
}

.course-card:hover .course-icon {
    background: var(--primary-base);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.course-university {
    color: var(--primary-base);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.course-detail {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.course-detail i {
    color: var(--primary-base);
    margin-right: 5px;
    width: 18px;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgNWEyMCAyMCAwIDAgMSAyMCAyMCAyMCAyMCAwIDAgMS0yMCAyMCAyMCAyMCAwIDAgMS0yMC0yMCAyMCAyMCAwIDAgMSAyMC0yMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    opacity: 0.1;
}

.testimonials-section .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.testimonials-section .section-subtitle {
    color: var(--primary-light);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin: 15px;
    color: var(--white);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}


/* PART 3: MAIN SECTIONS & COMPONENTS */
.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--primary-tint);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-base);
}

.blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-img:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.blog-meta i {
    color: var(--primary-base);
    margin-right: 5px;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSI1IiBmaWxsPSJyZ2JhKDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-btn {
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.1rem;
}

.cta-btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-about {
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1.2rem;
    width: 25px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 10px;
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-base);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 25px;
    border: none;
}

.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6,
.modal-header .modal-title {
    color: var(--white) !important;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--primary-tint);
    padding: 20px;
}


/* PART 4: FOOTER, MODALS & RESPONSIVE */
/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .country-flags-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-card {
        flex: 0 0 calc(33.333% - 25px);
    }
}

@media (max-width: 992px) {
    .navbar {
        background: var(--white);
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-toggler {
        display: block !important;
        padding: 5px 10px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        color: #2d0a4d !important;
    }

    .navbar-toggler i {
        font-size: 1.8rem !important;
        display: block !important;
    }

    .navbar .nav-link {
        color: var(--primary-dark) !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-collapse {
        background: var(--white);
        padding: 0 20px 20px;
        margin-top: 5px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
    }

    .currency-selector {
        margin: 10px 0;
        width: fit-content;
    }

    .currency-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 80px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        min-width: 0 !important;
        transform: none !important;
        z-index: 1050 !important;
    }

    .slide-title {
        font-size: 3.5rem;
    }

    .slide-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .search-section {
        margin-top: -60px;
    }

    .search-container {
        padding: 30px;
    }

    .country-flags-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-card {
        flex: 0 0 calc(50% - 25px);
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .country-flags-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-toolbar {
        flex-wrap: wrap;
        width: 90%;
        border-radius: 20px;
        padding: 15px;
    }

    .comparison-items {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .team-card {
        flex: 0 0 100%;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer {
        text-align: center;
    }

    .footer-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .search-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .country-flags-grid {
        grid-template-columns: 1fr;
    }

    .university-card,
    .course-card,
    .blog-card {
        margin-bottom: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .comparison-row {
        flex-direction: column;
    }

    .comparison-vs {
        margin: 10px 0;
    }
}

/* --- Team Profile Section --- */
.profile-section {
    background-color: #f8f9fa;
}

.profile-card {
    transition: transform 0.3s ease;
}

.profile-img-container img {
    object-position: top;
}

.profile-main-content .bio-content p {
    margin-bottom: 1.5rem;
}

.cta-box {
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2);
}

@media (max-width: 991.98px) {
    .profile-sidebar {
        position: static !important;
    }
}