/* ============================================================
   FETP ALUMNI PLATFORM — Main Stylesheet
   Colors: Primary #0066A8 | Accent #D4001C
   Fonts: Sora (headings) + DM Sans (body)
   Bootstrap 5.3 compatible
   ============================================================ */


/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary:        #0066A8;
    --primary-dark:   #004f82;
    --primary-light:  #e6f2fa;
    --primary-mid:    #cce4f4;
    --accent:         #D4001C;
    --accent-dark:    #a80016;
    --accent-light:   #fde8eb;

    --neutral-50:     #f8fafc;
    --neutral-100:    #f1f5f9;
    --neutral-200:    #e2e8f0;
    --neutral-300:    #cbd5e1;
    --neutral-400:    #94a3b8;
    --neutral-500:    #64748b;
    --neutral-600:    #475569;
    --neutral-700:    #334155;
    --neutral-800:    #1e293b;
    --neutral-900:    #0f172a;

    --white:          #ffffff;
    --body-bg:        #f6f9fc;

    --font-display:   'Sora', sans-serif;
    --font-body:      'DM Sans', sans-serif;

    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      20px;
    --radius-xl:      32px;

    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 16px rgba(0,102,168,.10);
    --shadow-md:      0 8px 28px rgba(0,102,168,.14);
    --shadow-lg:      0 20px 48px rgba(0,102,168,.18);

    --transition:     all .25s cubic-bezier(.4,0,.2,1);
    --transition-slow:all .45s cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset & Typography ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--neutral-700);
    background: var(--body-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--neutral-800);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }

p { margin-bottom: 1rem; color: var(--neutral-600); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ── Bootstrap Overrides ───────────────────────────────────── */
.btn {
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,102,168,.28);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,102,168,.38);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(212,0,28,.28);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 16px rgba(212,0,28,.38);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,102,168,.28);
}

.btn-outline-danger {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}
.btn-outline-danger:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-light:hover {
    background: var(--neutral-100);
    color: var(--primary-dark);
    border-color: var(--neutral-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.btn-success {
    background: #0d8a5f;
    border-color: #0d8a5f;
    color: var(--white);
}
.btn-success:hover {
    background: #0a6e4b;
    border-color: #0a6e4b;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-lg { padding: .85rem 2rem; font-size: .95rem; }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; border-radius: var(--radius-sm); }

/* Cards */
.card {
    border: none;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Forms */
.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: .9rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--neutral-200);
    padding: .65rem 1rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,102,168,.12);
    outline: none;
}

.form-label {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: .4rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0,102,168,.14);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    border-left: 4px solid transparent;
}
.alert-danger {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-left-color: var(--accent);
}
.alert-success {
    background: #e6f7f0;
    color: #0d6b47;
    border-left-color: #0d8a5f;
}


/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--neutral-200);
    padding: .85rem 0;
    box-shadow: 0 2px 12px rgba(0,102,168,.08);
}

.navbar-brand img {
    transition: var(--transition);
    filter: none;
}
.navbar-brand:hover img {
    opacity: .85;
}

.navbar-nav .nav-link {
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 500;
    color: var(--neutral-600) !important;
    padding: .5rem .75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-toggler {
    border: 1.5px solid var(--neutral-200);
    padding: .4rem .7rem;
    border-radius: var(--radius-sm);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0,102,168,.14);
}

/* Sticky nav shrink */
.navbar.scrolled {
    padding: .5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}


/* ── Page Header / Hero Banner ─────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #003660 100%);
    padding: 4rem 0 6.5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(212,0,28,.18) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--body-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: .5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.page-header p {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    margin-bottom: 0;
}


/* ── Homepage — Home / Portal Index ───────────────────────── */
.main-content > .container:first-child {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Homepage intro block */
.main-content > .container:first-child .row.justify-content-center p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-600);
}

/* Country cards on homepage */
.main-content > .container:first-child .card {
    border-radius: var(--radius-lg);
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    overflow: hidden;
}

.main-content > .container:first-child .card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

.main-content > .container:first-child .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.main-content > .container:first-child .card .card-body {
    padding: 1.75rem;
}

/* Stats badge */
.main-content > .container:first-child .rounded.bg-primary.bg-opacity-10 {
    background: var(--primary-light) !important;
    border-radius: var(--radius-sm) !important;
    padding: .9rem !important;
    transition: var(--transition);
}

.main-content > .container:first-child .card:hover .rounded.bg-primary.bg-opacity-10 {
    background: var(--primary-mid) !important;
}

.main-content > .container:first-child .fs-2.fw-bold.text-primary {
    font-family: var(--font-display);
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
}

/* ── Country Hero Section ──────────────────────────────────── */
.fetp-country-highlight {
    padding: 5rem 0 4rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.fetp-country-highlight::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0,102,168,.07) 0%, transparent 70%);
    pointer-events: none;
}

