:root {
  --yellow: #ffc900;
  --yellow-deep: #f2b900;
  --black: #090a0b;
  --charcoal: #111315;
  --white: #fff;
  --soft: #f5f5f3;
  --muted: #a9abad;
  --max-width: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--white);
  background: rgba(7, 8, 9, .94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark { width: 48px; height: 52px; }

.brand-divider {
  width: 1px;
  height: 43px;
  background: var(--yellow);
}

.brand-name {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name strong {
  font-family: "Poppins", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.brand-name span {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:not(.nav-cta) {
  padding: 12px 0;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  color: var(--black);
  background: var(--yellow);
  border-radius: 999px;
  padding: 13px 25px;
  font-weight: 800;
  transition: transform .2s, background .2s;
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-2px);
  background: #ffda35;
}

.menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 660px;
  padding: 160px 0 58px;
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,6,7,.97) 0%, rgba(5,6,7,.88) 35%, rgba(5,6,7,.38) 68%, rgba(5,6,7,.18) 100%),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=2200&q=88") center 52% / cover no-repeat,
    #111;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.hero-content {
  width: min(590px, 58%);
  position: relative;
  z-index: 1;
  padding: 28px 0 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,201,0,.55);
  color: var(--yellow);
  background: rgba(255,201,0,.10);
  border-radius: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font: 800 clamp(44px, 5.2vw, 70px)/1.04 "Poppins", sans-serif;
  letter-spacing: -2.6px;
}

h1 span { color: var(--yellow); }

.hero-copy {
  max-width: 510px;
  color: #d0d1d2;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.6;
  margin-bottom: 27px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 27px;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  transition: transform .2s, background .2s;
  cursor: pointer;
}

.button-primary .arrow { font-size: 21px; line-height: 1; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 25px;
  color: #f1f1f1;
  font-size: 13px;
  font-weight: 600;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check { color: var(--yellow); font-size: 20px; font-weight: 800; }

/* Resources */
.resources {
  padding: 78px 0 88px;
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin: 0 auto 42px;
}

.section-heading h2 {
  font: 800 clamp(30px, 3.2vw, 42px)/1.15 "Poppins", sans-serif;
  letter-spacing: -1.2px;
  margin-bottom: 15px;
}

.heading-rule {
  width: 82px;
  height: 5px;
  margin: 0 auto;
  border-radius: 99px;
  background: var(--yellow);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.resource-card {
  overflow: hidden;
  border: 1px solid #e9e9e9;
  border-bottom: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.055);
  transition: transform .25s, box-shadow .25s;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
}

.resource-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  background: #e9e9e9;
}

.resource-body { padding: 23px 25px 25px; }

.resource-body h3 {
  font: 700 23px/1.2 "Poppins", sans-serif;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}

.resource-body p {
  min-height: 54px;
  color: #55595d;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.text-link span {
  color: var(--yellow-deep);
  font-size: 22px;
  transition: transform .2s;
}

.text-link:hover span { transform: translateX(5px); }

/* Latest articles */
.latest {
  padding: 82px 0 90px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255,201,0,.055), transparent 38%),
    linear-gradient(135deg, #111315, #080909 75%);
  position: relative;
  overflow: hidden;
}

.latest::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255,255,255,.08) 6px, transparent 7px 13px);
}

.latest .container { position: relative; z-index: 1; }

.latest-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 38px;
}

