/*
Theme Name: Planning for Europe
Theme URI: https://planningforeurope.com
Author: Team Planning For Europe / Pardeep Patel
Author URI: https://planningforeurope.com
Description: Editorial, modern, and high-performance travel, study, and relocation guide theme for PlanningForEurope.com. Features a distraction-free 80% article post content layout with no sidebar, built-in verified page views counter, dedicated Europe dashboard menu, tab-isolated settings panel with no-overwrite guarantee, in-content percentage AdSense slots, subscriber management with CSV export, and contact message archive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planningforeurope
Tags: travel, blog, news, grid-layout, one-column, custom-colors, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   1. Design System & CSS Custom Properties (From Stitch Project)
   ========================================================================== */
:root {
    --pfe-primary: #1B4965;         /* Mediterranean Azure */
    --pfe-primary-dark: #00324B;    /* Deep Sea */
    --pfe-primary-light: #C9E6FF;   /* Soft Shoreline */
    --pfe-secondary: #0F2B48;       /* Continental Deep Navy */
    --pfe-secondary-soft: #476080;  /* Slate Blue */
    --pfe-accent: #E07A5F;          /* Terracotta Sunset */
    --pfe-accent-hover: #C55E44;
    --pfe-ochre: #F4A261;           /* Golden Sand / Recommendations */
    --pfe-sage: #81B29A;            /* Sage Olive / Visas & Verified */
    --pfe-sage-dark: #2A5A43;
    --pfe-sky: #62B6CB;             /* Soft Sky */
    
    --pfe-bg: #F8F9FA;              /* Crisp Off-White */
    --pfe-bg-warm: #FAF7F2;         /* Warm Editorial Tint */
    --pfe-surface: #FFFFFF;         /* Pure White Card Surface */
    --pfe-surface-tint: #EFF4FF;    /* Subtle Azure Wash */
    --pfe-border: #E5E7EB;          /* Light Divider */
    --pfe-border-strong: #CBD5E1;
    
    --pfe-text: #1F2937;            /* Deep Slate Charcoal */
    --pfe-text-muted: #4B5563;      /* Muted Charcoal */
    --pfe-text-light: #9CA3AF;      /* Soft Grey */
    
    --pfe-font-serif: 'Newsreader', Georgia, Cambria, serif;
    --pfe-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --pfe-radius-sm: 6px;
    --pfe-radius-md: 10px;
    --pfe-radius-lg: 16px;
    --pfe-radius-xl: 24px;
    --pfe-radius-pill: 9999px;
    
    --pfe-shadow-sm: 0 1px 3px rgba(15, 43, 72, 0.05);
    --pfe-shadow-md: 0 4px 20px -2px rgba(15, 43, 72, 0.06), 0 2px 6px -1px rgba(15, 43, 72, 0.02);
    --pfe-shadow-lg: 0 12px 32px -4px rgba(15, 43, 72, 0.08), 0 4px 12px -2px rgba(15, 43, 72, 0.03);
    --pfe-shadow-xl: 0 24px 48px -12px rgba(15, 43, 72, 0.14);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--pfe-font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--pfe-text);
    background-color: var(--pfe-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Layout Containers & Grid Architecture
   ========================================================================== */
.pfe-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.pfe-container-wide {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* 
   CRITICAL REQUIREMENT:
   Article post content text width stretches at 80% of total width with NO sidebar!
*/
.container-single-80 {
    width: 80%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 1280px) {
    .container-single-80 {
        width: 86%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .container-single-80 {
        width: 92%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .container-single-80 {
        width: 96%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==========================================================================
   3. Typography & Headings
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--pfe-secondary);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
}

.pfe-editorial-serif {
    font-family: var(--pfe-font-serif);
    font-weight: 500;
    letter-spacing: -0.015em;
}

a {
    color: var(--pfe-primary);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--pfe-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */
.pfe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--pfe-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--pfe-radius-pill);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-decoration: none;
    line-height: 1;
}

.pfe-btn-primary {
    background-color: var(--pfe-primary);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(27, 73, 101, 0.25);
}

.pfe-btn-primary:hover {
    background-color: var(--pfe-secondary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 43, 72, 0.3);
}

.pfe-btn-accent {
    background-color: var(--pfe-accent);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.25);
}

.pfe-btn-accent:hover {
    background-color: var(--pfe-accent-hover);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.pfe-btn-secondary, .pfe-btn-ghost {
    background-color: transparent;
    color: var(--pfe-primary) !important;
    border: 1.5px solid var(--pfe-primary);
}

.pfe-btn-secondary:hover, .pfe-btn-ghost:hover {
    background-color: rgba(27, 73, 101, 0.08);
    color: var(--pfe-secondary) !important;
}

.pfe-btn-white {
    background-color: #FFFFFF;
    color: var(--pfe-primary) !important;
    box-shadow: var(--pfe-shadow-md);
}

.pfe-btn-white:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: var(--pfe-shadow-lg);
}

/* Pill Badges */
.pfe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--pfe-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.pfe-badge-primary {
    background-color: rgba(27, 73, 101, 0.12);
    color: var(--pfe-primary);
}

.pfe-badge-accent {
    background-color: rgba(224, 122, 95, 0.15);
    color: #B9472B;
}

.pfe-badge-sage {
    background-color: rgba(129, 178, 154, 0.2);
    color: var(--pfe-sage-dark);
}

.pfe-badge-ochre {
    background-color: rgba(244, 162, 97, 0.2);
    color: #B25D18;
}

/* PROMINENT PAGE VIEW COUNT BADGE */
.pfe-chip-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.14) 0%, rgba(244, 162, 97, 0.18) 100%);
    color: #A8452D;
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 4px 12px;
    border-radius: var(--pfe-radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pfe-chip-views svg {
    color: #E07A5F;
}

/* ==========================================================================
   5. Global Header & Navigation
   ========================================================================== */
.pfe-site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--pfe-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.pfe-site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.08);
}

