/* ================================================
   GovtJobsTN  -  Complete Custom UI
   Bootstrap 5 base + custom layer
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary:      #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light:#3b82f6;
    --success:      #059669;
    --warning:      #d97706;
    --danger:       #dc2626;
    --saffron:      #f59e0b;
    --navy:         #0f172a;
    --text-main:    #1e293b;
    --text-muted:   #64748b;
    --bg-light:     #f8fafc;
    --border:       #e2e8f0;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:    0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    16px;
    --font:         'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text-main);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 0;
    font-size: .8rem;
}

/* ---------- Navbar ---------- */
#mainNav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: box-shadow .2s;
    z-index: 1030;
}
#mainNav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
#mainNav .container { padding-top: 8px; padding-bottom: 8px; }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.02em;
}
.brand-logo i { color: var(--saffron); font-size: 1.4rem; }
.brand-accent { color: var(--saffron); }

.navbar-nav .nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: #eff6ff;
    color: var(--primary) !important;
}
.navbar-nav .nav-link.active { font-weight: 600; }

.btn-search {
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: .85rem;
    font-weight: 600;
    border: none;
    transition: background .15s;
}
.btn-search:hover { background: var(--primary-dark); color: #fff !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.breadcrumb {
    font-size: .8rem;
    margin: 0;
    background: transparent;
}
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    color: #fff;
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245,158,11,.1) 0%, transparent 40%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 500;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--saffron), #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .03em;
}

/* Hero Search */
.hero-search-form { max-width: 640px; margin: 0 auto; }
.hero-search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    gap: 8px;
}
.search-icon { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }
.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .95rem;
    color: var(--text-main);
    background: transparent;
    padding: 6px 0;
}
.hero-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-dark); }

.quick-searches { font-size: .82rem; }
.quick-label { color: rgba(255,255,255,.6); margin-right: 4px; }
.quick-tag {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 3px 12px;
    margin: 2px;
    font-size: .78rem;
    transition: background .15s;
}
.quick-tag:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat-item {
    padding: 18px 16px;
    border-right: 1px solid var(--border);
    text-align: center;
}
/* FIX: 2-col layout on mobile  -  remove right border on even columns */
.stats-bar .row > .col-6:nth-child(2n) .stat-item { border-right: none; }
.stats-bar .row > .col-6:nth-child(1) .stat-item,
.stats-bar .row > .col-6:nth-child(2) .stat-item { border-bottom: 1px solid var(--border); }
.stat-number { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0; }
.stat-link { font-size: .78rem; font-weight: 600; color: var(--primary); }
.stat-link:hover { text-decoration: underline; }

