/* ═══════════════════════════════════════════
   WORDS BY ABDAL — Design System
   Minimal · Fast · AdSense-Ready
   ═══════════════════════════════════════════ */

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

:root {
  /* Colors */
  --c-primary: #0F172A;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-accent: #3B82F6;
  --c-accent-hover: #2563EB;
  --c-text: #111827;
  --c-text-muted: #6B7280;
  --c-border: #E5E7EB;

  /* Typography */
  --f-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1120px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

/* ─── Utility ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section__title {
  font-family: var(--f-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--space-xs);
}

.section__subtitle {
  color: var(--c-text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn--primary {
  background-color: var(--c-accent);
  color: #FFFFFF;
  padding: 0.75rem 1.75rem;
}

.btn--primary:hover {
  background-color: var(--c-accent-hover);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-height);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.navbar__list {
  display: flex;
  gap: var(--space-md);
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--c-primary);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 110;
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--c-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger open state */
.navbar__toggle.is-open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  background-color: #0F172A; /* Fallback color */
  color: #FFFFFF;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8));
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__title {
  font-family: var(--f-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════ */
.card-grid {
  display: grid;
  gap: var(--space-md);
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card-grid--4 {
  grid-template-columns: 1fr 1fr;
}

/* ═══════════════════════════════════════════
   FEATURED SECTION
   ═══════════════════════════════════════════ */
.featured {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg-alt);
}

.card {
  background-color: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.card__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-accent);
  transition: color 0.2s ease;
}

.card__link:hover {
  color: var(--c-accent-hover);
}

/* ═══════════════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════════════ */
.categories {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg);
}

.cat-card {
  display: block;
  background-color: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: var(--space-md);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
}

.cat-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.cat-card__title {
  font-family: var(--f-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 0.25rem;
}

.cat-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   FOOTER (Multi-column)
   ═══════════════════════════════════════════ */
.footer {
  padding: var(--space-xl) 0 0;
  border-top: 1px solid var(--c-border);
  background-color: var(--c-primary);
  color: #CBD5E1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer__logo {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}

.footer__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #FFFFFF;
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #FFFFFF;
}

.footer__bottom {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-size: 0.8125rem;
  color: #64748B;
  text-align: center;
}

/* ═══════════════════════════════════════════
   LATEST ARTICLES SECTION
   ═══════════════════════════════════════════ */
.latest {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg-alt);
}

.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.article-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--c-border);
}

.article-item:first-child {
  padding-top: 0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.article-item__title {
  font-family: var(--f-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}

.article-item__title a {
  color: var(--c-primary);
  transition: color 0.2s ease;
}

.article-item__title a:hover {
  color: var(--c-accent);
}

.article-item__excerpt {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.latest__more {
  margin-top: var(--space-lg);
  text-align: center;
}

.btn--outline {
  background-color: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--outline:hover {
  background-color: var(--c-accent);
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════
   START HERE SECTION
   ═══════════════════════════════════════════ */
.start-here {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg);
}

.start-here__list {
  list-style: none;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.start-here__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--c-border);
}

.start-here__item:last-child {
  border-bottom: none;
}

.start-here__step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--c-accent);
  color: #FFFFFF;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.875rem;
}

.start-here__content h3 {
  font-family: var(--f-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.start-here__content h3 a {
  color: var(--c-primary);
  transition: color 0.2s ease;
}

.start-here__content h3 a:hover {
  color: var(--c-accent);
}

.start-here__content p {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ABOUT / AUTHORITY SECTION
   ═══════════════════════════════════════════ */
.about {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg-alt);
}

.about__inner {
  max-width: 680px;
}

.about__text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: var(--space-sm);
}

.about__text p:last-of-type {
  margin-bottom: var(--space-md);
}

.about__link {
  font-weight: 500;
  color: var(--c-accent);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.about__link:hover {
  color: var(--c-accent-hover);
}

/* ═══════════════════════════════════════════
   VALUE PROPOSITION SECTION
   ═══════════════════════════════════════════ */
.value-prop {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg);
}

.value-card {
  text-align: center;
  padding: var(--space-md);
}

.value-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.value-card__title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 0.25rem;
}

.value-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════ */
.newsletter {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--c-bg-alt);
}

.newsletter__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__title {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--space-xs);
}

.newsletter__desc {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.newsletter__input {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
  background-color: var(--c-bg);
  color: var(--c-text);
}

.newsletter__input:focus {
  border-color: var(--c-accent);
}

.newsletter__input::placeholder {
  color: #9CA3AF;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 640px
   ═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter__form {
    flex-direction: row;
  }

  .newsletter__input {
    flex: 1;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 768px
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section__title {
    font-size: 1.875rem;
  }

  .article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--space-xl);
  }

  .article-item {
    border-bottom: none;
    padding: 0 0 var(--space-md) 0;
    border-left: 2px solid var(--c-border);
    padding-left: var(--space-md);
  }

  .article-item:first-child {
    padding-top: 0;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 1024px
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 2.75rem;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════
   MOBILE NAV (below 768px)
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
  .navbar {
    overflow: visible;
  }

  .navbar__logo {
    position: relative;
    z-index: 111;
  }

  .navbar__logo img {
    height: 40px;
    min-width: 120px;
    object-fit: contain;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-sm) var(--space-md) var(--space-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 109;
  }

  .navbar__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar__list {
    flex-direction: column;
    gap: 0;
  }

  .navbar__link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 1rem;
  }

  .navbar__list li:last-child .navbar__link {
    border-bottom: none;
  }
}