/* System Redesign 2026 - Modern Authority Theme */
:root {
    --primary-blue: #1e3a8a;
    /* Deep Royal Blue */
    --primary-dark: #0f172a;
    /* Slate 900 */
    --accent-gold: #f59e0b;
    /* Amber 500 */
    --bg-body: #f3f4f6;
    /* Cool Grey 100 */
    --bg-white: #ffffff;
    --text-main: #1f2937;
    /* Gray 800 */
    --text-muted: #6b7280;
    /* Gray 500 */
    --border-color: #e5e7eb;
    /* Gray 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

a:hover {
    color: var(--primary-blue);
}


.wid1200 {
    /* Industry standard width for enterprise/gov portals */
    width: 1200px;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
    padding: 0 15px;
    /* Standard gutter */
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Header 2026 --- */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-dark);
    color: #e2e8f0;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
}

.top-bar a {
    color: #cbd5e1;
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--bg-white);
}

.top-bar .welcome-msg {
    float: left;
}

.top-bar .top-tools {
    float: right;
}

.main-header {
    height: 80px;
    /* display: flex; REMOVED to allow block measuring for wid1200 margins */
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    /* Ensure bg is white */
}


.main-header .wid1200 {
    display: flex;
    justify-content: space-between;
    /* Reverted to space-between for correct centering */
    align-items: center;
    height: 100%;
}

/* ... */
/* --- Clients --- */
.client-logos {
    display: flex;
    gap: 0;
    /* Removing gap, using margins inside fixed box */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.client-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    /* Fixed width box */
    height: 80px;
    /* Fixed height box */
    margin: 0 10px;
    background: #fff;
    /* Optional: ensures white bg if needed */
}

.client-logos img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

/* ... */
.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #cbd5e1 !important;
    /* Force readable color */
}

.copyright a {
    color: #cbd5e1 !important;
}


.logo img {
    height: 60px;
    /* Slightly larger logo for wider screen */
    width: auto;
}

.main-nav {
    display: flex;
    gap: 40px;
    /* Increased gap */
}

.main-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    padding: 28px 0;
    border-bottom: 3px solid transparent;
}




/* --- Hero Section Refined (Inside Box) --- */
.hero-box {
    margin-bottom: 30px !important;
    background: linear-gradient(to right, #eff6ff, #ffffff);
    /* Soft gradient */
    /* border-top: 5px solid var(--primary-blue); REMOVED hard border */
    padding: 50px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* For watermark */
    border: 1px solid #eff6ff;
    /* Very subtle border to blend in */
}

/* Watermark Icon */
.hero-box::after {
    content: "\e609";
    /* Layui icon or similar decorative shape */
    font-family: "layui-icon" !important;
    position: absolute;
    right: 40px;
    bottom: -20px;
    font-size: 140px;
    color: rgba(30, 58, 138, 0.05);
    /* Very faint watermark */
    pointer-events: none;
    transform: rotate(-10deg);
}

.hero-box .hero-content {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* Styles for login box inside hero if needed, or keeping standalone */
.login-status-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 300px;
}

.login-status-card a {
    color: white;
    font-weight: 600;
}

/* --- Notice Bar --- */
.notice-bar {
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #c2410c;
    padding: 10px 0;
    margin-bottom: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.notice-bar i {
    margin-right: 8px;
}

/* --- Main Grid Layout --- */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    /* Reduced to standard gap */
}

/* Ensure no double margin */
.main-grid .section-box {
    margin-bottom: 0 !important;
}

.section-box {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px !important;
    /* Standard spacing for stacked boxes */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
}

/* Only show underline for left-aligned titles, NOT centered ones */
.section-title:not(.text-center)::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-blue);
}

.more-link {
    font-size: 14px;
    color: var(--text-muted);
}

.more-link:hover {
    color: var(--primary-blue);
}

/* --- News List --- */
.news-feat {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-feat-date {
    background: var(--bg-body);
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    min-width: 80px;
}

.news-feat-date .day {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
}

.news-feat-date .year {
    font-size: 12px;
    color: var(--text-muted);
}

.news-feat-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.news-feat-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.news-list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

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

.news-list-item a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.news-list-item span {
    color: var(--text-muted);
    font-size: 13px;
}

/* --- Quick Actions (Inside Box) --- */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-card {
    background: #f8fafc;
    /* Subtle grey bg to pop against white box */
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.action-card:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.action-card span {
    font-weight: 600;
}

/* --- Exam Table --- */
.exam-table {
    width: 100%;
    border-collapse: collapse;
}

.exam-table th {
    background: var(--bg-body);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
}

.exam-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    /* Prevent line breaks generally */
}

/* Allow title to wrap if needed, but not badges */
.exam-table td:nth-child(2) {
    white-space: normal;
}

.exam-table tr:hover td {
    background: var(--bg-body);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    /* More professional rectangle */
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    /* CRITICAL: Prevent badge text wrapping */
    min-width: 80px;
    text-align: center;
}

.status-coming {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-active {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-ended {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* --- Process Flow --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 16.66%;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    line-height: 46px;
    margin: 0 auto 10px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.step-text {
    font-size: 14px;
    font-weight: 500;
}

.step-item:hover .step-num,
.step-item.active .step-num {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

/* --- Clients --- */
.client-logos {
    display: flex;
    gap: 40px;
    /* Increased gap */
    justify-content: center;
    align-items: center;
    /* Center Vertically */
    flex-wrap: wrap;
    padding: 20px 0;
}

.client-logos img {
    height: 60px;
    /* Fixed Height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    margin: 0 15px;
}

.client-logos img:hover {
    filter: none;
    opacity: 1;
}

/* --- Stats --- */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Footer 2026 --- */
footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 80px;
    /* More space before footer */
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-col li {
    margin-bottom: 10px;
    color: #cbd5e1 !important;
    /* Force Light Gray */
}

.footer-col a {
    color: #cbd5e1 !important;
}

.footer-col a:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

.footer-qrcode {
    background: white;
    padding: 5px;
    border-radius: 4px;
    max-width: 120px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 13px;
    color: #94a3b8 !important;
    /* Lighter than default */
}

/* --- Utils --- */
.mt-20 {
    margin-top: 20px;
}

.text-center {
    text-align: center;
}