/* ============================================================
   CAREER PORTAL THEME - RAILWAY CAREER
   Color Palette: Deep Crimson (#b91c1c), Charcoal (#0f172a), Amber (#f59e0b)
   Aesthetic: High-Authority Career Advisory & Vocational Portal
   ============================================================ */

:root {
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --primary-soft: #fef2f2;
    --primary-border: #fecaca;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1360px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 1. Top Announcement Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 2px solid #b91c1c;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: #f8fafc;
    font-weight: 600;
}

.top-bar a:hover {
    color: #f59e0b;
}

.top-bar-badge {
    background: #b91c1c;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 8px;
    display: inline-block;
}

/* 2. Site Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
    transition: box-shadow 0.2s ease;
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    gap: 12px;
    width: 100%;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img {
    height: 38px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    padding: 8px 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap !important;
    line-height: 1;
    position: relative;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-btn {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap !important;
    line-height: 1;
    flex-shrink: 0;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.45);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    font-size: 20px;
    color: #1e293b;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 3. Career Portal Hero Hub (NEW & TOTALLY UNIQUE) */
.career-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #31102f 100%);
    color: #ffffff;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--primary);
}

.career-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.career-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(185, 28, 28, 0.5);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.career-hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin-bottom: 16px;
}

.career-hero-title span {
    color: #f87171;
    background: linear-gradient(135deg, #f87171 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.career-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
    max-width: 620px;
}

.hero-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b91c1c;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.4);
    transition: all 0.2s ease;
}

.btn-hero-primary:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(185, 28, 28, 0.55);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Spotlight Card in Hero */
.hero-spotlight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.spotlight-thumb {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 16px;
}

.spotlight-tag {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.spotlight-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.spotlight-perks {
    list-style: none;
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.spotlight-perks li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-perks li span {
    color: #34d399;
    font-weight: 700;
}

/* 4. Career Program Feature Strip (4 Cards) */
.career-programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.program-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 4px solid var(--primary);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #fca5a5;
}

.program-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: inline-block;
}

.program-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.program-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.program-meta div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border);
    padding: 4px 0;
}

.program-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.15s ease;
}

.program-card:hover .program-btn {
    background: var(--primary);
    color: #ffffff;
}

/* 5. Section Headers */
.section-block {
    margin: 48px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    position: relative;
}

.section-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 6. Editorial Post Grid (2-Column & 3-Column) */
.editorial-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.career-article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.career-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.career-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f172a;
}

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

.career-article-card:hover .career-card-thumb img {
    transform: scale(1.04);
}

.career-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.badge-cat {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--primary-border);
}

.career-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 10px;
}

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

.career-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.career-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* 7. In-Article & Homepage Admission Callout */
.admission-callout-box {
    background: linear-gradient(135deg, #fff1f2 0%, #fef2f2 100%);
    border: 2px solid #fecaca;
    border-left: 6px solid var(--primary);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 36px 0;
    box-shadow: 0 4px 20px -2px rgba(185, 28, 28, 0.12);
}

.admission-callout-tag {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.admission-callout-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.admission-callout-box p {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-admission-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.btn-admission-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.35);
}

/* 8. Site Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 24px;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* 9. Responsive Breakpoints */
@media (max-width: 1220px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 2px solid var(--primary);
        gap: 12px;
        align-items: flex-start;
        z-index: 99;
    }

    .nav-menu.is-open {
        display: flex !important;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 6px;
    }

    .nav-link {
        font-size: 15px;
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }

    .career-hero-grid {
        grid-template-columns: 1fr;
    }

    .career-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .career-programs-grid {
        grid-template-columns: 1fr;
    }

    .editorial-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .career-hero-title {
        font-size: 28px;
    }
}
