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

/* ------ Brand tokens ------------------------------------------------------------------------------------------ */
[data-brand="ED"] {
  --brand-primary:       #005DAD;
  --brand-primary-hover: #004a8f;
  --brand-secondary:     #FFD633;
  --brand-dark:          #073b70;
  --brand-light:         #deeffe;
  --brand-gradient:      linear-gradient(135deg, #073b70 0%, #005DAD 100%);
  --text-on-primary:     #ffffff;
  --text-on-secondary:   #073b70;
  --focus-ring:          #FFD633;
  --radius:              12px;
  --title-h1:            5rem;
  --title-h3:            1.5rem;
  --text-lead:           1.25rem;
  --text-base:           1rem;
  --text-small:          0.875rem;
  --badge-text:          0.75rem;
}
@media (min-width: 768px) {
  [data-brand="ED"] { --title-h1: 4.5rem; }
}

[data-brand="OP"] {
  --brand-primary:       #333;
  --brand-primary-hover: #d95200;
  --brand-secondary:     #ff6600;
  --brand-dark:          #1a1a1a;
  --brand-light:         #fff3ec;
  --brand-gradient:      linear-gradient(135deg, #000000 0%, #7e7e7e 100%);
  --text-on-primary:     #ffffff;
  --text-on-secondary:   #1a1a1a;
  --focus-ring:          #f96302;
  --radius:              12px;
  --title-h1:            3.5rem;
  --title-h3:            1.5rem;
  --text-lead:           1.25rem;
  --text-base:           1rem;
  --text-small:          0.875rem;
  --badge-text:          0.75rem;
}
@media (min-width: 768px) {
  [data-brand="OP"] { --title-h1: 4.5rem; }
}

/* ------ Base ---------------------------------------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', sans-serif;
  background: #f8fafc;
  color: var(--brand-dark, #073b70);
  min-height: 100vh;
}
h1, h2, h3 { font-family: 'Rubik', sans-serif; }
img { display: block; }

a {
  text-decoration: none;
}

/* ------ Scroll Progress Bar ---------------------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-secondary, #FFD633), var(--brand-primary, #005DAD));
  z-index: 1200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ------ Prime Days Banner (hero bottom) -------------------------------------------------- */
.hero-prime-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 25;
  padding: 0 0 1.5rem;
  display: flex;
  justify-content: center;
}
.prime-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-dark, #073b70);
  width: 90%;
  max-width: 1310px;
  height: 56px;
  background: var(--brand-secondary, #FFD633);
  border-radius: 14px;
  padding: 0 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  margin: 0px 50px !important;
}
.prime-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-dark, #073b70);
  color: var(--brand-secondary, #FFD633);
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}
.prime-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.prime-sep { color: rgba(7,59,112,0.35); flex-shrink: 0; }
.prime-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prime-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--brand-dark, #073b70);
  color: var(--brand-secondary, #FFD633);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 639px) {
  .prime-sep, .prime-desc { display: none; }
}

/* ------ Site Header -------------------------------------------------------------------------------------------- */
#site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 60px;
  background: rgba(5, 10, 25, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.header-logo img { height: 28px; display: block; }
.header-nav { display: flex; align-items: center; gap: 0.15rem; }
.header-nav-link {
  padding: 0.4rem 0.65rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header-utils { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.header-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  color: #073b70;
  background-color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header-manage-btn:hover { border-color: #fff; background: #fff; }
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.header-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header-icon-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.4rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header-icon-text-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 1023px) { .header-nav { display: none; } }
@media (max-width: 767px) {
  .header-icon-text-link { display: none; }
  .header-icon-btn { display: none; }
  .header-manage-btn { font-size: 0.72rem; padding: 0.28rem 0.75rem; }
}

/* ------ News Section Pills ------------------------------------------------------------------------------ */
.news-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.news-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.news-pill.active {
  background: var(--brand-secondary, #FFD633);
  color: var(--brand-dark, #073b70);
  border-color: var(--brand-secondary, #FFD633);
}
.news-pill:hover:not(.active) {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ------ Scroll-to-top Button -------------------------------------------------------------------------- */
#scroll-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 800;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-primary, #005DAD);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,93,173,0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
  pointer-events: none;
}
#scroll-top-btn.btn-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#scroll-top-btn:hover { background: var(--brand-dark, #073b70); box-shadow: 0 12px 32px rgba(0,93,173,0.45); }

/* ------ Hero ---------------------------------------------------------------------------------------------------------- */
#hero {
  width: 100%;
  position: relative;
  padding: 7rem 0 calc(52px + 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-gradient);
}
@media (min-width: 768px) { #hero { padding: 9rem 0 calc(52px + 4rem); } }
@media (min-width: 1024px) { #hero { padding: 10rem 0 calc(52px + 5rem); } }

#hero-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  transform-origin: center center;
  will-change: transform;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.04;
  background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%224%22 stitchTiles=%22stitch%22/></filter><rect width=%22200%22 height=%22200%22 filter=%22url(%23n)%22 opacity=%221%22/></svg>');
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}
@media (min-width: 1024px) { .hero-inner { padding: 0 3rem; } }
.hero-eyebrow {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--brand-secondary);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--badge-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-title {
  font-size: 5rem;
  font-weight: 600;
  color: var(--brand-secondary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

.hero-lead {
  font-size: var(--text-lead);
  color: rgba(255,255,255,0.9);
  max-width: 42rem;
  line-height: 1.65;
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 8rem;
  background: linear-gradient(to top, #f8fafc, transparent);
  z-index: 10;
  pointer-events: none;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* ------ Hero entrance animation -------------------------------------------------------------------- */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.hero-content.hero-visible { opacity: 1; transform: translateY(0); }
.hero-content:nth-child(1) { transition-delay: 0.1s; }
.hero-content:nth-child(2) { transition-delay: 0.25s; }
.hero-content:nth-child(3) { transition-delay: 0.4s; }

/* ------ Content Area ------------------------------------------------------------------------------------------ */
.content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  position: relative;
  z-index: 20;
}
@media (min-width: 1024px) { .content-area { padding: 0 3rem 6rem; } }

.section-label {
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #005cad58;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 2rem 0;
}

/* ------ Bento Grid ---------------------------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
}

/* ------ Base Bento Card ------------------------------------------------------------------------------------ */
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(34, 54, 75, 0.12);
}
.bento-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Grid column/row spans */
.bento-card-1 { grid-column: span 2; grid-row: span 2; }
.bento-card-2 { grid-column: span 1; grid-row: span 2; }
.bento-card-3 { grid-column: span 1; grid-row: span 1; }
.bento-card-4 { grid-column: span 1; grid-row: span 1; }
.bento-card-5 { grid-column: span 2; grid-row: span 1; }
.bento-card-6 { grid-column: span 2; grid-row: span 1; }

/* Bento-pair: transparent to grid on desktop */
.bento-pair { display: contents; }

/* ------ Image overlay card pattern -------------------------------------------------------------- */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.bento-card:hover .card-img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.817) 20%, transparent 50%, transparent 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  color: #fff;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-meta-line::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--brand-secondary);
  border-radius: 1px;
  flex-shrink: 0;
}
.card-date {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.card-title {
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-card:hover .card-title { color: var(--brand-secondary); }

/* Title sizes per card */
.bento-card-1 .card-title { font-size: var(--title-h3); -webkit-line-clamp: 3; line-clamp: 3; }
.bento-card-2 .card-title { font-size: 1.2rem; -webkit-line-clamp: 3; line-clamp: 3; }
.bento-card-3 .card-title { font-size: var(--text-lead); -webkit-line-clamp: 3; line-clamp: 3; }
.bento-card-4 .card-title { font-size: var(--text-lead); -webkit-line-clamp: 2; line-clamp: 2; }
.bento-card-5 .card-title { font-size: 1.5rem; -webkit-line-clamp: 2; line-clamp: 2; }
.bento-card-6 .card-title { font-size: 1.5rem; -webkit-line-clamp: 2; line-clamp: 2; }

.card-excerpt {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--brand-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bento-card:hover .card-read-more { opacity: 1; transform: translateY(0); }

/* ------ Spotlight glow -------------------------------------------------------------------------------------- */
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  transition: box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.spotlight-card:hover {
  box-shadow: 0 24px 56px rgba(7,59,112,0.25);
  transform: translateY(-4px);
}
.spotlight-glow {
  position: absolute;
  inset: 0;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 214, 51, 0.28) 0%,
    rgba(0,93,173,0.07) 50%,
    transparent 100%
  );
}
.spotlight-card:hover .spotlight-glow { opacity: 1; }

/* ------ Scroll-reveal ---------------------------------------------------------------------------------------- */
.reveal-card {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.reveal-card.card-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ------ Section divider ------------------------------------------------------------------------------------ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,93,173,0.15), transparent);
  margin: 3rem 0;
}

/* ------ Discover Section ---------------------------------------------------------------------------------- */
#discover-section { margin-top: 3rem; }
.discover-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

#discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) and (max-width: 1023px) {
  #discover-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------ Discover Cards -------------------------------------------------------------------------------------- */
.discover-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  height: 260px;
  box-shadow: 0 4px 24px rgba(7,59,112,0.12);
  transition: box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.45s ease;
}
.discover-card.card-entering {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  pointer-events: none;
}
.discover-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.discover-card:hover .card-img { transform: scale(1.06); }
.discover-card:hover .card-read-more { opacity: 1; transform: translateY(0); }
.discover-card .card-title { font-size: 1.1rem; -webkit-line-clamp: 2; line-clamp: 2; }

/* ------ Discover More Button -------------------------------------------------------------------------- */
#discover-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}
#discover-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,93,173,0.28);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
#discover-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
#discover-btn:hover { background: var(--brand-primary-hover); box-shadow: 0 12px 36px rgba(0,93,173,0.38); transform: translateY(-2px); }
#discover-btn:disabled { background: #94a3b8; box-shadow: none; cursor: default; transform: none; }


/* ------ Badge shimmer ---------------------------------------------------------------------------------------- */
@keyframes badge-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.badge-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.15) 100%);
  background-size: 200% auto;
  animation: badge-shimmer 3s linear infinite;
}

/* ------ Mobile overrides ---------------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  /* Card 1 */
  .bento-card-1 { height: 300px; }

  /* Cards 2+3: side-by-side pair */
  .bento-pair {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
  .bento-pair .bento-card {
    grid-column: auto;
    grid-row: auto;
    height: 200px;
  }
  .bento-pair .card-content { padding: 0.875rem; }
  .bento-pair .card-excerpt { display: none; }
  .bento-pair .card-read-more { display: none; }
  .bento-pair .card-title { font-size: 0.82rem !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; }

  /* Cards 4, 5, 6 */
  .bento-card-4,
  .bento-card-5,
  .bento-card-6 { height: 220px; }
  .bento-card-5 .card-title,
  .bento-card-6 .card-title { font-size: 1.15rem; -webkit-line-clamp: 2; line-clamp: 2; }

  /* Discover grid: single col */
  #discover-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .discover-card { height: 180px; }
}

/* ------ Reduced motion -------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-card, .hero-content, #site-header, .card-img, .spotlight-card, .discover-card {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .badge-shimmer { animation: none; }
} 