/* =========================================================
   HOME PAGE — uses the same CSS variables already defined
   in style.css (--primary, --secondary, --accent, --dark,
   --white, --light-bg, --text-dark, --text-light)
   ========================================================= */

/* ===== HERO (split layout) ===== */
.home-hero {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.home-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(6px);
}

.home-hero-glow-1 {
    top: -10%;
    right: -8%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(85,171,215,0.35), transparent 70%);
    animation: home-glow-float-1 9s ease-in-out infinite;
}

.home-hero-glow-2 {
    bottom: -18%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
    animation: home-glow-float-2 11s ease-in-out infinite;
}

.home-hero-glow-3 {
    top: 8%;
    left: 48%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37,117,252,0.32), transparent 65%);
    animation: home-glow-float-3 13s ease-in-out infinite;
}

@keyframes home-glow-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-45px, 40px) scale(1.15); }
}

@keyframes home-glow-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35px, -30px) scale(1.12); }
}

@keyframes home-glow-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.1); }
}

.home-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px 2px rgba(85,171,215,0.8);
    animation: home-particle-drift linear infinite;
}

.home-hero-particles span:nth-child(1)  { left: 5%;  top: 75%; animation-duration: 7s;  animation-delay: 0s;    }
.home-hero-particles span:nth-child(2)  { left: 15%; top: 25%; animation-duration: 9s;  animation-delay: 1s;    width: 5px; height: 5px; }
.home-hero-particles span:nth-child(3)  { left: 28%; top: 85%; animation-duration: 8s;  animation-delay: 2s;    }
.home-hero-particles span:nth-child(4)  { left: 42%; top: 15%; animation-duration: 10s; animation-delay: 0.5s;  width: 4px; height: 4px; }
.home-hero-particles span:nth-child(5)  { left: 55%; top: 60%; animation-duration: 6s;  animation-delay: 1.5s;  }
.home-hero-particles span:nth-child(6)  { left: 68%; top: 30%; animation-duration: 9s;  animation-delay: 3s;    width: 5px; height: 5px; }
.home-hero-particles span:nth-child(7)  { left: 80%; top: 70%; animation-duration: 7s;  animation-delay: 2.5s;  }
.home-hero-particles span:nth-child(8)  { left: 92%; top: 40%; animation-duration: 8s;  animation-delay: 0s;    width: 4px; height: 4px; }
.home-hero-particles span:nth-child(9)  { left: 48%; top: 45%; animation-duration: 11s; animation-delay: 4s;    }
.home-hero-particles span:nth-child(10) { left: 12%; top: 50%; animation-duration: 9s;  animation-delay: 3.5s;  width: 5px; height: 5px; }
.home-hero-particles span:nth-child(11) { left: 60%; top: 85%; animation-duration: 7s;  animation-delay: 1.2s;  }
.home-hero-particles span:nth-child(12) { left: 85%; top: 15%; animation-duration: 10s; animation-delay: 2.8s;  width: 4px; height: 4px; }

@keyframes home-particle-drift {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateY(-90px) translateX(20px); opacity: 0.7; }
    90%  { opacity: 1; }
    100% { transform: translateY(-180px) translateX(-15px); opacity: 0; }
}

/* Animated diagonal line streaks */
.home-hero-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero-lines span {
    position: absolute;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(85,171,215,0.9), transparent);
    transform: rotate(-18deg);
    animation: home-line-streak linear infinite;
}

.home-hero-lines span:nth-child(1) { top: 20%; left: -20%; animation-duration: 6s; animation-delay: 0s; }
.home-hero-lines span:nth-child(2) { top: 50%; left: -20%; animation-duration: 8s; animation-delay: 2s; }
.home-hero-lines span:nth-child(3) { top: 75%; left: -20%; animation-duration: 7s; animation-delay: 4s; }
.home-hero-lines span:nth-child(4) { top: 35%; left: -20%; animation-duration: 9s; animation-delay: 1s; }