.latest-kicker {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.latest-kicker::after {
  content: "";
  display: block;
  width: 110px;
  height: 1px;
  background: var(--yellow);
}

.latest h2 {
  max-width: 580px;
  font: 800 clamp(34px, 4vw, 52px)/1.08 "Poppins", sans-serif;
  letter-spacing: -1.7px;
  margin: 0;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: white;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.outline-button:hover { background: var(--yellow); color: var(--black); }

/* Article carousel */
.article-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.article-grid::-webkit-scrollbar { display: none; }

.article-card {
  display: grid;
  grid-template-columns: 43% 57%;
  flex: 0 0 calc((100% - 20px) / 2);
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 15px;
  background: #f7f7f6;
  color: var(--black);
  scroll-snap-align: start;
}

.article-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.article-content {
  padding: 25px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.article-category {
  color: #b88700;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-content h3 {
  font: 700 23px/1.15 "Poppins", sans-serif;
  letter-spacing: -.6px;
  margin-bottom: 10px;
}

.article-content p {
  color: #55595d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #56595b;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--yellow);
  transform: scale(1.15);
}

/* Subscribe + footer */
.subscribe {
  padding: 78px 0;
  background: var(--yellow);
  text-align: center;
}

.subscribe h2 {
  font: 800 clamp(30px, 3.5vw, 43px)/1.15 "Poppins", sans-serif;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.subscribe p {
  max-width: 580px;
  margin: 0 auto 25px;
  color: #292929;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  max-width: 510px;
  margin: 0 auto;
  gap: 9px;
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 9px;
  outline: none;
  background: white;
}

.subscribe-form button {
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--black);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  padding: 35px 0;
  color: #c7c8c9;
  background: #080909;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-inner p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; }

/* Tablet */
@media (max-width: 900px) {
  .hero { min-height: 620px; background-position: 58% center; }
  .hero-content { width: min(610px, 72%); }
  .resource-image { height: 180px; }
  .resource-body { padding: 20px; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { height: 190px; min-height: 190px; }
}

/* Mobile */
@media (max-width: 680px) {
  .container { width: min(100% - 36px, var(--max-width)); }
  .nav-wrap { min-height: 72px; }
  .brand-mark { width: 39px; height: 44px; }
  .brand-divider { height: 36px; }
  .brand-name strong { font-size: 18px; }
  .brand-name span { font-size: 12px; letter-spacing: 4px; }
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 20px 24px 25px;
    background: rgba(7,8,9,.98);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0 !important; }
  .nav-links .nav-cta { text-align: center; margin-top: 5px; }

  .hero {
    min-height: 690px;
    padding: 130px 0 50px;
    align-items: flex-start;
    background:
      linear-gradient(90deg, rgba(5,6,7,.95), rgba(5,6,7,.68)),
      url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1200&q=85") 62% center / cover no-repeat,
      #111;
  }

  .hero-content { width: 100%; padding-top: 35px; }
  h1 { font-size: clamp(43px, 12vw, 58px); letter-spacing: -2px; }
  .hero-copy { font-size: 16px; max-width: 440px; }
  .hero-points { gap: 12px 18px; font-size: 12px; }

  .resources { padding: 60px 0 65px; }
  .section-heading { margin-bottom: 30px; }
  .resource-grid { grid-template-columns: 1fr; gap: 18px; }
  .resource-card { display: grid; grid-template-columns: 38% 62%; }
  .resource-image { height: 100%; min-height: 190px; }
  .resource-body { padding: 18px 16px; }
  .resource-body h3 { font-size: 19px; }
  .resource-body p { min-height: 0; font-size: 13px; margin-bottom: 14px; }
  .text-link { font-size: 13px; }

  .latest { padding: 62px 0 68px; }
  .latest-top { display: block; }
  .latest h2 { font-size: 36px; }
  .latest-top .outline-button { margin-top: 22px; }

  .article-card {
    flex-basis: 100%;
    grid-template-columns: 40% 60%;
    min-height: 185px;
  }

  .article-card img { height: 100%; min-height: 185px; }
  .article-content { padding: 16px; }
  .article-content h3 { font-size: 18px; }
  .article-content p { font-size: 12px; }

  .subscribe { padding: 60px 0; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input,
  .subscribe-form button { min-height: 50px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  .resource-card { grid-template-columns: 1fr; }
  .resource-image { height: 185px; min-height: 185px; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { height: 180px; min-height: 180px; }
}

.brand img {
    width: auto;
    max-height: 65px;
    object-fit: contain;
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}



/* ==========================================================
   VISIONARY GAZETTE — HOMEPAGE BREVO FORM FIX
   Add this AFTER the existing style.css, or paste it at the
   VERY END of style.css. It only changes the newsletter form.
   ========================================================== */

/* Keep the subscribe section matching the original yellow band */
.subscribe {
  background: var(--yellow, #ffc900) !important;
  color: var(--black, #090a0b);
}

.subscribe .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe h2 {
  margin-bottom: 12px;
}

.subscribe > .container > p {
  max-width: 580px;
  margin: 0 auto 25px;
  color: #292929;
  line-height: 1.6;
  text-align: center;
}

/* Remove Brevo's white outer panel, fixed widths and default spacing */
.subscribe .sib-form,
.subscribe #sib-form-container,
.subscribe #sib-container,
.subscribe #sib-form {
  width: 100% !important;
  max-width: 510px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.subscribe .sib-form {
  display: block !important;
}

/* The original page had the email field and button side by side */
.subscribe #sib-form {
  display: flex !important;
  align-items: stretch !important;
  gap: 9px !important;
}

/* Remove Brevo's built-in vertical padding wrappers */
.subscribe #sib-form > div {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.subscribe #sib-form > div:first-of-type {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.subscribe #sib-form > div:nth-of-type(2) {
  flex: 0 0 auto !important;
}

/* Flatten Brevo's nested field wrappers */
.subscribe .sib-input,
.subscribe .form__entry,
.subscribe .form__label-row,
.subscribe .entry__field,
.subscribe .sib-form-block {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.subscribe .entry__label,
.subscribe .entry__specification {
  display: none !important;
}

/* Match the original white email field */
.subscribe #EMAIL,
.subscribe input#EMAIL,
.subscribe .entry__field input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid rgba(0,0,0,.16) !important;
  border-radius: 9px !important;
  outline: none !important;
  background: #fff !important;
  color: #090a0b !important;
  box-shadow: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

.subscribe #EMAIL::placeholder {
  color: #858585 !important;
  opacity: 1 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
}

.subscribe #EMAIL:focus {
  border-color: #090a0b !important;
  box-shadow: 0 0 0 3px rgba(9,10,11,.10) !important;
}

/* Match the original black Subscribe Free button */
.subscribe .sib-form-block__button,
.subscribe button.sib-form-block__button {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #090a0b !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background .2s ease, transform .2s ease !important;
}

.subscribe .sib-form-block__button:hover {
  background: #25282a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.subscribe .sib-form-block__button .main-text-btn {
  display: inline !important;
  color: inherit !important;
  font: inherit !important;
  text-align: center !important;
}

.subscribe .sib-form-block__button .sub-text-btn,
.subscribe .sib-form-block__button .progress-indicator__icon {
  display: none !important;
}

/* Keep Brevo validation and success feedback visible, but restrained */
.subscribe .sib-form-message-panel {
  width: 100% !important;
  max-width: 510px !important;
  margin: 0 auto 12px !important;
  padding: 10px 13px !important;
  border-radius: 8px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.subscribe .entry__error {
  display: block !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: #8a1c13 !important;
  background: transparent !important;
  border: 0 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

/* Preserve Brevo's honeypot functionality without showing it */
.subscribe .input--hidden {
  display: none !important;
}

/* Mobile: stack the field and button like the original mobile layout */
@media (max-width: 680px) {
  .subscribe #sib-form {
    flex-direction: column !important;
    gap: 9px !important;
  }

  .subscribe #sib-form > div:first-of-type,
  .subscribe #sib-form > div:nth-of-type(2) {
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .subscribe .sib-form-block__button,
  .subscribe button.sib-form-block__button {
    width: 100% !important;
  }
}