.fetp-country-highlight h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--neutral-900);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.fetp-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--neutral-600);
    margin-bottom: 2rem;
}

.fetp-actions .btn {
    padding: .8rem 2rem;
    font-size: .95rem;
}

/* Image card */
.fetp-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.fetp-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.fetp-image-card:hover img { transform: scale(1.04); }

.fetp-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,102,168,.15) 0%,
        transparent 60%,
        rgba(212,0,28,.1) 100%
    );
    pointer-events: none;
}


/* ── EpiNews Section ───────────────────────────────────────── */
.epinews-section {
    padding: 4rem 0;
    background: var(--neutral-50);
    position: relative;
}

.epinews-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50%       { background-position: 100% 0%; }
}

.epinews-section h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.epinews-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    border: 1px solid var(--neutral-200);
}

.epinews-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-mid);
}

.epinews-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--neutral-100);
}

.epinews-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.epinews-card:hover .epinews-image img { transform: scale(1.06); }

.epinews-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.4) 100%);
    pointer-events: none;
}

.epinews-body {
    padding: 1.25rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.epinews-title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--neutral-800);
    line-height: 1.4;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epinews-summary {
    font-size: .83rem;
    color: var(--neutral-500);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.epinews-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--neutral-100);
}

.epinews-date {
    font-size: .78rem;
    color: var(--neutral-400);
    font-weight: 500;
}


/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0080cc 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(212,0,28,.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(0,180,255,.12) 0%, transparent 55%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,.04)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-title {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.cta-subtitle {
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 1rem;
    line-height: 1.75;
}


/* ── Auth Pages (Login / Register / Forgot / Reset) ────────── */
.card.shadow.border-0 {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--neutral-200) !important;
    overflow: hidden;
}

.card.shadow.border-0::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-body.p-4 {
    padding: 2.25rem !important;
}

/* Auth container area */
.container.py-5 > .row.justify-content-center {
    min-height: 60vh;
    align-items: center;
}

/* Auth form heading above card (if any) */
.container.py-5 p.text-muted {
    font-size: .92rem;
    color: var(--neutral-500) !important;
    line-height: 1.7;
}

/* Login / register links */
.text-center.mt-3 .fw-semibold,
.text-center.mt-2 .fw-semibold {
    color: var(--primary);
    font-weight: 600;
}

.text-center.mt-3 .fw-semibold:hover,
.text-center.mt-2 .fw-semibold:hover {
    color: var(--accent);
    text-decoration: underline !important;
}

.text-center.mt-3 a:not(.fw-semibold),
.text-center.mt-2 a:not(.fw-semibold),
.text-center a {
    color: var(--primary);
    font-size: .875rem;
}

/* Register - Password toggle hint area */
.card-body .d-grid .btn-primary {
    padding: .8rem;
    font-size: .92rem;
    letter-spacing: .04em;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: #0a1628;
    position: relative;
}

.footer-accent-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: accent-slide 4s ease-in-out infinite;
}

@keyframes accent-slide {
    0%, 100% { background-position: 0%; }
    50%       { background-position: 100%; }
}

.footer-inner {
    padding: 3rem 0 2rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .8;
    display: block;
    margin: 0 auto 1.75rem;
    transition: opacity .25s ease;
}
.footer-logo:hover { opacity: 1; }

.footer-heading {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #fff;
    margin-bottom: .6rem;
}

.footer-desc {
    font-size: .875rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: 1.75rem 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
}

.powered-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475569;
}

.powered-logo {
    max-height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .45;
    transition: opacity .25s ease;
    display: block;
}
.powered-logo:hover { opacity: .8; }

.footer-sep {
    color: #334155;
    font-size: .8rem;
}

.footer-copy {
    font-size: .8rem;
    color: #475569;
}

/* ── Social icons ───────────────────────────────────── */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.4rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,102,168,.35);
}

.footer-social-btn:nth-child(4):hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(212,0,28,.35);
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary  { color: var(--primary)  !important; }
.text-accent   { color: var(--accent)   !important; }
.bg-primary    { background: var(--primary)  !important; }
.bg-accent     { background: var(--accent)   !important; }

.divider {
    border-color: var(--neutral-200);
    margin: 1.25rem 0;
}

/* Badge pill for country codes */
.badge-country {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    padding: .2rem .65rem;
    border-radius: 99px;
}

/* Section header divider line */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: .6rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Loading skeleton shimmer */
@keyframes skeleton {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        var(--neutral-200) 25%,
        var(--neutral-100) 50%,
        var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .fetp-country-highlight { padding: 3rem 0; }
    .fetp-image-card { margin-top: 2rem; }
    .cta-section { padding: 3.5rem 0; }
    .navbar .btn { font-size: .8rem; padding: .45rem 1rem; }
}