/* Top Notification / Country Ticker Bar */
.pfe-top-bar {
    background-color: var(--pfe-secondary);
    color: #E2E8F0;
    font-size: 0.8125rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pfe-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pfe-top-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pfe-top-ticker-badge {
    background-color: var(--pfe-accent);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--pfe-radius-pill);
    text-transform: uppercase;
}

.pfe-top-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pfe-top-links a {
    color: #CBD5E1;
    font-size: 0.8125rem;
}

.pfe-top-links a:hover {
    color: #FFFFFF;
}

/* Main Navigation Bar */
.pfe-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

/* Brand Logo */
.pfe-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pfe-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pfe-primary) 0%, var(--pfe-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(27, 73, 101, 0.25);
}

.pfe-brand-text {
    display: flex;
    flex-direction: column;
}

.pfe-brand-title {
    font-family: var(--pfe-font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--pfe-secondary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pfe-brand-title span {
    color: var(--pfe-accent);
}

.pfe-brand-tagline {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--pfe-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pfe-custom-logo-img {
    max-height: 48px;
    width: auto;
}

/* Desktop Menu Links */
.pfe-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.pfe-nav-menu > li {
    position: relative;
}

.pfe-nav-menu > li > a {
    color: var(--pfe-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.pfe-nav-menu > li > a:hover,
.pfe-nav-menu > li.current-menu-item > a {
    color: var(--pfe-accent);
}

/* Submenu Dropdown */
.pfe-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-md);
    box-shadow: var(--pfe-shadow-lg);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.pfe-nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pfe-nav-menu .sub-menu li a {
    padding: 8px 18px;
    display: block;
    color: var(--pfe-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.pfe-nav-menu .sub-menu li a:hover {
    background-color: var(--pfe-surface-tint);
    color: var(--pfe-primary);
}

/* Header Action Right */
.pfe-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pfe-search-trigger-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--pfe-radius-pill);
    background-color: var(--pfe-bg);
    border: 1px solid var(--pfe-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pfe-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pfe-search-trigger-btn:hover {
    background-color: var(--pfe-surface-tint);
    color: var(--pfe-primary);
    border-color: var(--pfe-primary);
}

.pfe-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--pfe-border);
    border-radius: 8px;
    cursor: pointer;
}

.pfe-hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--pfe-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   6. Mobile Off-Canvas Drawer Menu
   ========================================================================== */
.pfe-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.pfe-mobile-drawer.is-active {
    visibility: visible;
    opacity: 1;
}

.pfe-drawer-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 43, 72, 0.65);
    backdrop-filter: blur(4px);
}

.pfe-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background-color: #FFFFFF;
    box-shadow: var(--pfe-shadow-xl);
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pfe-mobile-drawer.is-active .pfe-drawer-content {
    transform: translateX(0);
}

.pfe-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pfe-border);
    margin-bottom: 20px;
}

.pfe-drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pfe-text-muted);
}

