/*
Theme Name: Earn in Pakistan Salary Guide Theme
Theme URI: https://earninpakistan.com/
Author: Clicks.com.pk
Author URI: https://clicks.com.pk/
Description: A highly optimized, data-led, Hyper-SEO and AEO custom WordPress theme for salary guides in Pakistan.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: earninpakistan
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-grad: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --accent: #fbbf24;
    --neutral-dark: #0f172a;
    --neutral-body: #475569;
    --neutral-light: #f8fafc;
    --neutral-border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(2, 132, 199, 0.15);
    --font: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0; /* prevent flex/grid blowout */
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font);
    background-color: #f1f5f9;
    background-image: radial-gradient(circle at 0% 0%, #e0f2fe 0%, transparent 40%), radial-gradient(circle at 100% 100%, #f0f9ff 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--neutral-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #0369a1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Header & Footer */
header.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header.site-header .header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--neutral-dark);
    letter-spacing: -0.8px;
    background: linear-gradient(to right, var(--neutral-dark) 60%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav.main-nav a {
    color: var(--neutral-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: width 0.3s ease;
}

nav.main-nav a:hover::after {
    width: 100%;
}

footer.site-footer {
    background-color: var(--neutral-dark);
    color: #94a3b8;
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

footer.site-footer h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

footer.site-footer ul {
    list-style: none;
}

footer.site-footer ul li {
    margin-bottom: 12px;
}

footer.site-footer ul a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

footer.site-footer ul a:hover {
    color: #ffffff;
    padding-left: 4px;
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Premium Homepage Hero */
.homepage-hero {
    background: radial-gradient(circle at 70% 30%, #e0f2fe 0%, #ffffff 80%);
    border-bottom: 1px solid var(--neutral-border);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.homepage-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.homepage-hero p {
    font-size: 20px;
    color: var(--neutral-body);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px -15px rgba(2, 132, 199, 0.15);
    border-radius: 99px;
}

.search-container input {
    width: 100%;
    padding: 22px 30px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 99px;
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: all 0.3s;
    background-color: #ffffff;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--primary-grad);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 32px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.3s;
}

.search-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin: 80px 0 40px;
    letter-spacing: -0.8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}

.grid-trending, .grid-categories, .grid-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

/* Post Card UI */
.role-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-grad);
    opacity: 0;
    transition: opacity 0.3s;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 132, 199, 0.2);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.role-card .card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.role-card .card-salary {
    font-size: 28px;
    font-weight: 800;
    color: var(--neutral-dark);
    letter-spacing: -0.5px;
}

.role-card .card-salary span {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-body);
}

/* Single Post Page Redesign */
.post-layout {
    display: grid;
    grid-template-columns: 8.5fr 3.5fr;
    gap: 50px;
    margin-top: 40px;
}

.salary-guide-article {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.salary-guide-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    min-width: 0;
}

/* Main post container — prevent all child overflow */
main.container {
    overflow-x: hidden;
}


.breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-top: 20px;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.breadcrumb a {
    color: #64748b;
}

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

/* Article Title */
.article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--neutral-dark);
    line-height: 1.3;
    letter-spacing: -0.8px;
    margin-bottom: 0;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0 32px;
}

.meta-sep {
    color: #cbd5e1;
}

.chip-category {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Quick Answer Box */
.quick-answer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 6px solid var(--primary);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.05);
}

.quick-answer p {
    font-size: 18px;
    color: #0369a1;
    font-weight: 500;
    line-height: 1.7;
}

.quick-answer strong {
    color: var(--neutral-dark);
    font-weight: 700;
}

/* Sidebar Table of Contents */
.sidebar-toc {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--neutral-border);
    box-shadow: var(--shadow);
}

.sidebar-toc h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    border-bottom: 2px solid var(--neutral-light);
    padding-bottom: 12px;
}

.sidebar-toc ul {
    list-style: none;
}

.sidebar-toc ul li {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-left: 18px;
}