@media (max-width: 767.98px) {
    .page-header { padding: 2.5rem 0 2rem; }
    .page-header::after { display: none; }

    .epinews-section { padding: 2.5rem 0; }

    .card-body.p-4 { padding: 1.5rem !important; }

    .footer { padding: 2.5rem 0 1.5rem; }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.75rem; }
    .fetp-country-highlight h1 { font-size: 1.8rem; }
    .cta-title { font-size: 1.6rem; }
    .btn-lg { padding: .7rem 1.5rem; font-size: .875rem; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp .55s cubic-bezier(.4,0,.2,1) both;
}

.animate-fade-up:nth-child(1) { animation-delay: .05s; }
.animate-fade-up:nth-child(2) { animation-delay: .12s; }
.animate-fade-up:nth-child(3) { animation-delay: .19s; }
.animate-fade-up:nth-child(4) { animation-delay: .26s; }
.animate-fade-up:nth-child(5) { animation-delay: .33s; }
.animate-fade-up:nth-child(6) { animation-delay: .40s; }

/* Add to any section .container children for staggered reveal */
.stagger-children > * {
    animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both;
}
.stagger-children > *:nth-child(1) { animation-delay: .08s; }
.stagger-children > *:nth-child(2) { animation-delay: .18s; }
.stagger-children > *:nth-child(3) { animation-delay: .28s; }
.stagger-children > *:nth-child(4) { animation-delay: .38s; }
.stagger-children > *:nth-child(5) { animation-delay: .48s; }
.stagger-children > *:nth-child(6) { animation-delay: .58s; }


/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--neutral-100); }
::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* ── Focus Visible (Accessibility) ────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
    .navbar, .footer, .cta-section, .btn { display: none !important; }
    body { background: white; color: black; }
}


/* ── Hero Section ─────────────────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, #003660 0%, #0066A8 55%, #0080cc 100%);
    padding: 5.5rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 60%, rgba(212,0,28,.22) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(0,200,255,.1)  0%, transparent 50%);
    pointer-events: none;
}

/* World-map grid overlay */
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.home-hero .container { position: relative; z-index: 1; }

/* Pill label */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-family: 'Sora', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: #D4001C;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(212,0,28,.3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(212,0,28,.3); }
    50%       { box-shadow: 0 0 0 6px rgba(212,0,28,.15); }
}

.hero-headline {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-headline span {
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,.65) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-headline em {
    font-style: normal;
    color: #ffd166;
}

.hero-body {
    font-size: 1.08rem;
    color: rgba(255,255,255,.78);
    line-height: 1.85;
    max-width: 620px;
    margin: 0 auto 2.25rem;
}

/* Stats strip inside hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    margin-top: .25rem;
    display: block;
}

/* Hero bottom wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ── Section wrapper ────────────────────────────────────── */
.home-countries-section {
    padding: 4rem 0 5rem;
    background: #f6f9fc;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Sora', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #0066A8;
    margin-bottom: .75rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px; height: 2px;
    background: linear-gradient(90deg, #0066A8, #D4001C);
    border-radius: 2px;
}

.section-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.section-subheading {
    color: #64748b;
    font-size: .95rem;
    max-width: 520px;
}

/* Search bar */
.country-search-wrap {
    position: relative;
    max-width: 320px;
}

.country-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .9rem;
    pointer-events: none;
}

#countrySearch {
    padding-left: 2.6rem;
    border-radius: 99px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: .875rem;
    height: 42px;
    transition: all .25s ease;
}

#countrySearch:focus {
    border-color: #0066A8;
    box-shadow: 0 0 0 3px rgba(0,102,168,.12);
    outline: none;
}

/* ── Country Card ───────────────────────────────────────── */
.country-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    height: 100%;
    position: relative;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066A8, #D4001C);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.country-card:hover {
    box-shadow: 0 20px 48px rgba(0,102,168,.16);
    transform: translateY(-6px);
    border-color: transparent;
}

.country-card:hover::before {
    transform: scaleX(1);
}

.country-card-header {
    padding: 1.75rem 1.75rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.country-flag-placeholder {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #e6f2fa, #cce4f4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .9rem;
    font-family: 'Sora', sans-serif;
    font-size: .75rem;
    font-weight: 800;
    color: #0066A8;
    letter-spacing: .05em;
    transition: all .3s ease;
}

.country-card:hover .country-flag-placeholder {
    background: linear-gradient(135deg, #0066A8, #0080cc);
    color: #fff;
    transform: scale(1.08);
}

.country-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .2rem;
}

.country-code-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0066A8;
    background: #e6f2fa;
    padding: .15rem .6rem;
    border-radius: 99px;
}

