/*
Theme Name: ExamPrep
Theme URI: https://schkewl.com
Author: You
Description: A fast, minimal theme for Indian exam and job alert portals.
Version: 1.1
License: GPL v2
Text Domain: examprep
*/

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-accent: #1e3a5f;
  --color-accent-light: #e8f0f8;
  --color-teal: #00b4a8;
  --color-teal-light: #e0f7f5;
  --color-urgent: #dc3545;
  --color-success: #198754;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15,23,42,0.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.1);
  --max-width: 900px;
  --header-height: 64px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: #2c5282;
}

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

/* === LAYOUT === */
.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-branding {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.site-branding a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--color-text-secondary);
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-text);
}

.main-nav .current-menu-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-teal);
  border-radius: 2px;
}

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

/* === HERO (Homepage) === */
.hero-section {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--color-text);
}

.hero-title span {
  color: var(--color-teal);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* === SEARCH === */
.search-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 1rem;
  outline: none;
  border-right: none;
  background: var(--color-bg);
}

.search-form input[type="search"]:focus {
  border-color: var(--color-teal);
}

.search-form button {
  padding: 14px 24px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-form button:hover {
  background: #2c5282;
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-teal);
}

.section-link:hover {
  color: var(--color-accent);
}

/* === EXAM LEVEL GRID (Homepage) === */
.exam-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.exam-level-card {
  display: block;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-bg);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.exam-level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-teal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.exam-level-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.exam-level-card:hover::before {
  transform: scaleX(1);
}

.exam-level-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

.exam-level-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.exam-level-count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* === CATEGORY GRID === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0 40px;
}

.category-card {
  display: block;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  background: var(--color-bg);
}

.category-card:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

.category-count {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* === POST LISTS === */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--color-bg);
  gap: 16px;
  transition: background 0.15s ease;
}

.post-item:hover {
  background: var(--color-surface);
}

.post-item-main {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-text);
}

.post-title a {
  color: inherit;
}

