/* ===== VARIABLES ===== */
:root {
    --primary: #0a2472;        /* Deep blue */
    --secondary: #f6511d;       /* Bright orange */
    --accent: #0d3b66;          /* Dark blue */
    --light-bg: #f8fafc;        /* Very light background */
    --border: #e2e8f0;          /* Light gray border */
    --text: #1e293b;            /* Dark text */
    --text-light: #64748b;      /* Light text */
    --hover-bg: #fff4ed;         /* Light orange hover */
    --success: #10b981;          /* Green */
    --danger: #ef4444;           /* Red */
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 6px rgba(246, 81, 29, 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;
}

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;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s;
}

a:hover {
    color: var(--secondary);
}

/* ===== TOP STRIP ===== */
.top-strip {
    background: var(--primary);
    color: white;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--secondary);
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strip-left span {
    margin-right: 20px;
}

.strip-left i {
    color: var(--secondary);
    margin-right: 5px;
}

.strip-right a {
    color: white;
    margin-left: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.strip-right a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* ===== 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;
}

.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;
}

.date-box {
    background: var(--light-bg);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.date-box i {
    color: var(--secondary);
    margin-right: 5px;
}

.social-mini a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--light-bg);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-left: 5px;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.social-mini a:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ===== NAVIGATION ===== */
.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;
}

.nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-right: 1px solid var(--border);
    transition: all 0.2s;
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu li a:hover {
    background: var(--hover-bg);
    color: var(--secondary);
}

.nav-menu li.active a {
    background: var(--secondary);
    color: white;
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.nav-search input {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    width: 200px;
}

.nav-search button {
    padding: 6px 15px;
    background: var(--primary);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

.nav-search button:hover {
    background: var(--secondary);
}

/* ===== TICKER ===== */
.ticker-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.ticker {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-content marquee {
    color: var(--text);
    font-size: 13px;
}

.ticker-content marquee a {
    color: var(--primary);
    margin: 0 15px;
    font-weight: 500;
}

.ticker-content marquee a:hover {
    color: var(--secondary);
}

/* ===== MAIN LAYOUT ===== */
.main-area {
    padding: 20px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}

/* ===== SECTION HEADERS ===== */
.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;
}

.view-all {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-light);
}

.view-all:hover {
    color: var(--secondary);
}

/* ===== 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: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
}

.data-table td {
    padding: 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;
}

.table-link:hover {
    color: var(--secondary);
}

.table-date {
    color: var(--text-light);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.badge-apply {
    background: var(--success);
    color: white;
}

.badge-download {
    background: var(--primary);
    color: white;
}

.badge-new {
    background: var(--danger);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== 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: 5px 0;
    border-bottom: 1px dashed var(--border);
}

.list-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
}

.list-item a i {
    color: var(--secondary);
    font-size: 10px;
    width: 15px;
}

.list-item a:hover {
    color: var(--secondary);
    padding-left: 3px;
}

/* ===== QUICK ROW ===== */
.quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.quick-btn {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 12px 5px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.quick-btn i {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 5px;
    display: block;
}

.quick-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.quick-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.quick-btn:hover i,
.quick-btn:hover span {
    color: white;
}

.quick-btn:hover small {
    color: white !important;
}

/* ===== NOTE BOX ===== */
.note-box {
    background: #fef9e7;
    border-left: 4px solid var(--secondary);
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
}

.note-box i {
    color: var(--secondary);
    margin-right: 8px;
}

/* ===== PAGINATION ===== */
.pagination-compact {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 5px 10px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    border-radius: 3px;
}

.page-btn.active,
.page-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ===== SIDEBAR WIDGETS ===== */
.widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-head {
    background: #f8fafc;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    border-left: 3px solid var(--secondary);
}

.widget-body {
    padding: 12px;
}

.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
}

.link-list a i {
    color: var(--secondary);
    font-size: 10px;
    width: 15px;
}

.link-list a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.update-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: var(--hover-bg);
    padding-left: 5px;
}

.update-icon {
    width: 28px;
    height: 28px;
    background: var(--hover-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 12px;
}

.update-content h4 {
    font-size: 13px;
    margin-bottom: 2px;
}

.update-content h4 a {
    color: var(--text);
}

.update-content h4 a:hover {
    color: var(--secondary);
}

.update-time {
    font-size: 10px;
    color: var(--text-light);
}

.update-time i {
    margin-right: 3px;
    color: var(--secondary);
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    background: var(--light-bg);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
}

.social-mini-widget {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.social-mini-btn {
    padding: 10px;
    border-radius: 4px;
    color: white;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.social-mini-btn i {
    margin-right: 5px;
}

.social-mini-btn.telegram {
    background: #0088cc;
}

.social-mini-btn.whatsapp {
    background: #25D366;
}

.social-mini-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 30px 0 15px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #cbd5e1;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-col ul li i {
    color: var(--secondary);
    font-size: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.footer-note {
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 4px;
    font-size: 11px;
    margin: 20px 0;
    border-left: 3px solid var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: #94a3b8;
}

/* ===== BACK TO TOP ===== */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 99;
    transition: all 0.2s;
}

.go-top:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ===== 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);
    }
}

@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: block !important;
        padding: 12px 18px;
        color: var(--text);
        font-weight: 500;
        cursor: pointer;
    }
    
    .list-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-strip .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .strip-left span {
        margin-right: 10px;
    }
}