@keyframes home-line-streak {
    0%   { transform: translateX(0) rotate(-18deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(160vw) rotate(-18deg); opacity: 0; }
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    padding-bottom: 60px;
}

.home-hero-left {
    flex: 1;
    min-width: 340px;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.home-hero h1 {
    color: var(--white);
    font-size: 2.9rem;
    line-height: 1.18;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-hero-line1,
.home-hero-line2 {
    color: var(--white);
}

.home-hero h1 em {
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    color: var(--accent);
    font-size: 0.92em;
    margin-top: 6px;
}

.home-hero-sub {
    color: #cfd9f0;
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.home-hero-actions .btn-light,
.home-hero-actions .btn-outline-light {
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.home-hero-actions .btn-light {
    background: var(--white);
    color: var(--primary);
}

.home-hero-actions .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

.home-hero-actions .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: var(--white);
}

.home-hero-actions .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.home-hero-trustrow {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.home-hero-trustrow div {
    display: flex;
    flex-direction: column;
}

.home-hero-trustrow strong {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
}

.home-hero-trustrow span {
    color: #9db3d8;
    font-size: 0.76rem;
}

/* Finder card (right side of hero) */
.home-hero-right {
    width: 400px;
    flex-shrink: 0;
}

.home-finder-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    transition: transform 0.35s ease;
}

.home-finder-card:hover {
    transform: translateY(-4px);
}

.home-finder-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.home-finder-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.home-finder-field {
    margin-bottom: 14px;
}

.home-finder-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.home-finder-field select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #e2e6ec;
    background: var(--light-bg);
    font-family: inherit;
    font-size: 0.86rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.home-finder-field select:focus {
    border-color: var(--primary);
}

.home-finder-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-finder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37,117,252,0.35);
    color: var(--white);
}

.home-finder-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* Trusted university logo marquee */
.home-marquee {
    background: #061a4a;
    padding: 18px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.home-marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: home-marquee-scroll 32s linear infinite;
}

.home-marquee-track span {
    color: #9db3d8;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0.8;
}

@keyframes home-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== STATS STRIP ===== */
.home-stats {
    background: var(--white);
    padding-top: 26px;
}

.home-stats-inner {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20,40,70,0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 10px;
}

.home-stat-box {
    text-align: center;
    padding: 6px 10px;
    border-right: 1px solid #eee;
}

.home-stat-box:last-child {
    border-right: none;
}

.home-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.home-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== SECTION HEADER (shared) ===== */
.home-section {
    padding: 64px 0;
}

.home-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.home-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.home-section-head h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.home-section-head p {
    color: var(--text-light);
    font-size: 0.94rem;
}

/* ===== DESTINATIONS ===== */
.home-section-head-left {
    text-align: left;
    max-width: 640px;
    margin: 0 0 40px;
}

.home-section-head-left h2 span {
    color: var(--primary);
}

.home-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.home-dest-card {
    position: relative;
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 16px;
    padding: 22px 20px;
    text-align: left;
    transition: all 0.3s ease;
    overflow: hidden;
}

.home-dest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(20,40,70,0.12);
    border-color: var(--accent);
}

.home-dest-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--primary);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.25s ease;
}

.home-dest-card:hover .home-dest-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.home-dest-flag-img {
    width: 36px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    display: block;
}

.home-dest-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.home-dest-count {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.home-dest-tags {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--primary);
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.home-dest-viewall {
    text-align: center;
    margin-top: 36px;
}

.home-dest-viewall a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    background-color: #316b97;
    background-image: linear-gradient(90deg, #316b97, #2575fc);
    padding: 16px 34px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(37,117,252,0.35);
    transition: all 0.25s ease;
}

.home-dest-viewall a svg {
    transition: transform 0.25s ease;
}

.home-dest-viewall a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(37,117,252,0.45);
    color: #ffffff;
}

.home-dest-viewall a:hover svg {
    transform: translateX(4px);
}

/* ===== FEATURED UNIVERSITIES ===== */
.home-uni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.home-uni-card {
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-uni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(20,40,70,0.12);
}

.home-uni-card-top {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 22px 22px 40px;
    position: relative;
}

.home-uni-qs {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.home-uni-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.home-uni-card-top h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.home-uni-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cfd9f0;
    font-size: 0.8rem;
}

.home-uni-loc svg {
    flex-shrink: 0;
}

.home-uni-card-body {
    padding: 18px 22px 22px;
    margin-top: -22px;
    background: var(--white);
    border-radius: 18px 18px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-uni-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.home-uni-stat {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 10px 12px;
}

.home-uni-stat-label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.home-uni-stat-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.86rem;
}

.home-uni-card-body a.btn-primary {
    margin-top: auto;
    text-align: center;
}

/* ===== WHY CHOOSE US — improved cards ===== */
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.home-why-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.home-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(20, 60, 130, 0.10);
    border-color: transparent;
}

.home-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf1ff, #dbe8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.home-why-card:hover .home-why-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    transform: scale(1.08);
}

.home-why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #10213f;
    margin-bottom: 10px;
}

.home-why-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #5b6b85;
    margin: 0;
}

@media (max-width: 992px) {
    .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HOW IT WORKS — connected steps ===== */
.home-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 60px;
    gap: 24px;
}

/* connecting line behind the circles */
.home-steps::before {
    content: "";
    position: absolute;
    top: 34px;                 /* aligns with center of the 68px circle */
    left: calc(12.5% + 34px);
    right: calc(12.5% + 34px);
    height: 2px;
    background-image: linear-gradient(to right, #9fc3f0 0 8px, transparent 8px 16px);
    background-size: 16px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

.home-step {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 52px 22px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(20, 60, 130, 0.06);
    z-index: 2;
}

.home-step-top {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.home-step-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14336b, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 60, 130, 0.25);
}

.home-step-index {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #38bdf8;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.home-step h4 {
    margin-top: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #10213f;
}

.home-step p {
    font-size: 0.9rem;
    color: #5b6b85;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .home-steps {
        flex-wrap: wrap;
    }
    .home-steps::before {
        display: none;
    }
    .home-step {
        flex: 1 1 45%;
    }
}