.sidebar-toc ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.sidebar-toc ul li a {
    color: var(--neutral-body);
}

.sidebar-toc ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Premium Charts & Responsive Tables */
.chart-wrapper {
    background: #ffffff;
    border: 1px solid var(--neutral-border);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0 40px;
    box-shadow: var(--shadow);
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 24px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0 40px;
    border: 1px solid var(--neutral-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    background-color: #ffffff;
}

table.salary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

table.salary-table th, table.salary-table td {
    padding: 16px 24px;
    text-align: left;
}

table.salary-table th {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--neutral-border);
}

table.salary-table td {
    border-bottom: 1px solid var(--neutral-border);
    background-color: #ffffff;
    font-size: 15px;
}

table.salary-table tr:last-child td {
    border-bottom: none;
}

table.salary-table tr:hover td {
    background-color: var(--neutral-light);
}

table.salary-table tr.highlight-row td {
    background-color: #f0f9ff;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Premium Star Rating Widget */
.rating-widget {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 15px 35px -10px rgba(251, 191, 36, 0.15);
}

.rating-widget h4 {
    font-size: 22px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.star {
    font-size: 42px;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.star.active, .star:hover {
    color: #fbbf24;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Accordion FAQs */
.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(2, 132, 199, 0.2);
}

.faq-question {
    background-color: #ffffff;
    padding: 20px 30px;
    font-weight: 700;
    font-size: 16px;
    color: var(--neutral-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--neutral-light);
}

.faq-answer {
    background-color: #ffffff;
    padding: 0 30px;
    height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0 solid var(--neutral-border);
}

.faq-item.active .faq-answer {
    padding: 20px 30px 24px;
    height: auto;
    border-top-width: 1px;
}

/* Methodology Notes */
.methodology-box {
    border-top: 1px solid var(--neutral-border);
    padding-top: 30px;
    margin-top: 50px;
}

.methodology-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--neutral-dark);
}

.methodology-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* Author Box */
.author-box {
    background-color: #f8fafc;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 40px;
}

.author-avatar {
    background: var(--primary-grad);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.author-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    background-color: #ffffff;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}

.sidebar-newsletter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--neutral-dark);
}

.sidebar-newsletter-desc {
    font-size: 13px;
    color: var(--neutral-body);
    margin-bottom: 16px;
    line-height: 1.6;
}

.sidebar-email-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--neutral-border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: var(--font);
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-email-input:focus {
    border-color: var(--primary);
}

.sidebar-email-btn {
    background: var(--primary-grad);
    color: white;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-email-btn:hover {
    opacity: 0.9;
}

/* Mobile TOC — only shown on mobile ≤ 768px */
.mobile-toc {
    display: none;
    margin-bottom: 28px;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-toc-toggle {
    width: 100%;
    background: #f8fafc;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    color: var(--neutral-dark);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toc-toggle .toc-arrow {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.mobile-toc.open .toc-arrow {
    transform: rotate(180deg);
}

.mobile-toc-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toc.open .mobile-toc-nav {
    max-height: 600px;
}

.mobile-toc-nav ul {
    list-style: none;
    padding: 8px 0 16px;
    margin: 0;
}

.mobile-toc-nav ul li {
    border-top: 1px solid var(--neutral-border);
}

.mobile-toc-nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-body);
    transition: background 0.15s, color 0.15s;
}

.mobile-toc-nav ul li a:hover {
    background: #f0f9ff;
    color: var(--primary);
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
    color: white;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.4), transparent 50%);
}

/* ================================================================
   RESPONSIVE — TABLET (≤992px)
   ================================================================ */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .salary-guide-article {
        padding: 30px;
    }
    .homepage-hero h1 {
        font-size: 38px;
    }
}

/* ================================================================
   HAMBURGER / MOBILE NAV TOGGLE
   Always hidden on desktop; shown via media query below.
   Using a 44×44px tap target for accessibility.
   ================================================================ */
