/* =========================================================
   EDUMi.my Study Country Page CSS
   Clean separated CSS for landing_page-study-country.css
   PHP file should not contain inline style blocks.
========================================================= */

/* =========================================================
   Country Page Variables
   Uses EDUMi global variables with safe fallback
========================================================= */

:root {
    --country-primary: var(--edumi-blue, #0466c2);
    --country-navy: var(--edumi-navy, #102a43);
    --country-gold: var(--edumi-gold, #ad9550);
    --country-bg: var(--edumi-bg, #f5f8ff);
    --country-soft: var(--edumi-soft, #eef4fb);
    --country-border: var(--edumi-border, #dfe7f1);
    --country-text: var(--edumi-text, #102a43);
    --country-muted: var(--edumi-muted, #62748a);
    --country-card: var(--edumi-card, #ffffff);

    --country-gradient: var(--edumi-gradient, linear-gradient(135deg, #ff3e3e 0%, #a00070 48%, #0466c2 100%));
    --country-gradient-hover: var(--edumi-gradient-hover, linear-gradient(135deg, #ff5656 0%, #b3007d 48%, #0875db 100%));

    --country-radius-sm: var(--edumi-radius-sm, 8px);
    --country-radius-md: var(--edumi-radius-md, 10px);
    --country-radius-lg: var(--edumi-radius-lg, 14px);
    --country-radius-xl: var(--edumi-radius-xl, 18px);
    --country-radius-pill: var(--edumi-radius-pill, 999px);

    --country-shadow-sm: var(--edumi-shadow-sm, 0 10px 24px rgba(16, 42, 67, 0.06));
    --country-shadow-md: var(--edumi-shadow-md, 0 14px 30px rgba(16, 42, 67, 0.10));
    --country-shadow-lg: var(--edumi-shadow-lg, 0 18px 42px rgba(16, 42, 67, 0.14));
    --country-shadow-blue: var(--edumi-shadow-blue, 0 14px 32px rgba(4, 102, 194, 0.14));

    --country-container: var(--edumi-container, 1120px);
    --country-font-family: var(--edumi-font-family, "Inter", Arial, sans-serif);
    --country-focus-ring: var(--edumi-focus-ring, 0 0 0 3px rgba(4, 102, 194, 0.12));
}

/* =========================================================
   Global Country Page
========================================================= */

body.country-study-page {
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, var(--country-bg) 100%);
    color: var(--country-text);
    font-family: var(--country-font-family);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.country-page *,
.country-page *::before,
.country-page *::after {
    box-sizing: border-box;
}

.country-page img,
.country-page svg,
.country-page video,
.country-page iframe {
    max-width: 100%;
}

.country-page img,
.country-page video {
    display: block;
    height: auto;
}

.country-page a {
    color: inherit;
    text-decoration: none;
}

.country-page a:hover {
    text-decoration: none;
}

.country-page .text-justify {
    text-align: justify;
}

.country-page {
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
}

.country-container {
    width: min(var(--country-container), calc(100% - 32px));
    max-width: var(--country-container);
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   Country Banner Images
   Important:
   Keep these paths correct based on your project root.
========================================================= */

.country-study-australia .country-hero {
    --country-hero-image: url("../../image/country/banner_australia.webp");
}

.country-study-canada .country-hero {
    --country-hero-image: url("../../image/country/banner_canada.webp");
}

.country-study-ireland .country-hero {
    --country-hero-image: url("../../image/country/banner_ireland.webp");
}

.country-study-malaysia .country-hero {
    --country-hero-image: url("../../image/country/banner_malaysia.webp");
}

.country-study-new-zealand .country-hero {
    --country-hero-image: url("../../image/country/banner_new_zealand.webp");
}

.country-study-united-kingdom .country-hero {
    --country-hero-image: url("../../image/country/banner_united_kingdom.webp");
}

.country-study-united-states .country-hero {
    --country-hero-image: url("../../image/country/banner_united_states.webp");
}

/* Backward compatibility if older PHP still uses .country_banner */

.country-study-australia .country_banner {
    background-image: url("../../image/country/banner_australia.webp");
}

.country-study-canada .country_banner {
    background-image: url("../../image/country/banner_canada.webp");
}

.country-study-ireland .country_banner {
    background-image: url("../../image/country/banner_ireland.webp");
}

.country-study-malaysia .country_banner {
    background-image: url("../../image/country/banner_malaysia.webp");
}

.country-study-new-zealand .country_banner {
    background-image: url("../../image/country/banner_new_zealand.webp");
}

.country-study-united-kingdom .country_banner {
    background-image: url("../../image/country/banner_united_kingdom.webp");
}

.country-study-united-states .country_banner {
    background-image: url("../../image/country/banner_united_states.webp");
}

/* =========================================================
   Hero Section
========================================================= */

.country-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 96px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 14%, rgba(4, 102, 194, 0.32), transparent 34%),
        linear-gradient(
            90deg,
            rgba(8, 26, 54, 0.92) 0%,
            rgba(16, 42, 67, 0.76) 48%,
            rgba(4, 102, 194, 0.36) 100%
        ),
        var(--country-hero-image, url("../../image/country/banner_australia.webp")) center / cover no-repeat;
}

.country-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 24%, rgba(173, 149, 80, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 42, 67, 0.10));
    pointer-events: none;
}

.country-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -62px;
    z-index: -1;
    width: 124%;
    height: 118px;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    background: var(--country-bg);
    pointer-events: none;
}

.country-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.88fr);
    gap: 34px;
    align-items: center;
}

.country-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--country-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 13px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.country-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.country-hero__lead,
.country-hero p,
.country-hero .lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.country-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* =========================================================
   Buttons
========================================================= */

.country-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--country-radius-pill);
    padding: 12px 18px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.country-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.country-btn .material-icons,
.country-btn .material-icons-outlined {
    font-size: 18px;
}

.country-btn--primary {
    border: 1px solid transparent;
    background: var(--country-gradient);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(160, 0, 21, 0.20);
}

.country-btn--primary:hover {
    background: var(--country-gradient-hover);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 42, 67, 0.14);
}

.country-btn--light {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.96);
    color: var(--country-primary);
}

.country-btn--light:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--country-primary);
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.18);
}

.country-btn--outline {
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.country-btn--outline:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--country-primary);
}