@media (max-width: 560px) {
    .home-steps {
        flex-direction: column;
    }
    .home-step {
        flex: 1 1 100%;
    }
}

/* ===== POPULAR COURSES ===== */
.home-courses-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.home-course-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #e2e6ec;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
}

.home-course-chip:hover {
    border-color: var(--primary);
    background: #eef4fb;
    color: var(--primary);
    transform: translateY(-2px);
}

.home-course-chip svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.home-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.home-testi-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.home-testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(20,40,70,0.08);
    background: var(--white);
}

.home-testi-stars {
    color: #f5a623;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.home-testi-quote {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.65;
}

.home-testi-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.home-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-testi-person strong {
    display: block;
    font-size: 0.86rem;
    color: var(--dark);
}

.home-testi-person span {
    font-size: 0.74rem;
    color: var(--text-light);
}

/* ===== CTA BANNER ===== */
.home-cta {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 22px;
    padding: 48px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.home-cta h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.home-cta p {
    color: #eaf1ff;
    font-size: 0.94rem;
    margin-bottom: 24px;
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-cta .btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.home-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

.home-cta .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.6);
    color: var(--white);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.home-cta .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===================================================
   TOP UNIVERSITIES WORLDWIDE
   =================================================== */
.home-topuni-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-topuni-card {
    display: flex;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(20,40,70,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-topuni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(20,40,70,0.18);
}

/* Left: country panel */
.home-topuni-left {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--dark), var(--primary));
    color: var(--white);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.home-topuni-flag {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.home-topuni-country {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.home-topuni-city {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #cfd9f0;
    margin-bottom: 14px;
}

.home-topuni-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 14px;
}

.home-topuni-detail-list li {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.home-topuni-detail-list span {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9db3d8;
}

.home-topuni-detail-list strong {
    font-size: 0.84rem;
    font-weight: 700;
}

.home-topuni-explore {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 12px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.home-topuni-explore svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.home-topuni-explore:hover {
    color: #ffffff;
}

.home-topuni-explore:hover svg {
    transform: translateX(3px);
}

/* Middle: main info — light blue background */
.home-topuni-main {
    flex: 1;
    min-width: 0;
    background: #eaf2fb;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-topuni-main-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-topuni-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #d7e4f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.home-topuni-title {
    flex: 1;
    min-width: 160px;
}

.home-topuni-title h3 {
    font-size: 1.18rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.home-topuni-title span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.home-topuni-qs {
    background: var(--dark);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1.3;
    flex-shrink: 0;
}

.home-topuni-qs small {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.75;
}

.home-topuni-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-topuni-stat {
    background: var(--white);
    border-radius: 10px;
    padding: 11px 16px;
    flex: 1;
    min-width: 140px;
}

.home-topuni-stat span {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.home-topuni-stat strong {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.92rem;
}

.home-topuni-stat strong em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 2px;
}

.home-topuni-scholar {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e8b57;
    width: fit-content;
}

/* Right: expert / contact panel — light blue background */
.home-topuni-right {
    width: 270px;
    flex-shrink: 0;
    background: #eaf2fb;
    border-left: 1px solid #d7e4f3;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-topuni-expert-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-topuni-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--dark);
    color: var(--white);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-topuni-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2e8b57;
    border: 2px solid var(--white);
}

.home-topuni-expert-row strong {
    display: block;
    font-size: 0.84rem;
    color: var(--dark);
}

.home-topuni-expert-row span {
    font-size: 0.72rem;
    color: var(--text-light);
}

.home-topuni-expert-stats {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    border-radius: 10px;
    padding: 10px 14px;
}

.home-topuni-expert-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-topuni-expert-stats strong {
    font-size: 0.86rem;
    color: var(--dark);
}

.home-topuni-expert-stats span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.home-topuni-expert-stats div:first-child span {
    color: #f5a623;
    letter-spacing: 1px;
}

.home-topuni-support {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-light);
}

.home-topuni-free {
    background: #eafaf0;
    color: #2e8b57;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.home-topuni-enquire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(160deg, var(--dark), var(--primary));
    color: var(--white);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 11px;
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.home-topuni-enquire svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.home-topuni-enquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(4,26,87,0.25);
    color: var(--white);
}

.home-topuni-enquire:hover svg {
    transform: translateX(3px);
}

.home-topuni-contact-row {
    display: flex;
    gap: 8px;
}

.home-topuni-contact-row a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid #d7e4f3;
    background: var(--white);
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
}

.home-topuni-contact-row a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.home-topuni-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.home-topuni-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e8b57;
    flex-shrink: 0;
}

.home-topuni-more-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-topuni-heart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d7e4f3;
    background: var(--white);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.home-topuni-heart:hover {
    border-color: #e0567a;
    color: #e0567a;
}

.home-topuni-more {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.home-topuni-viewall {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.home-topuni-viewall .btn-outline-dark {
    border: 1.5px solid #d7dfe8;
    color: var(--dark);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.home-topuni-viewall .btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.home-topuni-viewall .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.home-topuni-viewall .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37,117,252,0.35);
    color: var(--white);
}

/* ===================================================
   SUKHADA DIFFERENCE
   =================================================== */
.home-diff {
    background: linear-gradient(160deg, var(--dark), var(--primary));
    padding: 64px 0;
    text-align: center;
}

.home-diff-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.home-diff h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 44px;
}

.home-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.home-diff-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 28px 26px;
    transition: all 0.3s ease;
}

.home-diff-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 16px 34px rgba(0,0,0,0.25);
}