.post-title a:hover {
  color: var(--color-accent);
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.post-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-upsc { background: #dbeafe; color: #1d4ed8; }
.cat-ssc { background: #fee2e2; color: #dc2626; }
.cat-banking { background: #dcfce7; color: #16a34a; }
.cat-railway { background: #fef9c3; color: #ca8a04; }
.cat-defence { background: #f3e8ff; color: #7c3aed; }
.cat-teaching { background: #ffedd5; color: #ea580c; }
.cat-state { background: #ccfbf1; color: #0d9488; }
.cat-default { background: var(--color-surface-2); color: var(--color-text-secondary); }

.post-date {
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* === EXAM DIRECTORY PAGE === */
.exam-directory {
  padding: 40px 0;
}

.exam-directory-header {
  text-align: center;
  margin-bottom: 48px;
}

.exam-directory-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.exam-directory-header p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

.exam-level-section {
  margin-bottom: 48px;
}

.exam-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.exam-level-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.exam-level-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  flex: 1;
}

.exam-level-header .count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.exam-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.exam-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-bg);
  transition: all 0.2s ease;
}

.exam-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.exam-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.exam-card-title a {
  color: inherit;
}

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

.exam-card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.exam-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exam-card-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
}

.exam-card-tag.urgent {
  background: #fee2e2;
  color: #dc2626;
}

.exam-card-tag.active {
  background: #dcfce7;
  color: #16a34a;
}

.exam-card-tag.upcoming {
  background: #dbeafe;
  color: #1d4ed8;
}

/* === SINGLE POST === */
.single-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 36px;
}

.single-title {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

.single-meta {
  display: flex;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 1.4em;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--color-border);
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75em 0 0.6em;
}

.post-content ul, .post-content ol {
  margin: 0 0 1.4em 1.5em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  border-left: 4px solid var(--color-teal);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.post-content th {
  background: var(--color-surface);
  font-weight: 600;
}

/* === ABOUT PAGE === */
.about-hero {
  text-align: center;
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-hero h1 span {
  color: var(--color-teal);
}

.about-hero p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.about-section {
  padding: 48px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.about-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  text-align: center;
  transition: all 0.2s ease;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.75rem;
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 500;
}

.pagination .current {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--color-surface);
}

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

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer-col a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}

.error-404 h1 {
  font-size: 7rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
}

.error-404 p {
  color: var(--color-text-secondary);
  margin: 16px 0 28px;
  font-size: 1.0625rem;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .post-item {
    flex-direction: column;
    gap: 8px;
  }

  .post-date {
    margin-top: 0;
  }

  .category-grid,
  .exam-levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .exam-levels,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* === ACCESSIBILITY === */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}


/* === EXAM CALENDAR === */
.calendar-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.cal-summary-bar {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.cal-summary-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cal-summary-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.cal-summary-num.urgent {
  color: var(--color-urgent);
}

.cal-summary-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.cal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.cal-month-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.cal-nav-btns {
  display: flex;
  gap: 8px;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.cal-nav-btn:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-teal);
}

.cal-grid-full {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-label-full {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 0;
}

.cal-day-full {
  aspect-ratio: 1;
  min-height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  cursor: default;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.cal-day-full.other-month {
  color: var(--color-text-quaternary);
}

.cal-day-full.today {
  background: var(--color-surface-2);
  font-weight: 600;
  border-color: var(--color-teal);
}

.cal-day-full.has-exam {
  cursor: pointer;
}

.cal-day-full.has-exam:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.cal-day-num-full {
  line-height: 1;
  margin-bottom: 6px;
}

.cal-dots-full {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 90%;
}

.cal-dot-full {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-dot-full.urgent { background: var(--color-urgent); }
.cal-dot-full.upcoming { background: var(--color-teal); }
.cal-dot-full.active { background: var(--color-success); }
.cal-dot-full.result { background: #7c3aed; }

/* Tooltip */
.cal-tooltip-full {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 220px;
  max-width: 280px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15,23,42,0.2);
}

.cal-day-full.has-exam:hover .cal-tooltip-full {
  opacity: 1;
  visibility: visible;
}

.cal-tooltip-full::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--color-text);
}

.tooltip-exam-full {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tooltip-exam-full:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tooltip-name-full {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 5px;
  color: #fff;
}

.tooltip-meta-full {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tooltip-badge-full {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tooltip-badge-full.urgent { background: rgba(220,53,69,0.25); color: #fff; }
.tooltip-badge-full.upcoming { background: rgba(0,180,170,0.25); color: #fff; }
.tooltip-badge-full.active { background: rgba(25,135,84,0.25); color: #fff; }
.tooltip-badge-full.result { background: rgba(124,58,237,0.25); color: #fff; }

/* Legend */
.cal-legend-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cal-legend-dot.urgent { background: var(--color-urgent); }
.cal-legend-dot.upcoming { background: var(--color-teal); }
.cal-legend-dot.active { background: var(--color-success); }
.cal-legend-dot.result { background: #7c3aed; }

/* Exam card tags for calendar list */
.exam-card-tag.result {
  background: #f3e8ff;
  color: #7c3aed;
}

/* === MINI CALENDAR (for sidebar/homepage) === */
.mini-calendar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--color-bg);
}

.mini-calendar .cal-grid-full {
  gap: 2px;
}

.mini-calendar .cal-day-full {
  min-height: 36px;
  padding-top: 4px;
  font-size: 12px;
}

.mini-calendar .cal-day-label-full {
  padding: 6px 0;
  font-size: 10px;
}

.mini-calendar .cal-dot-full {
  width: 5px;
  height: 5px;
}

.mini-calendar .cal-tooltip-full {
  min-width: 180px;
  padding: 10px 12px;
}

.mini-calendar .tooltip-name-full {
  font-size: 12px;
}

/* === RESPONSIVE CALENDAR === */
@media (max-width: 640px) {
  .calendar-wrap {
    padding: 16px;
  }

  .cal-day-full {
    min-height: 48px;
    padding-top: 4px;
    font-size: 12px;
  }

  .cal-dot-full {
    width: 5px;
    height: 5px;
  }

  .cal-tooltip-full {
    min-width: 180px;
    max-width: 220px;
    padding: 10px 12px;
  }

  .cal-summary-bar {
    gap: 16px;
    padding: 12px 14px;
  }

  .cal-summary-num {
    font-size: 1.25rem;
  }
}
/* === EXAM HORIZONTAL SLIDER === */
.exam-slider-section { margin: 32px 0 48px; }
.exam-slider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.exam-slider-title { font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.exam-slider-viewall { font-size: 0.875rem; font-weight: 500; color: var(--color-teal); }
.exam-slider-viewall:hover { color: var(--color-accent); }
.exam-slider-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 4px 20px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.exam-slider-track::-webkit-scrollbar { display: none; }
.exam-slider-track:active { cursor: grabbing; }
.exam-slider-card { flex: 0 0 240px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 18px 14px; background: var(--color-bg); transition: all 0.2s ease; position: relative; }
.exam-slider-card:hover { border-color: var(--color-teal); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.exam-slider-date { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.exam-slider-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text); }
.exam-slider-name a { color: inherit; }
.exam-slider-name a:hover { color: var(--color-teal); }
.exam-slider-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.exam-slider-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.exam-slider-badge.urgent { background: #fee2e2; color: #dc2626; }
.exam-slider-badge.upcoming { background: #dbeafe; color: #1d4ed8; }
.exam-slider-badge.active { background: #dcfce7; color: #16a34a; }
.exam-slider-badge.result { background: #f3e8ff; color: #7c3aed; }
.exam-slider-days { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; white-space: nowrap; }
.exam-slider-days.urgent-days { color: var(--color-urgent); font-weight: 600; }

/* Mini calendar dropdown on slider card hover */
.mini-cal-dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px; z-index: 50; opacity: 0; visibility: hidden; transition: all 0.15s ease; box-shadow: 0 12px 32px rgba(15,23,42,0.12); pointer-events: none; min-width: 220px; }
.exam-slider-card:hover .mini-cal-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.mini-cal-dropdown::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-bottom-color: var(--color-border); }
.mini-cal-dropdown::after { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-bottom-color: var(--color-bg); margin-bottom: -1px; }
.mini-cal-month { font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-cal-day-label { font-size: 9px; color: var(--color-text-muted); padding: 3px 0; font-weight: 500; }
.mini-cal-day { font-size: 11px; padding: 4px 0; border-radius: 4px; color: var(--color-text); }
.mini-cal-day.highlight { background: var(--color-accent); color: white; font-weight: 600; }
.mini-cal-day.other { color: var(--color-text-muted); }
.mini-cal-day.today { background: var(--color-teal-light); color: var(--color-teal); font-weight: 600; }

.slider-nav-row { display: flex; gap: 8px; margin-top: 10px; }
.slider-nav-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text-secondary); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; font-family: inherit; }
.slider-nav-btn:hover { background: var(--color-surface); color: var(--color-text); border-color: var(--color-teal); }

@media (max-width: 640px) {
  .exam-slider-card { flex: 0 0 200px; padding: 14px; }
  .mini-cal-dropdown { display: none; }
}