html {
  scroll-behavior: smooth;
}

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

body,
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ── Navigation ── */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

#mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

/* ── Hero (no images) ── */
.hero-section {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 45%, #f0f9ff 100%);
}

.hero-pattern {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: rgba(59, 130, 246, 0.18);
  top: -80px;
  right: 10%;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.12);
  bottom: 0;
  left: 5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: anywhere;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: white;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.hero-card-accent {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

.hero-float-delay {
  animation: float 6s ease-in-out 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Page headers (subpages) ── */
.page-hero {
  background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-hero-title {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: anywhere;
}

/* ── Section labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

/* ── Featured spotlight ── */
.spotlight-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* ── Article & category cards ── */
.article-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.article-card img {
  transition: transform 0.35s ease;
}

.article-card:hover img {
  transform: scale(1.04);
}

.article-card h2,
.article-card h3,
.category-card h3,
.tip-card h3,
.bento-item p,
.timeline-item h3 {
  overflow-wrap: anywhere;
}

.card-gradient-bar {
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #6366f1, #818cf8);
}

.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.category-icon-wrap {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transition: background 0.25s ease;
}

.category-card:hover .category-icon-wrap {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.category-card:hover .category-icon-wrap i {
  color: white;
}

/* ── Bento grid ── */
.bento-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

/* ── Timeline ── */
.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(to bottom, #bfdbfe, transparent);
}

/* ── Tips ── */
.tip-card {
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, #2563eb, #6366f1) 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tip-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ── Newsletter ── */
.newsletter-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ── FAQ ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
}

/* ── Responsive polish ── */
@media (max-width: 1023px) {
  .hero-section {
    padding-top: 6.5rem !important;
  }

  .article-card:hover,
  .category-card:hover,
  .tip-card:hover,
  .hero-card:hover,
  .bento-item:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .py-16,
  .py-20 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .page-hero {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
  }

  .hero-section {
    padding-bottom: 4rem !important;
  }

  .hero-headline {
    font-size: clamp(1.9rem, 8vw, 2.25rem) !important;
    line-height: 1.1 !important;
    max-width: 100%;
    word-break: normal;
  }

  .page-hero-title {
    font-size: clamp(2rem, 8.5vw, 2.5rem) !important;
    line-height: 1.12 !important;
  }

  h2.text-3xl,
  h2.lg\:text-4xl {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  .section-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .section-label::before {
    width: 16px;
  }

  .spotlight-card,
  .newsletter-bg {
    border-radius: 1.25rem !important;
    padding: 2rem 1.25rem !important;
  }

  .spotlight-card h3 {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem) !important;
    line-height: 1.18 !important;
  }

  .hero-section .flex.flex-wrap.gap-4 {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .hero-section .flex.flex-wrap.gap-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section .flex.flex-wrap.gap-2 span {
    text-align: center;
    white-space: normal;
  }

  .article-card .p-6,
  .article-card .p-5,
  .category-card,
  .tip-card,
  .pick-card {
    padding: 1.25rem !important;
  }

  .pick-card {
    gap: 1rem !important;
  }

  .pick-number {
    font-size: 1.5rem !important;
  }

  .article-card .h-52,
  .article-card .h-44 {
    height: 13.5rem !important;
  }

  img.h-72,
  img.h-80 {
    height: 14.5rem !important;
  }

  input,
  select,
  textarea,
  button,
  a.inline-flex {
    min-height: 44px;
  }

  footer {
    text-align: left;
  }
}

@media (max-width: 420px) {
  header .text-lg {
    font-size: 0.98rem !important;
  }

  header .w-9 {
    width: 2rem !important;
  }

  header .h-9 {
    height: 2rem !important;
  }

  .hero-badge {
    align-items: flex-start;
    white-space: normal;
  }

  .flex-wrap > a.btn-primary,
  .flex-wrap > a.btn-outline,
  #newsletter-form button,
  form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .newsletter-bg form {
    max-width: 100%;
  }

  .timeline-item {
    padding-left: 24px;
  }
}

/* ── Numbered picks ── */
.pick-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pick-card:hover .pick-number {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 767px) {
  .pick-number {
    font-size: 1.5rem !important;
  }
}

html,
body {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}