.country-card-body {
    padding: 1.4rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-ring-wrap {
    position: relative;
    width: 80px; height: 80px;
    margin: .25rem auto 1rem;
}

.stat-ring-wrap svg {
    transform: rotate(-90deg);
}

.stat-ring-bg  { fill: none; stroke: #e6f2fa; stroke-width: 5; }
.stat-ring-fg  {
    fill: none;
    stroke: #0066A8;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 110;
    transition: stroke-dashoffset 1s ease;
}

.country-card:hover .stat-ring-fg {
    stroke-dashoffset: 44;
}

.stat-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0066A8;
    line-height: 1;
}

.stat-unit {
    font-size: .6rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

.country-stat-label {
    font-size: .8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.country-card-footer {
    padding: 0 1.75rem 1.5rem;
}

.btn-access {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .65rem;
    font-family: 'Sora', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #0066A8;
    color: #0066A8;
    background: transparent;
    transition: all .25s ease;
    letter-spacing: .02em;
}

.btn-access i {
    font-size: .85rem;
    transition: transform .25s ease;
}

.btn-access:hover {
    background: #0066A8;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,102,168,.3);
}

.btn-access:hover i {
    transform: translateX(4px);
}

/* ── Empty state ────────────────────────────────────────── */
.no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
}

/* ── Stagger animation ──────────────────────────────────── */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.country-col {
    animation: cardIn .5s cubic-bezier(.4,0,.2,1) both;
}

.hero-logo {
    max-width: 220px;
    height: auto;
    filter: brightness(0) invert(1);   /* makes any dark logo white */
    opacity: .92;
    transition: opacity .25s ease;
}

.hero-logo:hover { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .home-hero { padding: 3.5rem 0 5.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.65rem; }
}


/* ══════════════════════════════════════════════════════
   STATIC PAGES — Privacy Policy / Terms / About / etc.
   ══════════════════════════════════════════════════════ */

/* ── Section wrapper ────────────────────────────────── */
.static-page-section {
    padding: 4rem 0 5rem;
    background: var(--body-bg);
}

/* Page header eyebrow */
.static-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.88);
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .35rem .9rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}

/* ── Table of contents ──────────────────────────────── */
.static-toc {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.static-toc-title {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--neutral-500);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.static-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .5rem;
}

.static-toc-list li {
    font-size: .875rem;
}

.static-toc-list a {
    color: var(--neutral-600);
    text-decoration: none;
    transition: color .2s ease;
}
.static-toc-list a:hover { color: var(--primary); }

/* ── Intro box ──────────────────────────────────────── */
.static-intro-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-mid);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.static-intro-icon {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.static-intro-box p {
    margin: 0;
    font-size: .925rem;
    color: var(--neutral-700);
    line-height: 1.75;
}

/* ── Section blocks ─────────────────────────────────── */
.static-section {
    margin-bottom: 3rem;
    scroll-margin-top: 90px;
}

.static-section-heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--neutral-200);
}

.static-section-num {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #0080cc);
    padding: .2rem .55rem;
    border-radius: 6px;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.static-section p {
    font-size: .925rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: .85rem;
}

/* ── Lists ──────────────────────────────────────────── */
.static-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-bottom: 1rem;
}

.static-list li {
    font-size: .915rem;
    color: var(--neutral-600);
    line-height: 1.75;
    padding-left: 1.4rem;
    position: relative;
}

.static-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
}

/* ── Card list (data types) ─────────────────────────── */
.static-card-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.static-card-item {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.static-card-item:hover {
    border-color: var(--primary-mid);
    box-shadow: var(--shadow-sm);
}

.static-card-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.static-card-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: .25rem;
}

.static-card-item p {
    margin: 0;
    font-size: .855rem;
    color: var(--neutral-500);
    line-height: 1.65;
}

/* ── Rights grid ────────────────────────────────────── */
.static-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1rem;
}

.static-right-item {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all .25s ease;
}

.static-right-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,102,168,.1);
    transform: translateY(-2px);
}

.static-right-item i {
    font-size: 1.35rem;
    color: var(--primary);
    display: block;
    margin-bottom: .6rem;
}

.static-right-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: .35rem;
}

.static-right-item p {
    font-size: .78rem;
    color: var(--neutral-500);
    line-height: 1.55;
    margin: 0;
}

/* ── Contact box ────────────────────────────────────── */
.static-contact-box {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: 1rem;
}

.static-contact-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: .9rem;
    color: var(--neutral-600);
}

.static-contact-row i {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    flex-shrink: 0;
}

.static-contact-row a {
    color: var(--primary);
    font-weight: 500;
}
.static-contact-row a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
    .static-toc-list {
        grid-template-columns: 1fr;
    }

    .static-rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .static-page-section { padding: 2.5rem 0 3.5rem; }
}

@media (max-width: 480px) {
    .static-rights-grid {
        grid-template-columns: 1fr;
    }
}
