/* =========================================================
   STUDY ABROAD PAGE — uses the same CSS variables already
   defined in style.css (--primary, --secondary, --accent,
   --dark, --white, --light-bg, --text-dark, --text-light)
   ========================================================= */

/* ===================================================
   HERO — asymmetric split layout (text left, floating
   search card right), built on the site's own home.php
   split-hero pattern rather than a centered single-column
   stack, so the page reads as its own thing.
   =================================================== */
.sa-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 620px 500px at 8% 8%, rgba(85,171,215,0.28), transparent 62%),
        radial-gradient(ellipse 520px 420px at 92% 100%, rgba(37,117,252,0.35), transparent 65%),
        linear-gradient(150deg, var(--dark) 0%, var(--primary) 58%, #1a4f86 100%);
    padding: 76px 0;
}

.sa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1.3px, transparent 1.3px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 65% 90% at 8% 40%, #000 20%, transparent 90%);
    mask-image: radial-gradient(ellipse 65% 90% at 8% 40%, #000 20%, transparent 90%);
    pointer-events: none;
}

.sa-hero-glow {
    position: absolute;
    z-index: 0;
    top: -18%;
    right: -6%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(90px);
    background: radial-gradient(circle, rgba(85,171,215,0.45), transparent 70%);
    pointer-events: none;
}

.sa-hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.sa-hero-left {
    flex: 1;
    min-width: 320px;
}

.sa-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.sa-hero-eyebrow svg {
    color: var(--accent);
    flex-shrink: 0;
}

.sa-hero-title {
    color: var(--white);
    font-size: clamp(1.7rem, 4.2vw, 2.7rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.22;
    letter-spacing: -0.5px;
}

.sa-hero-title span {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}

.sa-hero-sub {
    color: #cfd9f0;
    max-width: 460px;
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.65;
}

.sa-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.sa-hero-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #eaf1ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sa-hero-chip:hover {
    background: rgba(255,255,255,0.16);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.sa-hero-chip.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.sa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sa-hero-actions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sa-hero-actions-btn-light {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.sa-hero-actions-btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

.sa-hero-actions-btn-outline {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: var(--white);
    background: transparent;
}

.sa-hero-actions-btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Floating search card (right column) */
.sa-hero-right {
    width: 380px;
    flex-shrink: 0;
}

.sa-search-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateY(0);
    will-change: transform;
}

.sa-search-card:hover {
    transform: perspective(1000px) rotateX(4deg) rotateY(-5deg) translateY(-10px);
    box-shadow: 0 36px 70px rgba(0,0,0,0.4);
}

.sa-search-card-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.sa-search-card h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--dark);
}

.sa-search-card-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    transition: border-color 0.2s ease;
}

.sa-search-card-field:focus-within {
    border-color: var(--primary);
}

.sa-search-card-field svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.sa-search-card-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-dark);
    min-width: 0;
    width: 100%;
}

.sa-search-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.sa-search-card-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    flex: 1;
}

.sa-search-card-stats strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.sa-search-card-stats span {
    font-size: 0.68rem;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .sa-hero { padding: 56px 0; }
    .sa-hero-right { width: 100%; }
    .sa-hero-grid { gap: 36px; }
}

@media (max-width: 600px) {
    .sa-hero { padding: 44px 0; }
    .sa-hero-title { font-size: 1.7rem; }
    .sa-search-card { padding: 22px 20px; }
}

/* ===================================================
   FILTER TABS — same sticky pill-bar look as the
   Scholarships page's .schol-tabs-wrapper / .schol-tab-btn
   =================================================== */
.sa-tabs-wrapper {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 72px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sa-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sa-tabs-inner::-webkit-scrollbar {
    display: none;
}

.sa-tab-btn {
    background: var(--light-bg);
    border: none;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    font-family: inherit;
}

.sa-tab-btn:hover {
    background: #e4ecf3;
    color: var(--primary);
}

.sa-tab-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,117,252,0.3);
}

.sa-tab-badge {
    background: rgba(255,255,255,0.6);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}

.sa-tab-btn.active .sa-tab-badge {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
}

@media (max-width: 992px) {
    .sa-tabs-wrapper { top: 64px; }
}

@media (max-width: 640px) {
    .sa-tabs-inner { justify-content: flex-start; gap: 6px; padding: 12px 16px; }
    .sa-tab-btn { padding: 8px 16px; font-size: 0.82rem; }
    .sa-tabs-wrapper { top: 0; } /* avoid double-sticky clash with a mobile nav that may already be fixed */
}

.sa-showing-line {
    color: var(--text-light);
    font-size: 0.86rem;
    margin: 0 0 18px;
    padding: 0 4px;
}

/* ===================================================
   GRID SECTION wrapper + empty state
   =================================================== */
.sa-grid-section {
    padding-top: 40px;
}

.sa-empty-state {
    display: none;
    text-align: center;
    color: var(--text-light);
    font-size: 0.92rem;
    padding: 50px 20px;
}

.sa-empty-state.show {
    display: block;
}

/* ===================================================
   SHARED SECTION HEADER (used by common-sections.php)
   =================================================== */
.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;
}

.bg-light-custom {
    background-color: var(--light-bg);
}

/* ===================================================
   TOP UNIVERSITIES CARD (shared with home.php via
   common-sections.php — kept identical so both pages
   look the same)
   =================================================== */
.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, opacity 0.2s ease;
}

.home-topuni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(20,40,70,0.18);
}

.home-topuni-card[data-href] {
    cursor: pointer;
}

.home-topuni-card.sa-hidden {
    display: none;
}

.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-flagimg {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    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 svg {
    transform: translateX(3px);
}

.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-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;
}

.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-scholar {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e8b57;
    width: fit-content;
}

.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);
}

@media (max-width: 992px) {
    .home-topuni-card {
        flex-wrap: wrap;
    }
    .home-topuni-left {
        width: 100%;
    }
    .home-topuni-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #d7e4f3;
    }
}

@media (max-width: 600px) {
    .home-topuni-statbox {
        min-width: 120px;
    }
}

/* ===================================================
   TRENDING PROGRAMS / course-item-card (shared)
   =================================================== */
.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;
}

.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);
}

@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;
    }
}

/* ===================================================
   SCHOLARSHIPS (shared)
   =================================================== */
.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;
    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);
}

/* ===================================================
   BLOG ARTICLES (shared)
   =================================================== */
.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;
}

@media (max-width: 768px) {
    .home-articles-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================================
   ENQUIRY MODAL (shared)
   =================================================== */
.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; }
}