.home-diff-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.home-diff-card h3 {
    color: var(--white);
    font-size: 1.08rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.home-diff-card p {
    color: #cfd9f0;
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.home-diff-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
}

.home-diff-stat strong {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.home-diff-stat span {
    color: #9db3d8;
    font-size: 0.76rem;
    line-height: 1.4;
}

/* ===================================================
   QUICK QUIZ
   =================================================== */
.home-quiz-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 20px;
    padding: 36px 44px;
    box-shadow: 0 10px 30px rgba(20,40,70,0.08);
}

.home-quiz-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.home-quiz-progress span {
    width: 34px;
    height: 5px;
    border-radius: 4px;
    background: #e2e6ec;
    transition: background 0.3s ease;
}

.home-quiz-progress span.active,
.home-quiz-progress span.done {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.home-quiz-step {
    display: none;
}

.home-quiz-step.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

.home-quiz-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    margin-bottom: 24px;
    justify-content: center;
    text-align: center;
}

.home-quiz-step h3 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.home-quiz-subtext {
    text-align: center;
    color: var(--text-light);
    font-size: 0.86rem;
    margin-top: -14px;
    margin-bottom: 24px;
}

.home-quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.home-quiz-options-2col {
    grid-template-columns: repeat(2, 1fr);
}

.home-quiz-options-flags {
    grid-template-columns: repeat(5, 1fr);
}

.home-quiz-opt {
    background: var(--light-bg);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-quiz-opt span {
    font-size: 1.4rem;
}

.home-quiz-options-2col .home-quiz-opt {
    padding: 16px 14px;
}

.home-quiz-options-2col .home-quiz-opt span {
    font-size: 0.92rem;
    font-weight: 700;
}

.home-quiz-opt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20,40,70,0.1);
}

.home-quiz-opt.selected {
    border-color: var(--primary);
    background: #eef4fb;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(37,117,252,0.18);
}

/* Bigger flag-style option cards (destination step) */
.home-quiz-opt-flag {
    padding: 16px 10px;
    gap: 8px;
    border-radius: 14px;
}

.home-quiz-flag-img {
    width: 34px;
    height: 23px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.home-quiz-opt-flag span.home-quiz-country-name {
    font-size: 0.92rem;
    font-weight: 700;
}

.home-quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-quiz-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light-bg);
    border: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 11px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-quiz-back:hover {
    background: #e4ecf3;
}

.home-quiz-next,
.home-quiz-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: auto;
}

.home-quiz-next:hover,
.home-quiz-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37,117,252,0.3);
}

.home-quiz-next:disabled,
.home-quiz-submit:disabled {
    background: #d7dfe8;
    color: #97a3b3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.home-quiz-next:disabled:hover,
.home-quiz-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Step 4: lead capture form */
.home-quiz-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.home-quiz-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.home-quiz-field input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #e2e6ec;
    background: var(--light-bg);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.home-quiz-field input:focus {
    border-color: var(--primary);
}

.home-quiz-field input.field-error {
    border-color: #e0567a;
    background: #fff5f7;
}

.home-quiz-field-msg {
    display: none;
    font-size: 0.74rem;
    color: #e0567a;
    margin-top: 6px;
}

.home-quiz-field-msg.show {
    display: block;
}

.home-quiz-result {
    text-align: center;
}

.home-quiz-result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eafaf0;
    color: #2e8b57;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.home-quiz-result h3 {
    justify-content: center;
    margin-bottom: 10px;
}

.home-quiz-result p {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.home-quiz-result .btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.home-quiz-result .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37,117,252,0.35);
    color: var(--white);
}


