/* ============================================================
   SARKARI RESULT — Premium Design System
   Author: Sarkari Result Team
   Version: 1.0.0
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Colors */
  --primary:        #0F4CFF;
  --primary-dark:   #0A3ACC;
  --primary-light:  #3D6FFF;
  --primary-xlight: #EEF2FF;
  --accent:         #FF6B35;
  --accent-dark:    #E5551F;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;

  /* Neutrals */
  --white:          #FFFFFF;
  --bg:             #F5F7FA;
  --bg-card:        #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Typography */
  --font-main:      'Inter', sans-serif;
  --font-heading:   'Poppins', sans-serif;

  /* Spacing */
  --section-py:     60px;

  /* Borders */
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-full:    999px;

  /* Shadows */
  --shadow-sm:      0 1px 4px rgba(15,76,255,0.06);
  --shadow:         0 4px 20px rgba(15,76,255,0.08);
  --shadow-md:      0 8px 32px rgba(15,76,255,0.12);
  --shadow-lg:      0 16px 48px rgba(15,76,255,0.16);
  --shadow-hover:   0 12px 40px rgba(15,76,255,0.20);

  /* Transitions */
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:all 0.15s ease;

  /* Top bar height */
  --topbar-h:       38px;
  --header-h:       72px;
  --nav-h:          50px;
}

/* ── Dark Mode ───────────────────────────────────────────── */
body.dark-mode {
  --bg:        #0F172A;
  --bg-card:   #1E293B;
  --border:    #334155;
  --text:      #F1F5F9;
  --text-muted:#94A3B8;
  --border-light: #1E293B;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
}

/* ── Utility Classes ─────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--text-muted) !important; }
.bg-primary-xlight { background: var(--primary-xlight) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.font-heading { font-family: var(--font-heading); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--primary-dark);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.top-bar .date-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar .top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-bar .top-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.top-bar .top-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Dark mode toggle */
.dark-mode-toggle {
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.22); }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(15,76,255,0.07);
  position: relative;
  z-index: 100;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15,76,255,0.35);
}
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-name span { color: var(--accent); }
.logo-tagline { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

/* Header Search */
.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 24px;
}
.header-search .search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition-fast);
}
.header-search .search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,255,0.12);
  background: var(--white);
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  font-family: var(--font-main);
}
.header-search input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
}
.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-login {
  padding: 9px 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  transition: var(--transition-fast);
}
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register {
  padding: 9px 20px;
  background: var(--primary);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  transition: var(--transition-fast);
}
.btn-register:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(15,76,255,0.35);
}
.main-nav .navbar {
  padding: 0;
  min-height: var(--nav-h);
}
.main-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 14px 14px !important;
  position: relative;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.main-nav .nav-link i { font-size: 0.8rem; }
