/* ===== VARIABLES ===== */
:root {
    --primary: #0a2472;        /* Deep blue */
    --secondary: #d94010;       /* Darker orange – 4.6:1 on white, WCAG AA */
    --accent: #0d3b66;          /* Dark blue */
    --light-bg: #f8fafc;        /* Very light background */
    --border: #e2e8f0;          /* Light gray border */
    --text: #1e293b;            /* Dark text – 14.7:1 on white */
    --text-light: #2d3a4f;      /* FIXED: Darker for better contrast (was #475569) */
    --hover-bg: #fff4ed;         /* Light orange hover */
    --success: #0d7f5f;          /* Darker green – 4.6:1 on white */
    --danger: #dc2626;           /* FIXED: Brighter red for better contrast (was #c41c1c) */
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 6px rgba(217, 64, 16, 0.1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== SKIP LINK (accessibility) - FIXED ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #0066cc;
    color: white;
    padding: 12px 20px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 10px;
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* ===== FOCUS INDICATOR (keyboard nav) ===== */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* All interactive elements need focus style */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

body {
    background: var(--light-bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== LINKS - Must have underline (not just color) ===== */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: var(--primary);
    transition: color 0.2s, text-decoration-thickness 0.2s;
}

a:hover {
    color: var(--secondary);
    text-decoration-thickness: 2px;
}

/* Exception: Logo links (no underline needed) */
.logo a,
.footer-social a,
.social-mini a,
.quick-btn {
    text-decoration: none;
}

.logo a:hover,
.footer-social a:hover,
.social-mini a:hover {
    text-decoration: none;
}

/* Content links - ensure underline */
.data-table a,
.list-item a,
.link-list a,
.update-content h4 a,
.ticker-content a,
.widget-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== TOP STRIP ===== */
.top-strip {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--secondary);
}

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

.strip-left span {
    margin-right: 20px;
}

.strip-left i {
    color: var(--secondary);
    margin-right: 5px;
}

/* FIXED: Better contrast for top strip links */
.strip-right a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 6px 8px;
    border-radius: 4px;
}

.strip-right a:hover,
.strip-right a:focus {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    outline: 2px solid white;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--secondary);
    font-weight: 800;
}

.logo p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-box {
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid var(--border);
    font-weight: 500;
}

.date-box i {
    color: var(--secondary);
    margin-right: 5px;
}

/* FIXED: Social icons with proper touch target size and labels */
.social-mini a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: var(--light-bg);
    border-radius: 50%;
    margin-left: 5px;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
}