.pfe-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pfe-mobile-menu li a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pfe-secondary);
    border-bottom: 1px solid #F1F5F9;
}

/* ==========================================================================
   7. Homepage (Front Page) Styles
   ========================================================================== */
.pfe-hero-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FA 100%);
    padding: 64px 0 72px 0;
    border-bottom: 1px solid var(--pfe-border);
    position: relative;
    overflow: hidden;
}

.pfe-hero-content {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.pfe-hero-headline {
    font-family: var(--pfe-font-serif);
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--pfe-secondary);
    margin: 16px 0 20px 0;
    letter-spacing: -0.02em;
}

.pfe-hero-subhead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--pfe-text-muted);
    margin-bottom: 36px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Interactive Hero Search Widget */
.pfe-hero-search-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--pfe-radius-xl);
    box-shadow: var(--pfe-shadow-lg);
    border: 1px solid var(--pfe-border);
    margin-bottom: 24px;
}

.pfe-search-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pfe-search-tab {
    background: var(--pfe-bg);
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-pill);
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pfe-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pfe-search-tab.is-active, .pfe-search-tab:hover {
    background: var(--pfe-primary);
    color: #FFFFFF;
    border-color: var(--pfe-primary);
}

.pfe-search-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.pfe-input-group {
    position: relative;
    text-align: left;
}

.pfe-input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pfe-text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.pfe-input-control {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    border: 1.5px solid var(--pfe-border);
    border-radius: var(--pfe-radius-md);
    font-family: var(--pfe-font-sans);
    font-size: 0.9375rem;
    color: var(--pfe-text);
    background: #FFFFFF;
    transition: border-color 0.2s ease;
}

.pfe-input-control:focus {
    outline: none;
    border-color: var(--pfe-primary);
    box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.15);
}

.pfe-trending-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--pfe-text-muted);
}

.pfe-pill-link {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--pfe-border);
    padding: 4px 12px;
    border-radius: var(--pfe-radius-pill);
    color: var(--pfe-secondary);
    font-weight: 500;
}

.pfe-pill-link:hover {
    background: #FFFFFF;
    border-color: var(--pfe-primary);
    color: var(--pfe-primary);
}

/* Stats Ticker */
.pfe-stats-ticker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(15, 43, 72, 0.08);
}

.pfe-stat-item {
    text-align: center;
}

.pfe-stat-number {
    font-family: var(--pfe-font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pfe-secondary);
    line-height: 1;
    margin-bottom: 6px;
}

.pfe-stat-label {
    font-size: 0.8125rem;
    color: var(--pfe-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Destination Highlights Section */
.pfe-section {
    padding: 72px 0;
}

.pfe-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.pfe-section-title {
    font-family: var(--pfe-font-serif);
    font-size: 2.25rem;
    color: var(--pfe-secondary);
    margin: 8px 0 0 0;
}

.pfe-destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pfe-destination-card {
    background: #FFFFFF;
    border-radius: var(--pfe-radius-lg);
    border: 1px solid var(--pfe-border);
    box-shadow: var(--pfe-shadow-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.pfe-destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pfe-shadow-lg);
    border-color: var(--pfe-primary-light);
}

.pfe-dest-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #E2E8F0;
}

.pfe-dest-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pfe-destination-card:hover .pfe-dest-img-wrap img {
    transform: scale(1.05);
}

.pfe-dest-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.pfe-dest-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pfe-dest-title {
    font-family: var(--pfe-font-serif);
    font-size: 1.45rem;
    margin: 0 0 8px 0;
    color: var(--pfe-secondary);
}

.pfe-dest-desc {
    font-size: 0.875rem;
    color: var(--pfe-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex: 1;
}

.pfe-dest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--pfe-border);
    padding-top: 12px;
    font-size: 0.8125rem;
    color: var(--pfe-primary);
    font-weight: 600;
}

/* Four Pillars Grid */
.pfe-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pfe-pillar-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--pfe-shadow-md);
    transition: all 0.3s ease;
}

.pfe-pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--pfe-primary);
}

.pfe-pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--pfe-surface-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pfe-primary);
    margin-bottom: 20px;
}

.pfe-pillar-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.pfe-pillar-desc {
    font-size: 0.875rem;
    color: var(--pfe-text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Article Cards Grid (Homepage, Category, Search, Author) */
.pfe-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pfe-article-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-lg);
    box-shadow: var(--pfe-shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pfe-article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pfe-shadow-lg);
    border-color: var(--pfe-primary-light);
}

