:root {
    --primary-blue: #0B3D91;
    --primary-blue-dark: #072a63;
    --saffron: #FF8C00;
    --saffron-light: #FFA500;
    --dark-bg: #111827;
    --light-bg: #F3F4F6;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 15px;
}

a { text-decoration: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-utility-bar {
    background: var(--dark-bg);
    color: #E5E7EB;
    padding: 7px 0;
    font-size: 13px;
}

.top-utility-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Highlights Ticker */
.highlights-ticker-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.highlights-label {
    background: var(--saffron);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ticker-scroll {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.ticker-inner {
    display: inline-block;
    animation: ticker-move 40s linear infinite;
    white-space: nowrap;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-inner span {
    display: inline-block;
    padding: 0 30px;
    color: #D1D5DB;
    font-size: 13px;
}

.ticker-inner span::before {
    content: '●';
    color: var(--saffron);
    margin-right: 8px;
    font-size: 9px;
}

@keyframes ticker-move {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Accessibility Controls */
.utility-divider {
    width: 1px;
    height: 20px;
    background: #374151;
    margin: 0 6px;
}

.skip-link {
    color: #9CA3AF;
    font-size: 12px;
    transition: color 0.2s;
}
.skip-link:hover { color: #fff; }

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.acc-btn {
    background: transparent;
    border: 1px solid #374151;
    color: #9CA3AF;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.2s;
    line-height: 1.4;
}
.acc-btn.active, .acc-btn:hover { background: #374151; color: #fff; }

/* Theme toggle */
.theme-toggle {
    display: flex;
    gap: 4px;
}
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s;
}
.theme-btn:hover { background: #374151; }

/* Quick links */
.quick-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 10px;
}
.quick-links a {
    color: #D1D5DB;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.quick-links a:hover { color: #fff; }

.main-header {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.vip-corner-left, .vip-corner-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 95px;
    width: 105px;
    object-fit: cover;
    border-radius: 6px;
    /* border: 2px solid var(--border-color); */
    padding: 2px;
    /* background: #fff; */
    z-index: 10;
}

.vip-corner-left {
    left: 20px;
}

.vip-corner-right {
    right: 20px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-left {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    margin-left: 80px;
    padding: 10px 18px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.header-center {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.header-gov-name {
    color: #C0392B;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    margin-right: 74px;
    text-transform: uppercase;
}

.header-system-name {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.2;
    margin-top: 3px;
    margin-right: 76px;
}

.header-logo-right img {
    height: 65px;
    width: 65px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    padding: 3px;
}

.nav-bar {
    background: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: stretch;
    margin: 0; padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: stretch;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #CBD5E1;
    font-weight: 600;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
    min-height: 52px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-login-btn {
    background: var(--saffron);
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0 30px !important;
    cursor: pointer;
    border: none;
    font-size: 15px !important;
    transition: background 0.2s !important;
}
.nav-login-btn:hover {
    background: #FFA500 !important;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hero-section {
    position: relative;
    padding: 0;
    min-height: 480px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.hero-skewed-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50vw;
    width: calc(50vw + 580px);
    background: #fff;
    clip-path: polygon(0 0, 100% 0, calc(100% - 150px) 100%, 0% 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 0;
    max-width: 480px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: #4B5563;
    margin: 0 0 12px;
    line-height: 1.15;
    text-transform: uppercase;
}

.hero-content h1 .text-blue {
    color: var(--primary-blue);
}

.hero-content p {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 440px;
}

.hero-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: var(--primary-blue);
    color: #fff;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}
.hero-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    transition: background 0.2s;
}

.hero-dot.active {
    background: var(--saffron);
}

.main-content-area {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.metrics-section {
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 35px 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metric-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px 20px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.ic-blue   { background: #EFF6FF; color: #2563EB; }
.ic-purple { background: #F5F3FF; color: #7C3AED; }
.ic-orange { background: #FFF7ED; color: #EA580C; }
.ic-green  { background: #F0FDF4; color: #16A34A; }

.metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

.sidebar-announcements {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 16px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcements-list {
    list-style: none;
    flex: 1;
    overflow: hidden;
}

.ann-item {
    padding: 18px 20px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    gap: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.ann-item:hover { background: #F9FAFB; }

.ann-icon {
    color: var(--saffron);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ann-body h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 6px;
}

.new-badge {
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.ann-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ann-date::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #D1D5DB;
    border-radius: 50%;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    background: #F8FAFC;
    transition: background 0.2s;
}

.view-all-link:hover {
    background: #F1F5F9;
    color: var(--primary-blue-dark);
}

.login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-overlay.active { display: flex; }

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: fadeScaleIn 0.3s ease-out;
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(-20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.login-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.login-close:hover { color: var(--text-dark); }

.login-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-card-header img {
    height: 55px;
    margin: 0 auto 10px;
    display: block;
}

.login-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.login-card-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11,61,145,0.1);
}

.input-wrap {
    position: relative;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.captcha-img-wrap {
    background: #f3f4f6;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    padding: 6px 12px;
    flex-shrink: 0;
}

.captcha-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
    font-size: 16px;
    transition: transform 0.3s;
}
.captcha-refresh-btn:hover { transform: rotate(180deg); }

.captcha-row .form-control { flex: 1; }

#login_err {
    display: block;
    color: #DC2626;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 18px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}

.btn-login:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--primary-blue);
    font-size: 13px;
    cursor: pointer;
}
.forgot-link:hover { text-decoration: underline; }

.site-footer {
    background: var(--dark-bg);
    color: #D1D5DB;
    padding: 50px 0 0;
    margin-top: 60px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--saffron);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: #9CA3AF;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 11px; }

.footer-links li a {
    color: #9CA3AF;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links li a:hover { color: #fff; }

.contact-detail {
    font-size: 14px;
    line-height: 1.6;
    color: #9CA3AF;
    margin-bottom: 8px;
}
.contact-detail strong { color: #E5E7EB; }

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding: 18px 0;
    margin-top: 40px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
}

.footer-copy {
    font-size: 13px;
    color: #6B7280;
}

.footer-dev {
    font-size: 13px;
    color: #6B7280;
}

@media (max-width: 1024px) {
    .main-content-area {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .site-footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--primary-blue); }
    .nav-menu.open li a { min-height: 46px; }
    .hamburger { display: flex; margin-left: auto; padding: 14px; }
    .nav-bar .container { position: relative; }
    .top-utility-bar .container { flex-wrap: wrap; gap: 8px; }
    .highlights-ticker-wrap { display: none; }
    .site-footer .container { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .header-system-name { font-size: 20px; }
    .hero-section h1 { font-size: 22px; }
    .login-card { margin: 0 16px; padding: 25px 20px; }
}