/* ===================================================
   TRENDING PROGRAMS (reuses the course-item-card
   pattern from the university page, home-page content)
   =================================================== */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.trending-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trending-header .home-section-eyebrow {
    display: block;
    margin-bottom: 6px;
}

.trending-header h2 {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.trending-header p {
    color: var(--text-light);
    font-size: 0.86rem;
}

.trending-viewall {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1.5px solid #d7dfe8;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 11px 22px;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.trending-viewall:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37,117,252,0.15);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Reused course-item-card layout (same structure as university.php's Courses tab) */
.course-item-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20,40,70,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-item-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(20,40,70,0.1);
}

.course-card-uni {
    width: 240px;
    flex-shrink: 0;
    padding: 20px 22px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.course-card-logo {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.72rem;
}

.course-card-uniname {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.88rem;
    line-height: 1.3;
}

.course-card-uniname svg {
    color: #2e8b57;
    flex-shrink: 0;
}

.course-card-loc {
    font-size: 0.74rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card-main {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.course-card-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.course-card-level {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: var(--light-bg);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 6px;
}

.course-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.course-card-title:hover {
    color: var(--primary);
}

.course-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.85;
}

.course-card-meta strong {
    color: var(--dark);
    font-weight: 600;
}

.course-card-apply {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--dark), var(--primary));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-card-apply-head {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.course-card-apply-head strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
}

.course-card-apply-head span {
    font-size: 0.74rem;
    color: #cfd9f0;
}

.course-card-apply-body {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-card-apply-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--white);
}

.course-card-apply-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--white);
}

.course-card-apply-row strong {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--white);
}

.course-card-apply-row span {
    color: #cfd9f0;
    font-size: 0.74rem;
}

.course-card-apply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 20px 14px;
}

.course-card-heart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    background: transparent;
    transition: all 0.2s ease;
}

.course-card-heart:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.course-card-apply-btn {
    flex: 1.3;
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
    padding: 8px 8px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.course-card-apply-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.course-card-more-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.course-card-apply .course-card-more-link:hover {
    background: rgba(255,255,255,0.18);
    border-color: var(--white);
    color: var(--white);
}

.trending-viewmore {
    text-align: center;
    margin-top: 26px;
}

@media (max-width: 780px) {
    .course-item-card {
        flex-direction: column;
    }
    .course-card-uni {
        width: 100%;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .course-card-apply {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .trending-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .trending-viewall {
        width: 100%;
        justify-content: center;
    }
}


.home-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.home-service-card {
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 16px;
    padding: 24px 18px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(20% - 16px);
    min-width: 190px;
    max-width: 260px;
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(20,40,70,0.1);
    color: inherit;
}

.home-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.home-service-card:hover .home-service-icon {
    transform: scale(1.1) rotate(-6deg);
}

.home-service-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.home-service-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}

.home-service-count {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 20px;
}

.home-service-icon.icon-blue   { background: #e3f2fd; color: #1976d2; }
.home-service-icon.icon-purple { background: #f3e5f5; color: #8e24aa; }
.home-service-icon.icon-orange { background: #fff3e0; color: #f57c00; }
.home-service-icon.icon-green  { background: #e8f5e9; color: #388e3c; }


.home-city-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.home-city-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-bg);
    border: 1px solid transparent;
    padding: 11px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s ease;
}

.home-city-card svg {
    color: var(--primary);
    flex-shrink: 0;
}

.home-city-card:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(49,107,151,0.12);
}

/* ===== CTA contact row ===== */
.home-cta-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.home-cta-contact a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #eaf1ff;
    font-size: 0.84rem;
    font-weight: 500;
}

.home-cta-contact a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===================================================
   TOP UNIVERSITIES — flag image, multi-stat row,
   full pillar-score grid, clickable card
   =================================================== */
.home-topuni-card[data-href] {
    cursor: pointer;
}

.home-topuni-flagimg {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    display: block;
}

/* Flexible stats row (2-4 stat boxes depending on university) */
.home-topuni-statrow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-topuni-statbox {
    background: var(--white);
    border-radius: 10px;
    padding: 11px 16px;
    flex: 1;
    min-width: 140px;
}

.home-topuni-statbox span {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.home-topuni-statbox strong {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.92rem;
}

.home-topuni-statbox strong em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: 2px;
}

/* Pillar scores (QS breakdown) */
.home-topuni-pillarlabel {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-light);
}

.home-topuni-pillargrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.home-topuni-pillarcard {
    background: var(--white);
    border-radius: 10px;
    padding: 10px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-topuni-pillarcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(20,40,70,0.1);
}

.home-topuni-pillarcard-top {
    margin-bottom: 8px;
}

.home-topuni-pillarcard-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
     line-clamp: 2;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.3;
    min-height: 2.6em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.home-topuni-pillarcard-scorerow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.home-topuni-pillarcard-score {
    font-weight: 800;
    color: var(--dark);
    font-size: 0.88rem;
    white-space: nowrap;
}

.home-topuni-pillarcard-score small {
    font-weight: 500;
    font-size: 0.64rem;
    color: var(--text-light);
    margin-left: 1px;
}

.home-topuni-pillarcard-rank {
    background: var(--light-bg);
    color: var(--text-light);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

.home-topuni-pillartrack {
    height: 5px;
    border-radius: 5px;
    background: #e4eaf2;
    overflow: hidden;
}

.home-topuni-pillarfill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #f5c344, #f5a623);
}

@media (max-width: 900px) {
    .home-topuni-pillargrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .home-topuni-pillargrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-topuni-statbox {
        min-width: 120px;
    }
}

@media (max-width: 992px) {
    .home-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }
    .home-stat-box {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 14px;
    }
    .home-stat-box:nth-child(2n) {
        border-right: none;
    }
    .home-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .home-steps::before {
        display: none;
    }
    .home-steps {
        padding-top: 0;
    }
}

