/* ============================================
   SARKARI RESULT - MAIN STYLESHEET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #003580;
  --primary-light: #0057b8;
  --accent: #e8a000;
  --red: #c00;
  --green: #006400;
  --white: #fff;
  --bg: #f0f0f0;
  --border: #ccc;
  --text: #222;
  --link: #003580;
  --radius: 3px;
}
body { font-family: 'Noto Sans', Arial, sans-serif; font-size: 13px; background: var(--bg); color: var(--text); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

/* TOP BAR */
.top-bar { background: var(--red); color: #fff; font-size: 11px; padding: 4px 0; }
.top-bar-inner { max-width: 1100px; margin: 0 auto; padding: 0 10px; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ffe; }
.top-bar a:hover { color: #fff; }

/* HEADER */
header { background: linear-gradient(180deg, #003580 0%, #0057b8 100%); padding: 10px; }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-icon { width: 62px; height: 62px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--primary); font-size: 18px; flex-shrink: 0; }
.logo-text h1 { color: #fff; font-size: 22px; text-shadow: 1px 1px 2px #000; }
.logo-text p { color: #ffe; font-size: 11px; }
.whatsapp-btn { background: #25d366; color: #fff !important; padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.whatsapp-btn:hover { background: #1da851; text-decoration: none !important; }

/* NAV */
nav { background: var(--accent); border-top: 2px solid #c07000; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; }
nav ul { display: flex; list-style: none; flex-wrap: wrap; }
nav ul li a { display: block; padding: 9px 13px; color: #fff; font-weight: 700; font-size: 12.5px; }
nav ul li a:hover, nav ul li.active a { background: #c07000; text-decoration: none; }
.nav-toggle { display: none; background: #c07000; border: none; color: #fff; font-size: 14px; font-weight: bold; padding: 9px 14px; cursor: pointer; }

/* TICKER */
.ticker-wrap { background: #fff3cd; border-bottom: 2px solid #e8c700; display: flex; align-items: center; overflow: hidden; height: 30px; }
.ticker-label { background: var(--red); color: #fff; padding: 0 12px; font-weight: 700; font-size: 11px; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content { display: inline-flex; gap: 0; animation: ticker 50s linear infinite; white-space: nowrap; }
.ticker-content a { color: var(--red); font-weight: 700; font-size: 12px; margin-right: 50px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 8px 10px; }
.main-grid { display: grid; grid-template-columns: 1fr 280px; gap: 12px; margin-top: 10px; }

/* SECTION BOX */
.section-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.section-title { background: linear-gradient(90deg, var(--primary), var(--primary-light)); color: #fff; padding: 8px 12px; font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; }
.section-title .view-more { font-size: 11px; background: var(--accent); padding: 2px 9px; border-radius: 3px; color: #fff; font-weight: 700; }
.section-title .view-more:hover { background: #c07000; text-decoration: none; }

/* ENTRY LIST */
ul.entry-list { list-style: none; }
ul.entry-list li { border-bottom: 1px dotted #ddd; padding: 6px 10px; display: flex; align-items: flex-start; gap: 6px; }
ul.entry-list li:last-child { border-bottom: none; }
ul.entry-list li:hover { background: #f9f9f9; }
ul.entry-list li::before { content: "»"; color: var(--red); font-weight: 900; flex-shrink: 0; margin-top: 1px; }
ul.entry-list li a { color: var(--primary); font-size: 12.5px; line-height: 1.5; flex: 1; }
ul.entry-list li a:hover { color: var(--red); }
.meta { color: #888; font-size: 11px; margin-left: 4px; }

/* BADGES */
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 2px; margin-left: 4px; vertical-align: middle; }
.badge.new { background: #ffe000; color: var(--red); border: 1px solid var(--red); }
.badge.hot { background: #f60; color: #fff; }
.badge.out { background: #090; color: #fff; }
.badge.soon { background: #06c; color: #fff; }
.live-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* FEATURED BANNER */
.featured-banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 4px; padding: 12px 16px; color: #fff; margin-bottom: 12px; }
.featured-banner h3 { font-size: 13px; color: #ffe; margin-bottom: 8px; }
.featured-banner ul { list-style: none; }
.featured-banner li { padding: 3px 0; font-size: 12.5px; }
.featured-banner li::before { content: "► "; color: #ffe080; }
.featured-banner li a { color: #cde; }
.featured-banner li a:hover { color: #fff; text-decoration: underline; }

/* SEARCH BOX */
.search-box { background: #fff; border: 1px solid var(--border); padding: 10px; display: flex; gap: 6px; margin-bottom: 12px; border-radius: var(--radius); }
.search-box input { flex: 1; padding: 7px 10px; border: 1px solid #aaa; border-radius: 3px; font-size: 13px; font-family: inherit; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 7px 18px; border-radius: 3px; font-weight: 700; cursor: pointer; font-size: 13px; }
.search-box button:hover { background: var(--primary-light); }

/* QUICK LINKS */
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.ql-btn { background: #e8f0ff; border: 1px solid #99b; text-align: center; padding: 8px 4px; border-radius: 4px; font-size: 12px; color: var(--primary); font-weight: 700; display: block; }
.ql-btn:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* SIDEBAR */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.sidebar-box .section-title { font-size: 13px; }
.sidebar-box ul { list-style: none; }
.sidebar-box ul li a { display: block; padding: 7px 10px; color: var(--primary); font-size: 12px; border-bottom: 1px dotted #ddd; }
.sidebar-box ul li a:hover { background: #f0f5ff; color: var(--red); text-decoration: none; }
.ad-box { background: #e8e8e8; border: 1px dashed #aaa; text-align: center; padding: 20px 10px; color: #888; font-size: 12px; margin-bottom: 12px; border-radius: var(--radius); }

/* POST DETAIL PAGE */
.post-detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.post-detail h1 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.post-meta { color: #666; font-size: 12px; margin-bottom: 12px; }
.post-detail h2 { font-size: 14px; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin: 14px 0 8px; }
.post-detail table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12.5px; }
.post-detail table th { background: var(--primary); color: #fff; padding: 7px 10px; text-align: left; }
.post-detail table td { padding: 6px 10px; border-bottom: 1px solid #eee; }
.post-detail table tr:nth-child(even) td { background: #f9f9f9; }
.link-btn { display: inline-block; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: 700; margin: 4px; }
.link-btn.apply { background: var(--green); color: #fff; }
.link-btn.notify { background: var(--red); color: #fff; }
.link-btn.admit { background: #e8a000; color: #fff; }
.link-btn.result { background: var(--primary); color: #fff; }
.link-btn:hover { opacity: 0.85; text-decoration: none; }

/* FORMS */
.form-page { max-width: 480px; margin: 20px auto; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.form-page h2 { font-size: 18px; color: var(--primary); margin-bottom: 16px; text-align: center; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 10px; border: 1px solid #aaa; border-radius: 3px; font-size: 13px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.btn { display: inline-block; padding: 9px 22px; border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.alert { padding: 10px 14px; border-radius: 3px; font-size: 13px; margin-bottom: 12px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ADMIN STYLES */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1a1a2e; color: #eee; flex-shrink: 0; }
.admin-sidebar .brand { background: var(--primary); padding: 14px 16px; font-size: 15px; font-weight: 700; color: #fff; }
.admin-sidebar ul { list-style: none; padding: 8px 0; }
.admin-sidebar ul li a { display: block; padding: 10px 18px; color: #ccc; font-size: 13px; border-left: 3px solid transparent; }
.admin-sidebar ul li a:hover, .admin-sidebar ul li.active a { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--accent); text-decoration: none; }
.admin-main { flex: 1; background: #f5f5f5; }
.admin-topbar { background: #fff; padding: 12px 20px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar h2 { font-size: 16px; color: var(--primary); }
.admin-content { padding: 18px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 4px; padding: 16px; border-left: 4px solid var(--primary); }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 12px; color: #666; margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 4px; overflow: hidden; }
.data-table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-size: 12.5px; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid #eee; font-size: 12.5px; }
.data-table tr:hover td { background: #f9f9f9; }
.data-table .actions a { padding: 3px 8px; border-radius: 2px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.data-table .actions a.edit { background: var(--accent); color: #fff; }
.data-table .actions a.delete { background: var(--red); color: #fff; }
.data-table .actions a:hover { opacity: 0.85; text-decoration: none; }
.admin-form { background: #fff; border-radius: 4px; padding: 20px; }
.admin-form .form-group input, .admin-form .form-group select, .admin-form .form-group textarea { max-width: 600px; }

/* PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 12px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; font-size: 12.5px; }
.pagination a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* BREADCRUMB */
.breadcrumb { background: #fff; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; font-size: 12px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: #888; margin: 0 4px; }

/* PROFILE */
.profile-info { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.profile-info h3 { font-size: 15px; color: var(--primary); margin-bottom: 10px; }
.profile-avatar { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 10px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .nav-toggle { display: block; }
  nav ul { display: none; flex-direction: column; width: 100%; }
  nav ul.open { display: flex; }
  nav ul li a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; }
  .logo-text h1 { font-size: 17px; }
  .top-bar-inner { flex-direction: column; gap: 2px; text-align: center; }
}
