/* ================================================================
   Global Emergency Numbers — Redesigned UI
   Style: Minimalist, Grand, Atmospheric
   Primary: #1d3557  Accent: #E63946  Base font: 16px  BG: #f8f9fa
   ================================================================ */

:root {
    --ge-blue: #1d3557;
    --ge-red:  #E63946;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #f8f9fa;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}
a { color: #333; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #E63946; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ---- Top bar ---- */
.ge-topbar {
    background: #fff;
    border-bottom: 1px solid #eaeef2;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.ge-brand { display: flex; align-items: center; flex-shrink: 0; }
.ge-logo { height: 36px; width: auto; }
.ge-nav { display: flex; align-items: stretch; gap: 10px; flex: 1; }
.ge-nav a {
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 72px;
    display: block;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.ge-nav a:hover, .ge-nav a.is-active { color: #E63946; border-bottom-color: #E63946; }

/* ---- Language Dropdown ---- */
.ge-lang-dropdown { position: relative; display: inline-block; margin-left: auto; }
.ge-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #eaeef2;
    font-size: 15px;
    color: #1d3557;
    cursor: pointer;
    padding: 8px 16px;
    height: 44px;
    border-radius: 8px;
    transition: background .2s, border-color .2s;
}
.ge-lang-btn:hover { background: #f8f9fa; border-color: #ccd4df; }
.ge-lang-btn.is-open { background: #f4f6f9; border-color: #ccd4df; }
.ge-lang-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ge-lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 6px;   /* invisible bridge so cursor moving down stays inside */
    background: transparent;
    min-width: 140px;
    z-index: 200;
}
.ge-lang-menu.is-open { display: block; }
.ge-lang-menu__inner {
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.ge-lang-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    transition: background .2s, color .2s;
    white-space: nowrap;
    border-bottom: 1px solid #f4f6f9!important;
    line-height: 1.4;
}
.ge-lang-menu a:last-child { border-bottom: none!important; }
.ge-lang-menu a:hover, .ge-lang-menu a.is-active {
    background: #E63946;
    color: #fff!important;
    border-bottom-color: #E63946!important;
}

/* ---- Shell ---- */
.ge-shell { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }

/* ---- Page head ---- */
.ge-page__head {
    background: #fff;
    border: 1px solid #eaeef2;
    padding: 30px 40px;
    margin-bottom: 30px;
    border-radius: 12px;
}
.ge-page__title { font-size: 28px; font-weight: 700; color: #1d3557; line-height: 1.3; }
.ge-page__sub { color: #888; font-size: 16px; margin-top: 8px; }
.ge-bread { font-size: 14px; color: #999; margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ge-bread a { color: #555; }
.ge-bread a:hover { color: #E63946; }
.ge-bread__sep { color: #ccc; margin: 0 2px; }
.ge-bread__current { color: #999; }

/* ---- Section more link ---- */
.ge-section__more { margin-top: 24px; text-align: center; }
.ge-section__more .ge-btn--ghost { padding: 10px 28px; font-size: 15px; }

/* ---- Section title ---- */
.ge-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #1d3557;
    padding: 0 0 0 16px;
    border-left: 4px solid #E63946;
    margin: 40px 0 24px;
    line-height: 1.4;
}

/* ---- Hero block ---- */
.ge-hero {
    background: linear-gradient(135deg, #1d3557 0%, #2a4a73 100%);
    border: none;
    padding: 52px 40px 40px;
    text-align: center;
    margin-bottom: 28px;
    border-radius: 16px;
    color: #fff;
}
.ge-hero__title { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.2; margin: 0 0 12px; }
.ge-hero__subtitle { color: rgba(255,255,255,.80); font-size: 17px; margin: 0 auto 24px; max-width: 600px; line-height: 1.6; }
.ge-hero__search { max-width: 640px; margin: 0 auto 20px; }
.ge-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.ge-detect { margin-top: 10px; min-height: 20px; font-size: 13px; color: rgba(255,255,255,.65); }

/* ---- Buttons ---- */
.ge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid transparent;
    background: #fff;
    color: #1d3557;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all .2s ease;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}
.ge-btn--primary { background: #E63946; color: #fff; border-color: #E63946; }
.ge-btn--primary:hover { background: #c7303c; border-color: #c7303c; color: #fff; }
.ge-btn--navy { background: #1d3557; color: #fff; border-color: #1d3557; }
.ge-btn--navy:hover { background: #112137; border-color: #112137; color: #fff; }
.ge-btn--ghost { background: transparent; border-color: #ccd4df; color: #555; }
.ge-btn--ghost:hover { border-color: #E63946; color: #E63946; background: rgba(230, 57, 70, 0.05); }
.ge-btn--sm { padding: 8px 16px; font-size: 14px; }
.ge-btn--danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.ge-btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
/* Ghost on dark hero background */
.ge-hero .ge-btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.ge-hero .ge-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ---- Cards / Grid ---- */
.ge-grid { display: grid; gap: 24px; }
.ge-grid--countries, .ge-grid--services, .ge-grid--cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ge-card {
    background: #fff;
    border: 1px solid #eaeef2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transition: border-color .2s, transform .2s;
    border-radius: 12px;
}
.ge-card:hover { border-color: #E63946; transform: translateY(-2px); }
.ge-card__flag { font-size: 14px; font-weight: 700; color: #1d3557; text-transform: uppercase; letter-spacing: 0.1em; }
.ge-card__flag-img {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e8eaed;
    display: block;
}
.ge-card__name { font-size: 18px; font-weight: 600; color: #222; margin-top: 4px; }
.ge-card__sub { font-size: 14px; color: #888; }
.ge-card__icon, svg.ge-card__icon { width: 36px !important; height: 36px !important; margin-bottom: 8px; }

/* ---- Travel Card Picker ---- */
/* Toolbar: search + counter */
.tc-picker-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.tc-picker-search { flex: 1; min-width: 200px; }
.tc-status-badge {
    background: #eef3fa;
    border: 1px solid #c8d7ec;
    color: #1d3557;
    border-radius: 20px;
    padding: .3rem .85rem;
    font-size: .85rem;
    white-space: nowrap;
}
.tc-status-badge strong { font-weight: 800; }

/* Country cards grid */
.ge-travel-picker .tc-card {
    background: #fff;
    border: 1.5px solid #e0e5ec;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    user-select: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.ge-travel-picker .tc-card:hover { border-color: #1d3557; box-shadow: 0 2px 8px rgba(29,53,87,.10); }
.ge-travel-picker .tc-card.is-selected {
    border-color: #1d3557;
    background: #eef3fa;
    box-shadow: 0 0 0 2px rgba(29,53,87,.20);
}
/* checkmark badge */
.tc-chk-mark {
    position: absolute;
    top: 9px; right: 9px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid #d0d7e3;
    background: #fff;
    transition: background .15s, border-color .15s;
    display: flex; align-items: center; justify-content: center;
}
.ge-travel-picker .tc-card.is-selected .tc-chk-mark {
    background: #1d3557;
    border-color: #1d3557;
}
.ge-travel-picker .tc-card.is-selected .tc-chk-mark::after {
    content: '';
    display: block;
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
}
.ge-travel-picker .tc-card .ge-card__name { font-size: 14px; margin-top: 2px; padding-right: 22px; }
.ge-travel-picker .tc-card .ge-card__sub { font-size: 12px; }
.ge-travel-picker .tc-card .ge-card__flag { font-size: 12px; }

/* Sticky bottom action bar */
.tc-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1d3557;
    color: #fff;
    padding: .75rem 1.5rem;
    display: none;
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(29,53,87,.2);
    overflow: hidden;
    box-sizing: border-box;
}
.tc-bottom-bar.is-visible { display: block; }
.tc-bottom-bar__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; min-width: 0; overflow: hidden; }
.tc-bottom-bar__label { font-weight: 700; font-size: .95rem; flex: 1; min-width: 0; }
.tc-bottom-bar__label strong { font-size: 1.2rem; }
.tc-bottom-bar__hint { font-size: .82rem; opacity: .7; }
.tc-bottom-bar__actions { display: flex; gap: .5rem; }
.tc-bottom-bar .ge-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.tc-bottom-bar .ge-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.tc-bottom-bar .ge-btn--primary { background: #E63946; border-color: #E63946; }
/* bottom bar padding compensation */
.ge-travel-picker { padding-bottom: 6rem; }

@media (max-width: 600px) {
    .tc-bottom-bar { padding: .75rem 1rem; }
    .tc-bottom-bar__inner { flex-wrap: wrap; }
    .tc-bottom-bar__hint { display: none; }
    .tc-bottom-bar__actions { width: 100%; justify-content: space-between; }
    .tc-bottom-bar .ge-btn { flex: 1; text-align: center; justify-content: center; }
}

/* ---- Offline page ---- */
.ge-offline__list { list-style: none; padding: 0; margin-top: 1.2rem; }
.ge-offline__list li { border-bottom: 1px solid #f0f0f0; }
.ge-offline__link {
    display: block; padding: .55rem 0;
    color: #1d3557; font-size: .95rem; text-decoration: none; text-transform: capitalize;
}
.ge-offline__link:hover { color: #E63946; }

/* ---- A-Z directory ---- */
.ge-az {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 30px;
    background: #fff;
    border: 1px solid #eaeef2;
    margin-bottom: 30px;
    border-radius: 12px;
}
.ge-az a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1d3557;
    background: #f4f6f9;
    transition: background .2s, color .2s;
}
.ge-az a:hover { background: #E63946; color: #fff; }
.ge-az__group { margin-bottom: 40px; }
.ge-az__letter {
    font-size: 24px;
    font-weight: 800;
    color: #1d3557;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #E63946;
}

/* ---- Services tabs bar ---- */
.ge-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.ge-service {
    background: #fff;
    border: 1px solid #eaeef2;
    padding: 24px 20px;
    text-align: center;
    transition: border-color .2s, transform .2s;
    border-radius: 12px;
}
.ge-service:hover { border-color: #1d3557; transform: translateY(-2px); }
.ge-service__icon, svg.ge-service__icon,
.ge-service > svg { width: 40px !important; height: 40px !important; margin: 0 auto 12px; display: block; color: #E63946; }
.ge-service__name { display: block; font-size: 14px; font-weight: 600; color: #1d3557; }

/* ---- Number blocks ---- */
.ge-numblock {
    background: #fff;
    border: 1px solid #eaeef2;
    padding: 28px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.ge-numblock__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f4f6f9;
}
.ge-numblock__head svg { flex-shrink: 0; color: #E63946; }
.ge-numblock__name { font-size: 20px; font-weight: 700; color: #1d3557; }
.ge-numblock__name a { color: inherit; text-decoration: none; }
.ge-numblock__name a:hover { color: #E63946; }
.ge-numblock__list { list-style: none; margin: 0; padding: 0; }

/* Each number row */
.ge-numitem {
    padding: 18px 0;
    border-top: 1px solid #f4f6f9;
}
.ge-numitem:first-child { border-top: 0; padding-top: 0; }

/* ── Large standalone number (main groups) ── */
.ge-numitem__number {
    display: block;
    font-size: 40px;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Courier New", monospace;
    font-weight: 800;
    color: #1d3557;
    letter-spacing: 3px;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 12px;
    transition: color .15s;
}
.ge-numitem__number:hover { color: #E63946; }

/* ── Action row: [Call] [Copy] ── */
.ge-numitem__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Call button */
.ge-numitem__call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E63946;
    color: #fff;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.ge-numitem__call:hover { background: #c7303c; color: #fff; transform: translateY(-1px); }
.ge-numitem__call svg { flex-shrink: 0; }

/* Number inside compact call button — override standalone number styles */
.ge-numitem__call .ge-numitem__number {
    display: inline;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    color: inherit;
}

/* Small call button variant (extra_groups) */
.ge-numitem__call--sm { padding: 7px 13px; font-size: 13px; }
.ge-numitem__call--sm .ge-numitem__number { font-size: 17px; }

/* Copy button */
.ge-numitem__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    border: 1px solid #d0d7e0;
    background: #f8f9fb;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.ge-numitem__copy:hover { background: #eef1f6; border-color: #b0bac8; color: #1d3557; }
.ge-numitem__copy.is-copied { background: #e8f5e9; border-color: #66bb6a; color: #2e7d32; }
.ge-numitem__copy.is-copied .ge-numitem__copy-label::after { content: ' ✓'; }

/* Description below actions */
.ge-numitem__desc {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    line-height: 1.6;
}

/* ── Compact row (extra_groups): call + copy side by side ── */
.ge-numitem__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ge-numitem--compact { padding: 12px 0; }
.ge-numitem--compact:first-child { padding-top: 0; }
.ge-numitem--compact .ge-numitem__desc { margin-top: 6px; }

/* Small block: tighter padding */
.ge-numblock--small { padding: 20px 24px; }
.ge-numblock--small .ge-numblock__head { margin-bottom: 14px; padding-bottom: 10px; }
.ge-numblock--small .ge-numblock__name { font-size: 17px; }

/* ---- Lists Variants ---- */
.ge-listitem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 8px;
    margin-bottom: 12px;
}
.ge-listitem__name { flex: 1; font-weight: 600; font-size: 16px; color: #1d3557; }
.ge-listitem__nums strong { color: #E63946; font-family: ui-monospace, monospace; font-size: 18px; margin-left: 8px; }

/* ---- Features / Intro ---- */
.ge-featured, .ge-guides, .ge-intro {
    background: #fff;
    border: 1px solid #eaeef2;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
}

/* ---- Homepage Search Bar ---- */
.ge-search {
    position: relative;
    width: 100%;
}
.ge-search__wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #d4dae3;
    border-radius: 8px;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.ge-search__wrap:focus-within {
    border-color: #E63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,.12);
    background: #fff;
}
.ge-search__icon {
    flex-shrink: 0;
    margin: 0 10px 0 14px;
    color: #aaa;
    pointer-events: none;
}
.ge-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1d3557;
    padding: 13px 8px;
    outline: none;
    min-width: 0;
}
.ge-search__input::placeholder { color: #aab0bb; }
.ge-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ge-search__btn {
    flex-shrink: 0;
    background: #E63946;
    color: #fff;
    border: none;
    padding: 0 22px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.ge-search__btn:hover { background: #c62b37; }
.ge-search__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d4dae3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
}
.ge-search__dropdown[hidden] { display: none; }
.ge-search__dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #1d3557;
    font-size: 15px;
    transition: background .15s;
}
.ge-search__dropdown li a:hover,
.ge-search__dropdown li.is-active a {
    background: #fef3f4;
    color: #E63946;
}
.ge-search__dd-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #E63946;
    background: #fef3f4;
    border-radius: 4px;
    padding: 2px 6px;
    flex-shrink: 0;
}
.ge-search__dd-sub { font-size: 13px; color: #999; margin-left: auto; }
@media (max-width: 600px) {
    .ge-search-bar { padding: 16px; }
    .ge-search__btn { padding: 0 14px; font-size: 14px; }
}

/* ---- Intro expanded section ---- */
.ge-intro__lead {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 28px;
}
.ge-intro__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.ge-intro__feat {
    background: #f8fafc;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 22px 24px;
}
.ge-intro__feat-icon {
    margin-bottom: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
}
.ge-intro__feat h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 8px;
}
.ge-intro__feat p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.ge-intro__subhead {
    font-size: 17px;
    font-weight: 700;
    color: #1d3557;
    margin: 8px 0 14px;
}
.ge-intro__steps {
    padding-left: 22px;
    margin: 0 0 20px;
}
.ge-intro__steps li {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 6px;
}
.ge-intro__steps li a { color: #E63946; }
.ge-intro__source {
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eaeef2;
    padding-top: 14px;
    margin: 0;
}
@media (max-width: 640px) {
    .ge-intro__features { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.ge-footer {
    background: #fff;
    border-top: 1px solid #eaeef2;
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 15px;
}
.ge-footer__nav { margin: 16px 0; }
.ge-footer__nav a { margin: 0 12px; color: #555; font-weight: 500; }
.ge-footer__nav a:hover { color: #E63946; }
.ge-disclaimer { max-width: 800px; margin: 20px auto 0; font-size: 14px; line-height: 1.8; color: #999; }

/* ---- Guide card grid (list page) ---- */
.ge-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.ge-guide-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 12px;
    padding: 28px 28px 20px;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    text-decoration: none;
    color: inherit;
}
.ge-guide-card:hover {
    border-color: #E63946;
    box-shadow: 0 4px 20px rgba(230,57,70,.10);
    transform: translateY(-2px);
}
.ge-guide-card__body { flex: 1; }
.ge-guide-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 10px;
    line-height: 1.4;
}
.ge-guide-card:hover .ge-guide-card__title { color: #E63946; }
.ge-guide-card__summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ge-guide-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #E63946;
}

/* ---- Guide detail page ---- */
.ge-guide-detail {
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 12px;
    overflow: hidden;
}
.ge-guide-detail__head {
    background: linear-gradient(135deg, #1d3557 0%, #2a4a73 100%);
    padding: 40px 48px 36px;
    color: #fff;
}
.ge-guide-detail__title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.ge-guide-detail__summary {
    font-size: 16px;
    color: rgba(255,255,255,.80);
    margin: 0 0 20px;
    line-height: 1.7;
    max-width: 720px;
}
.ge-guide-detail__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
}
.ge-guide-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ge-guide-detail__body {
    padding: 40px 48px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.ge-guide-detail__body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d3557;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeef2;
}
.ge-guide-detail__body h2:first-child { margin-top: 0; }
.ge-guide-detail__body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1d3557;
    margin: 24px 0 10px;
}
.ge-guide-detail__body p { margin: 0 0 16px; }
.ge-guide-detail__body ul,
.ge-guide-detail__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.ge-guide-detail__body li { margin-bottom: 6px; }
.ge-guide-detail__body strong { color: #1d3557; }
.ge-guide-detail__body a { color: #E63946; text-decoration: underline; }
.ge-guide-detail__body a:hover { color: #c7303c; }
.ge-guide-detail__body dl { margin: 0 0 16px; }
.ge-guide-detail__body dt {
    font-weight: 700;
    color: #1d3557;
    margin-top: 14px;
}
.ge-guide-detail__body dd {
    margin: 4px 0 0 0;
    color: #555;
}
.ge-guide-detail__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.ge-guide-detail__body code {
    background: #f5f7fa;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, monospace;
    font-size: .9em;
    color: #E63946;
}

/* ge-meta line */
.ge-meta {
    font-size: 13px;
    color: #aaa;
    margin: 20px 0 0;
    text-align: right;
}

/* ---- Service category index cards ---- */
.ge-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.ge-svc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8eaed;

    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, transform .18s;
}
.ge-svc-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.ge-svc-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ge-svc-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E63946;
}
.ge-svc-card__count {
    font-size: 12px;
    font-weight: 700;
    color: #E63946;
    background: #fff0f1;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.ge-svc-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 8px;
    line-height: 1.3;
}
.ge-svc-card__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.ge-svc-card__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.ge-svc-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #E63946;
    letter-spacing: 0.01em;
}

/* ---- Country detail hero header with flag ---- */
.ge-country__hero {
    display: flex;
    align-items: center;
    gap: 28px;
}
.ge-country__hero-info { flex: 1; min-width: 0; }
.ge-country__flag-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
}
.ge-country__flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ge-country__flag-iso {
    font-size: 18px;
    font-weight: 800;
    color: #1d3557;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Search Results Page ---- */
.ge-search-page-form {
    display: flex;
    gap: 10px;
    max-width: 680px;
}
.ge-search-page-form .ge-search__wrap { flex: 1; }
.ge-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}
.ge-search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 16px 20px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.ge-search-card:hover {
    border-color: #1d3557;
    box-shadow: 0 4px 12px rgba(29,53,87,.08);
    transform: translateY(-1px);
}
.ge-search-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f4fa;
    color: #1d3557;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ge-search-card__body { flex: 1; }
.ge-search-card__name { display: block; font-size: 1.1rem; font-weight: 700; color: #1d3557; margin-bottom: 2px; }
.ge-search-card__sub { display: block; font-size: .85rem; color: #666; }
.ge-empty-state { text-align: center; padding: 4rem 1rem; color: #888; }
.ge-empty-state svg { margin-bottom: 1rem; }
.ge-empty-state__title { font-size: 18px; font-weight: 700; color: #555; margin: 0 0 8px; }
.ge-empty-state__hint { font-size: 14px; color: #aaa; margin: 0; }

/* ---- Mobile nav toggle (hamburger) ---- */
.ge-nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #eaeef2;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.ge-nav-toggle:hover { background: #f4f6f9; border-color: #ccd4df; }
.ge-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease;
    transform-origin: center;
}
.ge-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ge-nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ge-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Search Page Hero ---- */
.ge-search-hero {
    background: linear-gradient(135deg, #1d3557 0%, #2a4a73 100%);
    border-radius: 16px;
    padding: 44px 48px;
    margin-bottom: 32px;
    color: #fff;
}
.ge-search-hero__title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.3;
}
.ge-search-hero .ge-search__wrap {
    background: #fff;
    border-color: transparent;
    border-radius: 10px;
}
.ge-search-hero .ge-search__wrap:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.ge-search-hero .ge-search__icon { color: #aab0bb; }
.ge-search-hero .ge-search__input { color: #1d3557; font-size: 17px; padding: 14px 8px; }
.ge-search-hero .ge-btn--primary { height: 52px; padding: 0 28px; font-size: 16px; }
/* Result meta line */
.ge-search-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
    flex-wrap: wrap;
}
.ge-search-meta__count {
    background: #E63946;
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 14px;
    flex-shrink: 0;
}
.ge-search-meta__label { line-height: 1.5; }
.ge-search-meta__label strong { color: #1d3557; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* ── Navigation: hamburger menu ── */
    .ge-topbar { padding: 0 16px; height: 60px; flex-wrap: nowrap; position: relative; gap: 8px; }
    .ge-brand { flex: 1; }
    .ge-nav-toggle { display: flex; }
    .ge-nav {
        display: none;
        position: absolute;
        top: 60px; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        border-top: 1px solid #eaeef2;
        border-bottom: 3px solid #E63946;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        z-index: 99;
        gap: 0;
        padding: 6px 0;
    }
    .ge-nav.is-open { display: flex; }
    .ge-nav a {
        line-height: 1;
        padding: 15px 24px;
        font-size: 16px;
        border-bottom: 1px solid #f4f6f9;
        border-left: 3px solid transparent;
        white-space: normal;
    }
    .ge-nav a:last-child { border-bottom: none; }
    .ge-nav a:hover, .ge-nav a.is-active { border-bottom-color: #f4f6f9; border-left-color: #E63946; color: #E63946; background: #fef4f4; }
    /* Compact language button — show only globe icon */
    .ge-lang-dropdown { margin-left: 0; }
    .ge-lang-btn span, .ge-lang-btn svg:last-child { display: none; }
    .ge-lang-btn { padding: 8px 10px; min-width: 44px; justify-content: center; }
    /* ── Content ── */
    .ge-hero { padding: 40px 20px; }
    .ge-hero__title { font-size: 28px; }
    .ge-shell { padding: 20px 16px 60px; }
    .ge-page__head { padding: 24px; }
    .ge-guide-grid { grid-template-columns: 1fr; }
    .ge-guide-detail__head { padding: 28px 24px 24px; }
    .ge-guide-detail__title { font-size: 22px; }
    .ge-guide-detail__body { padding: 28px 24px; }
    .ge-country__hero { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ge-country__flag-wrap { width: 72px; height: 52px; }
    .ge-search-hero { padding: 28px 24px; border-radius: 12px; margin-bottom: 20px; }
    .ge-search-hero__title { font-size: 22px; margin-bottom: 12px; }
    .ge-search-hero .ge-btn--primary { height: 48px; padding: 0 20px; }
    .ge-search-page-form { flex-direction: column; gap: 8px; max-width: 100%; }
    .ge-search-page-form .ge-btn { width: 100%; }
    .ge-search-card { padding: 12px 14px; gap: 12px; }
    .ge-search-card__icon { width: 36px; height: 36px; }
    .ge-search-card__icon svg { width: 18px; height: 18px; }
}

/* ---- FAQ Accordion ---- */
.ge-faq {
  
    margin-top: 30px;
}
.ge-faq__list { margin-top: 8px;   background: #fff;
    border: 1px solid #eaeef2;
    border-radius: 12px;
    padding: 36px 40px;}
.ge-faq__item {
    border-bottom: 1px solid #f0f3f8;
}
.ge-faq__item:last-child { border-bottom: none; }
.ge-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1d3557;
    cursor: pointer;
    transition: color .2s;
    line-height: 1.5;
}
.ge-faq__q:hover { color: #E63946; }
.ge-faq__q[aria-expanded="true"] { color: #E63946; }
.ge-faq__chevron {
    flex-shrink: 0;
    color: #999;
    transition: transform .25s ease;
}
.ge-faq__q[aria-expanded="true"] .ge-faq__chevron {
    transform: rotate(180deg);
    color: #E63946;
}
.ge-faq__a {
    display: none;
    overflow: hidden;
}
.ge-faq__a.is-open { display: block; }
.ge-faq__a-inner {
    padding: 0 4px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.ge-faq__a-inner strong { color: #E63946; font-size: 17px; }

@media (max-width: 768px) {
    .ge-faq { padding: 24px 20px; }
    .ge-faq__q { font-size: 15px; }
}

.ge-search-card__type {
    margin-left: auto; /* Push to the right */
    white-space: nowrap;
}
.ge-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ge-tag--country { background: #e0f2fe; color: #0284c7; }
.ge-tag--service { background: #dcfce7; color: #16a34a; }
.ge-tag--number { background: #fee2e2; color: #dc2626; }
.ge-tag--guide  { background: #fef9c3; color: #a16207; }
