.pn-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(85,171,215,0.35), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 110%, rgba(37,117,252,0.4), transparent 60%),
        linear-gradient(150deg, var(--dark) 0%, var(--primary) 62%, #1a4f86 100%);
    padding: 72px 0 58px;
    text-align: center;
}

.pn-hero-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.pn-hero-blob-1 {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, rgba(85,171,215,0.5), transparent 70%);
}

.pn-hero-blob-2 {
    width: 360px;
    height: 360px;
    bottom: -240px;
    left: -120px;
    background: radial-gradient(circle, rgba(37,117,252,0.4), transparent 70%);
}

.pn-hero-dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 10%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 10%, #000 30%, transparent 100%);
    pointer-events: none;
}

.pn-hero-inner {
    position: relative;
    z-index: 1;
}

.pn-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pn-hero-eyebrow svg { color: var(--accent); flex-shrink: 0; }

.pn-hero-title {
    color: var(--white);
    font-size: clamp(1.3rem, 3.2vw, 2.2rem);
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto 16px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.pn-hero-title span { color: var(--accent); }

.pn-hero-sub {
    color: #cfd9f0;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 1.65;
    text-wrap: balance;
}

.pn-hero-search {
    max-width: 580px;
    margin: 0 auto 36px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    box-shadow: 0 24px 50px rgba(4,26,87,0.32);
    border: 1px solid rgba(255,255,255,0.5);
}

.pn-hero-search-icon { color: var(--primary); flex-shrink: 0; }

.pn-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.88rem;
    background: transparent;
    color: var(--text-dark);
}

.pn-hero-stats {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 90%;
    margin: 0 auto;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 16px 28px;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 34px rgba(4,26,87,0.25);
}

.pn-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0 20px;
}

.pn-hero-stat strong { color: var(--white); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.pn-hero-stat span { color: #cfd9f0; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.4px; }

.pn-hero-stat-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.18); }

@media (max-width: 1024px) {
    .pn-hero { padding: 56px 0 44px; }
}

@media (max-width: 768px) {
    .pn-hero-title { white-space: normal; }
}

@media (max-width: 640px) {
    .pn-hero { padding: 44px 0 36px; }
    .pn-hero-title { white-space: normal; }
    .pn-hero-search { flex-wrap: wrap; padding: 12px; }
    .pn-hero-search input { font-size: 16px; min-width: 0; }
    .pn-hero-stats { gap: 10px 4px; padding: 14px 16px; }
    .pn-hero-stat { padding: 0 12px; }
    .pn-hero-stat strong { font-size: 1.1rem; }
}

@media (max-width: 380px) {
    .pn-hero-stats { flex-direction: column; }
    .pn-hero-stat-divider { width: 100%; height: 1px; }
}

.pn-tabs-wrapper {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: -webkit-sticky;
    position: sticky;
    top: 72px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pn-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: none;
}

.pn-tabs-inner::-webkit-scrollbar { display: none; }

.pn-tab-btn {
    background: var(--light-bg);
    border: none;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.pn-tab-btn:hover { background: #e4ecf3; color: var(--primary); }

.pn-tab-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37,117,252,0.3);
}

.pn-tab-badge {
    background: rgba(255,255,255,0.6);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}

.pn-tab-btn.active .pn-tab-badge { background: rgba(255,255,255,0.9); color: var(--primary); }

@media (max-width: 640px) {
    .pn-tabs-inner { justify-content: flex-start; gap: 6px; }
    .pn-tab-btn { padding: 8px 16px; font-size: 0.85rem; }
}

.pn-showing-section {
    background: var(--white);
    padding: 20px 0 0;
    /* Anchor point used by JS scrollToResults() so that switching a
       region tab or a sidebar country always lands the user right
       above the results instead of leaving them scrolled elsewhere. */
    scroll-margin-top: 150px;
}

.pn-showing-line {
    color: var(--text-light);
    font-size: 0.86rem;
    margin: 0 0 16px;
    text-align: left;
}

.pn-explore { padding-bottom: 40px; }

/* ---------- Sidebar + Content layout ---------- */

.pn-sidebar-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.pn-country-sidebar {
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--white);
    border: 1px solid #d7e6fb;
    border-radius: 16px;
    padding: 10px;
    max-height: 640px;
    overflow-y: auto;
    position: sticky;
    top: 140px;
    box-shadow: 0 10px 24px rgba(20,40,70,0.06);
}

.pn-country-sidebar::-webkit-scrollbar { width: 6px; }
.pn-country-sidebar::-webkit-scrollbar-thumb { background: #d7e6fb; border-radius: 10px; }

.pn-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 11px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pn-sidebar-item:hover { background: var(--light-bg); }

.pn-sidebar-item.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(37,117,252,0.28);
}

.pn-sidebar-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pn-sidebar-flag img { width: 100%; height: 100%; object-fit: cover; }

.pn-sidebar-flag-emoji { font-size: 0.95rem; line-height: 1; }

.pn-sidebar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pn-sidebar-text strong {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pn-sidebar-text span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.pn-sidebar-item.active .pn-sidebar-text strong,
.pn-sidebar-item.active .pn-sidebar-text span { color: var(--white); }

.pn-country-content {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border: 1px solid #d7e6fb;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 10px 24px rgba(20,40,70,0.06);
}

.pn-content-panel { display: none; }
.pn-content-panel.active {
    display: block;
    animation: pnFadeIn 0.3s ease;
}

@keyframes pnFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pn-content-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f4f8;
}

