﻿/*
 * Colors alias GeneratePress's own "Global Colors" Customizer panel
 * (--contrast/--contrast-2/--contrast-3/--base/--base-2/--base-3, defaulted
 * to this palette in functions.php) so Appearance > Customize > Colors is a
 * real way to re-theme the site, not just a hardcoded palette.
 */
:root {
  --en-primary: var(--contrast);
  --en-primary-hover: var(--contrast-2);
  --en-bg: var(--base-3);
  --en-light-bg: var(--base-2);
  --en-ticker-bg: var(--base-2);
  --en-border: var(--base);
  --en-muted: var(--contrast-3);
  --en-secondary: var(--contrast-3);
  --en-search-border: var(--base);
  --en-card-border: var(--base);
  --en-shadow: 0 4px 16px rgba(10,26,47,0.03);
  --en-shadow-strong: 0 10px 28px rgba(10,26,47,0.06);
  --en-radius: 20px;
  --en-radius-lg: 24px;
  --en-max: 1280px;
}

html, body { margin: 0; padding: 0; }
body.examnotepdf-site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--en-bg);
  color: var(--en-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

.container {
  max-width: var(--en-max);
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(10,26,47,0.05);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--en-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.logo i { font-size: 1.2rem; }

.nav-dropdowns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.dropdown { position: relative; display: inline-block; }
.dropdown > a {
  text-decoration: none;
  color: #1f3349;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown > a i { font-size: 0.6rem; opacity: 0.5; }
.dropdown > a:hover { background: #f0f5fe; color: var(--en-primary); }
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(10,26,47,0.08);
  border-radius: 16px;
  padding: 0.5rem 0;
  border: 1px solid #eaedf4;
  z-index: 60;
  margin-top: 4px;
}
.dropdown-content a {
  display: block;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: #1f3349;
  font-size: 0.8rem;
  font-weight: 450;
  transition: 0.1s;
}
.dropdown-content a:hover { background: #f5f8fd; color: var(--en-primary); }
.dropdown:hover .dropdown-content { display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; font-size: 1.3rem; color: var(--en-primary); cursor: pointer; gap: 14px; }

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-radius: 40px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--en-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-primary:hover { background: var(--en-primary-hover); transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--en-primary);
  border: 1px solid #d5dee9;
  padding: 0.7rem 1.8rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.btn-outline:hover { border-color: var(--en-primary); background: #f5f8fd; }
.btn-small { padding: 0.35rem 1.1rem; font-size: 0.75rem; font-weight: 600; border-radius: 30px; }

.hero {
  padding: 2.2rem 0 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--en-primary);
  max-width: 780px;
  margin: 0 auto 0.8rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--en-muted);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}
.hero-search {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  display: flex;
  background: white;
  border: 1px solid var(--en-search-border);
  border-radius: 60px;
  padding: 0.3rem 0.3rem 0.3rem 1.5rem;
  align-items: center;
  box-shadow: 0 6px 18px rgba(10,26,47,0.03);
  transition: 0.2s;
}
.hero-search:focus-within { border-color: var(--en-primary); box-shadow: 0 8px 24px rgba(10,26,47,0.06); }
.hero-search i { color: #7a8aa0; font-size: 0.95rem; }
.hero-search input {
  border: none; padding: 0.8rem 0.8rem; font-size: 0.95rem; flex: 1; outline: none; background: transparent; font-weight: 400; color: var(--en-primary);
}
.hero-search input::placeholder { color: #a0b2c9; }
.hero-search .btn-primary { padding: 0.6rem 1.8rem; border-radius: 40px; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }

/* Countdown bar */
.en-countdown-bar {
  background: var(--en-ticker-bg);
  border-radius: 20px;
  padding: 1rem 1.6rem;
  margin: 1rem 0 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--en-border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
  min-height: 68px;
}
.en-countdown-bar::-webkit-scrollbar { display: none; }

/* Each chip is an <a> link */
.en-cd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  border: 1.5px solid var(--en-border);
  background: #fff;
  text-decoration: none;
  color: #1f3349;
  font-size: 0.85rem;
  font-weight: 500;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.en-cd-chip:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.10); border-color: #b0c4de; text-decoration: none; color: #1f3349; }

/* Urgency colors via data-urgency attribute set by JS */
.en-cd-chip[data-urgency="urgent"] { border-color: #f5c6cb; background: #fff5f5; }
.en-cd-chip[data-urgency="urgent"] .en-cd-dot  { background: #e74c3c; }
.en-cd-chip[data-urgency="urgent"] .en-cd-value { color: #c0392b; font-weight: 700; }

.en-cd-chip[data-urgency="soon"]   { border-color: #ffd8a8; background: #fffaf4; }
.en-cd-chip[data-urgency="soon"]   .en-cd-dot  { background: #e67e22; }
.en-cd-chip[data-urgency="soon"]   .en-cd-value { color: #d35400; font-weight: 700; }

.en-cd-chip[data-urgency="safe"]   { border-color: #b7e4c7; background: #f4fdf6; }
.en-cd-chip[data-urgency="safe"]   .en-cd-dot  { background: #27ae60; }
.en-cd-chip[data-urgency="safe"]   .en-cd-value { color: #1e8449; font-weight: 700; }

.en-cd-dot  { width: 9px; height: 9px; border-radius: 50%; display: inline-block; animation: pulse 1.2s infinite; flex-shrink: 0; background: #aaa; }
.en-cd-name { font-weight: 700; color: var(--en-primary); }
.en-cd-value { font-size: 0.82rem; }

/* Native tooltip via title="" — enhanced visual on desktop via ::after */
.en-cd-chip::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f3349;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.en-cd-chip:hover::after { opacity: 1; }

.articles-wrapper { display: flex; gap: 2rem; margin: 2rem 0 3rem; align-items: stretch; }
.articles-list { flex: 2; display: flex; flex-direction: column; gap: 1rem; }
.horizontal-article {
  display: flex; gap: 1rem; align-items: center; background: white; border: 1px solid var(--en-card-border); border-radius: 16px; padding: 0.8rem 1.2rem; transition: 0.15s; flex: 1; box-shadow: var(--en-shadow);
}
.horizontal-article:hover { border-color: #dce5f0; background: #fafcff; }
.art-icon { width: 44px; height: 44px; min-width: 44px; background: #eef4fd; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--en-primary); font-size: 1.1rem; overflow: hidden; }
.art-icon img { width: 100%; height: 100%; object-fit: cover; }
.art-content { flex: 1; }
.art-content h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.05rem; }
.art-content p { font-size: 0.8rem; color: var(--en-muted); margin: 0; }
.art-link { font-size: 0.8rem; font-weight: 600; color: var(--en-primary); text-decoration: none; white-space: nowrap; margin-left: 0.5rem; }

/* Latest Notes sidebar */
.en-latest-notes {
  flex: 1;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1rem;
  border: 1px solid var(--en-card-border);
  box-shadow: var(--en-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.en-latest-notes__heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--en-primary); margin: 0 0 0.6rem; display: flex; align-items: center; gap: 6px; }
.en-note-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-bottom: 1px solid var(--en-border); }
.en-note-row:last-child { border-bottom: none; }
.en-note-row__body { flex: 1; min-width: 0; }
.en-note-row__title { font-size: 0.82rem; font-weight: 600; color: #1f3349; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-note-row__type { font-size: 0.7rem; font-weight: 600; color: var(--en-primary); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 1px; }
.en-note-row__excerpt { font-size: 0.75rem; color: var(--en-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-note-row__btn { flex-shrink: 0; font-size: 0.72rem; padding: 0.25rem 0.7rem; }

.quiz-card { flex: 1; background: #ffffff; border-radius: 24px; padding: 1.8rem 1.5rem; border: 1px solid var(--en-card-border); box-shadow: var(--en-shadow); display: flex; flex-direction: column; min-height: 340px; justify-content: space-between; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.quiz-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--en-primary); background: #e8edf8; display: inline-block; padding: 0.15rem 0.8rem; border-radius: 30px; }
.quiz-progress { font-size: 0.8rem; font-weight: 600; color: var(--en-muted); }
.quiz-question-text { font-size: 1.05rem; font-weight: 600; color: var(--en-primary); margin-bottom: 1.2rem; line-height: 1.4; min-height: 60px; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.quiz-option { display: flex; align-items: center; gap: 10px; padding: 0.6rem 1rem; border: 1px solid #e3e9f2; border-radius: 12px; cursor: pointer; transition: all 0.15s; background: white; font-size: 0.9rem; color: #1f3349; }
.quiz-option:hover { border-color: var(--en-primary); background: #f5f8fd; }
.quiz-option.selected { border-color: var(--en-primary); background: #eef4fd; }
.option-letter { width: 26px; height: 26px; border-radius: 50%; background: #f0f5fe; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--en-primary); flex-shrink: 0; }
.quiz-option.selected .option-letter { background: var(--en-primary); color: white; }
.quiz-actions { display: flex; justify-content: flex-end; margin-top: 0.3rem; }
.quiz-result { display: none; text-align: center; padding: 1rem 0; }
.score-number { font-size: 3rem; font-weight: 800; color: var(--en-primary); }
.score-label { font-size: 1rem; color: var(--en-muted); margin-top: 0.2rem; }
.score-message { font-size: 0.9rem; font-weight: 500; margin-top: 0.8rem; padding: 0.5rem 1rem; background: #f0f5fe; border-radius: 30px; display: inline-block; }

.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--en-primary); margin-bottom: 0.3rem; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.note-card { background: white; border-radius: 20px; padding: 0.7rem 0.7rem 0.9rem; box-shadow: var(--en-shadow); border: 1px solid var(--en-card-border); transition: all 0.2s; position: relative; display: flex; flex-direction: column; }
.note-card:hover { box-shadow: var(--en-shadow-strong); transform: translateY(-2px); border-color: #dce5f0; }
.badge-bestseller, .badge-offer { font-size: 0.45rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.1rem 0.5rem; border-radius: 40px; text-transform: uppercase; display: inline-block; position: absolute; top: 6px; z-index: 2; }
.badge-bestseller { right: 6px; color: white; background: var(--en-primary); box-shadow: 0 2px 8px rgba(10,26,47,0.1); }
.badge-offer { left: 6px; color: var(--en-primary); background: #e8edf8; }
.card-cover { width: 100%; aspect-ratio: 16/9; background: #f0f5fe; border-radius: 14px; margin-bottom: 0.5rem; background-image: linear-gradient(145deg, #eef4fd, #dde6f5); display: flex; align-items: center; justify-content: center; color: #1a2f4a; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.02em; position: relative; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover i { font-size: 1.6rem; opacity: 0.2; color: var(--en-primary); }
.cover-label { position: absolute; bottom: 6px; right: 8px; background: rgba(10,26,47,0.4); backdrop-filter: blur(2px); color: white; font-size: 0.5rem; padding: 0.05rem 0.6rem; border-radius: 30px; }
.note-title { font-weight: 600; font-size: 0.85rem; color: var(--en-primary); margin-bottom: 0.05rem; line-height: 1.2; }
.note-category { font-size: 0.6rem; font-weight: 500; color: var(--en-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.note-meta { display: flex; justify-content: space-between; align-items: center; margin: 0.3rem 0 0.2rem; font-size: 0.8rem; }
.note-price { font-weight: 700; font-size: 0.95rem; color: var(--en-primary); }
.note-downloads { color: var(--en-secondary); font-size: 0.6rem; display: flex; align-items: center; gap: 3px; }
.note-downloads i { font-size: 0.55rem; }
.note-actions { display: flex; gap: 5px; margin-top: 0.4rem; }
.note-actions .btn-outline, .note-actions .btn-primary { flex: 1; justify-content: center; padding: 0.25rem 0; font-size: 0.65rem; border-radius: 30px; }

.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.8rem 0 2.5rem; }
.resource-card { background: var(--en-light-bg); border-radius: 24px; padding: 1.5rem; border: 1px solid var(--en-border); }
.resource-card i { font-size: 1.8rem; opacity: 0.5; margin-bottom: 0.4rem; }
.resource-card h4 { font-weight: 700; }
.resource-card p { color: var(--en-muted); font-size: 0.9rem; }
.resource-card a { font-weight: 600; font-size: 0.85rem; color: var(--en-primary); text-decoration: none; }

.kit-banner { background: var(--en-ticker-bg); border-radius: 28px; padding: 1.8rem 2rem; border: 1px solid var(--en-border); margin-bottom: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.kit-banner h3 { font-weight: 700; font-size: 1.3rem; }
.kit-banner p { color: var(--en-muted); font-size: 0.9rem; }

footer { background: var(--en-light-bg); border-top: 1px solid var(--en-border); padding: 3rem 0 2rem; margin-top: 1rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-brand h4 { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.footer-brand p { color: var(--en-muted); font-size: 0.9rem; max-width: 280px; }
.footer-newsletter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-newsletter input { padding: 0.7rem 1.2rem; border: 1px solid #d5dee9; border-radius: 40px; font-size: 0.9rem; width: 240px; background: white; outline: none; transition: 0.15s; }
.footer-newsletter input:focus { border-color: var(--en-primary); }
.footer-newsletter .btn-primary { padding: 0.7rem 1.8rem; white-space: nowrap; }
.footer-bottom { border-top: 1px solid #eaedf4; margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--en-secondary); }

.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid #eaedf4; padding: 0.4rem 0 0.6rem; z-index: 100; justify-content: space-around; align-items: center; box-shadow: 0 -4px 12px rgba(0,0,0,0.02); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--en-secondary); font-size: 0.55rem; font-weight: 500; gap: 1px; transition: 0.1s; }
.bottom-nav a i { font-size: 1.1rem; color: var(--en-secondary); }
.bottom-nav a.active i, .bottom-nav a.active { color: var(--en-primary); font-weight: 600; }

.sticky-buy { display: none; position: fixed; bottom: 75px; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--en-primary); color: white; border: none; padding: 0.7rem 2.5rem; border-radius: 60px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 30px rgba(10,26,47,0.25); gap: 10px; align-items: center; justify-content: center; width: 90%; max-width: 360px; }
.sticky-buy i { font-size: 0.9rem; }

@media (max-width: 1024px) { .nav-dropdowns { gap: 0.2rem; } .dropdown > a { font-size: 0.8rem; padding: 0.3rem 0.7rem; } }
@media (max-width: 820px) { .nav-dropdowns { display: none; } .mobile-nav-toggle { display: flex; } .nav-actions .btn-outline { display: none; } .hero h1 { font-size: 2.2rem; } .en-cd-chip { font-size: 0.8rem; } .articles-wrapper { flex-direction: column; } .quiz-card { min-height: auto; } .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .en-latest-notes { order: -1; } }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }
  .hero-search { flex-wrap: wrap; background: transparent; border: none; box-shadow: none; padding: 0; gap: 10px; }
  .hero-search input { background: white; border: 1px solid var(--en-search-border); border-radius: 60px; padding: 0.8rem 1.2rem; width: 100%; }
  .hero-search .btn-primary { width: 100%; justify-content: center; }
  .resource-grid { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  .sticky-buy { display: flex; }
  body.examnotepdf-site { padding-bottom: 130px; }
  .en-countdown-bar { gap: 0.5rem; padding: 0.6rem 1rem; min-height: auto; }
  .en-cd-chip { padding: 0.35rem 0.75rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-newsletter input { width: 100%; }
  .footer-newsletter { width: 100%; }
  .footer-newsletter .btn-primary { width: 100%; justify-content: center; }
  .horizontal-article { flex-wrap: wrap; }
  .art-link { margin-left: 0; }
}
@media (max-width: 440px) { .featured-grid { grid-template-columns: 1fr; } }


