/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* --- FIXED MOBILE MENU STYLES --- */
.mobile-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* Crucial for overlaying */
    top: 100%;
    /* Pushes it directly below the navbar */
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* This class is added by Javascript to SHOW the menu */
.mobile-menu.active {
    display: flex !important;
    animation: slideDown 0.3s ease-out forwards;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-transform: capitalize;
}

.mobile-link:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-content {
    text-align: center;
    padding: 5rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-highlight {
    display: block;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

/* Standard Button Size */
.btn-standard {
    padding: 0.875rem 1.75rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-full {
    width: 100%;
}

.btn-half {
    flex: 1;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Form Divider */

.contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
    /* Reduced gap */
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.contact-divider-text {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    color: #4b5563;
    margin-top: 0.5rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
}

/* Services Section */
.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.service-description {
    color: #4b5563;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* --- Why Choose Us Box Animation --- */

.why-choose-us {
    background: linear-gradient(to bottom right, #2563eb, #4f46e5);
    padding: 2rem;
    border-radius: 1rem;
    color: white;
    /* NEW: Add transition for smooth movement */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* NEW: The Uplift Effect on Hover */
.why-choose-us:hover {
    transform: translateY(-10px);
    /* Moves up */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* 3D Shadow */
}

.why-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-list li {
    padding-left: 1.5rem;
    position: relative;
}

.why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
}

/* Contact Section styling */
.contact-section {
    background: #f8faff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* Form card wrapper */
.contact-form-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 2-column row for paired fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-select {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit button row */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-contact-submit {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.contact-detail {
    color: #4b5563;
}

.office-hours {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.office-hours-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.office-hours-text {
    color: #374151;
}

/* ============================================================
   PUBLIC STUDENT BOTTOM NAV
   Shown on mobile only for logged-in students visiting public pages.
   Gives instant access to Home / Journey / Docs / Profile.
   ============================================================ */
.public-student-nav {
    display: none; /* shown only on mobile via media query below */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    /* Show bottom nav on mobile */
    .public-student-nav { display: flex; }

    /* Hide desktop back-bar — bottom nav replaces it on mobile */
    #dashboard-back-bar { display: none !important; }

    /* Push page content up so footer isn't hidden behind the fixed nav */
    body.has-public-nav { padding-bottom: 68px; }

    /* Push WA bubble above the bottom nav */
    body.has-public-nav .wa-bubble-wrap { bottom: 76px; }
}

.psn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}
.psn-item i { display: flex; align-items: center; justify-content: center; }
.psn-item i svg { width: 20px; height: 20px; }
.psn-item span { display: block; line-height: 1; }
.psn-item:active { color: #4338ca; transform: scale(0.94); transition: transform 0.1s ease; }

/* ============================================================
   WHATSAPP FLOATING BUBBLE (Public pages)
   ============================================================ */
.wa-bubble-wrap {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* Green floating button */
.wa-bubble-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    animation: waPulse 2.5s ease-in-out 2s 3;
}
.wa-bubble-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37,211,102,0.55);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.15); }
}

/* Popup panel */
.wa-popup {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 320px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: waSlideUp 0.25s ease;
    border: 1px solid #e5e7eb;
}
.wa-popup.open { display: flex; }

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

/* Popup header */
.wa-popup-header {
    background: #25D366;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-popup-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
}
.wa-popup-close {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.wa-popup-close:hover { background: rgba(255,255,255,0.4); }

/* Popup body */
.wa-popup-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.65rem 1.1rem 0;
}
.wa-popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem 1.1rem;
}
.wa-popup-form input,
.wa-popup-form textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    resize: none;
}
.wa-popup-form input:focus,
.wa-popup-form textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37,211,102,0.15);
}
.wa-popup-send {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.15rem;
}
.wa-popup-send:hover { background: #1DA851; transform: translateY(-1px); }
.wa-popup-error {
    font-size: 0.78rem;
    color: #ef4444;
    min-height: 1rem;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wa-bubble-wrap { bottom: 1.25rem; right: 1.25rem; }
    .wa-popup { width: calc(100vw - 2.5rem); }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    /* Ensure whole card height is filled */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.blog-image {
    height: 12rem;
    background: linear-gradient(to bottom right, #60a5fa, #6366f1);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes content to fill space */
}

.blog-date {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: #4b5563;
    margin-bottom: 1rem;
}

.blog-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-link:hover {
    color: #1d4ed8;
}

.blog-link svg {
    width: 1rem;
    height: 1rem;
}

/* Footer Styles - UPDATED for Bottom Alignment */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.footer-description {
    color: #9ca3af;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links li {
    color: #9ca3af;
}

/* FIX: Ensure copyright bar is full width and separated */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    width: 100%;
    margin-top: 2rem;
    clear: both;
}

/* Form Status Messages */
.form-status {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

.form-status-success,
.form-status-error {
    display: flex;
}

.form-status-success {
    background: linear-gradient(to right, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.form-status-error {
    background: linear-gradient(to right, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .form-status {
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
    }

    .status-icon {
        width: 20px;
        height: 20px;
    }
}

/* Partner Preview Section */
.partner-preview-section {
    background: white;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.partner-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.partner-text {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
}

/* --- Partner Illustration Animation --- */

.partner-illustration {
    width: 100%;
    height: 20rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, #60a5fa, #6366f1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.partner-illustration:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .partner-illustration {
        height: 15rem;
    }
}

/* ── Back-to-Dashboard bar (shown only to logged-in students) ── */
#dashboard-back-bar {
    background: #4338ca;
    color: #fff;
    display: none; /* shown via JS when session is valid */
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}
.dashboard-back-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
    opacity: 0.92;
    transition: opacity 0.15s ease;
}
.dashboard-back-link:hover { opacity: 1; text-decoration: underline; }
.dashboard-back-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Partner Hero Section */
.partner-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.partner-hero .hero-subtitle {
    font-size: 1.625rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .partner-hero .hero-subtitle {
        font-size: 1.375rem;
    }
    .partner-hero {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }
    .hero-content {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .partner-hero .hero-subtitle {
        font-size: 1.25rem;
    }
    .partner-hero {
        padding-top: 4.5rem;
        padding-bottom: 1rem;
    }
    .hero-content {
        padding: 1.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-container {
        padding: 1.25rem;
    }

    .btn-contact-submit {
        align-self: stretch;
        justify-content: center;
    }

    .partner-illustration {
        height: 15rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .contact-buttons {
        flex-direction: column;
    }

    .btn-half {
        width: 100%;
    }
}

/* Clickable Stat Cards */
.stat-card-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.stat-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card-link:hover::before {
    opacity: 1;
}

.stat-card-link:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.stat-card-link>* {
    position: relative;
    z-index: 1;
}

.stat-card-link,
.stat-card-link * {
    text-decoration: none !important;
    color: inherit;
}

.stat-arrow {
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.stat-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.stat-card-link:hover .stat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* University & Destination Cards */
.university-rank {
    display: inline-block;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.university-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.destination-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.destination-card {
    text-align: left;
}

.destination-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.destination-stats span {
    padding-left: 0.5rem;
}

/* Step Numbers */
.step-number {
    display: inline-block;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Footer Links Hover */
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .destination-flag {
        font-size: 2.5rem;
    }

    .university-rank,
    .step-number {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Fix for Key Information Tabs */
@media (max-width: 768px) {
    .program-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        overflow-x: visible;
    }

    .tab-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
        white-space: normal;
        text-align: center;
        height: 100%;
        min-height: 60px;
    }
}

/* Animation for the "Other" text box */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mobile: Stack them */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 2. Fix for Mobile Footer Link Underlines */
.footer-links a,
.footer-links a[href^="mailto"],
.footer-links a[href^="tel"] {
    text-decoration: none !important;
    color: #9ca3af !important;
    border-bottom: none !important;
}

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

/* ============================================================
   LARGE DESKTOP ENHANCEMENTS (1280px+)
   Subtle spaciousness — refined, not heavy
   ============================================================ */
@media (min-width: 1280px) {
    /* Hero: slightly more breathing room */
    .hero-content {
        padding: 6rem 0;
    }

    /* Hero title: subtle lift, not overwhelming */
    .hero-title {
        font-size: 3.25rem;
        margin-bottom: 1.75rem;
    }

    /* Hero subtitle: barely larger, more readable */
    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 52rem;
        margin-bottom: 2.25rem;
    }

    /* Stat cards: slightly more padding */
    .stat-card {
        padding: 2.25rem 2rem;
    }

    /* Stat numbers: modest increase */
    .stat-number {
        font-size: 2.75rem;
    }

    /* Stats grid: more gap */
    .stats-grid {
        gap: 2.5rem;
        margin-top: 4.5rem;
    }

    /* Sections: a bit more vertical breathing room */
    .section {
        padding: 5rem 0;
    }

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

    /* Contact: wider form column, tighter info column */
    .contact-grid {
        gap: 2.5rem;
    }

    .contact-form-container {
        padding: 2.25rem;
    }
}