.main-nav .nav-link:hover,
.main-nav .nav-link.active-nav {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px 2px 0 0;
  transition: width 0.25s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active-nav::after { width: 70%; }

/* Dropdown */
.main-nav .dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  animation: dropDown 0.2s ease;
}
@keyframes dropDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.main-nav .dropdown-item {
  color: var(--text);
  font-size: 0.88rem;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.main-nav .dropdown-item:hover { background: var(--primary-xlight); color: var(--primary); }

/* Hamburger */
.navbar-toggler { border: none; color: #fff !important; padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15,76,255,0.03);
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
  padding: 4px;
}
.ticker-label {
  background: #DC2626 !important;
  color: #fff !important;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220,38,38,0.2);
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0 16px;
  display: flex;
  align-items: center;
}
.ticker-items {
  display: flex;
  gap: 40px;
  animation: tickerScroll 25s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.86rem;
  color: #1E293B;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-item::before {
  content: '•' !important;
  color: #2563EB !important;
  font-size: 1.2rem !important;
  margin-right: 2px;
}
.ticker-item a {
  color: #1E293B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.ticker-item a:hover {
  color: #2563EB;
}
.ticker-viewall {
  padding: 0 16px;
  font-size: 0.8rem;
  color: #2563EB !important;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.ticker-viewall:hover {
  color: #1D4ED8 !important;
}
@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}
.section-title .title-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-xlight);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.8rem;
}
.view-all-link {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--primary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.view-all-link:hover { background: var(--primary); color: #fff; }

/* ============================================================
   QUICK LINKS (Sidebar) — from reference image
   ============================================================ */
.quick-links-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quick-links-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.quick-links-list { list-style: none; padding: 0; margin: 0; }
.quick-links-list li { border-bottom: 1px solid var(--border-light); }
.quick-links-list li:last-child { border-bottom: none; }
.quick-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.quick-links-list a:hover {
  background: var(--primary-xlight);
  color: var(--primary);
  padding-left: 22px;
}
.quick-links-list a i { color: var(--text-light); font-size: 0.75rem; }
.quick-links-list a:hover i { color: var(--primary); }

/* ============================================================
   POST LIST CARDS (Compact — list style)
   ============================================================ */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.post-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.post-list-item:hover { transform: translateX(3px); }
.post-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .thumb-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.post-list-content { flex: 1; min-width: 0; }
.post-list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--primary); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-new {
  background: var(--success);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-hot {
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ============================================================
   CARD SECTION WRAPPER
   ============================================================ */
.section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  height: 100%;
}

/* ============================================================
   IMPORTANT LINKS GRID
   ============================================================ */
.important-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.imp-link-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 12px 14px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.imp-link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.imp-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.imp-link-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 20px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.newsletter-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
}
.newsletter-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.newsletter-sub { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 0; max-width: 500px; }
.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 13px 20px;
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-main);
}
.newsletter-form button {
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 13px 28px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ============================================================
   POPULAR CATEGORIES GRID (Exam Calendar section)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 14px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.cat-card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 12px;
}
.cat-card-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.cat-card-count { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A1628;
  color: rgba(255,255,255,0.78);
}
.footer-top { padding: 60px 0 40px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-name span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.7; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}
.social-btn.fb  { background: #1877F2; color: #fff; }
.social-btn.tw  { background: #1DA1F2; color: #fff; }
.social-btn.yt  { background: #FF0000; color: #fff; }
.social-btn.tg  { background: #2CA5E0; color: #fff; }
.social-btn.ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.footer-heading {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 0.84rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; font-size: 1rem; color: var(--primary-light); }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.62);
}
.footer-contact-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light);
  font-size: 0.8rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom-links { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: #fff; }
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0A1628 0%, var(--primary) 50%, #3D6FFF 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-float-1 {
  position: absolute; top: 15%; right: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: floatBubble 6s ease-in-out infinite;
}
.hero-float-2 {
  position: absolute; bottom: 5%; left: 5%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  animation: floatBubble 8s ease-in-out infinite reverse;
}
@keyframes floatBubble {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-title .highlight { color: #FFD700; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }

/* Hero Search */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}
.hero-search select {
  border: none;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  font-family: var(--font-main);
  cursor: pointer;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text);
  font-family: var(--font-main);
  background: transparent;
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-dark); }

/* Hero stats */
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { color: #fff; font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); }
.hero-stat-label { color: rgba(255,255,255,0.65); font-size: 0.75rem; }

/* Hero Visual — glassmorphism card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glass-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  max-width: 320px;
  width: 100%;
  animation: floatBubble 5s ease-in-out infinite;
}
.hero-glass-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-bottom: 6px; }
.hero-glass-headline { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.hero-job-list { list-style: none; padding: 0; margin: 0; }
.hero-job-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.hero-job-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-job-org { font-weight: 600; }
.hero-job-posts { opacity: 0.7; font-size: 0.75rem; }

/* Floating mini badges */
.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 3;
}
.hero-badge-1 { top: 5%; right: -5%; animation: floatBubble 4s ease-in-out infinite 1s; }
.hero-badge-2 { bottom: 15%; left: -8%; animation: floatBubble 5s ease-in-out infinite 0.5s; }