.mobile-nav-toggle {
    display: none;                    /* hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 9999;                   /* above everything */
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

/* The three bars — positioned absolutely inside the 44px tap target */
.mobile-nav-toggle .bar {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2.5px;
    background-color: #0f172a;       /* explicit dark color – no variable risk */
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle .bar:nth-child(1) { top: 13px; }
.mobile-nav-toggle .bar:nth-child(2) { top: 21px; }
.mobile-nav-toggle .bar:nth-child(3) { top: 29px; }

/* Animated X state */
.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ================================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Header */
    header.site-header {
        z-index: 9000;               /* high, but below the toggle */
    }
    header.site-header .header-wrap {
        position: relative;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Show hamburger */
    .mobile-nav-toggle {
        display: flex !important;
    }

    /* Mobile nav — hidden by default, slides in when .active */
    nav.main-nav {
        position: fixed;
        top: 64px;                   /* below 64px header */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding: 20px 16px 28px;
        z-index: 8999;               /* below toggle, above content */
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
        /* Slide-in animation */
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity  0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    nav.main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    nav.main-nav li {
        width: 100%;
    }
    nav.main-nav a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #0f172a;
        border-radius: 10px;
        text-align: left;
        transition: background 0.2s, color 0.2s;
    }
    nav.main-nav a:hover {
        background: rgba(2, 132, 199, 0.08);
        color: var(--primary);
    }

    /* Prevent body scroll when nav open */
    body.nav-open {
        overflow: hidden;
    }

    /* Hero */
    .homepage-hero {
        padding: 50px 0;
    }
    .homepage-hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .homepage-hero p {
        font-size: 16px;
    }

    /* Hero placeholder */
    .hero-image-placeholder {
        height: 200px;
        font-size: 20px;
        padding: 20px;
    }

    /* Charts */
    .chart-wrapper {
        padding: 16px;
        margin: 20px 0 30px;
    }

    /* Tables — horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive table {
        min-width: 480px;
    }

    /* Post layout single column — sidebar moves below article */
    .post-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 20px;
    }

    /* Hide desktop sidebar on mobile (TOC shown inline above content) */
    .salary-guide-sidebar {
        display: none;
    }

    /* Show mobile inline TOC */
    .mobile-toc {
        display: block;
    }

    /* Single post article — compact padding */
    .salary-guide-article {
        padding: 20px 16px;
        border-radius: 16px;
    }

    /* Article title */
    .article-title {
        font-size: 24px;
        letter-spacing: -0.5px;
        line-height: 1.35;
    }

    /* Quick answer box */
    .quick-answer {
        padding: 20px 16px;
        margin-bottom: 28px;
    }
    .quick-answer p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Hero banner */
    .hero-image-placeholder {
        height: 160px;
        font-size: 18px;
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 28px;
    }

    /* Charts */
    .chart-wrapper {
        padding: 16px;
        margin: 20px 0 28px;
        border-radius: 12px;
    }
    .chart-container {
        height: 260px;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin: 20px 0 28px;
    }
    table.salary-table th,
    table.salary-table td {
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Rating widget */
    .rating-widget {
        padding: 28px 16px;
        margin: 40px 0;
    }
    .rating-widget h4 {
        font-size: 18px;
    }
    .star {
        font-size: 36px;
    }

    /* FAQ */
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 16px 20px 20px;
    }

    /* Author box */
    .author-box {
        padding: 16px;
        gap: 14px;
    }
    .author-name {
        font-size: 14px;
    }

    /* Methodology */
    .methodology-box {
        padding-top: 24px;
        margin-top: 36px;
    }

    /* Entry content headings */
    .entry-content h2 {
        font-size: 22px;
        margin-top: 36px;
    }
    .entry-content h3 {
        font-size: 18px;
        margin-top: 28px;
    }
    .entry-content p {
        font-size: 15px;
    }

    /* Prevent horizontal overflow on whole page */
    body, html {
        overflow-x: hidden;
    }
    img, canvas, table {
        max-width: 100%;
    }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤600px)
   ================================================================ */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .salary-guide-article {
        padding: 16px;
    }
}

