/* =============================================================================
 * app-content.css — components for the app-style content pages
 * (International Patients + Blog). Mobile-first; scales up cleanly on desktop.
 * Uses the site theme tokens (--green, --green-dark, --green-soft…).
 * Purely presentational — no logic touched. Reversible: remove this file, its
 * <link> in header.php, and the class names it targets.
 * ========================================================================== */

.app-content { padding-top: 6px; }
.section-tight { padding: 14px 0; }

/* ---- shared bits ---------------------------------------------------------- */
.ac-breadcrumb { font-size: 13px; color: var(--muted, #62756f); margin: 10px 0 2px; }
.ac-breadcrumb a { color: var(--muted, #62756f); }
.ac-breadcrumb .sep { margin: 0 6px; }
.ac-breadcrumb .cur { color: var(--green, #0f8f63); font-weight: 700; }

.ac-chip {
    display: inline-block;
    background: #dff3ea; color: var(--green, #0f8f63);
    font-weight: 800; font-size: 13px; letter-spacing: .01em;
    padding: 7px 15px; border-radius: 999px; margin-bottom: 12px;
}

.ac-h2 {
    color: var(--green-dark, #064d3b);
    font-size: clamp(20px, 5vw, 26px);
    letter-spacing: -0.4px; margin: 8px 0 14px;
}

/* ---- soft "card" hero used by both pages ---------------------------------- */
.ip-hero, .blog-hero-card {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, #d9f2e8 0%, #eafaf3 45%, #f3fbf7 100%);
    border: 1px solid #dbeee7;
    border-radius: 22px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(6, 77, 59, 0.06);
}
/* faint globe watermark, top-right */
.ip-hero::after, .blog-hero-card::after {
    content: ""; position: absolute; top: -30px; right: -30px;
    width: 190px; height: 190px; opacity: .5; pointer-events: none;
    background-repeat: no-repeat; background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23b7ddce' stroke-width='1.4'><circle cx='50' cy='50' r='38'/><ellipse cx='50' cy='50' rx='16' ry='38'/><ellipse cx='50' cy='50' rx='30' ry='38'/><path d='M12 50h76M18 32h64M18 68h64'/></svg>");
}
.ip-hero > *, .blog-hero-card > * { position: relative; z-index: 1; }

.ip-hero h1, .blog-hero-card h1 {
    color: var(--green-dark, #064d3b);
    font-size: clamp(23px, 5.6vw, 34px);
    line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 10px;
}
.ip-hero p, .blog-hero-card p {
    color: #3f5b52; font-size: 15.5px; margin: 0 0 6px; max-width: 640px;
}
.ip-cred { font-weight: 800; color: var(--green-dark, #064d3b) !important; font-size: 14px !important; margin-top: 10px !important; }

.ip-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ip-hero-actions .btn { flex: 1 1 220px; padding: 14px 18px; font-size: 15px; }
.ip-hero-actions .btn svg { width: 20px; height: 20px; }

/* ---- Your Care Journey ---------------------------------------------------- */
.ip-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ip-step {
    position: relative;
    background: #fff; border: 1px solid #e7f1ec; border-radius: 16px;
    padding: 16px 14px 14px; box-shadow: 0 6px 18px rgba(6,77,59,.05);
    display: flex; flex-direction: column; gap: 8px;
}
.ip-step-num {
    position: absolute; top: 12px; left: 12px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green, #0f8f63); color: #fff; font-weight: 800; font-size: 13px;
}
.ip-step-ico {
    align-self: flex-end;
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--green-soft, #e9fff6); color: var(--green, #0f8f63);
    margin-top: 2px;
}
.ip-step-ico svg { width: 26px; height: 26px; }
.ip-step-body { display: flex; flex-direction: column; gap: 4px; }
.ip-step-body strong { color: var(--green-dark, #064d3b); font-size: 15px; line-height: 1.25; }
.ip-step-body span { color: var(--muted, #62756f); font-size: 13px; line-height: 1.45; }

/* ---- International Patient Services --------------------------------------- */
.ip-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ip-svc {
    background: #fff; border: 1px solid #e7f1ec; border-radius: 16px;
    padding: 16px 12px; text-align: center; box-shadow: 0 6px 18px rgba(6,77,59,.05);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ip-svc-ico {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    background: var(--green-soft, #e9fff6); color: var(--green, #0f8f63);
}
.ip-svc-ico svg { width: 28px; height: 28px; }
.ip-svc strong { color: var(--green-dark, #064d3b); font-size: 14.5px; line-height: 1.25; }
.ip-svc span { color: var(--muted, #62756f); font-size: 12.5px; line-height: 1.4; }

/* ---- Country-specific guidance ------------------------------------------- */
.ip-country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.ip-country {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e7f1ec; border-radius: 14px;
    padding: 15px 16px; box-shadow: 0 4px 14px rgba(6,77,59,.04);
    color: var(--green-dark, #064d3b); font-weight: 800; font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    min-height: 56px;
}
.ip-country:hover { border-color: #bfe3d5; box-shadow: 0 10px 22px rgba(6,77,59,.10); transform: translateY(-1px); }
.ip-country .ip-country-lbl { flex: 1; line-height: 1.25; }
.ip-country > svg { width: 18px; height: 18px; color: #9bb3ab; flex: 0 0 auto; }
.ip-country-ico {
    width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--green-soft, #e9fff6); color: var(--green, #0f8f63);
}
.ip-country-ico svg { width: 20px; height: 20px; }
.ip-country-wide { width: 100%; margin-bottom: 12px; }

/* ---- Plan your treatment CTA --------------------------------------------- */
.ip-plan {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--green-soft, #e9fff6); border: 1px solid #d3ede2;
    border-radius: 18px; padding: 16px 18px;
}
.ip-plan-ico {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center; background: #fff; color: var(--green, #0f8f63);
}
.ip-plan-ico svg { width: 26px; height: 26px; }
.ip-plan-txt { flex: 1; min-width: 170px; display: flex; flex-direction: column; }
.ip-plan-txt strong { color: var(--green-dark, #064d3b); font-size: 15.5px; }
.ip-plan-txt span { color: var(--muted, #62756f); font-size: 13px; }
.ip-plan .btn { flex: 0 0 auto; }

/* =============================================================================
 * Blog page (content-scope) — overrides for the app layout
 * ========================================================================== */
.content-scope .ac-search {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2ede8; border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 8px 22px rgba(6,77,59,.06); margin: 6px 0 14px;
}
.content-scope .ac-search svg { width: 20px; height: 20px; stroke: var(--muted,#62756f); flex: 0 0 auto; }
.content-scope .ac-search input { border: 0; outline: 0; width: 100%; font-size: 15px; background: transparent; color: var(--text,#17342d); }

.content-scope .ac-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.content-scope .ac-chip-btn {
    border: 1.5px solid #cfe4db; background: #fff; color: var(--green-dark,#064d3b);
    border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 13.5px; line-height: 1;
}
.content-scope .ac-chip-btn.on { background: var(--green, #0f8f63); border-color: var(--green,#0f8f63); color: #fff; }

/* Featured article — horizontal card (image left, text right) */
.content-scope .blog-featured {
    display: grid; grid-template-columns: 42% 1fr; gap: 0;
    border: 1px solid #e7f1ec; border-radius: 18px; overflow: hidden;
    box-shadow: 0 10px 26px rgba(6,77,59,.07); margin: 0 0 8px; background: #fff;
}
.content-scope .blog-featured .thumb { aspect-ratio: auto; height: 100%; min-height: 150px; }
.content-scope .blog-featured .body { padding: 16px 16px 18px; }
.content-scope .blog-featured .body h3 { font-size: 1.05rem; line-height: 1.3; margin: 4px 0 8px; color: var(--green-dark,#064d3b); }
.content-scope .blog-featured .body h3 a { color: inherit; }
.content-scope .blog-featured .excerpt { color: var(--muted,#62756f); font-size: .9rem; margin: 0 0 14px; }
.content-scope .blog-featured .btn.primary { padding: 11px 20px; font-size: 14px; }

/* Latest insights grid — one article per row on phones / app view */
.content-scope .post-grid { grid-template-columns: 1fr; gap: 16px; margin: 6px 0 18px; }
.content-scope .post-grid .post-card { border-radius: 16px; }
.content-scope .post-grid .thumb { aspect-ratio: 16 / 10; }
.content-scope .post-grid .body { padding: 12px 12px 14px; }
.content-scope .post-grid .body h2 { font-size: .98rem; line-height: 1.3; }
.content-scope .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.content-scope .card-tags span {
    background: var(--green-soft,#e9fff6); color: var(--green,#0f8f63);
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.content-scope .post-grid .read-more { font-size: .82rem; }

/* Phones / app view: single-column cards, and show the WHOLE cover image
   (covers are 16:9 — match that ratio and use 'contain' so nothing is cropped). */
@media (max-width: 920px) {
    .content-scope .post-grid { grid-template-columns: 1fr; }
    .content-scope .post-grid .thumb {
        aspect-ratio: 16 / 9;          /* matches the 1672x941 cover source */
        background-size: contain;      /* full image visible, never cropped */
        background-position: center;
        background-repeat: no-repeat;
        background-color: #eef4f1;     /* soft fill behind any letterboxing */
    }
    .content-scope .post-grid .body { padding: 14px 16px 16px; }
    .content-scope .post-grid .body h2 { font-size: 1.06rem; }
}

.ac-search-empty { text-align: center; color: var(--muted,#62756f); padding: 22px 0; }

/* Load more / newer */
.ac-loadmore-wrap { text-align: center; margin: 6px 0 14px; }
.ac-loadmore {
    display: inline-block; width: 100%; max-width: 520px;
    padding: 14px 22px; border-radius: 999px;
    border: 1.5px solid #cfe4db; background: #fff; color: var(--green-dark,#064d3b);
    font-weight: 800; font-size: 15px;
    transition: background .15s ease, border-color .15s ease;
}
.ac-loadmore:hover { background: var(--green-soft,#e9fff6); border-color: #bfe3d5; }
.ac-newer { display: inline-block; color: var(--green,#0f8f63); font-weight: 700; font-size: 14px; padding: 4px 0; }

/* =============================================================================
 * Desktop / wide — give the grids more room and cap hero card width.
 * ========================================================================== */
@media (min-width: 921px) {
    .app-content { padding-top: 22px; }
    .section-tight { padding: 22px 0; }
    .ip-steps { grid-template-columns: repeat(3, 1fr); }
    .ip-svc-grid { grid-template-columns: repeat(4, 1fr); }
    .ip-country-grid { grid-template-columns: repeat(2, 1fr); }
    .content-scope .post-grid { grid-template-columns: repeat(3, 1fr); }
    .content-scope .blog-featured { grid-template-columns: 46% 1fr; }
    .content-scope .blog-featured .body { padding: 26px 28px; }
    .content-scope .blog-featured .body h3 { font-size: 1.4rem; }
}

/* very small phones — 1 column reads better for the journey steps */
@media (max-width: 360px) {
    .ip-steps { grid-template-columns: 1fr; }
}