/* ============================================================
   QUICK ACCESS STATS BAR (from reference)
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  text-decoration: none;
}
.stat-item:hover { background: var(--primary-xlight); }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-info .stat-num { font-size: 1rem; font-weight: 800; color: var(--text); font-family: var(--font-heading); }
.stat-info .stat-label { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content { padding: var(--section-py) 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 12px); }

/* Sidebar Ad */
.sidebar-ad {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Sidebar widget */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-widget-header {
  background: var(--primary);
  color: #fff;
  padding: 11px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-body { padding: 14px 16px; }

/* ── Popular Categories Section ────────────────────────── */
.popular-cats-section { padding: 40px 0; background: var(--bg); }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.breadcrumb { margin: 0; padding: 0; background: none; }
.breadcrumb-item { font-size: 0.82rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

.post-header-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.post-main-title { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 12px; }
.post-dept { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.post-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.post-qi-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.post-qi-label { color: var(--text-muted); }
.post-qi-value { color: var(--text); font-weight: 600; }

/* Important Dates Table */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.info-table th { background: var(--primary); color: #fff; padding: 11px 16px; text-align: left; font-weight: 600; }
.info-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.info-table tr:hover td { background: var(--primary-xlight); }
.info-table tr:last-child td { border-bottom: none; }

/* Important Links */
.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}
.apply-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.apply-btn.outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.apply-btn.outline:hover { background: var(--primary); color: #fff; }

/* FAQ Accordion */
.faq-accordion .accordion-item {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  padding: 14px 18px;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary-xlight);
  color: var(--primary);
  box-shadow: none;
}
.faq-accordion .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(1500%) hue-rotate(210deg);
}
.faq-accordion .accordion-body { font-size: 0.88rem; color: var(--text-muted); padding: 14px 18px; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 36px 0;
  color: #fff;
}
.category-hero h1 { color: #fff; font-size: 1.8rem; }
.category-hero p { color: rgba(255,255,255,0.78); font-size: 0.92rem; }

/* Post Card (for category listing) */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  height: 100%;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.post-card-img { height: 160px; overflow: hidden; position: relative; background: var(--primary-xlight); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 18px; }
.post-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
}
.search-hero h1 { color: #fff; }
.search-hero-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 600px;
  margin: 20px 0 0;
}
.search-hero-form input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-main);
  border-radius: var(--radius);
  background: var(--bg);
}
.search-hero-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A1628 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,255,0.1);
  outline: none;
}
.btn-primary-full {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}
.btn-primary-full:hover { background: var(--primary-dark); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrapper { display: flex; min-height: 100vh; background: #F1F5F9; }

/* Admin Sidebar */
.admin-sidebar {
  width: 260px;
  background: #0A1628;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 200;
  transition: var(--transition);
}
.admin-sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.admin-brand-name { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.admin-brand-sub { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

.admin-nav { padding: 12px 0; }
.admin-nav-section { padding: 10px 20px 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 0.9rem; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.admin-nav-link.active {
  color: #fff;
  background: var(--primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  margin-right: 12px;
}

/* Admin Main Content */
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--white);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.admin-page-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.admin-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition-fast);
}
.admin-user-btn:hover { background: var(--border); }
.admin-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.admin-content { padding: 24px; flex: 1; }

/* Stats Cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
}
.stats-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stats-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stats-card-num { font-size: 1.6rem; font-weight: 800; color: var(--text); font-family: var(--font-heading); line-height: 1; }
.stats-card-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Admin Table */
.admin-table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}
.admin-table-title { font-size: 0.95rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 13px 16px;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

/* Status badges */
.badge-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-published { background: #D1FAE5; color: #065F46; }
.badge-draft { background: #FEF3C7; color: #92400E; }
.badge-archived { background: #F1F5F9; color: #64748B; }

/* Action buttons */
.action-btns { display: flex; gap: 6px; }
.btn-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}
.btn-action.edit { background: var(--primary-xlight); color: var(--primary); }
.btn-action.edit:hover { background: var(--primary); color: #fff; }
.btn-action.delete { background: #FEE2E2; color: #DC2626; }
.btn-action.delete:hover { background: #DC2626; color: #fff; }
.btn-action.view { background: #F0FDF4; color: #16A34A; }
.btn-action.view:hover { background: #16A34A; color: #fff; }

/* Admin Form */
.admin-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.form-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}

/* ============================================================
   ABOUT / STATIC PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--theme-menu-bg, #001e82), var(--theme-primary-color, #0f4cff)) !important;
  padding: 48px 0;
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.page-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 32px 0;
}
.page-content h2 { font-size: 1.3rem; color: var(--primary); margin: 28px 0 12px; }
.page-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.page-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 14px; }
.page-content ul { color: var(--text-muted); font-size: 0.9rem; line-height: 2; }

/* Custom Page Body Sections Styling */
.page-body-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.page-body-content h2::before {
  content: "\f05a";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #EEF2FF;
  color: #0f4cff;
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.page-body-content h2:nth-of-type(1)::before { content: "\f007"; } /* User icon */
.page-body-content h2:nth-of-type(2)::before { content: "\f013"; } /* Cog icon */
.page-body-content h2:nth-of-type(3)::before { content: "\f3ed"; } /* Shield-alt */
.page-body-content h2:nth-of-type(4)::before { content: "\f564"; } /* Cookie */
.page-body-content h2:nth-of-type(5)::before { content: "\f023"; } /* Lock */
.page-body-content h2:nth-of-type(6)::before { content: "\f0c1"; } /* Link */
.page-body-content h2:nth-of-type(7)::before { content: "\f304"; } /* Pen */
.page-body-content h2:nth-of-type(8)::before { content: "\f021"; } /* Sync/redo */
.page-body-content h2:nth-of-type(9)::before { content: "\f0e0"; } /* Envelope */

.page-body-content p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 20px;
  margin-left: 48px;
}
.page-body-content ul, .page-body-content ol {
  margin-left: 48px;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 30px; }
.pagination .page-link {
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius) !important;
  margin: 0 3px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.pagination .page-link:hover { background: var(--primary-xlight); border-color: var(--primary); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.sk-line { height: 14px; margin-bottom: 8px; }
.sk-title { height: 20px; width: 70%; margin-bottom: 12px; }
.sk-thumb { height: 52px; width: 52px; border-radius: var(--radius); }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .content-grid { grid-template-columns: 1fr 260px; }
}

@media (max-width: 992px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 36px; }
  .top-bar { display: none; }
  .header-search { display: none; }
  .logo-tagline { display: none; }
  .stats-bar-inner { justify-content: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .stat-item { flex-shrink: 0; }
  .hero-section { padding: 36px 0; }
  .hero-title { font-size: 1.6rem; }
  .hero-stats { gap: 16px; }
  .newsletter-section { padding: 28px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius-full); }
  .newsletter-form button { border-radius: var(--radius-full); }
  .sidebar { display: flex; flex-direction: column; }
  .auth-card { padding: 28px 20px; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .important-links-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search select, .hero-search input { width: 100%; }
  .hero-search-btn { width: 100%; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .important-links-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode .main-header { background: #1E293B; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
body.dark-mode .main-nav { background: #0F3ACC; }
body.dark-mode .breaking-ticker { background: #1E293B; border-color: #334155; }
body.dark-mode .ticker-item { color: #F1F5F9; }
body.dark-mode .stats-bar { background: #1E293B; border-color: #334155; }
body.dark-mode .section-card,
body.dark-mode .sidebar-widget,
body.dark-mode .quick-links-box,
body.dark-mode .post-card,
body.dark-mode .post-header-card,
body.dark-mode .page-content,
body.dark-mode .auth-card { background: #1E293B; border-color: #334155; }
body.dark-mode .post-list-item { border-color: #334155; }
body.dark-mode .section-header { border-color: #334155; }
body.dark-mode .imp-link-card { background: #1E293B; border-color: #334155; }
body.dark-mode .imp-link-card:hover { border-color: var(--primary); }
body.dark-mode .cat-card { background: #1E293B; border-color: #334155; }
body.dark-mode .form-control { background: #0F172A; border-color: #334155; color: #F1F5F9; }
body.dark-mode .admin-table-card,
body.dark-mode .admin-form-card,
body.dark-mode .stats-card { background: #1E293B; }
body.dark-mode .admin-topbar { background: #1E293B; }
body.dark-mode .admin-table th { background: #0F172A; }
body.dark-mode .admin-table td { border-color: #334155; }
body.dark-mode .admin-table tr:hover td { background: #0F172A; }

/* ============================================================
   CUSTOM HOME REDESIGN OVERRIDES (MATCHING REF IMAGE)
   ============================================================ */

/* Full-width Category Layout overrides */
.homepage-main-row {
  margin-bottom: 24px;
}
.homepage-card {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15,76,255,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.homepage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,76,255,0.08);
}
.homepage-card-header {
  padding: 14px 18px;
  border-bottom: 1.5px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.homepage-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E3A8A; /* Deep trust blue */
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  margin: 0;
}
.homepage-card-title i {
  font-size: 1rem;
}
.homepage-card-header .view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563EB;
}
.homepage-card-header .view-all:hover {
  color: #1D4ED8;
}

/* Post list custom item layout */
.homepage-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.homepage-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s ease;
}
.homepage-post-item:last-child {
  border-bottom: none;
}
.homepage-post-item:hover {
  background: #F8FAFC;
}

/* Rounded department avatars */
.dept-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dept-avatar-inner {
  font-weight: 700;
  font-size: 0.8rem;
}

/* Text and Meta details */
.homepage-post-content {
  flex: 1;
  min-width: 0;
}
.homepage-post-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.homepage-post-title:hover {
  color: #0F4CFF;
}
.homepage-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.homepage-post-date {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 500;
}
.homepage-post-new-badge {
  background: #EF4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Card bottom view-all-footer bar */
.homepage-card-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  text-align: center;
  transition: background 0.15s ease;
}
.homepage-card-footer a {
  display: block;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
}
.homepage-card-footer:hover {
  background: #F1F5F9;
}
.homepage-card-footer:hover a {
  color: #0F4CFF;
}

/* Important Links grid repeating 8 columns */
.imp-links-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E3A8A;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.imp-links-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.imp-link-block {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.imp-link-block:hover {
  transform: translateY(-3px);
  border-color: #0F4CFF;
  box-shadow: 0 6px 16px rgba(15,76,255,0.06);
}
.imp-link-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.imp-link-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .imp-links-grid-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 576px) {
  .imp-links-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark mode compatibility */
body.dark-mode .homepage-card { background: #1E293B; border-color: #334155; }
body.dark-mode .homepage-card-header { border-color: #334155; }
body.dark-mode .homepage-card-title { color: #F1F5F9; }
body.dark-mode .homepage-post-item { border-color: #334155; }
body.dark-mode .homepage-post-item:hover { background: #1E293B; }
body.dark-mode .homepage-post-title { color: #F1F5F9; }
body.dark-mode .homepage-card-footer { background: #1E293B; border-color: #334155; }
body.dark-mode .homepage-card-footer a { color: #94A3B8; }
body.dark-mode .homepage-card-footer:hover { background: #0F172A; }
body.dark-mode .imp-link-block { background: #1E293B; border-color: #334155; }
body.dark-mode .imp-link-text { color: #F1F5F9; }

/* ============================================================
   SINGLE POST PAGE REDESIGN STYLES (MATCHING IMAGE)
   ============================================================ */
.post-breadcrumb {
  font-size: 0.8rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}
.post-breadcrumb a {
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}
.post-breadcrumb a:hover {
  text-decoration: underline;
}
.single-post-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-top: 8px;
  margin-bottom: 12px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.single-post-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #334155;
  font-weight: 600;
}
.single-post-meta-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.single-post-meta-left i {
  color: var(--primary);
}
.single-post-share-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-right: 4px;
}
.share-circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  transition: transform 0.2s ease;
  text-decoration: none;
}
.share-circle-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}
.share-circle-btn.wa { background: #25D366; }
.share-circle-btn.tg { background: #0088cc; }
.share-circle-btn.fb { background: #3b5998; }
.share-circle-btn.tw { background: #1DA1F2; }
.share-circle-btn.copy { background: #64748B; }

.single-post-featured-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(15,76,255,0.03);
  margin-bottom: 24px;
  object-fit: cover;
}

.single-post-table-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15,76,255,0.02);
}
.single-post-table-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.single-post-table-title i {
  font-size: 1.15rem;
}
.single-post-table {
  width: 100%;
  border-collapse: collapse;
}
.single-post-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.88rem;
  color: #334155;
  vertical-align: middle;
}
.single-post-table tr:last-child td {
  border-bottom: none;
}
.single-post-table tr td:first-child {
  font-weight: 600;
  color: #475569;
  width: 35%;
}
.single-post-table tr td:last-child {
  font-weight: 500;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #F1F5F9;
}
.widget-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15,76,255,0.02);
}
.sidebar-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sidebar-link-btn:last-child {
  margin-bottom: 0;
}
.sidebar-link-btn:hover {
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37,99,235,0.05);
}
.sidebar-link-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}
.sidebar-link-btn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.sidebar-link-btn-right {
  font-size: 0.8rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
}
.sidebar-link-btn:hover .sidebar-link-btn-right {
  color: #2563EB;
}

.join-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}
.join-channel-btn:last-child {
  margin-bottom: 0;
}
.join-channel-btn:hover {
  transform: translateY(-2px);
  color: #fff !important;
}
.join-channel-btn.wa { background: #25D366; }
.join-channel-btn.tg { background: #0088cc; }
.join-channel-btn.fb { background: #3b5998; }
.join-channel-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.sidebar-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}
.sidebar-post-item:last-child {
  border-bottom: none;
}
.sidebar-post-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.sidebar-post-content {
  flex: 1;
  min-width: 0;
}
.sidebar-post-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.sidebar-post-title:hover {
  color: #2563EB;
}
.sidebar-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}
.sidebar-post-new-badge {
  background: #EF4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0px 4px;
  border-radius: 3px;
  line-height: 1.3;
}

.helpful-card {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.helpful-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}
.helpful-btns {
  display: flex;
  gap: 8px;
}
.helpful-btn {
  padding: 6px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.helpful-btn.yes:hover {
  border-color: #22C55E;
  color: #22C55E;
  background: #EFFDF5;
}
.helpful-btn.no:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}

/* Dark mode overrides for single post redesign */
body.dark-mode .single-post-title { color: #F1F5F9; }
body.dark-mode .single-post-meta { border-color: #334155; }
body.dark-mode .share-label { color: #94A3B8; }
body.dark-mode .single-post-table-card { background: #1E293B; border-color: #334155; }
body.dark-mode .single-post-table-title { color: #3D6FFF; }
body.dark-mode .single-post-table td { border-color: #334155; color: #E2E8F0; }
body.dark-mode .single-post-table tr td:first-child { color: #94A3B8; }
body.dark-mode .widget-card { background: #1E293B; border-color: #334155; }
body.dark-mode .widget-title { color: #3D6FFF; border-color: #334155; }
body.dark-mode .sidebar-link-btn { background: #1E293B; border-color: #334155; }
body.dark-mode .sidebar-link-btn:hover { border-color: #3D6FFF; }
body.dark-mode .sidebar-link-btn-left { color: #E2E8F0; }
body.dark-mode .sidebar-post-item { border-color: #334155; }
body.dark-mode .sidebar-post-title { color: #E2E8F0; }
body.dark-mode .helpful-card { background: #0F172A; border-color: #334155; }
body.dark-mode .helpful-title { color: #E2E8F0; }
body.dark-mode .helpful-btn { background: #1E293B; border-color: #334155; color: #E2E8F0; }

/* Table styling for HTML tables in post content */
.single-post-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.single-post-content table th {
  background: #F8FAFC !important;
  color: #475569 !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border-bottom: 1.5px solid #E2E8F0 !important;
  text-align: left !important;
  font-size: 0.88rem !important;
}
.single-post-content table td {
  padding: 10px 16px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  font-size: 0.88rem !important;
  color: #334155 !important;
}
.single-post-content table tr:last-child td {
  border-bottom: none !important;
}
body.dark-mode .single-post-content table {
  border-color: #334155 !important;
}
body.dark-mode .single-post-content table th {
  background: #0F172A !important;
  color: #F1F5F9 !important;
  border-color: #334155 !important;
}
body.dark-mode .single-post-content table td {
  color: #E2E8F0 !important;
  border-color: #334155 !important;
}

/* ── Mobile responsiveness adjustments ──────────────────── */
@media (max-width: 768px) {
  .main-header .container > div.d-flex {
    justify-content: center !important;
  }
  .site-logo {
    margin: 0 !important;
  }
  .post-breadcrumb {
    white-space: nowrap !important;
    overflow-x: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }
  /* Hide scrollbar for clean look */
  .post-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* Responsive Breaking News Ticker Adjustments */
  .breaking-ticker {
    height: auto !important;
    min-height: 48px !important;
    padding: 6px !important;
  }
  .ticker-label {
    padding: 0 10px !important;
    font-size: 0.72rem !important;
    height: 36px !important;
    border-radius: 6px !important;
    gap: 4px !important;
  }
  .ticker-wrap {
    padding: 0 8px !important;
  }
  .ticker-item {
    font-size: 0.8rem !important;
  }
}

/* Stats/Category Bar Grid Layout on Mobile/Tablet */
@media (max-width: 576px) {
  .stats-bar-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 4px !important;
  }
  .stat-item {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
  }
  body.dark-mode .stat-item {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .stats-bar-inner a.stat-item:last-child {
    grid-column: span 2 !important;
    justify-content: center !important;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .stats-bar-inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }
  .stat-item {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
  }
  body.dark-mode .stat-item {
    background: #1E293B !important;
    border-color: #334155 !important;
  }
  .stats-bar-inner a.stat-item:last-child {
    grid-column: span 2 !important;
    justify-content: center !important;
  }
}




