/* ======================
   Base
   ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: #f3f4f6;
}

/* Layout containers */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ======================
   Header / Nav
   ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Nav */
.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e5e9ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Mobile nav toggle */
.nav-toggle {
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
}

/* ======================
   Ticker
   ====================== */
.ticker-wrap {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.ticker-wrap .ticker-label {
  padding: 0.35rem 1rem;
  font-weight: 600;
  color: #bfdbfe;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  padding: 0.35rem 1rem 0.6rem;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track a {
  color: #e5e7eb;
  text-decoration: none;
}

.ticker-track a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ======================
   Hero & Cards
   ====================== */
.hero {
  padding: 2rem 1rem 1rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.hero-copy h1 {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
  color: #111827;
}

.hero-copy p {
  margin: 0.25rem 0;
  color: #4b5563;
}

.hero-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #e0e7ff;
  color: #312e81;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Simple 4-slide hero carousel */
.hero-slides {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slide h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.hero-slide p {
  margin: 0;
  font-size: 0.9rem;
}

.hero-dots {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.hero-dots button.active {
  background: #4f46e5;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: #111827;
}

.card p {
  margin: 0.4rem 0;
  color: #4b5563;
}

.card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

/* Ad slot placeholder */
.ad-slot {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px dashed #e5e7eb;
  background: #f9fafb;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Lists, notes */
ul.checklist {
  list-style: none;
  padding-left: 0;
}

ul.checklist li::before {
  content: "•";
  margin-right: 0.5rem;
  color: #4f46e5;
}

.note,
.disclaimer-box {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  margin-top: 2rem;
}

.faq h2 {
  margin-bottom: 0.75rem;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* ======================
   Footer
   ====================== */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  margin-top: 2rem;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  display: grid;
  gap: 1.5rem;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.footer-col p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li + li {
  margin-top: 0.25rem;
}

.footer-col a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-social a {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(236, 240, 241, 0.15);
  text-align: center;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
}

/* ======================
   Forms
   ====================== */
form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button,
input[type="submit"] {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  background: #4f46e5;
  color: #ffffff;
}

button:hover,
input[type="submit"]:hover {
  background: #4338ca;
}

/* ======================
   Headings & typography
   ====================== */
h1 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

/* ======================
   Media Queries
   ====================== */
@media (min-width: 768px) {
  .header-inner {
    padding-inline: 1.5rem;
  }

  .main-nav {
    display: block !important;
  }

  .nav-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ======================
   Utility
   ====================== */
.breadcrumbs {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.breadcrumbs a {
  color: #4f46e5;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