.pfe-card-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #E2E8F0;
}

.pfe-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pfe-article-card:hover .pfe-card-thumb-wrap img {
    transform: scale(1.05);
}

.pfe-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.pfe-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pfe-card-title {
    font-family: var(--pfe-font-serif);
    font-size: 1.375rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
    color: var(--pfe-secondary);
}

.pfe-card-title a {
    color: inherit;
}

.pfe-card-title a:hover {
    color: var(--pfe-primary);
}

.pfe-card-excerpt {
    font-size: 0.9rem;
    color: var(--pfe-text-muted);
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex: 1;
}

.pfe-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--pfe-border);
    padding-top: 14px;
    font-size: 0.8125rem;
    color: var(--pfe-text-muted);
}

.pfe-card-author-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfe-card-author-inline img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.pfe-card-author-name {
    font-weight: 600;
    color: var(--pfe-secondary);
}

/* ==========================================================================
   8. SINGLE ARTICLE LAYOUT (CRITICAL: 80% WIDTH, NO SIDEBAR, VIEW COUNT)
   ========================================================================== */
.pfe-single-article-wrapper {
    background-color: var(--pfe-bg);
    padding: 48px 0 80px 0;
}

/* Slim Reading Progress Bar */
.pfe-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pfe-primary) 0%, var(--pfe-accent) 100%);
    width: 0%;
    z-index: 1002;
    transition: width 0.1s linear;
}

/* Breadcrumbs */
.pfe-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--pfe-text-light);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pfe-breadcrumbs a {
    color: var(--pfe-text-muted);
}

.pfe-breadcrumbs a:hover {
    color: var(--pfe-primary);
}

.pfe-bc-sep {
    color: var(--pfe-border-strong);
}

.pfe-bc-current {
    color: var(--pfe-secondary);
    font-weight: 600;
}

/* Article Header */
.pfe-article-header {
    margin-bottom: 32px;
}

.pfe-header-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pfe-article-title {
    font-family: var(--pfe-font-serif);
    font-size: 3.25rem;
    line-height: 1.18;
    color: var(--pfe-secondary);
    margin: 0 0 18px 0;
    letter-spacing: -0.015em;
}

.pfe-article-deck {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--pfe-text-muted);
    margin-bottom: 24px;
    font-style: italic;
    font-family: var(--pfe-font-serif);
}

/* Article Meta Bar */
.pfe-article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FFFFFF;
    border-radius: var(--pfe-radius-md);
    border: 1px solid var(--pfe-border);
    box-shadow: var(--pfe-shadow-sm);
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.pfe-author-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pfe-author-avatar-wrap img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--pfe-primary-light);
}

.pfe-author-meta-text {
    display: flex;
    flex-direction: column;
}

.pfe-author-byline {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pfe-secondary);
}

.pfe-post-date {
    font-size: 0.8125rem;
    color: var(--pfe-text-muted);
}

.pfe-updated-notice {
    color: var(--pfe-sage-dark);
    margin-left: 6px;
    font-weight: 500;
}

.pfe-meta-right-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pfe-chip-readtime {
    background: var(--pfe-bg);
    color: var(--pfe-text-muted);
    border: 1px solid var(--pfe-border);
    padding: 4px 12px;
    border-radius: var(--pfe-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Featured Hero Image */
.pfe-article-hero-media {
    margin-bottom: 36px;
    border-radius: var(--pfe-radius-xl);
    overflow: hidden;
    box-shadow: var(--pfe-shadow-lg);
    background: #E2E8F0;
}

.pfe-article-hero-media img {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: cover;
}

.pfe-media-caption {
    padding: 10px 16px;
    font-size: 0.8125rem;
    color: var(--pfe-text-muted);
    background: #FFFFFF;
    border-top: 1px solid var(--pfe-border);
}

/* Article Content Body (Spacious 80% Wide Typography) */
.pfe-article-body {
    background: #FFFFFF;
    border-radius: var(--pfe-radius-lg);
    padding: 48px;
    border: 1px solid var(--pfe-border);
    box-shadow: var(--pfe-shadow-md);
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--pfe-text);
}

.pfe-article-body p {
    margin-top: 0;
    margin-bottom: 28px;
}

.pfe-article-body h2 {
    font-family: var(--pfe-font-serif);
    font-size: 2.15rem;
    line-height: 1.25;
    margin-top: 48px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pfe-surface-tint);
    color: var(--pfe-secondary);
}

.pfe-article-body h3 {
    font-size: 1.45rem;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--pfe-primary);
}