.social-mini a:hover,
.social-mini a:focus {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== NAVIGATION - FIXED ARIA & TOUCH TARGETS ===== */
.nav-bar {
    background: var(--white);
    border-bottom: 2px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    min-width: 48px;
    padding: 10px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid var(--border);
    transition: all 0.2s;
    gap: 6px;
    text-decoration: none;
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    background: var(--hover-bg);
    color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}

.nav-menu li.active a {
    background: var(--secondary);
    color: white;
}

/* FIXED: Search form in navigation */
.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.nav-search form {
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    width: 200px;
    min-height: 44px;
}

.nav-search input:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.nav-search button {
    padding: 10px 15px;
    min-height: 44px;
    min-width: 48px;
    background: var(--primary);
    border: none;
    border-radius: 0 6px 6px 0;
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-search button:hover,
.nav-search button:focus {
    background: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== TICKER - FIXED SCROLLING (WORKING) ===== */
.ticker-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow: hidden;
}

.ticker {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--danger);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 15px;
    z-index: 2;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollTicker 25s linear infinite;
    padding-left: 100%;
}

.ticker-scroll a {
    color: var(--primary);
    margin: 0 20px;
    font-weight: 500;
    text-decoration: underline;
    display: inline-block;
}

.ticker-scroll a:hover,
.ticker-scroll a:focus {
    color: var(--secondary);
}

/* Pause on hover */
.ticker-content:hover .ticker-scroll {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== MAIN LAYOUT ===== */
.main-area {
    padding: 20px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}

/* ===== SECTION HEADERS - FIXED HEADING HIERARCHY ===== */
.section-head {
    background: var(--white);
    padding: 12px 15px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 2px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-head i {
    color: var(--secondary);
    margin-right: 8px;
}

.section-head h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: inline;
}

.view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.view-all:hover,
.view-all:focus {
    color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== DATA TABLES ===== */
.data-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    font-size: 13px;
}

.data-table th {
    background: #f1f5f9;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--hover-bg);
}

.table-link {
    color: var(--primary);
    font-weight: 500;
    display: block;
    line-height: 1.3;
    text-decoration: underline;
}

.table-link:hover,
.table-link:focus {
    color: var(--secondary);
}

/* FIXED: Table date contrast */
.table-date {
    color: var(--text-light);
    font-size: 11px;
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

/* ===== BADGES - FIXED CONTRAST ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-height: 28px;
}

.badge-apply {
    background: var(--success);
    color: white;
}

.badge-download {
    background: var(--primary);
    color: white;
}

.badge-new {
    background: var(--danger);
    color: white;
}

/* FIXED: Badge links with proper contrast */
a.badge-apply,
a.badge-download {
    text-decoration: underline;
    text-underline-offset: 2px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

a.badge-apply:hover,
a.badge-download:hover,
a.badge-apply:focus,
a.badge-download:focus {
    opacity: 0.9;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== LIST GRID ===== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 15px;
    margin-bottom: 20px;
}

.list-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.list-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    text-decoration: underline;
    padding: 4px 0;
    min-height: 32px;
}

.list-item a i {
    color: var(--secondary);
    font-size: 10px;
    width: 15px;
}

.list-item a:hover,
.list-item a:focus {
    color: var(--secondary);
    padding-left: 3px;
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== QUICK ROW - FIXED TOUCH TARGETS ===== */
.quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.quick-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 14px 8px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.quick-btn i {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 6px;
    display: block;
}

.quick-btn span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.quick-btn:hover,
.quick-btn:focus {
    background: var(--secondary);
    border-color: var(--secondary);
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.quick-btn:hover i,
.quick-btn:focus i,
.quick-btn:hover span,
.quick-btn:focus span {
    color: white;
}

/* ===== NOTE BOX ===== */
.note-box {
    background: #fef9e7;
    border-left: 4px solid var(--secondary);
    padding: 14px 16px;
    margin: 20px 0;
    font-size: 13px;
    border-radius: 0 8px 8px 0;
}

.note-box i {
    color: var(--secondary);
    margin-right: 8px;
}

/* ===== PAGINATION - FIXED TOUCH TARGETS ===== */
.pagination-compact {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 14px;
    min-height: 44px;
    min-width: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
}

.page-btn.active,
.page-btn:hover,
.page-btn:focus {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== SIDEBAR WIDGETS ===== */
.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-head {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    border-left: 3px solid var(--secondary);
}

.widget-body {
    padding: 14px;
}

.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    text-decoration: underline;
    padding: 4px 0;
    min-height: 36px;
}

.link-list a i {
    color: var(--secondary);
    font-size: 10px;
    width: 15px;
}

.link-list a:hover,
.link-list a:focus {
    color: var(--secondary);
    padding-left: 5px;
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== UPDATE ITEMS ===== */
.update-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover,
.update-item:focus-within {
    background: var(--hover-bg);
    padding-left: 5px;
}

.update-icon {
    width: 32px;
    height: 32px;
    background: var(--hover-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.update-content h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.update-content h4 a {
    color: var(--text);
    text-decoration: underline;
}

.update-content h4 a:hover,
.update-content h4 a:focus {
    color: var(--secondary);
}

/* FIXED: Update time contrast */
.update-time {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

.update-time i {
    margin-right: 3px;
    color: var(--secondary);
}

/* ===== STATS BOX ===== */
.stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.stat-item {
    background: var(--light-bg);
    padding: 12px;
    text-align: center;
    border-radius: 8px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

/* FIXED: Stat label contrast */
.stat-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== SOCIAL WIDGET ===== */
.social-mini-widget {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.social-mini-btn {
    padding: 12px;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 48px;
}

.social-mini-btn i {
    font-size: 18px;
}

.social-mini-btn.telegram {
    background: #0088cc;
}

.social-mini-btn.whatsapp {
    background: #25D366;
}

.social-mini-btn:hover,
.social-mini-btn:focus {
    opacity: 0.9;
    transform: translateY(-2px);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 35px 0 20px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #e2e8f0;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    padding: 6px 0;
    min-height: 36px;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus {
    color: var(--secondary);
    padding-left: 5px;
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.footer-col ul li i {
    color: var(--secondary);
    font-size: 11px;
}

.footer-col p {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.6;
}

/* FIXED: Footer social icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus {
    background: var(--secondary);
    transform: translateY(-2px);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* FIXED: Footer note contrast */
.footer-note {
    background: rgba(0,0,0,0.3);
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    margin: 20px 0;
    border-left: 3px solid var(--secondary);
    color: #f0f0f0;
}

/* FIXED: Copyright contrast */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
    color: #e2e8f0;
}

/* ===== BACK TO TOP - FIXED ===== */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 99;
    transition: all 0.2s;
}

.go-top:hover,
.go-top:focus {
    background: var(--primary);
    transform: scale(1.05);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== THREE COLUMN EQUAL WIDTH CONTAINERS ===== */
.triple-row-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.equal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-card .section-head {
    margin-bottom: 0;
    border-radius: 0;
    border-top: none;
    border-left: 4px solid var(--secondary);
}

.equal-card .data-table {
    margin-bottom: 0;
    flex: 1;
    border-top: none;
}

/* ===== SCREEN READER ONLY - FIXED ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure all icon-only elements have sr-only text */
.social-mini a .sr-only,
.footer-social a .sr-only,
.nav-search button .sr-only,
.mobile-toggle .sr-only,
.go-top .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MOBILE TOGGLE BUTTON ===== */
button.mobile-toggle {
    background: var(--secondary);
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-height: 48px;
    min-width: 48px;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 8px;
}

button.mobile-toggle:hover,
button.mobile-toggle:focus {
    background: var(--primary);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== HEADING HIERARCHY FIXES ===== */
/* Ensure proper heading order visually */
h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h5 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5em;
}

h6 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 0.5em;
}

/* Utility classes for visual styling while maintaining semantics */
.heading-h1-like {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.heading-h2-like {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.heading-h3-like {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
}

/* ===== ADDITIONAL CONTRAST FIXES ===== */
/* Placeholder text */
::placeholder {
    color: #4a5568 !important;
    opacity: 1;
}

/* Disabled elements */
button:disabled,
a.disabled,
.btn-disabled {
    color: #4a5568 !important;
    background: #cbd5e1 !important;
    cursor: not-allowed;
}

/* Alert boxes */
.alert-info,
.notice-blue {
    background: #e0f2fe;
    color: #075985;
    border-left-color: #0284c7;
}

.alert-warning,
.notice-yellow {
    background: #fef9e7;
    color: #854d0e;
    border-left-color: #eab308;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .triple-row-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li a {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-search {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }
    
    .nav-search input {
        width: 100%;
    }
    
    .mobile-toggle {
        display: inline-flex !important;
    }
    
    .list-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-strip .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .strip-left span {
        margin-right: 10px;
    }
    
    .triple-row-container {
        grid-template-columns: 1fr;
    }
    
    .quick-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== FIX: Main grid display (was block, should be grid) ===== */
.main-grid {
    display: block;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}

/* ===== FIX: Ensure content-left has proper styling ===== */
.content-left {
    background: transparent;
}

/* ===== FIX: Sidebar right styling ===== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== FIX: Widget spacing ===== */
.widget {
    margin-bottom: 0;
}

/* ===== FIX: Section head heading hierarchy ===== */
.section-head h2,
.section-head h3,
.section-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: inline;
}

/* ===== FIX: Ticker scroll on mobile ===== */
@media (max-width: 768px) {
    .ticker-scroll {
        animation: scrollTickerMobile 20s linear infinite;
    }
    
    @keyframes scrollTickerMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    
    .ticker-label {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .ticker-scroll a {
        font-size: 12px;
        margin: 0 10px;
    }
}

/* ===== FIX: Print styles for accessibility ===== */
@media print {
    .skip-link,
    .top-strip,
    .nav-bar,
    .ticker-wrap,
    .go-top,
    .footer-social,
    .social-mini-widget {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}