/* ==========================================================================
   Wiki Country Page — Modern Layout
   ========================================================================== */

/* ---------- Hero ---------- */
.country-hero {
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.country-hero--us {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5298 50%, #1e3c72 100%);
}

.country-hero__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.country-hero__text {
    flex: 1 1 55%;
}

.country-hero__visual {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.country-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    padding: .35rem 1rem;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 1rem;
}

.country-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.country-hero__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: .92;
    margin-bottom: .75rem;
}

.country-hero__lead--muted {
    opacity: .72;
    font-size: .95rem;
}

.country-hero__actions {
    margin-top: 1.75rem;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
    background: #f0f4f8;
    border-radius: 14px;
    margin: -1.2rem 0 2.5rem;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.trust-strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
}

.trust-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    background: #c6f6d5;
    color: #22543d;
}

.trust-strip__item--warn .trust-strip__icon {
    background: #fed7d7;
    color: #9b2c2c;
}

/* ---------- Sections ---------- */
.wiki-section {
    padding: 3rem 0;
}

.wiki-section--alt {
    background: #f8fafc;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 1.5rem 0;
}

.wiki-section__header {
    margin-bottom: 2rem;
}

.wiki-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.wiki-section__title-icon {
    font-size: 1.5rem;
    color: #2a5298;
}

.wiki-section__subtitle {
    color: #718096;
    font-size: .95rem;
    margin-top: .4rem;
    max-width: 700px;
}

/* ---------- Spec Grid ---------- */
.specs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    transition: box-shadow .2s, transform .2s;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.spec-card__icon {
    font-size: 1.5rem;
    margin-bottom: .35rem;
}

.spec-card__icon .material-symbols-outlined {
    font-size: 1.5rem;
    color: #2a5298;
}

.spec-card__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #718096;
    font-weight: 600;
}

.spec-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-top: .2rem;
}

.spec-card__value--warn {
    color: #c53030;
}

.spec-card__sub {
    font-weight: 400;
    color: #a0aec0;
    font-size: .85rem;
}

/* ---------- Do's and Don'ts ---------- */
.dos-donts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.dos-donts__col {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
}

.dos-donts__col--do {
    border-color: #c6f6d5;
    background: #f0fff4;
}

.dos-donts__col--dont {
    border-color: #fed7d7;
    background: #fff5f5;
}

.dos-donts__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    font-weight: 700;
    font-size: .95rem;
}

.dos-donts__header--do {
    background: #c6f6d5;
    color: #22543d;
}

.dos-donts__header--dont {
    background: #fed7d7;
    color: #9b2c2c;
}

.dos-donts__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    font-weight: 800;
    font-size: .8rem;
}

/* ---------- Requirement Cards ---------- */
.req-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.req-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
    transition: box-shadow .25s, transform .25s;
}

.req-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.req-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.req-card--quality .req-card__accent { background: linear-gradient(90deg, #667eea, #764ba2); }
.req-card--appearance .req-card__accent { background: linear-gradient(90deg, #38b2ac, #4299e1); }
.req-card--mistakes .req-card__accent { background: linear-gradient(90deg, #ed8936, #e53e3e); }

.req-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .85rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.req-card__title-icon {
    font-size: 1.25rem;
    vertical-align: middle;
}

.req-card--quality .req-card__title-icon { color: #667eea; }
.req-card--appearance .req-card__title-icon { color: #38b2ac; }
.req-card--mistakes .req-card__title-icon { color: #e53e3e; }

.req-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.req-card__list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .6rem;
    font-size: .9rem;
    color: #4a5568;
    line-height: 1.5;
}

.req-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: 700;
}

.req-card__list--warn li::before {
    content: '✕';
    color: #e53e3e;
}

/* ---------- Document Cards ---------- */
.doc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow .25s, transform .25s;
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.doc-card__icon {
    font-size: 2.2rem;
    margin-bottom: .6rem;
}

.doc-card__icon .material-symbols-outlined {
    font-size: 2.2rem;
    color: #2a5298;
}

.doc-card__title {
    font-size: .92rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: .5rem;
}

.doc-card__size {
    font-size: .8rem;
    color: #718096;
}

.doc-card__count {
    display: inline-block;
    margin-top: .5rem;
    background: #ebf8ff;
    color: #2b6cb0;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .65rem;
    border-radius: 20px;
}

/* ---------- Steps Timeline ---------- */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-item__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .35);
}

.step-item__content {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
}

.step-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin: .75rem 0 .4rem;
}

.step-item__desc {
    font-size: .85rem;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* ---------- CTA ---------- */
.cta-section {
    margin: 3rem 0 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5298 50%, #1e3c72 100%);
    padding: 3.5rem 2.5rem;
    color: #fff;
}

.cta-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cta-section__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.cta-section__desc {
    font-size: .95rem;
    opacity: .85;
    max-width: 560px;
    margin: 0;
}

/* ---------- Image Sizing ---------- */

/* Hero illustration */
.country-hero__img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

/* Spec diagram */
.specs-layout__img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Do's / Don'ts example photos */
.dos-donts__img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: .75rem auto;
}

/* Step illustrations */
.step-item__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: .5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .country-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .country-hero__actions {
        justify-content: center;
        display: flex;
    }

    .country-hero__img {
        max-width: 300px;
    }

    .specs-layout {
        grid-template-columns: 1fr;
    }

    .specs-layout__img {
        max-width: 260px;
    }

    .req-cards {
        grid-template-columns: 1fr;
    }

    .doc-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline::before {
        display: none;
    }

    .cta-section__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .country-hero {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }

    .country-hero__img {
        max-width: 220px;
    }

    .trust-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .specs-layout__img {
        max-width: 200px;
    }

    .dos-donts {
        grid-template-columns: 1fr;
    }

    .dos-donts__img {
        max-width: 200px;
    }

    .doc-cards {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }
}