.pn-content-head-flag {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--light-bg);
    box-shadow: 0 4px 10px rgba(20,40,70,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .pn-content-head-flag is now an <a> — give it a subtle affordance */
a.pn-content-head-flag:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(20,40,70,0.22);
}

.pn-content-head-flag img { width: 100%; height: 100%; object-fit: cover; }
.pn-content-head-flag-emoji { font-size: 1.6rem; line-height: 1; }

.pn-content-head-text strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
}

.pn-content-head-title-link {
    display: block;
    transition: color 0.2s ease;
}

.pn-content-head-title-link:hover strong {
    color: var(--primary);
}

.pn-content-head-text span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: #eaf2fb;
    padding: 3px 10px;
    border-radius: 20px;
}

.pn-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pn-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.pn-tier-premium { background: #fdf3e4; color: #b5790f; border-color: #f5e3c2; }
.pn-tier-moderate { background: #eaf2fb; color: var(--primary); border-color: #d7e6fb; }
.pn-tier-budget { background: #eafaf0; color: #2e8b57; border-color: #cdeedb; }
.pn-tag-outline { background: var(--light-bg); color: var(--text-light); border-color: #e5e9ef; }

.pn-content-panel p.pn-content-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 18px;
}

.pn-country-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.pn-country-link:hover {
    color: var(--secondary);
    gap: 10px;
}

.pn-uni-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.pn-uni-grid::-webkit-scrollbar { width: 6px; }
.pn-uni-grid::-webkit-scrollbar-thumb { background: #d7e6fb; border-radius: 10px; }

.pn-uni-grid span {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 0;
    font-size: 0.87rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f4f8;
    line-height: 1.45;
}

.pn-uni-grid span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 7px;
}

.pn-no-results {
    display: none;
    text-align: center;
    background: var(--white);
    border: 1px solid #d7e6fb;
    border-radius: 16px;
    padding: 54px 24px;
    box-shadow: 0 10px 24px rgba(20,40,70,0.06);
}

.pn-no-results-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pn-no-results h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
}

.pn-no-results p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto;
}

.pn-sidebar-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.84rem;
    padding: 24px 12px;
}

@media (max-width: 1024px) {
    .pn-country-sidebar { flex: 0 0 230px; }
    .pn-uni-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .pn-sidebar-layout { flex-direction: column; }
    .pn-country-sidebar {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        position: static;
        gap: 6px;
    }
    .pn-sidebar-item { flex-shrink: 0; width: auto; white-space: nowrap; }
    .pn-sidebar-text strong { max-width: 140px; }
    .pn-country-content { padding: 22px 20px; }
}

@media (max-width: 640px) {
    .pn-content-head { gap: 12px; }
    .pn-content-head-flag { width: 42px; height: 42px; }
    .pn-content-head-text strong { font-size: 1.08rem; }
    .pn-uni-grid { max-height: 440px; }
}

.pn-quickcta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--dark), var(--primary));
    border-radius: 22px;
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pn-quickcta::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,171,215,0.28), transparent 70%);
    pointer-events: none;
}

.pn-quickcta-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pn-quickcta-left { display: flex; align-items: flex-start; gap: 16px; }

.pn-quickcta-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pn-quickcta-left h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.pn-quickcta-left p { color: #cfd9f0; font-size: 0.9rem; max-width: 460px; line-height: 1.55; margin: 0; }

.pn-quickcta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.pn-quickcta-btn-light,
.pn-quickcta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.pn-quickcta-btn-light { background: var(--white); color: var(--primary); }

.pn-quickcta-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    color: var(--primary);
}

.pn-quickcta-btn-outline { border: 1.5px solid rgba(255,255,255,0.45); color: var(--white); background: transparent; }

.pn-quickcta-btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

.pn-quickcta-trust {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px 28px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.pn-quickcta-trust span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #eaf1ff;
    white-space: nowrap;
}

.pn-quickcta-trust svg {
    color: var(--accent);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 3px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pn-quickcta { padding: 28px 24px; }
    .pn-quickcta-top { flex-direction: column; align-items: flex-start; }
    .pn-quickcta-actions { width: 100%; }
    .pn-quickcta-btn-light, .pn-quickcta-btn-outline { flex: 1; justify-content: center; }
}

.consult-section {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    padding: 55px 0;
}

.consult-section h2 {
    color: var(--white);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.consult-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.consult-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.consult-field { display: flex; flex-direction: column; gap: 6px; }
.consult-field.full { grid-column: 1 / -1; }

.consult-field label { font-size: 0.78rem; font-weight: 600; color: var(--dark); }

.consult-field input,
.consult-field select,
.consult-field textarea {
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.consult-field input:focus,
.consult-field select:focus,
.consult-field textarea:focus { border-color: var(--primary); }

.consult-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consult-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37,117,252,0.35);
}

@media (max-width: 600px) {
    .consult-form-grid { grid-template-columns: 1fr; }
    .consult-form { padding: 22px; }
}