.pfe-article-body blockquote {
    font-family: var(--pfe-font-serif);
    font-size: 1.35rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--pfe-secondary);
    border-left: 4px solid var(--pfe-accent);
    margin: 36px 0;
    padding: 16px 28px;
    background: var(--pfe-surface-tint);
    border-radius: 0 var(--pfe-radius-md) var(--pfe-radius-md) 0;
}

.pfe-article-body ul, .pfe-article-body ol {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 28px;
}

.pfe-article-body li {
    margin-bottom: 10px;
}

/* In-Content Callout Boxes */
.pfe-callout-box {
    border-radius: var(--pfe-radius-md);
    padding: 24px 28px;
    margin: 36px 0;
    border: 1px solid transparent;
}

.pfe-callout-takeaways {
    background-color: var(--pfe-surface-tint);
    border-color: var(--pfe-primary-light);
}

.pfe-callout-takeaways h4 {
    color: var(--pfe-primary);
    font-size: 1.15rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfe-callout-tip {
    background-color: rgba(224, 122, 95, 0.08);
    border-left: 4px solid var(--pfe-accent);
    border-color: rgba(224, 122, 95, 0.25);
}

.pfe-callout-tip h4 {
    color: var(--pfe-accent-hover);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* In-Content Comparison Tables */
.pfe-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 36px 0;
    font-size: 0.95rem;
}

.pfe-article-body table th {
    background-color: var(--pfe-secondary);
    color: #FFFFFF;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
}

.pfe-article-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pfe-border);
}

.pfe-article-body table tr:nth-child(even) td {
    background-color: var(--pfe-bg);
}

/* Ad Slot Containers (Complies with Google AdSense) */
.pfe-ad-slot-wrapper {
    margin: 36px auto;
    text-align: center;
    overflow: hidden;
}

.pfe-ad-slot-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--pfe-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

/* Author Box At Article Bottom */
.pfe-author-box-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-lg);
    padding: 32px;
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: var(--pfe-shadow-md);
}

.pfe-author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--pfe-primary-light);
}

.pfe-author-box-content {
    flex: 1;
}

.pfe-author-box-name {
    font-family: var(--pfe-font-serif);
    font-size: 1.45rem;
    color: var(--pfe-secondary);
    margin: 0 0 6px 0;
}

.pfe-author-box-role {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--pfe-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.pfe-author-box-bio {
    font-size: 0.9375rem;
    color: var(--pfe-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Next & Previous Guides */
.pfe-next-prev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
}

.pfe-np-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pfe-np-card:hover {
    border-color: var(--pfe-primary);
    transform: translateY(-2px);
    box-shadow: var(--pfe-shadow-sm);
}

.pfe-np-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pfe-text-light);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.pfe-np-title {
    font-family: var(--pfe-font-serif);
    font-size: 1.15rem;
    color: var(--pfe-secondary);
    margin: 0;
}

/* Related Guides Grid */
.pfe-related-section {
    margin-top: 64px;
}

.pfe-related-title {
    font-family: var(--pfe-font-serif);
    font-size: 1.85rem;
    color: var(--pfe-secondary);
    margin-bottom: 24px;
}

/* ==========================================================================
   9. Category & Country Hub Styles
   ========================================================================== */
.pfe-category-hero {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FA 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--pfe-border);
}

.pfe-dossier-ribbon {
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-lg);
    box-shadow: var(--pfe-shadow-sm);
    padding: 16px 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.pfe-dossier-stat {
    flex: 1;
    min-width: 140px;
}

.pfe-dossier-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pfe-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.pfe-dossier-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pfe-secondary);
}

/* Sub-category Tabs */
.pfe-filter-tabs-row {
    display: flex;
    gap: 10px;
    margin: 32px 0 24px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--pfe-border);
    padding-bottom: 16px;
}

.pfe-filter-tab {
    padding: 8px 18px;
    border-radius: var(--pfe-radius-pill);
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pfe-text-muted);
}

.pfe-filter-tab.is-active, .pfe-filter-tab:hover {
    background: var(--pfe-primary);
    color: #FFFFFF;
    border-color: var(--pfe-primary);
}

/* Pagination */
.pfe-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pfe-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--pfe-radius-md);
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    color: var(--pfe-secondary);
    font-weight: 600;
    text-decoration: none;
}

.pfe-pagination .page-numbers.current, .pfe-pagination .page-numbers:hover {
    background: var(--pfe-primary);
    color: #FFFFFF;
    border-color: var(--pfe-primary);
}

