/* ==========================================
   APNA UPDATES - MAIN STYLESHEET
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(79, 70, 229, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    pointer-events: none;
}

/* Header Top Bar */
.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    gap: 25px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.digital-clock-wrapper {
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 20px;
}

#digitalClock {
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-top-right {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Header Main */
.header-main {
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9em;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text h1 span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-weight: 400;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 5px;
    list-style: none;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.07em;
    border-radius: 10px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: inset 0 -3px 0 rgba(251, 191, 36, 0.8);
}
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   BREAKING NEWS
   ========================================== */
.breaking-news {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #e94560, #ff6b6b, #e94560) 1;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.breaking-news .container {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.breaking-label {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    padding: 16px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 5px 0 20px rgba(233, 69, 96, 0.4);
}

/* Pulsing Red Dot */
.breaking-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.7;
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    }
}

/* Arrow Shape */
.breaking-label::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    clip-path: polygon(0 0, 50% 50%, 0 100%);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 16px 0;
    padding-left: 40px;
    position: relative;
}

/* Gradient Fade on Edges */
.ticker-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, #1a1a2e, transparent);
    z-index: 3;
    pointer-events: none;
}

.ticker-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to left, #1a1a2e, transparent);
    z-index: 3;
    pointer-events: none;
}

.news-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 28s linear infinite;
}

.news-ticker a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95em;
    padding: 0 15px;
    transition: all 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.news-ticker a::before {
    content: '⚡';
    font-size: 1.1em;
}

.news-ticker a::after {
    content: '│';
    color: rgba(233, 69, 96, 0.5);
    margin-left: 15px;
}

.news-ticker a:last-child::after {
    content: '';
}

.news-ticker a:hover {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-wrapper:hover .news-ticker {
    animation-play-state: paused;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    padding: 40px 0 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* ==========================================
   SIDEBAR WIDGETS
   ========================================== */
.widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.widget-header {
    padding: 16px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.widget-header.blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-bottom-color: #bfdbfe;
}

.widget-header.indigo {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #3730a3;
    border-bottom-color: #c7d2fe;
}

.widget-header.green {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-bottom-color: #a7f3d0;
}

.widget-header.purple {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    color: #5b21b6;
    border-bottom-color: #ddd6fe;
}

.widget-header.orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    border-bottom-color: #fed7aa;
}

.widget-body {
    padding: 10px 0;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #4b5563;
    font-size: 0.9em;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.widget-link:last-child {
    border-bottom: none;
}

.widget-link:hover {
    background: #f8f9ff;
    color: #4f46e5;
    padding-left: 25px;
}

.widget-link-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    flex-shrink: 0;
}

.widget-link-count {
    margin-left: auto;
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
}

/* ==========================================
   STATE WISE UPDATES - BOLD & HIGHLIGHTED
   ========================================== */
.left-sidebar .widget-header.blue {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

.left-sidebar .widget-link {
    font-weight: 700;
    font-size: 0.95em;
    color: #1f2937;
}

.left-sidebar .widget-link-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    font-size: 1.1em;
}

.left-sidebar .widget-link-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8em;
    padding: 3px 10px;
}

.left-sidebar .widget-link:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    font-weight: 800;
}

.left-sidebar .widget-link:hover .widget-link-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.left-sidebar .widget-link:hover .widget-link-count {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

/* ==========================================
   HYPERLINK LIST WIDGET
   ========================================== */
.link-list {
    padding: 8px 0;
}

.link-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    background: #f8fafc;
    padding-left: 22px;
}

.link-item-number {
    width: 22px;
    height: 22px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s;
}

.link-item:hover .link-item-number {
    background: #4f46e5;
    color: white;
}

.link-item-content {
    flex: 1;
    min-width: 0;
}

.link-item-title {
    color: #1e40af;
    font-size: 0.88em;
    line-height: 1.4;
    display: block;
    transition: color 0.3s;
}

.link-item-title:hover {
    color: #dc2626;
    text-decoration: underline;
}

.link-item-date {
    font-size: 0.75em;
    color: #9ca3af;
    margin-top: 3px;
}

/* View More Button */
.view-more-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #4f46e5;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    border-top: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: #4f46e5;
    color: white;
}