/* ================================================================
   RESPONSIVE — EXTRA SMALL (≤480px)
   ================================================================ */
@media (max-width: 480px) {
    .homepage-hero h1 {
        font-size: 26px;
    }
    /* Stacked search box */
    .search-container {
        box-shadow: none;
        border-radius: 12px;
    }
    .search-container input {
        border-radius: 12px;
        padding: 16px 20px;
        margin-bottom: 10px;
        border-color: rgba(2, 132, 199, 0.25);
    }
    .search-container button {
        position: static;
        width: 100%;
        height: 48px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    }
}


/* Entry Content Typography Styles */
.entry-content h2, .entry-content h3 {
    color: var(--neutral-dark);
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.entry-content h2 {
    font-size: 28px;
    border-bottom: 2px solid var(--neutral-border);
    padding-bottom: 12px;
}

.entry-content h3 {
    font-size: 22px;
    position: relative;
    padding-left: 16px;
}

.entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}

.entry-content p {
    font-size: 16px;
    color: var(--neutral-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

.entry-content p strong {
    color: var(--neutral-dark);
    font-weight: 600;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.entry-content li {
    font-size: 16px;
    color: var(--neutral-body);
    line-height: 1.8;
    margin-bottom: 12px;
}

.entry-content li strong {
    color: var(--neutral-dark);
    font-weight: 600;
}

/* ================================================================
   RELATED ROLES SECTION
   ================================================================ */
.related-roles-section {
    margin-top: 50px;
    border-top: 1px solid var(--neutral-border);
    padding-top: 36px;
}

.related-roles-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--neutral-dark);
    letter-spacing: -0.4px;
}

/* ================================================================
   NUCLEAR MOBILE OVERFLOW PREVENTION
   Applied last so it wins over everything else.
   ================================================================ */
@media (max-width: 768px) {

    /* Force every element to stay within viewport width */
    .salary-guide-article,
    .salary-guide-article *,
    .entry-content,
    .entry-content * {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Charts must scale down — never overflow */
    .chart-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    .chart-container {
        max-width: 100%;
        height: 240px;
    }
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Tables: scroll horizontally, never overflow parent */
    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
    }
    table.salary-table {
        min-width: 0;
        width: 100%;
    }

    /* Related roles: single column on mobile */
    .grid-trending,
    .grid-categories,
    .grid-cities {
        grid-template-columns: 1fr;
    }

    /* Role cards: full width */
    .role-card {
        padding: 20px 16px;
    }

    /* Headings in entry content */
    .entry-content h2 {
        font-size: 20px;
        margin-top: 32px;
        padding-bottom: 10px;
    }
    .entry-content h3 {
        font-size: 17px;
        margin-top: 24px;
    }
    .entry-content p,
    .entry-content li {
        font-size: 15px;
    }
    .entry-content ul,
    .entry-content ol {
        padding-left: 18px;
    }
}

/* ═══════════════════════════════════════════════════
   Entry Content Body Wrapper
   ═══════════════════════════════════════════════════ */
.eip-entry-content-body {
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════
   Sub-Keyword SEO Sections
   ═══════════════════════════════════════════════════ */
.eip-subkeyword-sections {
    margin-top: 45px;
    border-top: 3px solid var(--accent-sky, #0284c7);
    padding-top: 30px;
}

.eip-subkeyword-sections h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--neutral-dark, #0f172a);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--neutral-border, #e2e8f0);
}

.eip-subkeyword-sections p {
    line-height: 1.8;
    color: var(--neutral-body, #475569);
    margin-bottom: 16px;
    font-size: 15px;
}

.eip-subkeyword-sections strong {
    color: var(--neutral-dark, #0f172a);
}

/* ═══════════════════════════════════════════════════
   Homepage Responsive Styles
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .eip-subkeyword-sections h2 {
        font-size: 19px;
        margin-top: 30px;
    }
    .eip-subkeyword-sections p {
        font-size: 14px;
    }
}
