/* ============================================================
   PURE EDUCATION — Country Page Styles
   Loaded only on single-pe_country.php
   ============================================================ */

/* ── Country Hero ──────────────────────────────────────────── */
.country-hero {
    background: var(--navy);
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}
.country-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 40%, rgba(201,150,58,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 70%, rgba(30,58,95,0.8) 0%, transparent 55%);
}
.country-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}
.country-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: end;
}
.country-hero-content { padding-bottom: 4rem; }

.country-hero-flag {
    font-size: 4rem; line-height: 1;
    margin-bottom: 1.2rem; display: block;
}
.country-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.country-hero h1 span { color: var(--gold-light); font-style: italic; }
.country-hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Hero tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.hero-tag {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}
.hero-tag strong { color: var(--gold-light); }

/* Quick-facts card (right panel) */
.country-hero-card {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 2.5rem 2rem;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}
.country-hero-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}
.quick-facts { display: flex; flex-direction: column; gap: 0; flex: 1; }
.quick-fact {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-2);
}
.quick-fact:last-of-type { border-bottom: none; }
.qf-icon {
    width: 38px; height: 38px;
    background: var(--gold-pale);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.qf-label {
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}
.qf-value { font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* ── Overview Pills Strip ──────────────────────────────────── */
.overview-strip {
    background: var(--white);
    border-bottom: 1px solid var(--gray-2);
    padding: 1rem 0;
}
.overview-pills {
    display: flex; gap: 0.5rem;
    flex-wrap: wrap; align-items: center;
}
.overview-pill {
    display: flex; align-items: center; gap: 0.5rem;
    background: var(--gray-1);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-mid);
    white-space: nowrap;
}
.overview-pill span { font-size: 1rem; }

/* ── Living Costs ──────────────────────────────────────────── */
.living-costs { background: var(--cream); }
.costs-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
.costs-intro h2 { color: var(--navy); margin-bottom: 1rem; }
.costs-intro p { color: var(--text-light); line-height: 1.75; margin-bottom: 1.5rem; }
.costs-note {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--gold);
}

/* City selector */
.city-selector {
    display: flex; flex-direction: column;
    gap: 0.5rem; margin-top: 1.5rem;
}
.city-btn {
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-align: left;
    color: var(--text-mid);
    border: 1.5px solid var(--gray-2);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}
.city-btn.active,
.city-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Costs table */
.costs-table-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.costs-table-header {
    background: var(--navy);
    padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.costs-table-header h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
}
.cost-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid var(--gray-2);
    transition: background var(--transition-fast);
}
.cost-row:last-child { border-bottom: none; }
.cost-row:hover { background: var(--gray-1); }
.cost-row-left { display: flex; align-items: center; gap: 0.75rem; }
.cost-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.cost-label { font-size: 0.9rem; color: var(--text-dark); }
.cost-note  { font-size: 0.72rem; color: var(--text-light); }
.cost-amount { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.costs-total {
    background: var(--gold-pale);
    padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 2px solid var(--gold);
}
.costs-total span { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.costs-total strong {
    font-family: var(--font-display);
    font-size: 1.6rem; color: var(--navy);
}

/* ── Courses in Country ────────────────────────────────────── */
.country-courses { background: var(--white); }
.country-course-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-2);
    margin-bottom: 1rem;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--white);
}
.country-course-row:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.ccr-title { display: flex; align-items: center; gap: 1rem; }
.ccr-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.ccr-name {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 500;
    color: var(--navy); margin-bottom: 0.2rem;
}
.ccr-sub { font-size: 0.78rem; color: var(--text-light); }
.ccr-meta { font-size: 0.85rem; color: var(--text-mid); }
.ccr-meta strong { display: block; color: var(--navy); font-size: 0.95rem; }
.ccr-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--gray-2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: all var(--transition-fast);
    font-style: normal;
}
.country-course-row:hover .ccr-arrow {
    background: var(--gold); border-color: var(--gold); color: var(--navy);
}

/* ── Requirements ──────────────────────────────────────────── */
.requirements-section { background: var(--gray-1); }
.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}
.req-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.req-card-header {
    background: var(--navy);
    padding: 1.2rem 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.req-card-header span { font-size: 1.3rem; }
.req-card-header h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.req-list { padding: 1.5rem; }
.req-item {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-2);
    font-size: 0.875rem;
}
.req-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.req-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--gold-pale); border: 1.5px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: var(--gold);
    flex-shrink: 0; margin-top: 0.1rem;
}
.req-item strong { display: block; color: var(--navy); margin-bottom: 0.2rem; }
.req-item p { color: var(--text-light); line-height: 1.55; }

/* ── Country CTA ───────────────────────────────────────────── */
.country-cta {
    background: linear-gradient(135deg, var(--navy) 60%, var(--navy-light) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative; overflow: hidden;
}
.country-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,150,58,0.1) 0%, transparent 65%);
}
.country-cta > .container { position: relative; z-index: 1; }
.country-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white); margin-bottom: 1rem;
}
.country-cta p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; font-size: 1.05rem; }
.country-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.page-hero-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.page-hero-breadcrumb a {
    color: var(--gold-light);
    transition: color var(--transition-fast);
}
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .costs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
    .country-hero-inner { grid-template-columns: 1fr; }
    .country-hero-card {
        border-radius: var(--radius-xl);
        margin-top: 2rem;
    }
    .country-hero-content { padding-bottom: 0; }
    .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .country-course-row {
        grid-template-columns: 1fr auto;
    }
    .ccr-meta { display: none; }
}
@media (max-width: 500px) {
    .country-course-row { grid-template-columns: 1fr; }
    .hero-tags { gap: 0.4rem; }
}