/* ---------- Section Helpers ---------- */
.section-padded { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.section-subtitle { color: var(--text-muted); margin-top: 4px; }

/* ---------- Category Grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-main);
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}
.category-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(30,64,175,.15);
    transform: translateY(-2px);
    color: var(--primary);
}
.category-icon {
    width: 48px; height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-name { font-size: .82rem; font-weight: 600; }
.category-count { font-size: .72rem; color: var(--text-muted); }

/* ---------- Qual Filter Chips ---------- */
.qual-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.qual-chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: #fff;
    transition: all .15s;
}
.qual-chip:hover, .qual-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- Job Cards (Home) ---------- */
.job-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
}
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.job-card-new { border-color: #86efac; }
.job-card-urgent { border-color: #fcd34d; }

.job-ribbon {
    position: absolute;
    top: 46px;
    right: -2px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px 3px 12px;
    border-radius: 4px 0 0 4px;
    z-index: 1;
}
.ribbon-new { background: #16a34a; color: #fff; }
.ribbon-urgent { background: #d97706; color: #fff; }

.job-card-header {
    padding: 14px 16px 12px;
    color: #fff;
}
.header-tn { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.header-central { background: linear-gradient(135deg, #065f46, #059669); }

.job-type-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .72rem;
    font-weight: 600;
}
.post-count {
    font-size: .72rem;
    font-weight: 600;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 3px 10px;
}
.job-org { font-size: .95rem; font-weight: 700; color: #fff; }

.job-card-body { padding: 16px; flex: 1; }
.job-title { font-size: .9rem; font-weight: 600; color: var(--text-main); margin-bottom: 10px; line-height: 1.4; }
.job-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.job-meta-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); }
.job-meta-item i { color: var(--primary-light); flex-shrink: 0; }

.deadline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 500;
}
.deadline-safe { background: #f0fdf4; color: #166534; }
.deadline-warning { background: #fffbeb; color: #92400e; }
.deadline-urgent { background: #fef2f2; color: #991b1b; }

.deadline-info { display: flex; align-items: center; }
.days-left-badge { font-weight: 700; font-size: .75rem; }

.job-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: var(--bg-light);
}
.btn-view-job {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s;
}
.btn-view-job:hover { background: var(--primary-dark); color: #fff; }
.btn-apply-quick {
    padding: 8px 12px;
    background: #dcfce7;
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s;
}
.btn-apply-quick:hover { background: var(--success); color: #fff; }

/* ---------- Info Strip ---------- */
.info-strip {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.info-strip .col-md-3,
.info-strip .col-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-strip-icon {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

/* ---------- List Page Header ---------- */
.list-page-header {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    color: #fff;
    padding: 36px 0 28px;
}
.list-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 4px; }
.list-subtitle { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }

/* ---------- Filter Panel ---------- */
.filter-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.filter-panel-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: .9rem;
}
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: none; }
.filter-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); display: block; margin-bottom: 8px; }
.filter-radio-group { display: flex; flex-direction: column; gap: 6px; }
.filter-radio { font-size: .875rem; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.filter-radio input { accent-color: var(--primary); }

/* View toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted); font-size: .9rem;
    transition: all .15s;
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.results-count { font-size: .875rem; color: var(--text-muted); }
.results-count strong { color: var(--text-main); }

/* ---------- Job Cards (List page) ---------- */
.job-card-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: box-shadow .2s, transform .2s;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.job-card-list:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.state-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .72rem;
    font-weight: 600;
}
.pill-tn { background: #eff6ff; color: var(--primary); }
.pill-central { background: #f0fdf4; color: var(--success); }
.post-count-sm { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.job-card-list-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.job-card-list-title a { color: var(--text-main); }
.job-card-list-title a:hover { color: var(--primary); }
.job-card-list-org { font-size: .82rem; color: var(--text-muted); }
.info-chip {
    display: inline-flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .75rem;
    color: var(--text-muted);
}
.deadline-text { font-size: .8rem; }

/* Table */
.jobs-table { font-size: .875rem; }
.jobs-table thead th { background: #f1f5f9; font-weight: 600; border-bottom: 2px solid var(--border); color: var(--text-main); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.jobs-table tbody tr:hover td { background: #f8fafc; }

/* ---------- Detail Page ---------- */
.detail-header-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.detail-header-top { margin-bottom: 4px; }
.detail-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 4px; }
.detail-org { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 16px; }

.detail-quickstats {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
    flex-wrap: wrap;
}
.qstat {
    flex: 1 1 auto;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    text-align: center;
}
.qstat:last-child { border-right: none; }
.qstat i { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.qstat-val {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.qstat-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

.detail-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.detail-section-title {
    background: var(--bg-light);
    padding: 14px 20px;
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.detail-section-title i { color: var(--primary); }
.detail-section-body { padding: 20px; }
.prose-content p { margin-bottom: .75em; }
.prose-content ul, .prose-content ol { padding-left: 1.25rem; margin-bottom: .75em; }

.apply-steps { padding-left: 1.2rem; }
.apply-steps li { padding: 6px 0; font-size: .9rem; }

/* Deadline Hero card */
.detail-action-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.deadline-hero { text-align: center; padding: 20px; }
.deadline-hero-safe { background: linear-gradient(135deg, #065f46, #059669); color: #fff; }
.deadline-hero-warning { background: linear-gradient(135deg, #92400e, #d97706); color: #fff; }
.deadline-hero-urgent { background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #fff; }
.deadline-hero-expired { background: var(--bg-light); }
.deadline-hero-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.deadline-hero-date { font-size: 1.2rem; font-weight: 800; color: #fff; }
.deadline-hero-count { font-size: .85rem; font-weight: 600; margin-top: 4px; color: rgba(255,255,255,.9); }
.action-buttons { border-top: 1px solid var(--border); }

/* Share buttons */
.share-row { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-telegram { background: #0088cc; color: #fff; }
.share-copy { background: var(--bg-light); color: var(--text-main); border: 1px solid var(--border); }

/* Important dates */
.dates-list { padding: 4px 0; }
.date-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
    flex-wrap: wrap;
}
.date-row:last-child { border-bottom: none; }
.date-row.highlight { background: #fff7ed; margin: 0 -4px; padding: 10px 4px; border-radius: 6px; }
.date-row span { color: var(--text-muted); }

/* Related job cards */
.related-job-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.related-job-card:hover { box-shadow: var(--shadow-md); }
.related-job-org { font-size: .85rem; font-weight: 700; margin: 6px 0 4px; color: var(--text-main); }
.related-job-title { font-size: .8rem; color: var(--text-muted); flex: 1; }

/* ---------- Blog ---------- */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blog-category { background: #eff6ff; color: var(--primary); border-radius: 999px; padding: 3px 12px; font-size: .72rem; font-weight: 700; }
.blog-date { font-size: .78rem; color: var(--text-muted); }
.blog-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.blog-title a { color: var(--text-main); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}
.empty-state i { font-size: 4rem; display: block; margin-bottom: 16px; opacity: .3; }
.empty-state h4 { font-weight: 700; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-top { padding: 56px 0 40px; }
.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand i { color: var(--saffron); }
.footer-brand span { color: var(--saffron); }
.footer-heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: var(--saffron); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--saffron); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
}

/* ---------- Pagination ---------- */
.page-link { border-radius: var(--radius-sm) !important; margin: 0 2px; font-size: .875rem; color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-link:hover { background: #eff6ff; color: var(--primary-dark); }

/* ---------- Utilities ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.card { border-radius: var(--radius); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-section { padding: 48px 0 40px; }
    /* FIX: detail action card  -  not sticky on tablet/mobile, it blocks scrolling */
    .detail-action-card { position: static !important; }
    #mainNav .navbar-collapse { padding: 12px 0; }
    .navbar-nav .nav-link { padding: 10px 14px !important; }
    .filter-panel { margin-bottom: 24px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 1.75rem; }
    .hero-search-btn { padding: 10px 14px; font-size: .8rem; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    /* FIX: quickstats 2-per-row on mobile */
    .qstat { flex: 1 1 45%; }
    .qstat:nth-child(2n) { border-right: none; }
    .qual-filters { display: none; }
    .section-title { font-size: 1.25rem; }
    .list-title { font-size: 1.4rem; }
    /* FIX: deadline bar stacks on mobile */
    .deadline-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
    .days-left-badge { align-self: flex-end; }
    /* FIX: job card footer wraps on small screens */
    .job-card-footer { flex-wrap: wrap; }
    /* FIX: stats bar 2-col  -  clean border management */
    .stats-bar .stat-item { border-right: 1px solid var(--border); padding: 14px 10px; }
    .stats-bar .row > .col-6:nth-child(2n) .stat-item { border-right: none; }
    .stats-bar .row > .col-6:nth-last-child(-n+2) .stat-item { border-bottom: none; }
}
@media (max-width: 480px) {
    .hero-search-inner { flex-direction: column; padding: 12px; border-radius: var(--radius-lg); }
    .hero-search-input { width: 100%; }
    .hero-search-btn { width: 100%; border-radius: var(--radius-sm); }
    .hero-search-form .search-icon { display: none; }
    /* FIX: smaller stat numbers on very small screens */
    .stat-number { font-size: 1.4rem; }
    .detail-title { font-size: 1.3rem; }
    .share-row { flex-wrap: wrap; }
}

/* ================================================
   SEO & Alignment Improvements  -  TNCareerHub 2026
   ================================================ */

/* ------ Exam Links Bar ------ */
.exam-links-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
}
.exam-links-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
}
.exam-links-scroll::-webkit-scrollbar { display: none; }
.exam-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    transition: all .15s;
    text-decoration: none;
}
.exam-link-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.exam-link-chip i { font-size: .85rem; }

/* ------ Qualification Blocks ------ */
.qual-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    transition: all .2s;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.qual-block:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(30,64,175,.12);
    transform: translateY(-2px);
    color: var(--primary);
}
.qual-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.qual-block-title { font-size: .9rem; font-weight: 700; }
.qual-block-sub { font-size: .75rem; color: var(--text-muted); }

/* ------ Blog Content Improvements ------ */
.blog-content {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text-main);
}
.blog-content p { margin-bottom: 1rem; }
.blog-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 .75rem;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}
.blog-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1.2rem 0 .5rem;
}
.blog-content strong { color: var(--navy); }
.blog-content ul, .blog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.blog-content li { margin-bottom: .4rem; }
.blog-content a { color: var(--primary); text-decoration: underline; }
.blog-content a:hover { color: var(--primary-dark); }

/* ------ Detail page alignment fixes ------ */
.detail-wrap { max-width: 1100px; margin: 0 auto; }

/* Fix info table alignment */
.info-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.info-table tr { border-bottom: 1px solid #f0f4f8; }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 10px 14px; vertical-align: top; line-height: 1.5; }
.info-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 40%;
    background: #f8fafc;
    white-space: nowrap;
}
.info-table td:last-child { color: var(--text-main); }

/* Fix elig table */
.elig-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.elig-table th {
    background: #f1f5f9;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4a5568;
    padding: 10px 14px;
}
.elig-table td { padding: 10px 14px; border-bottom: 1px solid #f0f4f8; }
.elig-table tr:last-child td { border-bottom: none; }

/* Fix apply steps */
.apply-steps-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}
.apply-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: .9rem;
}
.apply-steps-list li:last-child { border-bottom: none; }
.step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apply-steps-list li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.apply-steps-list li span { color: var(--text-muted); font-size: .83rem; }

/* Fix detail alert boxes */
.detail-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .87rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
}
.detail-alert i { flex-shrink: 0; margin-top: 2px; }
.detail-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.detail-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.detail-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }

/* Fix deadline hero in detail page for dark bg */
.deadline-hero-safe    { background: linear-gradient(135deg, #065f46, #059669); color: #fff; }
.deadline-hero-warning { background: linear-gradient(135deg, #92400e, #d97706); color: #fff; }
.deadline-hero-urgent  { background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #fff; }
.deadline-hero-expired { background: linear-gradient(135deg, #374151, #6b7280); color: #fff; }
.deadline-hero-label   { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.deadline-hero-date    { font-size: 1.35rem; font-weight: 800; margin: 4px 0; }
.deadline-hero-count   { font-size: .85rem; opacity: .9; }

/* Fix sidebar quick info */
.quick-info-list { padding: 0; }
.quick-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.quick-info-row:last-child { border-bottom: none; }
.quick-info-row i { color: var(--primary); font-size: 1rem; width: 18px; flex-shrink: 0; }
.qi-label { color: var(--text-muted); font-size: .76rem; display: block; }
.qi-val { color: var(--text-main); font-weight: 600; }

/* Fix dates list alignment */
.dates-list { padding: 0; }
.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: .855rem;
    flex-wrap: wrap;
    gap: 4px;
}
.date-row:last-child { border-bottom: none; }
.date-row span { color: var(--text-muted); }
.date-row.highlight { background: #fff5f5; }
.date-row.highlight strong { color: #dc2626; }

/* Apply buttons */
.btn-apply {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
}
.btn-apply:hover { opacity: .9; }
.btn-apply-primary { background: #16a34a; color: #fff; }
.btn-apply-primary:hover { background: #15803d; color: #fff; }
.btn-apply-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-apply-outline:hover { background: #eff6ff; color: var(--primary); }

/* fw-600 fw-700 utility */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ------ Mobile fixes ------ */
@media (max-width: 767px) {
    .exam-links-scroll { flex-wrap: nowrap; }
    .qual-block { padding: 12px 14px; gap: 10px; }
    .qual-block-icon { width: 38px; height: 38px; font-size: 1rem; }
    .qual-block-title { font-size: .82rem; }
    .info-table td:first-child { width: 45%; font-size: .8rem; }
    .blog-content { font-size: .9rem; }
    .detail-action-card { position: static !important; }
}


/* ================================================
   SEO & Alignment Improvements - TNCareerHub 2026
   ================================================ */

/* Exam Links Bar */
.exam-links-bar { background:#fff; border-bottom:1px solid var(--border); padding:10px 0; overflow:hidden; }
.exam-links-scroll { display:flex; gap:8px; overflow-x:auto; padding:2px 4px; scrollbar-width:none; -ms-overflow-style:none; flex-wrap:wrap; }
.exam-links-scroll::-webkit-scrollbar { display:none; }
.exam-link-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:#f8fafc; border:1px solid var(--border); border-radius:999px; font-size:.78rem; font-weight:600; color:var(--text-main); white-space:nowrap; transition:all .15s; text-decoration:none; }
.exam-link-chip:hover { background:var(--primary); border-color:var(--primary); color:#fff; }
.exam-link-chip i { font-size:.85rem; }

/* Qualification Blocks */
.qual-block { display:flex; align-items:center; gap:14px; padding:16px 18px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); text-decoration:none; color:var(--text-main); transition:all .2s; box-shadow:var(--shadow-sm); height:100%; }
.qual-block:hover { border-color:var(--primary-light); box-shadow:0 4px 16px rgba(30,64,175,.12); transform:translateY(-2px); color:var(--primary); }
.qual-block-icon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.qual-block-title { font-size:.9rem; font-weight:700; }
.qual-block-sub { font-size:.75rem; color:var(--text-muted); }

/* Blog Content */
.blog-content { font-size:.95rem; line-height:1.8; color:var(--text-main); }
.blog-content p { margin-bottom:1rem; }
.blog-content h2 { font-size:1.2rem; font-weight:700; color:var(--navy); margin:1.5rem 0 .75rem; padding-bottom:6px; border-bottom:2px solid var(--border); }
.blog-content h3 { font-size:1rem; font-weight:700; color:var(--primary-dark); margin:1.2rem 0 .5rem; }
.blog-content strong { color:var(--navy); }
.blog-content ul, .blog-content ol { padding-left:1.4rem; margin-bottom:1rem; }
.blog-content li { margin-bottom:.4rem; }

/* Info table */
.info-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.info-table tr { border-bottom:1px solid #f0f4f8; }
.info-table tr:last-child { border-bottom:none; }
.info-table td { padding:10px 14px; vertical-align:top; line-height:1.5; }
.info-table td:first-child { font-weight:600; color:#4a5568; width:40%; background:#f8fafc; }
.info-table td:last-child { color:var(--text-main); }

/* Elig table */
.elig-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.elig-table th { background:#f1f5f9; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#4a5568; padding:10px 14px; }
.elig-table td { padding:10px 14px; border-bottom:1px solid #f0f4f8; }
.elig-table tr:last-child td { border-bottom:none; }

/* Apply steps */
.apply-steps-list { list-style:none !important; padding:0 !important; margin:0; }
.apply-steps-list li { display:flex; align-items:flex-start; gap:14px; padding:12px 0; border-bottom:1px solid #f0f4f8; font-size:.9rem; }
.apply-steps-list li:last-child { border-bottom:none; }
.step-num { width:28px; height:28px; min-width:28px; border-radius:50%; background:var(--primary); color:#fff; font-weight:700; font-size:.8rem; display:flex; align-items:center; justify-content:center; }
.apply-steps-list li strong { display:block; font-weight:600; margin-bottom:2px; }
.apply-steps-list li span { color:var(--text-muted); font-size:.83rem; }

/* Detail alerts */
.detail-alert { border-radius:8px; padding:12px 16px; font-size:.87rem; display:flex; align-items:flex-start; gap:10px; margin-top:14px; }
.detail-alert i { flex-shrink:0; margin-top:2px; }
.detail-alert-warning { background:#fffbeb; border:1px solid #fde68a; color:#78350f; }
.detail-alert-info    { background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; }
.detail-alert-success { background:#f0fdf4; border:1px solid #bbf7d0; color:#14532d; }

/* Deadline hero dark */
.deadline-hero-safe    { background:linear-gradient(135deg,#065f46,#059669); color:#fff; }
.deadline-hero-warning { background:linear-gradient(135deg,#92400e,#d97706); color:#fff; }
.deadline-hero-urgent  { background:linear-gradient(135deg,#7f1d1d,#dc2626); color:#fff; }
.deadline-hero-expired { background:linear-gradient(135deg,#374151,#6b7280); color:#fff; }
.deadline-hero-label   { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; opacity:.85; }
.deadline-hero-date    { font-size:1.35rem; font-weight:800; margin:4px 0; }
.deadline-hero-count   { font-size:.85rem; opacity:.9; }

/* Quick info sidebar */
.quick-info-list { padding:0; }
.quick-info-row { display:flex; align-items:center; gap:12px; padding:10px 20px; border-bottom:1px solid var(--border); font-size:.85rem; }
.quick-info-row:last-child { border-bottom:none; }
.quick-info-row i { color:var(--primary); font-size:1rem; width:18px; flex-shrink:0; }
.qi-label { color:var(--text-muted); font-size:.76rem; display:block; }
.qi-val { color:var(--text-main); font-weight:600; }

/* Dates list */
.dates-list { padding:0; }
.date-row { display:flex; justify-content:space-between; align-items:center; padding:10px 20px; border-bottom:1px solid var(--border); font-size:.855rem; flex-wrap:wrap; gap:4px; }
.date-row:last-child { border-bottom:none; }
.date-row span { color:var(--text-muted); }
.date-row.highlight { background:#fff5f5; }
.date-row.highlight strong { color:#dc2626; }

/* Apply buttons */
.btn-apply { display:block; width:100%; padding:12px; border-radius:8px; font-weight:700; font-size:.95rem; text-align:center; text-decoration:none; margin-bottom:10px; border:none; cursor:pointer; transition:opacity .15s; }
.btn-apply:hover { opacity:.9; }
.btn-apply-primary { background:#16a34a; color:#fff; }
.btn-apply-primary:hover { background:#15803d; color:#fff; }
.btn-apply-outline { background:#fff; color:var(--primary); border:2px solid var(--primary); }
.btn-apply-outline:hover { background:#eff6ff; color:var(--primary); }

/* Mobile */
@media (max-width:767px) {
    .exam-links-scroll { flex-wrap:nowrap; }
    .qual-block { padding:12px 14px; gap:10px; }
    .qual-block-icon { width:38px; height:38px; font-size:1rem; }
    .qual-block-title { font-size:.82rem; }
    .info-table td:first-child { width:45%; font-size:.8rem; }
    .blog-content { font-size:.9rem; }
    .detail-action-card { position:static !important; }
}

/* ================================================
   Result & Admit Card Cards - Fix Alignment & BG
   ================================================ */

/* Result / Admit Card page cards */
.result-card, .admit-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.result-card:hover, .admit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Result card header */
.result-card-header {
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #065f46, #059669);
    color: #fff;
}
.admit-card-header {
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #92400e, #d97706);
    color: #fff;
}
.result-card-header.header-tn,
.admit-card-header.header-tn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Card badge */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: 8px;
}

/* Card body */
.result-card-body, .admit-card-body {
    padding: 16px;
    flex: 1;
}
.result-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}
.result-card-org {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.result-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.result-meta-row i { color: var(--primary-light); flex-shrink: 0; }
.result-meta-row strong { color: var(--text-main); }

/* Card footer */
.result-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-check-result {
    display: block;
    text-align: center;
    padding: 9px 12px;
    background: #059669;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    transition: background .15s;
    text-decoration: none;
}
.btn-check-result:hover { background: #047857; color: #fff; }
.btn-download-merit {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s;
    text-decoration: none;
}
.btn-download-merit:hover { background: #eff6ff; color: var(--primary); }
.btn-full-details {
    display: block;
    text-align: center;
    padding: 7px 12px;
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 500;
    transition: background .15s;
    text-decoration: none;
}
.btn-full-details:hover { background: var(--bg-light); color: var(--text-main); }

/* Admit card download button */
.btn-download-admit {
    display: block;
    text-align: center;
    padding: 9px 12px;
    background: #d97706;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 700;
    transition: background .15s;
    text-decoration: none;
}
.btn-download-admit:hover { background: #b45309; color: #fff; }

/* Page header for results/admit cards */
.results-page-header {
    background: linear-gradient(135deg, #065f46, #047857);
    color: #fff;
    padding: 36px 0 28px;
}
.admit-page-header {
    background: linear-gradient(135deg, #92400e, #b45309);
    color: #fff;
    padding: 36px 0 28px;
}

/* Exam Landing Page Header */
.exam-page-header {
    color: #fff;
    padding: 36px 0 28px;
}

/* Blog Content Styling */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .88rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.blog-content table thead th {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    padding: 12px 16px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
}
.blog-content table tbody tr {
    border-bottom: 1px solid #f0f4f8;
    transition: background .15s;
}
.blog-content table tbody tr:hover { background: #f0f7ff; }
.blog-content table tbody tr:last-child { border-bottom: none; }
.blog-content table tbody td {
    padding: 12px 16px;
    color: #1e293b;
    vertical-align: top;
    line-height: 1.6;
}
.blog-content table tbody td:first-child {
    font-weight: 600;
    color: #374151;
    background: #f8fafc;
    width: 35%;
}
.blog-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 24px 0 10px;
}
.blog-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 20px 0 8px;
}
.blog-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
    font-size: .95rem;
}
.blog-content ul, .blog-content ol {
    margin: 12px 0 16px 20px;
    line-height: 1.8;
    color: #374151;
    font-size: .95rem;
}
.blog-content li { margin-bottom: 6px; }
.blog-content strong { color: #1e293b; }
.blog-content blockquote {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: .92rem;
    color: #1e40af;
}
.blog-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 32px 0;
}
@media(max-width:767px) {
    .blog-content table { font-size: .8rem; }
    .blog-content table thead th,
    .blog-content table tbody td { padding: 8px 10px; }
    .blog-content table tbody td:first-child { width: auto; }
}
