/* 
 * Mock Exam PDFs - Modern Frontend Design System
 * Curated palette: Deep Navy/Slate + Indigo/Violet + Emerald Accents
 *
 * @author    Himanshu Ranjan Sahu <https://github.com/himanshu-hivecorp>
 * @license   MIT License
 * @link      https://github.com/himanshu-hivecorp/mock-exam-pdfs
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Brand Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.2);

  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  /* Neutrals */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.18);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a:hover {
  color: var(--primary-hover);
}

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

.container {
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1560px;
    padding: 0 2rem;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1820px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 2200px) {
  .container {
    max-width: 2400px;
    padding: 0 3.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 1.25rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

/* Navbar */
.site-header {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin-left: 28px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-body);
  font-size: 0.94rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Category Mega Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  border: none;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.mega-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(10px);
  width: 580px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-item-dropdown:hover .mega-dropdown-menu,
.nav-item-dropdown.open .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  color: var(--text-dark);
}

.dropdown-item:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-details {
  display: flex;
  flex-direction: column;
}

.cat-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
}

.cat-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Actions & Compact Search */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-quick-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: var(--transition);
  width: 220px;
}

.nav-quick-search:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  width: 260px;
}

.nav-quick-search svg {
  color: var(--text-light);
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-quick-search input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  width: 100%;
}

.btn-nav-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Sliding Mobile Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.nav-mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 20px;
}

.drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.drawer-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.drawer-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.drawer-links {
  list-style: none;
  margin-bottom: 24px;
}

.drawer-link {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.drawer-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.drawer-cat-pill .count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-body);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-dark);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(100% 100% at 50% 0%, #ede9fe 0%, #f8fafc 80%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search Box */
.hero-search-box {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 24px;
}

.hero-search-box .search-icon {
  padding: 0 16px;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.hero-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
  padding: 8px 4px;
}

.hero-search-box input::placeholder {
  color: var(--text-light);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Category Filter Bar */
.category-filter-section {
  padding: 24px 0 10px;
  position: sticky;
  top: 74px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  border-bottom: 1px solid var(--border-subtle);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.category-scroll::-webkit-scrollbar {
  height: 4px;
}

.category-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.category-pill .badge-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

.category-pill.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Upcoming Exam Notifications Section */
.notif-section {
  padding: 32px 0 10px;
}

.notif-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #eff6ff 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.notif-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-icon-pulse {
  width: 42px;
  height: 42px;
  background: #10b981;
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.notif-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.notif-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.notif-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.notif-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.tag-registration-open { background: #dcfce7; color: #15803d; }
.tag-exam-date-announced { background: #e0f2fe; color: #0369a1; }
.tag-upcoming-alert { background: #fef3c7; color: #b45309; }
.tag-admit-card-out { background: #fee2e2; color: #b91c1c; }

.notif-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.notif-exam-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.notif-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.notif-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.76rem;
  color: var(--text-body);
  font-weight: 600;
}

.notif-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.notif-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 40px 0 24px;
}

.section-header .sub-title {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* Mock Exam Grid */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Exam Card */
.exam-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-top {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.difficulty-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.difficulty-Hard { background: #fee2e2; color: #dc2626; }
.difficulty-Medium { background: #fef3c7; color: #d97706; }
.difficulty-Easy { background: #d1fae5; color: #059669; }

.card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-dark);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.885rem;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.meta-item .val {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.meta-item .lbl {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Post Details Page */
.post-header-section {
  background: radial-gradient(100% 100% at 50% 0%, #ede9fe 0%, #f8fafc 80%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-body);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 60px;
}

.post-content-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.post-content-body {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
}

.post-content-body h2, .post-content-body h3 {
  margin: 24px 0 12px;
}

.post-content-body p {
  margin-bottom: 16px;
}

.post-content-body ul, .post-content-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-content-body li {
  margin-bottom: 8px;
}

/* PDF Viewer Card */
.pdf-viewer-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.pdf-viewer-header {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-viewer-header h3 {
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-embed-wrapper {
  width: 100%;
  height: 600px;
  background: #f1f5f9;
  position: relative;
}

.pdf-embed-wrapper iframe, 
.pdf-embed-wrapper embed {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sidebar Details Card */
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.exam-specs-list {
  list-style: none;
  margin-bottom: 24px;
}

.exam-specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.925rem;
}

.exam-specs-list li .spec-lbl {
  color: var(--text-muted);
}

.exam-specs-list li .spec-val {
  font-weight: 700;
  color: var(--text-dark);
}

.download-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 20px;
}

.download-box .btn-download {
  width: 100%;
  margin-top: 10px;
}

/* Social Share */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-tw { background: #1da1f2; }
.share-copy { background: #475569; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-link:hover, .page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Alert Notification */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* Responsive Breakpoints */
@media (min-width: 993px) {
  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .navbar .nav-links {
    display: none;
  }
  .nav-quick-search {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .exam-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Widescreen & 2K / 4K Desktop Layout (e.g. 1920px - 2560px+) */
@media (min-width: 1400px) {
  h1 { font-size: 2.85rem; }
  .hero-content {
    max-width: 1050px;
  }
  .hero-desc {
    max-width: 780px;
    font-size: 1.22rem;
  }
  .hero-search-box {
    max-width: 820px;
  }
  .exam-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
  }
  .notif-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
  }
  .post-layout {
    grid-template-columns: 1fr 400px;
    gap: 36px;
  }
  .pdf-embed-wrapper {
    height: 750px;
  }
}

@media (min-width: 1900px) {
  h1 { font-size: 3.35rem; }
  .hero-section {
    padding: 80px 0 65px;
  }
  .hero-content {
    max-width: 1200px;
  }
  .hero-title {
    margin-bottom: 20px;
  }
  .hero-desc {
    max-width: 920px;
    font-size: 1.35rem;
    margin-bottom: 38px;
  }
  .hero-search-box {
    max-width: 920px;
    padding: 12px 18px;
    border-radius: 20px;
  }
  .hero-search-box input {
    font-size: 1.15rem;
  }
  .exam-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
  }
  .notif-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 26px;
  }
  .post-layout {
    grid-template-columns: 1fr 440px;
    gap: 48px;
  }
  .pdf-embed-wrapper {
    height: 850px;
  }
}