@media (max-width: 992px) {
    .home-hero-right {
        width: 100%;
    }
    .home-services-grid .home-service-card {
        flex: 1 1 calc(33.333% - 14px);
        max-width: none;
    }
    .home-topuni-card {
        flex-wrap: wrap;
    }
    .home-topuni-left {
        width: 100%;
    }
    .home-topuni-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #d7e4f3;
    }
    .home-diff-grid {
        grid-template-columns: 1fr;
    }
    .home-quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-quiz-options-flags {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-services-grid .home-service-card {
        flex: 1 1 calc(50% - 10px);
        max-width: none;
    }
    .home-hero {
        padding: 50px 0 0;
    }
    .home-hero h1 {
        font-size: 1.9rem;
    }
    .home-hero-sub {
        font-size: 0.94rem;
    }
    .home-hero-grid {
        padding-bottom: 40px;
    }
    .home-hero-trustrow {
        gap: 20px;
    }
    .home-finder-card {
        padding: 22px 20px;
    }
    .home-section {
        padding: 46px 0;
    }
    .home-section-head h2 {
        font-size: 1.4rem;
    }
    .home-quiz-card {
        padding: 26px 20px;
    }
    .home-quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-quiz-options-flags {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-diff h2 {
        font-size: 1.5rem;
    }
    .home-cta {
        padding: 36px 22px;
    }
    .home-cta h2 {
        font-size: 1.3rem;
    }
    .home-cta-contact {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .home-dest-grid {
        grid-template-columns: 1fr;
    }
    .home-services-grid .home-service-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .home-stats-inner {
        grid-template-columns: 1fr;
    }
    .home-stat-box {
        border-bottom: 1px solid #eee;
    }
    .home-stat-box:last-child {
        border-bottom: none;
    }
    .home-steps {
        grid-template-columns: 1fr;
    }
    .home-uni-grid {
        grid-template-columns: 1fr;
    }
    .home-quiz-options-flags {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================================
   QUICK CTA STRIP (compact mid-page nudge)
   =================================================== */
.home-quickcta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--dark), var(--primary));
    border-radius: 22px;
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-quickcta::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,171,215,0.28), transparent 70%);
    pointer-events: none;
}

.home-quickcta-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.home-quickcta-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.home-quickcta-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-quickcta-left h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.home-quickcta-left p {
    color: #cfd9f0;
    font-size: 0.9rem;
    max-width: 460px;
    line-height: 1.55;
}

.home-quickcta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.home-quickcta-actions .btn-light,
.home-quickcta-actions .btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.home-quickcta-actions .btn-light {
    background: var(--white);
    color: var(--primary);
}

.home-quickcta-actions .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

.home-quickcta-actions .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.45);
    color: var(--white);
}

.home-quickcta-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    color: var(--white);
}

.home-quickcta-trust {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px 28px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.home-quickcta-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #eaf1ff;
    white-space: nowrap;
}

.home-quickcta-trust svg {
    color: var(--accent);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 3px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}

/* ===================================================
   EXPLORE YOUR PATH (programs grid)
   =================================================== */
.home-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 992px) {
    .home-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .home-explore-grid {
        grid-template-columns: 1fr;
    }
}

.home-explore-card {
    position: relative;
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.3s ease;
}

.home-explore-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(20,40,70,0.1);
    border-color: var(--accent);
}

.home-explore-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf3e4, #fef8ee);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.home-explore-arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    color: var(--primary);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: all 0.25s ease;
}

.home-explore-card:hover .home-explore-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.home-explore-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.home-explore-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.home-explore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-explore-tag {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--light-bg);
    border: 1px solid #e2e6ec;
    padding: 3px 9px;
    border-radius: 6px;
}

/* ===================================================
   MANIFESTO
   =================================================== */
.home-manifesto {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--dark), var(--primary));
    padding: 56px 0;
    text-align: center;
}

