:root { --red: #b90000; --nav: #161616; --ink: #20242b; --cream: #fffaf0; }
* { box-sizing: border-box; }
body { color: var(--ink); background: #f7f7f7; font-family: Poppins, 'Noto Sans Devanagari', sans-serif; }

.site-header { background: linear-gradient(105deg, #960000, #d71818); border-bottom: 4px solid #ffc107; }
.brand-mark { display: grid; width: 50px; height: 50px; color: #fff; border: 2px solid #fff; border-radius: 50%; font-size: 19px; font-weight: 800; place-items: center; }
.site-logo { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 7px; }
.brand-name { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -1px; text-decoration: none; }
.brand-name span { color: #ffe48b; }
.brand-tagline { color: #fff8d4; font-size: 12px; letter-spacing: .5px; }

.main-nav { background: var(--nav); box-shadow: 0 2px 5px #0002; }
.nav-scroll { display: flex; overflow-x: auto; }
.nav-scroll a { padding: 13px 16px; color: #fff; border-right: 1px solid #ffffff20; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav-scroll a:hover { background: var(--red); }

.hero { padding: 38px 15px; background: var(--cream); border: 1px solid #f0dfbd; border-radius: 12px; }
.hero-eyebrow { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.hero h1 { margin: 8px 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.hero p { color: #5f6368; }
.search-box { display: flex; max-width: 600px; gap: 8px; }
.search-box .form-control { border-radius: 7px; }

.quick-link { display: block; padding: 12px 8px; color: #fff; background: #00796b; border-radius: 5px; box-shadow: inset 0 -3px #004d40; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.quick-link:hover { color: #fff; background: #005f55; }
.notice-strip { padding: 12px 15px; background: #fff2cf; border-left: 5px solid #f4ad00; font-size: 14px; }
.section-heading { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 22px; font-weight: 700; }
.section-heading span { color: #777; font-size: 13px; }

.ticker { overflow: hidden; padding: 11px; background: #fff; border: 1px solid #ddd; }
.ticker-content { animation: scroll 35s linear infinite; white-space: nowrap; }
.ticker a { color: #b00000; font-size: 14px; font-weight: 600; text-decoration: none; }
.ticker i { margin: 0 13px; color: #ffc107; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-35%); } }

.post-panel { height: 100%; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 5px #0000000c; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; color: #fff; background: var(--red); }
.panel-title h3 { margin: 0; font-size: 18px; font-weight: 700; }
.panel-title a { color: #fff; font-size: 12px; }
.panel-title.results { background: #1976d2; }
.panel-title.admit-card { background: #7b1fa2; }
.panel-title.answer-key { background: #ef6c00; }
.panel-title.admission { background: #00796b; }
.panel-title.syllabus { background: #455a64; }
.post-list { margin: 0; padding: 8px 15px; list-style: none; }
.post-list li { padding: 9px 0; border-bottom: 1px dashed #ddd; }
.post-list li:last-child { border: 0; }
.post-list a { color: #004b9b; font-family: 'Noto Sans Devanagari', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; }
.post-list a:hover { color: #c00000; text-decoration: underline; }
.post-list small { display: block; margin-top: 2px; color: #777; font-size: 11px; }
.empty-state { color: #999; font-size: 13px; }

.detail-card { background: #fff; border: 1px solid #ddd; }
.detail-title { padding: 28px; color: #fff; background: linear-gradient(135deg, #940000, #d41111); text-align: center; }
.detail-title h1 { margin: 12px 0 4px; font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
.detail-title p { margin: 0; color: #ffeda3; }
.info-heading { padding: 8px 10px; background: #f0f0f0; border-left: 5px solid var(--red); font-size: 18px; }
.post-section { padding: 18px; background: #fffdf7; border: 1px solid #eadfbd; border-radius: 5px; line-height: 1.8; }
.post-section h2 { margin: -18px -18px 15px; padding: 9px 14px; color: #fff; background: var(--red); font-size: 18px; font-weight: 700; }
.page-content { min-height: 200px; line-height: 1.85; }
.footer { color: #ddd; background: #1c1c1c; font-size: 13px; }
.footer-pages a { display: inline-block; margin-left: 18px; color: #ffc107; font-size: 13px; text-decoration: none; }
.footer-pages a:hover { color: #fff; text-decoration: underline; }
.pagination { margin-top: 20px; }

@media (max-width: 767px) {
    .brand-name { font-size: 24px; }
    .hero { padding: 28px 10px; }
    .search-box { flex-direction: column; }
    .quick-link { font-size: 12px; }
    .detail-card { margin: 0 -4px; }
}
