:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #566074;
  --line: #e6e9f0;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(11,18,32,.10);
  --shadow-soft: 0 10px 26px rgba(11,18,32,.08);
  --radius: 18px;
  --radius-lg: 22px;

  --primary: #1f4aa8;  /* deep blue */
  --primary-2: #0d2a6d;
  --accent: #f2c94c;   /* warm gold */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 260px;
}
.brand__logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand__text{
  display: grid;
  line-height: 1.1;
}
.brand__name{ font-weight: 700; letter-spacing: -0.01em; }
.brand__tag{ font-size: 12px; color: var(--muted); }

.topbar__nav{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.navlink{
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.navlink:hover{ color: var(--text); }

.topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.search{
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search__input{
  border: 0;
  outline: 0;
  padding: 10px 12px;
  width: min(360px, 38vw);
  font-size: 14px;
}
.search__btn{
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted);
}
.search__btn:hover{ color: var(--text); }

.iconbtn{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
}
.iconbtn:hover{ background: rgba(11,18,32,.04); color: var(--text); }
.iconbtn--round{
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
}
.iconbtn__bars{
  display:block;
  width: 18px;
  height: 12px;
  position: relative;
}
.iconbtn__bars::before,
.iconbtn__bars::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.iconbtn__bars::before{ top:0; }
.iconbtn__bars::after{ bottom:0; }
.iconbtn__bars{
  background: currentColor;
  height: 2px;
  border-radius: 2px;
  top: 5px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(31,74,168,.22);
}
.btn--primary:hover{ background: var(--primary-2); }
.btn--ghost{
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(11,18,32,.03); }

/* Hero */
.hero{
  padding: 24px 0 10px;
}
.hero__card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--card);
}
.hero__media{
  height: 260px;
  background: #0b1220;
}
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__content{
  padding: 22px 22px 26px;
}
.hero__badge{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0b1220;
  background: rgba(242,201,76,.35);
  border: 1px solid rgba(242,201,76,.55);
}
.badge--subtle{
  background: rgba(31,74,168,.08);
  border-color: rgba(31,74,168,.14);
  color: var(--primary-2);
}
.hero__title{
  margin: 0 0 8px;
  font-size: clamp(24px, 3.1vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.hero__lede{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 78ch;
}
.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* Stats */
.stats{
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.stats__item dt{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.stats__item dd{
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

/* Sections */
.section{
  padding: 26px 0 44px;
}
.section__header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section__header h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.section__actions{
  display: flex;
  gap: 10px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 140px 1fr;
  min-height: 300px;
}

.card__thumb{
  height: 140px;          /* matches grid-template-rows */
  overflow: hidden;
  background: none;
}

.card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__title{
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.card__meta{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.card__link{
  margin-top: auto;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
}
.card__link:hover{ color: var(--primary-2); }

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: #fff;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__left{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.footer__name{ font-weight: 800; letter-spacing: -0.01em; }
.footer__small{ font-size: 12px; color: var(--muted); }
.footer__links{
  display: flex;
  gap: 14px;
}
.footer__links a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.footer__links a:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 980px){
  .topbar__nav{ display: none; }
  .brand{ min-width: unset; }
  .search__input{ width: min(260px, 40vw); }
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .topbar__actions .btn{ display:none; }
  .search{ display:none; }
  .hero__media{ height: 200px; }
  .cards{ grid-template-columns: 1fr; }
}


/* Drawer */
.drawer{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.drawer.is-open{ display: block; }
.drawer__backdrop{
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11,18,32,.42);
  cursor: pointer;
}
.drawer__panel{
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: min(360px, 88vw);
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(11,18,32,.18);
  transform: translateX(-102%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer__panel{ transform: translateX(0); }
.drawer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer__title{ font-weight: 800; letter-spacing: -0.01em; }
.drawer__nav{
  padding: 10px 10px;
  display: grid;
  gap: 6px;
}
.drawer__link{
  text-decoration: none;
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 650;
}
.drawer__link:hover{ background: rgba(11,18,32,.04); }
.drawer__link--strong{
  border: 1px solid rgba(31,74,168,.18);
  background: rgba(31,74,168,.06);
}
.drawer__footer{
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.btn--full{ width: 100%; }

/* Featured "carousel" on smaller screens */
@media (max-width: 980px){
  .cards{
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .card{
    scroll-snap-align: start;
  }
  .cards::-webkit-scrollbar{ height: 10px; }
  .cards::-webkit-scrollbar-thumb{ background: rgba(11,18,32,.12); border-radius: 999px; }
}

/* About section */
.section--alt{
  background: linear-gradient(180deg, rgba(31,74,168,.03), transparent 55%);
  border-top: 1px solid var(--line);
}
.about{
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 16px;
  align-items: start;
}
.about__copy h2{ margin: 0 0 10px; }
.about__copy p{ margin: 0 0 12px; color: var(--muted); }
.about__bullets{
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text);
}
.about__bullets li{ margin: 6px 0; }
.about__actions{ display: flex; flex-wrap: wrap; gap: 10px; }

.about__panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.about__panelTitle{
  font-weight: 800;
  margin-bottom: 8px;
}
.about__link{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
}
.about__link:hover{
  background: rgba(11,18,32,.03);
  border-color: rgba(11,18,32,.06);
}

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

/* Filtering */
.card.is-hidden{ display: none; }