.home-manifesto::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,171,215,0.18), transparent 70%);
    pointer-events: none;
}

.home-manifesto::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none;
}

.home-manifesto-quote {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.18);
    margin-bottom: 8px;
}

.home-manifesto-eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.home-manifesto h2 {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 2rem;
    line-height: 1.4;
    max-width: 780px;
    margin: 0 auto;
}

.home-manifesto h2 em {
    display: block;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    color: var(--accent);
    margin-top: 8px;
}

.home-manifesto p {
    position: relative;
    z-index: 1;
    color: #cfd9f0;
    font-size: 0.96rem;
    max-width: 620px;
    margin: 24px auto 34px;
    line-height: 1.75;
}

.home-manifesto-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-manifesto-actions .btn-light,
.home-manifesto-actions .btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.home-manifesto-actions .btn-light {
    background: var(--white);
    color: var(--primary);
}

.home-manifesto-actions .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    color: var(--primary);
}

.home-manifesto-actions .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.45);
    color: var(--white);
}

.home-manifesto-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ===================================================
   EXAM PREP + SCHOLARSHIPS SPLIT
   =================================================== */
.home-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.home-split-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 38px 36px;
}

.home-split-light {
    background: var(--light-bg);
    border: 1px solid #edf0f4;
}

.home-split-dark {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--dark), var(--primary));
    color: var(--white);
}

.home-split-dark::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,171,215,0.2), transparent 70%);
    pointer-events: none;
}

.home-split-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-split-light .home-split-icon {
    background: linear-gradient(135deg, #fdf3e4, #fef8ee);
    color: var(--accent);
}

.home-split-dark .home-split-icon {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
}

.home-split-eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.home-split-light h3 {
    position: relative;
    z-index: 1;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.home-split-dark h3 {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.home-split-light p {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.home-split-dark p {
    position: relative;
    z-index: 1;
    color: #cfd9f0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.home-split-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.home-split-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid #e2e6ec;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-split-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(20,40,70,0.1);
}

.home-split-chip:active {
    transform: translateY(0);
}

.home-split-chip:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.home-split-chip.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(37,117,252,0.3);
}

.home-split-chip .chip-badge {
    font-size: 0.62rem;
    font-weight: 800;
    color: #2e8b57;
    background: #eafaf0;
    padding: 1px 8px;
    border-radius: 999px;
}

.home-split-chip.selected .chip-badge {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

.home-split-scholar-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.home-split-scholar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.home-split-scholar-row:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.home-split-scholar-row strong {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.home-split-scholar-row span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.home-split-card > .btn-primary,
.home-split-card > .btn-light {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.home-split-light .btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
}

.home-split-light .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37,117,252,0.3);
    color: var(--white);
}

.home-split-dark .btn-light {
    background: var(--white);
    color: var(--primary);
}

.home-split-dark .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

/* ===================================================
   OUTCOMES (dark story cards)
   =================================================== */
.home-outcomes {
    background: linear-gradient(160deg, var(--dark), var(--primary));
    padding: 64px 0;
}

.home-outcomes .home-section-head p,
.home-outcomes .home-section-head-left p {
    color: #cfd9f0;
}

.home-outcomes-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.home-outcomes-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.home-outcomes-head h2 {
    color: var(--white);
    font-size: 1.6rem;
    max-width: 620px;
    margin-bottom: 0;
}

.home-outcomes-slider {
    position: relative;
    margin: 0 -4px;
}

.home-outcomes-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-outcomes-track::-webkit-scrollbar {
    display: none;
}

.home-outcomes-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 26px 24px;
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 15px);
    min-width: 280px;
    scroll-snap-align: start;
}

.home-outcomes-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.home-outcomes-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.home-outcomes-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-outcomes-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .home-outcomes-card {
        flex: 0 0 calc(50% - 11px);
    }
}

@media (max-width: 640px) {
    .home-outcomes-card {
        flex: 0 0 88%;
    }
    .home-outcomes-head {
        align-items: flex-start;
    }
}

.home-outcomes-quote-mark {
    color: var(--accent);
    margin-bottom: 12px;
}

.home-outcomes-card p {
    color: #eaf1ff;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.home-outcomes-person strong {
    display: block;
    color: var(--white);
    font-size: 0.88rem;
}

.home-outcomes-person span {
    font-size: 0.74rem;
    color: #9db3d8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===================================================
   LATEST SCHOLARSHIPS
   =================================================== */
.home-scholar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.home-scholarcard {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #edf0f4;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(20,40,70,0.04);
}

.home-scholarcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(20,40,70,0.14);
    border-color: var(--accent);
}

.home-scholarcard-level {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: linear-gradient(90deg, var(--dark), var(--primary));
    padding: 12px 20px;
    text-align: left;
}

