/* ═══════════════════════════════════════════════════════
   Bibek Sharma Blog — Custom Styles
   ═══════════════════════════════════════════════════════ */

:root {
  --primary:       #1a2744;
  --primary-light: #2d4a7e;
  --accent:        #e63946;
  --warning:       #ffc107;
  --text:          #2d3748;
  --muted:         #6b7280;
  --bg-light:      #f8f9fb;
  --border:        #e5e7eb;
  --radius:        .75rem;
  --shadow:        0 4px 20px rgba(0,0,0,.08);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; }

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .3s;
  border-bottom: 1.5px solid rgba(255,255,255,.2);
}

#mainNav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .9rem;
  border-radius: .4rem;
  transition: all .2s;
  position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}

#mainNav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  background: var(--warning);
  border-radius: 2px;
}

/* ── Hero Carousel ──────────────────────────────────────── */
.hero-carousel { position: relative; }

.hero-img {
  height: 580px;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,35,.85) 0%, rgba(10,15,35,.35) 60%, transparent 100%);
}

.carousel-caption {
  bottom: 10%;
  left: 6%;
  right: 6%;
  text-align: left;
}

/* Custom hero arrow buttons */
.hero-arrow-btn {
  width: 48px !important;
  height: 48px !important;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  border: 2px solid rgba(255,255,255,.3) !important;
  backdrop-filter: blur(6px);
  opacity: 1 !important;
  transition: background .2s, border-color .2s !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.hero-arrow-btn i {
  font-size: 1.2rem;
  color: #fff;
}
.hero-arrow-btn:hover {
  background: var(--warning) !important;
  border-color: var(--warning) !important;
}
.hero-arrow-btn:hover i { color: #111; }
.carousel-control-prev.hero-arrow-btn { left: 1.5rem; }
.carousel-control-next.hero-arrow-btn { right: 1.5rem; }
@media (max-width: 767px) {
  .hero-arrow-btn { width: 24px !important; height: 24px !important; }
  .hero-arrow-btn i { font-size: .65rem; }
  .carousel-control-prev.hero-arrow-btn { left: .5rem; }
  .carousel-control-next.hero-arrow-btn { right: .5rem; }
}

.hero-static {
  min-height: 480px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ── Page Header Banner ─────────────────────────────────── */
.page-header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

/* ── Post Cards ─────────────────────────────────────────── */
.post-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,.12) !important;
}

.post-card-img-wrap { position: relative; }

.post-card-img {
  height: 200px;
  object-fit: cover;
  transition: transform .4s;
}

.post-card:hover .post-card-img { transform: scale(1.05); }

.category-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 2rem;
  letter-spacing: .03em;
}

/* ── Sidebar Widgets ────────────────────────────────────── */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.widget-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

/* ── Players ────────────────────────────────────────────── */
.player-card {
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,.13) !important;
}

.player-card-bg {
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(26,39,68,.05);
}

.player-avatar {
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.player-spotlight-card {
  transition: transform .25s, box-shadow .25s;
}
.player-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1) !important;
}

/* ── Stats Section ──────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-card { padding: 1rem; }

.stat-icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,.5);
  display: block;
  margin-bottom: .5rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Mobile Player Quotes Slideshow ─────────────────────── */
.pq-slideshow-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
}

.pq-slide { display: none; }

.pq-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.pq-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent, #f59e0b);
}

.pq-quote {
  font-style: italic;
  color: #374151;
  font-size: .95rem;
  line-height: 1.75;
  border-left: none;
  margin: 0;
  padding: 0;
}

.pq-quote-icon {
  font-size: 1.5rem;
  color: var(--accent, #f59e0b);
  vertical-align: middle;
  margin-right: .25rem;
}

/* Prev / Next */
.pq-prev, .pq-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary, #1e3a5f);
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  user-select: none;
  transition: background .2s, transform .2s;
  z-index: 5;
}
.pq-prev { left: .5rem; }
.pq-next { right: .5rem; }
.pq-prev:hover, .pq-next:hover {
  background: var(--accent, #f59e0b);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.pq-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .25s, width .3s, border-radius .3s;
}
.pq-dot.pq-dot-active {
  width: 26px;
  border-radius: 5px;
  background: var(--accent, #f59e0b);
}

/* ── Newsletter Section ─────────────────────────────────── */
.newsletter-section {
  background: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #111827;
}

.footer-links li, .footer-links a {
  color: #9ca3af;
  font-size: .88rem;
  line-height: 1.8;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--warning); }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7) !important;
  font-size: 1rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--warning);
  color: var(--primary) !important;
}

/* ── Section Title Accent ───────────────────────────────── */
.section-title {
  position: relative;
  padding-bottom: .6rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Post Article Content ───────────────────────────────── */
.post-content { font-size: 1.05rem; line-height: 1.85; }
.post-content h2, .post-content h3 { margin-top: 2rem; color: var(--primary); }
.post-content p  { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content img { max-width: 100%; border-radius: .5rem; margin: 1rem 0; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem;
  background: var(--bg-light);
  border-radius: 0 .5rem .5rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  width: 46%;
  margin-bottom: 2rem;
  position: relative;
}
.timeline-item.left  { margin-right: auto; padding-right: 2rem; }
.timeline-item.right { margin-left: auto;  padding-left: 2rem; }

.timeline-item.left::after,
.timeline-item.right::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item.left::after  { right: -7px;  }
.timeline-item.right::after { left: -7px; }

@media (max-width: 767px) {
  .timeline::before { left: 12px; }
  .timeline-item { width: 100%; padding-left: 2.5rem; padding-right: 0; margin-left: 0 !important; }
  .timeline-item::after { left: 5px !important; right: auto !important; }
}

/* ── About Page ─────────────────────────────────────────── */
.about-badge-card { max-width: 240px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary   { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }

/* ── Slider Progress Bar ────────────────────────────────── */
.slider-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,.2);
  z-index: 20;
}

.slider-progress {
  height: 100%;
  width: 0%;
  background: var(--warning);
  transition: width linear;
}

/* ── Slider Caption Animation ───────────────────────────── */
.carousel-item .slider-caption-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s .3s, transform .6s .3s;
}

.carousel-item.active .slider-caption-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-img { height: 320px; }
  .stat-number { font-size: 2rem; }
}
