/* --- GLOBAL BLOG DESIGN SYSTEM --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --blog-bg: #fdfdfd;
    --blog-primary: #002868;
    --blog-accent: #bf0a30; /* Old Glory Red */
    --blog-text: #1e293b;
    --blog-muted: #64748b;
    --blog-border: rgba(0, 40, 104, 0.08);
    --blog-shadow: 0 2rem 5rem rgba(0, 40, 104, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--blog-bg);
    line-height: 1.7;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--blog-text);
}

/* --- STICKY NAV & PROGRESS --- */
.blog-nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--blog-border);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #eee;
}

.progress-bar {
    height: 100%;
    background: var(--blog-accent);
    width: 0%;
    transition: width 0.1s;
}

.nav-title-hide {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blog-primary);
}

.back-btn {
    margin: 0;
    background: var(--blog-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
}

/* --- HERO SECTION --- */
.hero-magazine {
    height: 80vh;
    min-height: 40rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(10%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: white;
    max-width: 75rem;
    width: 100%;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.hero-tag {
    background: var(--blog-accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-magazine h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

/* --- ARTICLE LAYOUT --- */
.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 20rem;
    gap: 4rem;
    max-width: 75rem;
    margin: -6rem auto 5rem auto;
    position: relative;
    z-index: 20;
    padding: 0 1.5rem;
}

.main-col {
    background: white;
    padding: 4rem;
    border-radius: 1.5rem;
    box-shadow: var(--blog-shadow);
}

.sidebar-col {
    padding-top: 8rem;
}

/* --- DASHBOARD CARDS --- */
.salary-dashboard, .career-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card, .career-card {
    background: #f8fafc;
    border: 1px solid var(--blog-border);
    padding: 1.5rem;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover, .career-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 1rem 2rem rgba(0,40,104,0.05);
    border-color: var(--blog-primary);
}

.stat-city, .career-title { font-weight: 600; color: var(--blog-muted); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.stat-salary, .career-salary { font-size: 1.35rem; font-weight: 600; color: var(--blog-primary); }
.stat-pct, .career-note { color: var(--blog-accent); font-size: 0.9rem; font-weight: 600; }

/* --- TYPOGRAPHY --- */
.dropcap::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 0.7;
    padding: 0.5rem 0.75rem 0 0;
    color: var(--blog-primary);
    font-weight: 600;
}

.blog-content { font-size: 1.15rem; line-height: 1.8; color: var(--blog-text); overflow-wrap: break-word; }
.blog-content h2 { margin: 2.5rem 0 1.25rem 0; color: var(--blog-primary); font-size: 1.75rem; border-left: 4px solid var(--blog-accent); padding-left: 1rem; }
.blog-content h3 { margin: 2rem 0 1rem 0; color: var(--blog-primary); font-size: 1.4rem; }
.blog-content p { margin-bottom: 1.5rem; }
.blog-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.75rem; }
.blog-content strong { color: var(--blog-primary); }

/* --- SIDEBAR WIDGETS --- */
.widget {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    border: 1px solid var(--blog-border);
}

.widget h4 { color: var(--blog-primary); margin-bottom: 1rem; border-bottom: 2px solid var(--blog-accent); display: inline-block; padding-bottom: 0.25rem; }
.widget ul { list-style: none; padding: 0; }
.widget li { margin-bottom: 1rem; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; }
.widget li strong { display: block; color: var(--blog-text); }

/* --- TABLES --- */
.salary-table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: 1rem; border: 1px solid var(--blog-border); }
.salary-table { width: 100%; border-collapse: collapse; text-align: left; background: #f8fafc; }
.salary-table th { background: var(--blog-primary); color: white; padding: 1rem 1.5rem; font-weight: 600; font-size: 0.95rem; }
.salary-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--blog-border); font-size: 1rem; }
.salary-table tr:hover td { background: #f1f5f9; }

/* --- CTA & FAQ --- */
.cta-section { background: var(--blog-primary); color: white; padding: 2.5rem; border-radius: 1.25rem; text-align: center; margin-top: 3.5rem; }
.cta-section h2 { color: white !important; margin-top: 0 !important; }
.cta-btn { display: inline-block; background: white; color: var(--blog-primary); padding: 1rem 2rem; border-radius: 3rem; text-decoration: none; font-weight: 600; margin-top: 1.5rem; transition: all 0.2s; }
.cta-btn:hover { transform: translateY(-0.125rem); box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.2); }

.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #edf2f7; }
.faq-item { margin-bottom: 2rem; }
.faq-item h4 { color: var(--blog-primary); margin-bottom: 0.5rem; font-size: 1.2rem; }


/* --- ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* --- MOBILE --- */
@media (max-width: 64rem) {
    .article-wrapper { 
        display: block;
        margin: -3rem auto 5rem auto; 
        padding: 0 0.5rem; 
        width: auto;
        max-width: 100%;
    }
    .sidebar-col { padding: 0; }
    .main-col { 
        padding: 2rem 0.85rem; 
        border-radius: 1rem; 
        width: 100%;
        margin-bottom: 2rem;
    }
    .hero-magazine { height: 60vh; min-height: 30rem; }
    .hero-magazine h1 { 
        font-size: clamp(2rem, 8vw, 2.75rem); 
        text-align: center;
    }
    .hero-content {
        padding: 2rem 0.75rem;
        text-align: center;
    }
    .hero-tag {
        margin-left: auto;
        margin-right: auto;
        display: table; /* Centers-ish but keeps intrinsic width */
    }
    .nav-title-hide { display: none; }
    .blog-nav-sticky { padding: 0.75rem 0.75rem; }
    
    .salary-dashboard, .career-dashboard {
        grid-template-columns: 1fr;
    }
}