.home-scholarcard-level span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--dark);
    background: var(--white);
    padding: 2px 8px;
    border-radius: 6px;
}

.home-scholarcard-level strong {
    font-size: 0.76rem;
    font-weight: 700;
    writing-mode: initial;
    text-orientation: initial;
    color: var(--white);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.home-scholarcard-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-scholarcard-org {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-light);
}

.home-scholarcard-org strong {
    color: var(--dark);
    text-transform: none;
    font-size: 0.84rem;
}

.home-scholarcard-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.02rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;  
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-scholarcard-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e6ecf5;
}

.home-scholarcard-amount {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b5790f;
    background: #fdf3e4;
    border: 1px solid #f5e3c2;
    padding: 3px 10px;
    border-radius: 20px;
}

.home-scholarcard-deadline {
    font-size: 0.74rem;
    color: var(--text-light);
}

.home-scholarcard-apply {
    margin-top: 10px;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 11px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.home-scholarcard-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37,117,252,0.3);
    color: var(--white);
}

/* ===================================================
   UNIVERSITY NETWORK ROW
   =================================================== */
.home-network-marquee {
    overflow: hidden;
    margin-bottom: 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-network-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: home-network-scroll 26s linear infinite;
}

.home-network-marquee:hover .home-network-track {
    animation-play-state: paused;
}

@keyframes home-network-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.home-network-chip {
    flex: 0 0 auto;
    white-space: nowrap;
}

.home-network-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 14px 20px;
}

.home-network-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(20,40,70,0.1);
}

.home-network-chip strong {
    display: block;
    font-size: 0.88rem;
    color: var(--dark);
}

.home-network-chip span {
    font-size: 0.76rem;
    color: var(--text-light);
}

.home-network-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.86rem;
}

/* ===================================================
   RELATED ARTICLES (home page)
   =================================================== */
.home-articles {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 60px 0;
}

.home-articles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-articles-head h2 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.home-articles-head .home-section-eyebrow {
    color: #9db3d8;
}

.home-articles-viewall {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--white);
}

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.home-article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
}

.home-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.home-article-media {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
}

.home-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    color: var(--dark);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.home-article-body {
    padding: 18px 20px 20px;
}

.home-article-body h4 {
    font-size: 0.96rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.home-article-body p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.5;
}

.home-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* ===================================================
   FAQ (home page, two-column accordion)
   =================================================== */
.home-faq-list {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.home-faq-item {
    border-bottom: 1px solid #eee;
}

.home-faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--dark);
    cursor: pointer;
}

.home-faq-item.open .home-faq-question {
    color: var(--primary);
}

.home-faq-question svg {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.25s ease, color 0.25s ease;
}

.home-faq-item.open .home-faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.home-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.home-faq-answer p {
    padding: 0 0 18px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-split-grid {
        grid-template-columns: 1fr;
    }
    .home-faq-list {
        grid-template-columns: 1fr;
    }
    .home-quickcta {
        padding: 28px 24px;
    }
    .home-quickcta-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-quickcta-actions {
        width: 100%;
    }
    .home-quickcta-actions .btn-light,
    .home-quickcta-actions .btn-outline-light {
        flex: 1;
        justify-content: center;
    }
    .home-articles-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================================
   ENQUIRY MODAL (same as university.php, reused here
   for the Top Universities "Enquire Now" popup)
   =================================================== */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enquiry-modal.active {
    display: flex;
}

.enquiry-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(1px);
}

.enquiry-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 14px;
    padding: 26px 26px 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    animation: enquiryModalOpen 0.25s ease;
}

@keyframes enquiryModalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enquiry-modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #667085;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-modal-close:hover {
    color: var(--dark);
}

.enquiry-modal-box h2 {
    font-size: 1.35rem;
    color: var(--dark);
    margin: 0 0 6px;
}

.enquiry-modal-subtitle {
    margin: 0 0 22px;
    color: var(--text-light);
    font-size: 0.84rem;
    line-height: 1.5;
}

.enquiry-modal-subtitle span {
    font-weight: 600;
}

.enquiry-form-group {
    margin-bottom: 16px;
}

.enquiry-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 600;
}

.enquiry-form-group input,
.enquiry-form-group textarea {
    width: 100%;
    border: 1px solid #dfe4ec;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.84rem;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.enquiry-form-group input {
    height: 46px;
}

.enquiry-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.enquiry-form-group input::placeholder,
.enquiry-form-group textarea::placeholder {
    color: #98a2b3;
}

.enquiry-form-group input:focus,
.enquiry-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 93, 170, 0.1);
}

.enquiry-submit-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(160deg, var(--dark), var(--primary));
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(4, 26, 87, 0.22);
}

body.enquiry-modal-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .enquiry-modal {
        padding: 15px;
    }

    .enquiry-modal-box {
        max-width: 100%;
        padding: 24px 20px 20px;
    }
}