/* =========================================================
   Hero Glass Panel
========================================================= */

.country-hero__panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.country-hero__panel-head {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.country-hero__panel-head span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.country-hero__panel-head strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.country-highlights {
    display: grid;
}

.country-highlight {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.country-highlight:last-child {
    border-bottom: 0;
}

.country-highlight .material-icons-outlined,
.country-highlight .material-icons {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 22px;
}

.country-highlight strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
}

.country-highlight p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================================
   Breadcrumb
========================================================= */

.country-breadcrumb-wrap {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    margin-bottom: 28px;
}

.country-breadcrumb-card {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--country-border);
    border-radius: var(--country-radius-pill);
    background: #ffffff;
    box-shadow: var(--country-shadow-md);
    color: var(--country-muted);
    padding: 12px 14px;
    font-size: 0.9rem;
}

.country-breadcrumb-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--country-primary);
    font-weight: 800;
    text-decoration: none;
}

.country-breadcrumb-card a:hover {
    color: #034f96;
}

/* =========================================================
   Sections
========================================================= */

.country-section {
    padding: 34px 0;
}

.country-section-card {
    border: 1px solid var(--country-border);
    border-radius: 26px;
    background: var(--country-card);
    box-shadow: var(--country-shadow-sm);
    padding: clamp(20px, 3.2vw, 28px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.country-section-card:hover {
    border-color: rgba(4, 102, 194, 0.28);
    box-shadow: var(--country-shadow-blue);
    transform: translateY(-2px);
}

.country-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.country-kicker {
    margin: 0 0 8px;
    color: var(--country-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.country-kicker--light {
    color: rgba(255, 255, 255, 0.76);
}


.country-section h2 {
    margin: 0;
    color: var(--country-navy);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.country-section h3 {
    color: var(--country-navy);
    font-weight: 800;
    line-height: 1.25;
}

.country-section__intro {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--country-muted);
    line-height: 1.8;
}

.country-section p,
.country-section li {
    color: var(--country-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* =========================================================
   Video
========================================================= */

.country-video-frame {
    overflow: hidden;
    border: 1px solid var(--country-border);
    border-radius: 22px;
    background: var(--country-soft);
    box-shadow: 0 14px 36px rgba(16, 42, 67, 0.10);
}

.country-video-frame iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

/* =========================================================
   Benefit Cards
========================================================= */

.country-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.country-benefit-card {
    height: 100%;
    border: 1px solid var(--country-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 22px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.country-benefit-card:hover {
    border-color: rgba(4, 102, 194, 0.28);
    box-shadow: var(--country-shadow-blue);
    transform: translateY(-4px);
}

.country-benefit-card .material-icons-outlined,
.country-benefit-card .material-icons {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--country-gradient);
    color: #ffffff;
    font-size: 22px;
}

.country-benefit-card h3 {
    margin: 0 0 8px;
    color: var(--country-navy);
    font-size: 1rem;
    font-weight: 800;
}

.country-benefit-card p {
    margin: 0;
    color: var(--country-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================================================
   Tables / DataTables
========================================================= */

.country-table-wrap,
.country-study-table-wrap {
    width: 100%;
    margin-top: 2px;
    overflow-x: auto;
    border: 1px solid var(--country-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--country-shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.country-section-card--table {
    padding: 10px 14px 14px;
}

.country-section-card--table .country-section__header {
    margin-bottom: 4px;
}

.country-section-card--table .country-table-wrap,
.country-section-card--table .country-study-table-wrap {
    margin-top: 0;
}

.country-table-wrap table,
.country-study-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.country-table-wrap .table,
.country-study-table-wrap .table {
    margin-bottom: 0;
}

.country-table-wrap thead th,
.country-study-table-wrap thead th,
.country-table-wrap table.dataTable thead th,
.country-study-table-wrap table.dataTable thead th {
    border-color: var(--country-border);
    border-bottom: 1px solid var(--country-border);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--country-navy);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.country-table-wrap tbody td,
.country-study-table-wrap tbody td {
    border-bottom: 1px solid var(--country-border);
    color: var(--country-text);
    vertical-align: middle;
    background: #ffffff;
}

.country-table-wrap tbody tr:nth-of-type(even) td,
.country-study-table-wrap tbody tr:nth-of-type(even) td {
    background: #fafcff;
}

.country-table-wrap tbody tr:hover,
.country-study-table-wrap tbody tr:hover {
    background: #f4f8fd;
}

.country-table-wrap .table-striped > tbody > tr:nth-of-type(odd) > *,
.country-study-table-wrap .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent;
    background-color: transparent;
}

.country-table-wrap .table > :not(caption) > * > *,
.country-study-table-wrap .table > :not(caption) > * > * {
    padding: 14px 14px;
}

.country-table-wrap .table > thead > tr > th,
.country-study-table-wrap .table > thead > tr > th {
    padding: 15px 14px;
}

.country-table-wrap .table td:first-child,
.country-study-table-wrap .table td:first-child {
    font-weight: 600;
    color: var(--country-navy);
}

.country-note {
    margin: 12px 0 0;
    color: var(--country-muted);
    font-size: 0.86rem;
}

/* DataTables repair */

.dataTables_wrapper {
    padding: 0;
}

.country-dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 14px;
}

.dataTables_wrapper .row {
    margin-right: 0;
    margin-left: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 14px 14px 10px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: var(--country-navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    border: 1px solid var(--country-border);
    border-radius: var(--country-radius-sm);
    background: #ffffff;
    color: var(--country-text);
    padding: 8px 10px;
    outline: 0;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--country-primary);
    box-shadow: var(--country-focus-ring);
}

.dataTables_wrapper .dataTables_info {
    padding: 0;
    color: var(--country-muted);
    font-size: 0.88rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 4px;
    border: 0 !important;
    padding: 0;
}

.page-link {
    border-radius: var(--country-radius-pill) !important;
    display: inline-flex;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edumi-border, #d9e2ec);
    background: #ffffff;
    color: var(--edumi-blue, #0466c2);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    padding: 0;
    box-shadow: 0 6px 14px rgba(16, 42, 67, 0.04);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.page-link:hover {
    border-color: var(--edumi-blue, #0466c2);
    background: #ffffff;
    color: var(--edumi-blue, #0466c2);
    box-shadow: 0 10px 22px rgba(4, 102, 194, 0.12);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    border-color: var(--edumi-blue, #0466c2);
    background: var(--edumi-blue, #0466c2);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(4, 102, 194, 0.18);
}

/* =========================================================
   Intake Cards
========================================================= */

.country-intake-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.country-intake-card {
    border: 1px solid var(--country-border);
    border-radius: 22px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.04);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.country-intake-card:hover {
    border-color: rgba(4, 102, 194, 0.28);
    box-shadow: var(--country-shadow-blue);
    transform: translateY(-3px);
}

.country-intake-card span {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: var(--country-radius-pill);
    background: rgba(4, 102, 194, 0.10);
    color: var(--country-primary);
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 800;
}

.country-intake-card h3 {
    margin: 0 0 8px;
    color: var(--country-navy);
    font-size: 1.18rem;
    font-weight: 800;
}

.country-intake-card p {
    margin: 0;
    color: var(--country-muted);
    line-height: 1.65;
}

/* =========================================================
   Checklist
========================================================= */

.country-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.country-checklist li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: var(--country-text);
    line-height: 1.55;
}

.country-checklist li::before {
    content: "check";
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(4, 102, 194, 0.10);
    color: var(--country-primary);
    font-family: "Material Icons Outlined";
    font-size: 18px;
    line-height: 1;
}

/* =========================================================
   Contact Section
========================================================= */

.country-contact {
    padding: 56px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(173, 149, 80, 0.16), transparent 32%),
        linear-gradient(135deg, #102a43 0%, #123b68 48%, #0466c2 100%);
    color: #ffffff;
}

.country-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: 34px;
}

.country-contact h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.country-contact p {
    max-width: 640px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.country-contact__mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.country-contact__mini span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--country-radius-pill);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
    padding: 9px 12px;
    font-size: 0.86rem;
    font-weight: 800;
}

.country-contact-card {
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--country-navy);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.22);
    padding: 26px;
}

.country-contact-card h3 {
    margin: 0 0 18px;
    color: var(--country-navy);
    font-size: 1.25rem;
    font-weight: 800;
}

.country-contact-card .form-label {
    color: var(--country-navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.country-contact-card .form-control,
.country-contact-card .form-select,
.country-contact-card input,
.country-contact-card select,
.country-contact-card textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--country-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--country-text);
    padding: 10px 12px;
    outline: 0;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.country-contact-card textarea.form-control,
.country-contact-card textarea {
    min-height: 118px;
    resize: vertical;
}

.country-contact-card .form-control:focus,
.country-contact-card .form-select:focus,
.country-contact-card input:focus,
.country-contact-card select:focus,
.country-contact-card textarea:focus {
    border-color: rgba(4, 102, 194, 0.55);
    box-shadow: var(--country-focus-ring);
}


/* =========================================================
   Legacy Country Banner Support
   Only applies if your old PHP still uses .country_banner
========================================================= */

.country-study-page .country_banner {
    position: relative;
    display: flex;
    min-height: 420px;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--country-soft);
    background-position: center;
    background-size: cover;
}

.country-study-page .country_banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(4, 102, 194, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.10), rgba(16, 42, 67, 0.46));
    pointer-events: none;
}

.country-study-page .country_banner > * {
    position: relative;
    z-index: 1;
}

.country-study-page .country_banner-overlay {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px 8px 0 0;
    background: rgba(16, 42, 67, 0.74);
    box-shadow: var(--country-shadow-lg);
}

/* =========================================================
   Accessibility
========================================================= */

.country-study-page :focus-visible {
    outline: 0;
    box-shadow: var(--country-focus-ring);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1199.98px) {
    :root {
        --country-container: 1040px;
    }
}

@media (max-width: 991.98px) {
    .country-hero {
        padding: 56px 0 86px;
    }

    .country-hero__grid,
    .country-contact__grid {
        grid-template-columns: 1fr;
    }

    .country-hero__panel {
        max-width: 620px;
    }

    .country-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .country-study-page .country_banner {
        min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .country-container {
        width: min(100% - 24px, 640px);
    }

    .country-hero {
        padding: 44px 0 74px;
        background-position: center;
    }

    .country-hero::after {
        bottom: -52px;
        height: 96px;
    }

    .country-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3.35rem);
        line-height: 1.02;
    }

    .country-hero__lead,
    .country-hero p,
    .country-hero .lead {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .country-hero__actions {
        flex-direction: column;
    }

    .country-btn {
        width: 100%;
    }

    .country-hero__panel {
        border-radius: 22px;
    }

    .country-highlight {
        padding: 14px 18px;
    }

    .country-breadcrumb-card {
        max-width: 100%;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .country-section {
        padding: 20px 0;
    }

    .country-section__header {
        display: block;
    }

    .country-benefit-grid,
    .country-intake-grid,
    .country-checklist {
        grid-template-columns: 1fr;
    }

    .country-table-wrap table,
    .country-study-table-wrap table {
        min-width: 640px;
    }

    .country-section-card--table {
        padding: 8px 12px 14px;
    }

    .country-table-wrap .table > :not(caption) > * > *,
    .country-study-table-wrap .table > :not(caption) > * > * {
        padding: 12px 14px;
    }

    .country-dt-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 12px;
    }

    .country-video-frame iframe {
        min-height: 260px;
    }

    .country-contact {
        padding: 40px 0;
    }

    .country-contact__grid {
        gap: 22px;
    }

    .country-contact-card {
        padding: 20px;
    }

    .country-study-page .country_banner {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .country-hero {
        padding-top: 38px;
    }

    .country-eyebrow {
        font-size: 0.72rem;
    }

    .country-hero__panel-head {
        padding: 20px;
    }

    .country-highlight {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .country-highlight .material-icons-outlined,
    .country-highlight .material-icons {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .country-section-card {
        border-radius: 22px;
    }

    .country-contact__mini span {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .country-container {
        width: min(100% - 20px, 420px);
    }

    .country-hero h1 {
        font-size: 2rem;
    }
}

/* =========================================================
   Touch Devices
========================================================= */

@media (hover: none) {
    .country-btn:hover,
    .country-section-card:hover,
    .country-benefit-card:hover,
    .country-intake-card:hover,
    .edumi-btn-primary:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .country-page *,
    .country-page *::before,
    .country-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   FAQ Accordion
========================================================= */

.accordion.country-faq {
    display: grid;
    gap: 12px;
}

.country-faq .accordion-item {
    overflow: hidden;
    border: 1px solid var(--country-border, #dfe7f1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.05);
}

.country-faq .accordion-header {
    margin: 0;
}

.country-faq .accordion-button {
    position: relative;
    width: 100%;
    min-height: 58px;
    padding: 18px 52px 18px 20px;
    border: 0;
    background: #ffffff;
    color: var(--country-navy, #102a43);
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    box-shadow: none;
}

.country-faq .accordion-button:hover {
    color: var(--country-primary, #0466c2);
    background: #f8fbff;
}

.country-faq .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(4, 102, 194, 0.12);
}

.country-faq .accordion-button:not(.collapsed) {
    background: #f8fbff;
    color: var(--country-primary, #0466c2);
    box-shadow: none;
}

.country-faq .accordion-button::after {
    position: absolute;
    right: 20px;
    width: 22px;
    height: 22px;
    margin-left: 0;
    background-image: none;
    content: "expand_more";
    font-family: "Material Icons Outlined";
    font-size: 22px;
    line-height: 1;
    color: var(--country-primary, #0466c2);
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.country-faq .accordion-button:not(.collapsed)::after {
    color: var(--country-primary, #0466c2);
    transform: rotate(180deg);
}

.country-faq .accordion-collapse {
    border: 0;
}

.country-faq .accordion-body {
    padding: 20px 20px 20px 20px;
    color: var(--country-muted, #62748a);
    font-size: 0.94rem;
    line-height: 1.7;
}