.view-more-btn.green:hover { background: #059669; }
.view-more-btn.purple:hover { background: #7c3aed; }
.view-more-btn.blue:hover { background: #2563eb; }

/* ==========================================
   MAIN SECTION - LATEST UPDATES
   ========================================== */
.main-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-bottom: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #3730a3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header .count-badge {
    background: #4f46e5;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: 600;
}

/* Updates List */
.updates-list {
    padding: 10px 0;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: #f8fafc;
    padding-left: 30px;
}

.update-category {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 90px;
    text-align: center;
}

.update-category.result { background: #d1fae5; color: #047857; }
.update-category.admit-card { background: #fee2e2; color: #b91c1c; }
.update-category.answer-key { background: #ede9fe; color: #6d28d9; }
.update-category.latest-job { background: #dbeafe; color: #1d4ed8; }

.update-title {
    flex: 1;
    color: #1e40af;
    font-size: 0.95em;
    line-height: 1.4;
    transition: color 0.3s;
}

.update-item:hover .update-title {
    color: #dc2626;
}

.update-date {
    color: #9ca3af;
    font-size: 0.8em;
    white-space: nowrap;
    flex-shrink: 0;
}

.update-arrow {
    color: #c7d2fe;
    font-size: 1.1em;
    transition: all 0.3s;
}

.update-item:hover .update-arrow {
    color: #4f46e5;
    transform: translateX(3px);
}

/* Section View More */
.section-view-more {
    display: block;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s;
}

.section-view-more:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

/* ==========================================
   ANSWER KEY SECTION
   ========================================== */
.section-header.purple {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-bottom-color: #ddd6fe;
}

.section-header.purple h2 {
    color: #5b21b6;
}

.section-header.purple .count-badge {
    background: #7c3aed;
}

.section-view-more.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.section-view-more.purple:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

/* ==========================================
   NO DATA MESSAGE
   ========================================== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-data-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* ==========================================
   FOOTER - ATTRACTIVE & BOLD
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: white;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Footer Left - Logo & Text */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left p:first-child {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-left p:first-child span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p:last-child {
    font-size: 1.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.footer-links a:hover {
    background: rgba(251, 191, 36, 0.9);
    color: #1e1b4b;
    border-color: #fbbf24;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Footer Bottom Bar */
.footer-bottom {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

.footer-bottom p a {
    color: #fbbf24;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-bottom p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================
   FOOTER - DARK MODE
   ========================================== */
body.dark-mode .site-footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #252545 100%);
}

body.dark-mode .footer-links a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .footer-links a:hover {
    background: rgba(251, 191, 36, 0.9);
    color: #1e1b4b;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background: #5568d3;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

/* ==========================================
   NOTIFICATION
   ========================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success { background: #27ae60; }
.notification-error { background: #e74c3c; }
.notification-info { background: #3498db; }
.notification-warning { background: #f39c12; }

/* ==========================================
   PAGE LOADER
   ========================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
a:focus, button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ==========================================
   DARK MODE
   ========================================== */
body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #252545 100%);
}

body.dark-mode .header-top {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .widget,
body.dark-mode .main-section {
    background: #252545;
    border-color: #3a3a5a;
    color: #e0e0e0;
}

body.dark-mode .widget-header.blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

body.dark-mode .widget-header.indigo {
    background: linear-gradient(135deg, #2d2a5a 0%, #3d3a7a 100%);
}

body.dark-mode .widget-header.green {
    background: linear-gradient(135deg, #1a4a3a 0%, #2a6a4a 100%);
}

body.dark-mode .widget-header.purple {
    background: linear-gradient(135deg, #3a2a5a 0%, #4a3a7a 100%);
}

body.dark-mode .widget-header.orange {
    background: linear-gradient(135deg, #5a3a1a 0%, #7a4a2a 100%);
}

body.dark-mode .widget-link {
    color: #c0c0d0;
    border-bottom-color: #3a3a5a;
}

body.dark-mode .widget-link:hover {
    background: #3a3a5a;
    color: #818cf8;
}

body.dark-mode .widget-link-icon {
    background: #3a3a5a;
}

body.dark-mode .link-item {
    border-bottom-color: #3a3a5a;
}

body.dark-mode .link-item:hover {
    background: #3a3a5a;
}

body.dark-mode .link-item-title {
    color: #818cf8;
}

body.dark-mode .link-item-title:hover {
    color: #a5b4fc;
}

body.dark-mode .link-item-date {
    color: #8888a0;
}

body.dark-mode .section-header {
    background: linear-gradient(135deg, #2d2a5a 0%, #3d3a7a 100%);
    border-bottom-color: #4a4a6a;
}

body.dark-mode .section-header h2 {
    color: #c0c0f0;
}

body.dark-mode .update-item {
    border-bottom-color: #3a3a5a;
}

body.dark-mode .update-item:hover {
    background: #3a3a5a;
}

body.dark-mode .update-title {
    color: #818cf8;
}

body.dark-mode .update-item:hover .update-title {
    color: #a5b4fc;
}

body.dark-mode .update-date {
    color: #8888a0;
}

body.dark-mode .view-more-btn {
    background: #3a3a5a;
    color: #818cf8;
    border-top-color: #4a4a6a;
}

body.dark-mode .view-more-btn:hover {
    background: #4f46e5;
    color: white;
}

body.dark-mode .no-data {
    color: #8888a0;
}

body.dark-mode .site-footer {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
}

/* Left Sidebar Dark Mode */
body.dark-mode .left-sidebar .widget-header.blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
}

body.dark-mode .left-sidebar .widget-link {
    color: #f1f5f9;
    font-weight: 700;
}

body.dark-mode .left-sidebar .widget-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ==========================================
   POST CARDS
   ========================================== */
.post-card {
    padding: 20px;
    border: 1px solid #eee;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s;
    background: #fff;
}

.post-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-left-width: 6px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85em;
    align-items: center;
}

.category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
}

.date {
    color: #666;
    display: flex;
    align-items: center;
}

.date::before {
    content: "📅";
    margin-right: 5px;
}

.post-card h3 {
    margin: 10px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.post-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card h3 a:hover {
    color: #667eea;
}

.post-card p {
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 20px;
    border: 2px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s;
}

.read-more:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .post-card {
    background: #252545;
    border-color: #3a3a5a;
    color: #e0e0e0;
}

body.dark-mode .post-card h3 a {
    color: #e0e0e0;
}

body.dark-mode .post-card h3 a:hover {
    color: #818cf8;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-link:hover {
    background: #667eea;
    color: white;
}

.page-link.active {
    background: #667eea;
    color: white;
    font-weight: bold;
}

/* ==========================================
   HOMEPAGE SEARCH BOX
   ========================================== */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.homepage-search {
    flex: 1;
    max-width: 450px;
}

.homepage-search form {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.homepage-search form:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.homepage-search input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95em;
    outline: none;
}

.homepage-search input::placeholder {
    color: rgba(255,255,255,0.8);
}

.homepage-search button {
    padding: 12px 18px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.homepage-search button:hover {
    background: rgba(255,255,255,0.35);
}

/* ==========================================
   ALL UPDATES PAGE
   ========================================== */
.all-updates-page {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.all-updates-page h1 {
    color: #667eea;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.page-info {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.update-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ==========================================
   LATEST UPDATES LIST
   ========================================== */
.latest-updates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-updates-list li {
    padding: 12px 15px;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.latest-updates-list li:hover {
    background: #f8f9ff;
}

.latest-updates-list li:last-child {
    border-bottom: none;
}

/* Category Colors */
.update-category.result,
.update-category.results {
    background: #27ae60;
    color: white;
}

.update-category.admit-card {
    background: #e74c3c;
    color: white;
}

.update-category.answer-key {
    background: #9b59b6;
    color: white;
}

.update-category.latest-job,
.update-category.latest-jobs {
    background: #3498db;
    color: white;
}

.update-category.syllabus {
    background: #f39c12;
    color: white;
}

.update-category.admission {
    background: #1abc9c;
    color: white;
}

/* Update Link */
.update-link {
    color: #1a0dab;
    text-decoration: none;
    font-size: 1em;
    line-height: 1.4;
    flex: 1;
    transition: all 0.3s;
}

.update-link:hover {
    color: #d93025;
    text-decoration: underline;
}

.update-link:visited {
    color: #660099;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .site-header, .site-footer, .breaking-news, .left-sidebar, .right-sidebar {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
}
/* ==========================================
   SOCIAL BUTTONS WITH ICONS
   ========================================== */
.social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s;
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.telegram-btn {
    background: rgba(0, 136, 204, 0.3);
    border: 1px solid rgba(0, 136, 204, 0.5);
}

.telegram-btn:hover {
    background: #0088cc;
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover {
    background: #25D366;
}

.social-text {
    display: inline;
}

/* ==========================================
   ALL WIDGET HEADERS - BOLD & HIGHLIGHTED
   Same Style as State Wise Updates
   ========================================== */

/* State Wise Updates - Blue (Already exists, keeping same) */
.left-sidebar .widget-header.blue {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

/* Central Level - Indigo - HIGHLIGHTED */
.widget-header.indigo {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

/* Popular Posts - Purple - HIGHLIGHTED */
.widget-header.purple {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

/* Quick Links - Orange - HIGHLIGHTED */
.widget-header.orange {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

/* Latest Results - Green - HIGHLIGHTED */
.widget-header.green {
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 18px 20px;
}

/* ==========================================
   MAIN SECTION HEADERS - BOLD & HIGHLIGHTED
   Latest Updates & Latest Answer Keys
   ========================================== */

/* Latest Updates - Default Blue/Indigo - HIGHLIGHTED */
.section-header {
    padding: 18px 25px;
    background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15em;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.section-header .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Latest Answer Keys - Purple - HIGHLIGHTED */
.section-header.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-bottom: none;
}

.section-header.purple h2 {
    color: #ffffff;
}

.section-header.purple .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================
   HOVER EFFECTS FOR HIGHLIGHTED HEADERS
   ========================================== */
.widget-header.blue,
.widget-header.indigo,
.widget-header.purple,
.widget-header.orange,
.widget-header.green,
.section-header,
.section-header.purple {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.widget-header.blue:hover {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.widget-header.indigo:hover {
    box-shadow: 0 6px 20px rgba(55, 48, 163, 0.4);
}

.widget-header.purple:hover,
.section-header.purple:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.widget-header.orange:hover {
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.widget-header.green:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.section-header:hover {
    box-shadow: 0 6px 20px rgba(55, 48, 163, 0.4);
}

/* ==========================================
   DARK MODE - HIGHLIGHTED HEADERS
   ========================================== */
body.dark-mode .widget-header.blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body.dark-mode .widget-header.indigo {
    background: linear-gradient(135deg, #312e81 0%, #6366f1 100%);
}

body.dark-mode .widget-header.purple,
body.dark-mode .section-header.purple {
    background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
}

body.dark-mode .widget-header.orange {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}

body.dark-mode .widget-header.green {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

body.dark-mode .section-header {
    background: linear-gradient(135deg, #312e81 0%, #6366f1 100%);
}
/* ==========================================
   STICKY HEADER WRAPPER
   Header + Nav Bar Stick Together
   ========================================== */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.sticky-header-wrapper.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}
/* ==========================================
   FOOTER - REDUCED SPACING (All Pages)
   ========================================== */
.site-footer {
    padding: 20px 0 25px 0;
}

.footer-content {
    gap: 15px;
}

.footer-left p {
    margin: 3px 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 15px 0 20px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 12px 0 15px 0;
    }
    
    .footer-left p {
        font-size: 0.8em;
    }
    
    .footer-links a {
        font-size: 0.75em;
    }
}
/* ==========================================
   FOOTER LINKS - FIX FOR DESKTOP
   ========================================== */

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
}

.site-footer .footer-links a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: #fbbf24;
}

/* Desktop - Keep all in one row */
@media (min-width: 769px) {
    .site-footer .footer-links {
        flex-wrap: nowrap;
        gap: 25px;
    }
    
    .site-footer .footer-links a {
        font-size: 0.88rem;
    }
}

/* Tablet - Allow wrapping with good spacing */
@media (max-width: 768px) {
    .site-footer .footer-links {
        flex-wrap: wrap;
        gap: 8px 18px;
    }
    
    .site-footer .footer-links a {
        font-size: 0.85rem;
    }
}

/* Mobile - Wrap nicely */
@media (max-width: 500px) {
    .site-footer .footer-links {
        gap: 6px 15px;
    }
    
    .site-footer .footer-links a {
        font-size: 0.82rem;
        padding: 4px 8px;
    }
}

/* Very Small Mobile */
@media (max-width: 400px) {
    .site-footer .footer-links {
        gap: 5px 12px;
    }
    
    .site-footer .footer-links a {
        font-size: 0.78rem;
        padding: 3px 6px;
    }
}