:root {
    /* Color Palette */
    --primary-color: #4F46E5; /* Vibrant Indigo */
    --primary-light: #818CF8;
    --secondary-color: #06B6D4; /* Cyan */
    --accent-color: #F43F5E; /* Rose */
    
    --bg-color: #FFFFFF; /* Clean White */
    --bg-light: #F8FAFC;
    --text-main: #0F172A; /* Dark slate text */
    --text-muted: #475569;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    background: linear-gradient(135deg, #6366F1, var(--primary-light));
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--transition-normal), padding var(--transition-normal);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(79, 70, 229, 0) 70%);
    opacity: 0.15;
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(6, 182, 212, 0) 70%);
    opacity: 0.15;
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}

.hero-illustration {
    position: absolute;
    top: -20px;
    right: -40px;
    width: 120%;
    height: 120%;
    z-index: -1;
    opacity: 0.8;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

.form-card {
    max-width: 400px;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-group select option {
    background: var(--bg-color);
    color: var(--text-main);
}

.terms-text {
    margin-top: 1rem;
    font-size: 0.75rem !important;
    text-align: center;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.02);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Advantages Section */
.advantages-section, .testimonials-section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

.advantages-grid {
    grid-template-columns: repeat(3, 1fr);
}

.advantage-card {
    padding: 2.5rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* (Universities section styles moved to premium theme block below) */



/* Testimonials Carousel */
.testimonial-carousel {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.student-info h4 {
    font-size: 1.1rem;
}

.student-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.carousel-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: var(--transition-fast);
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-indicator.current-slide {
    background: var(--primary-light);
    transform: scale(1.3);
}

.footer {
    background-color: #F1F5F9;
    padding: 6rem 0 2rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 400px;
}

.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(15,23,42,0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.powered-by {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #334155;
}

.powered-by a {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.powered-by a:hover {
    color: #3730a3 !important;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15,23,42,0.05);
    color: var(--text-main);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container { gap: 2rem; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .btn-outline { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero { padding: 8rem 0 4rem 0; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-subtitle { margin: 0 auto 2rem auto; }
    .hero-features { align-items: center; }
    .hero-visual { width: 100%; margin-top: 3rem; }
    .form-card { margin: 0 auto; }
    
    .advantages-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .stats-container { grid-template-columns: 1fr; }
    .testimonial-card { padding: 3rem 1.5rem; }
}

/* ============================================
   Universities Section — Premium Dark Theme
   ============================================ */
:root {
    --active-country-color: #818CF8;
}

.universities-section {
    padding: 8rem 0;
    background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative glow blobs */
.uni-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.uni-bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.uni-bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
}

.uni-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

/* Section heading */
.uni-eyebrow {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: #818CF8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.uni-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.uni-heading-accent {
    background: linear-gradient(135deg, #06B6D4, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uni-subheading {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 500px;
    margin-inline: auto;
}

/* Country Selector */
.country-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0 2.5rem;
}

.country-selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 80px;
    backdrop-filter: blur(8px);
}

.country-selector-btn:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: white;
    transform: translateY(-4px);
}

.country-selector-btn.active {
    background: rgba(var(--active-country-color), 0.15);
    border-color: var(--active-country-color);
    color: white;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.25);
    transform: translateY(-4px);
}

.cs-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.cs-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cs-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    color: rgba(255,255,255,0.5);
}

.country-selector-btn.active .cs-count {
    background: rgba(129, 140, 248, 0.3);
    color: white;
}

/* University Items Grid */
.uni-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.uni-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--uni-accent, #818CF8);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: all 0.28s ease;
    cursor: default;
    animation: uniCardIn 0.4s ease both;
}

.uni-item:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
    border-left-color: var(--uni-accent, #818CF8);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.uni-item.hidden {
    display: none;
}

.uni-item-rank {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--uni-accent, #818CF8);
    background: rgba(255,255,255,0.06);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.uni-item-flag {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.uni-item-body {
    flex: 1;
    min-width: 0;
}

.uni-item-body h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uni-item-body span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

.uni-item-arrow {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.uni-item:hover .uni-item-arrow {
    color: var(--uni-accent, #818CF8);
    transform: translate(2px, -2px);
}

/* Bottom CTA */
.uni-bottom-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.uni-bottom-cta p {
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

.uni-bottom-cta a {
    color: #818CF8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.uni-bottom-cta a:hover {
    color: #06B6D4;
}

@keyframes uniCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .uni-grid { grid-template-columns: repeat(3, 1fr); }
    .uni-heading { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .uni-grid { grid-template-columns: repeat(2, 1fr); }
    .country-selector { gap: 0.6rem; }
    .country-selector-btn { padding: 0.7rem 1rem; min-width: 68px; }
    .cs-flag { font-size: 1.4rem; }
    .uni-heading { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .uni-grid { grid-template-columns: 1fr; }
    .uni-item-body h4 { font-size: 0.78rem; }
}

.country-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.country-tab {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    border: 1.5px solid var(--glass-border);
    background: white;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.country-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.country-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.uni-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.uni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.13);
    border-color: var(--primary-light);
}

.uni-card.hidden {
    display: none;
}

.uni-flag {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.uni-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.uni-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .universities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .universities-grid { grid-template-columns: repeat(2, 1fr); }
    .country-tabs { gap: 0.5rem; }
    .country-tab { font-size: 0.8rem; padding: 0.5rem 1rem; }
}

@media (max-width: 600px) {
    .universities-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Floating WhatsApp Action Button (FAB)
   ============================================ */
.fab-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.fab-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: fabPulse 2s ease-out infinite;
    z-index: -1;
}

.fab-whatsapp:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
    color: white;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: #0F172A;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(8px);
    font-family: var(--font-sans);
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #0F172A;
}

.fab-whatsapp:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   Responsive Utilities & Animations
   ============================================ */

/* Values Grid Responsive Layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .content-section, .advantages-section {
        padding: 4rem 1rem !important;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global Mobile Fixes for Overflowing Content */
@media (max-width: 600px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    .container {
        padding: 0 1rem !important;
    }
    .uni-item, .testimonial-card, .value-card, .advantage-card {
        max-width: 100%;
        overflow: hidden;
    }
    .country-selector-btn, .country-tab {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Internal Page Grids */
    .steps-grid, .exams-grid, .countries-grid, .scholarship-types, .team-grid, .values-grid, .offices-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .scores-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .features-two-col, .two-col, .contact-grid, .form-row {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .page-hero h1 {
        font-size: 2.2rem !important;
    }
    .carousel-btn {
        display: none !important;
    }
    .testimonial-text {
        font-size: 1.1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* University Section Mobile Fixes */
    .country-selector {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 1.5rem 1rem !important;
        gap: 0.75rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 1.5rem -1rem 2rem !important; /* Negative margin to bleed to edges */
    }
    .country-selector::-webkit-scrollbar { display: none; }
    .country-selector-btn { 
        flex: 0 0 auto !important; 
        min-width: 75px !important;
        padding: 0.8rem 1rem !important;
    }
    .uni-heading { 
        font-size: 1.6rem !important; 
    }
    .uni-item { 
        padding: 0.8rem 1rem !important; 
    }
}