/* ==========================================================================
   10. Author Hub Styles
   ========================================================================== */
.pfe-author-hero-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-xl);
    padding: 40px;
    box-shadow: var(--pfe-shadow-md);
    margin: 48px 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

.pfe-author-hero-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--pfe-primary-light);
}

.pfe-author-stats-row {
    display: flex;
    gap: 28px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--pfe-border);
}

/* ==========================================================================
   11. Contact Page & Inquiries Form
   ========================================================================== */
.pfe-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 48px 0;
}

.pfe-contact-form-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-lg);
    padding: 36px;
    box-shadow: var(--pfe-shadow-md);
}

.pfe-form-group {
    margin-bottom: 20px;
}

.pfe-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pfe-secondary);
    margin-bottom: 6px;
}

.pfe-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--pfe-border);
    border-radius: var(--pfe-radius-md);
    font-family: var(--pfe-font-sans);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
}

.pfe-form-control:focus {
    outline: none;
    border-color: var(--pfe-primary);
    box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.15);
}

.pfe-departments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pfe-department-card {
    background: #FFFFFF;
    border: 1px solid var(--pfe-border);
    border-radius: var(--pfe-radius-md);
    padding: 20px;
    box-shadow: var(--pfe-shadow-sm);
}

/* ==========================================================================
   12. 404 Error Page
   ========================================================================== */
.pfe-404-wrapper {
    padding: 96px 0;
    text-align: center;
}

.pfe-404-number {
    font-family: var(--pfe-font-serif);
    font-size: 6.5rem;
    font-weight: 700;
    color: var(--pfe-primary);
    line-height: 1;
    margin-bottom: 12px;
}

/* ==========================================================================
   13. Global Footer & Newsletter Box
   ========================================================================== */
.pfe-newsletter-box {
    background: linear-gradient(135deg, var(--pfe-secondary) 0%, #1A446C 100%);
    color: #FFFFFF;
    border-radius: var(--pfe-radius-xl);
    padding: 48px;
    margin-bottom: -48px;
    position: relative;
    z-index: 10;
    box-shadow: var(--pfe-shadow-xl);
}

.pfe-newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.pfe-newsletter-form {
    display: flex;
    gap: 12px;
    min-width: 380px;
    flex: 1;
    max-width: 520px;
}

.pfe-newsletter-input {
    flex: 1;
    height: 48px;
    padding: 10px 18px;
    border-radius: var(--pfe-radius-pill);
    border: none;
    font-size: 0.9375rem;
    font-family: var(--pfe-font-sans);
}

.pfe-site-footer {
    background-color: #0B1E33;
    color: #94A3B8;
    padding-top: 100px;
    padding-bottom: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pfe-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.pfe-footer-col h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.pfe-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pfe-footer-col ul li a {
    color: #94A3B8;
    font-size: 0.875rem;
}

.pfe-footer-col ul li a:hover {
    color: #FFFFFF;
}

.pfe-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   14. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .pfe-nav-menu {
        display: none;
    }
    .pfe-hamburger-btn {
        display: flex;
    }
    .pfe-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pfe-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pfe-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pfe-hero-headline {
        font-size: 2.75rem;
    }
    .pfe-article-title {
        font-size: 2.45rem;
    }
}

@media (max-width: 768px) {
    .pfe-top-bar {
        display: none;
    }
    .pfe-articles-grid {
        grid-template-columns: 1fr;
    }
    .pfe-destinations-grid {
        grid-template-columns: 1fr;
    }
    .pfe-pillars-grid {
        grid-template-columns: 1fr;
    }
    .pfe-stats-ticker {
        grid-template-columns: repeat(2, 1fr);
    }
    .pfe-search-inputs-grid {
        grid-template-columns: 1fr;
    }
    .pfe-article-body {
        padding: 24px 18px;
        font-size: 1.05rem;
    }
    .pfe-article-title {
        font-size: 2rem;
    }
    .pfe-next-prev-grid {
        grid-template-columns: 1fr;
    }
    .pfe-footer-grid {
        grid-template-columns: 1fr;
    }
    .pfe-newsletter-form {
        min-width: 100%;
        flex-direction: column;
    }
    .pfe-author-hero-card {
        flex-direction: column;
        text-align: center;
    }
    .pfe-author-stats-row {
        justify-content: center;
    }
    .pfe-contact-grid {
        grid-template-columns: 1fr;
    }
}
