/* Gani Mobility — Blog article template */

/* ── Breadcrumb ───────────────────────────────────────── */
.article-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}
.article-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.article-breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin-left: 0.4rem;
  color: var(--hairline);
}
.article-breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--gold);
}
.article-breadcrumb li[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ── Hero banner ──────────────────────────────────────── */
.article-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-image: url("/hero.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: #101010;
  overflow: hidden;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101010 0%, rgba(16, 16, 16, 0.88) 32%, rgba(16, 16, 16, 0.45) 58%, rgba(16, 16, 16, 0.08) 80%);
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}
.article-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #101010;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.article-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.article-hero__title {
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 38rem;
  margin: 0 0 1.1rem;
}
.article-hero__title .gold {
  color: var(--gold-light);
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
}
.article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.article-hero__meta-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .article-hero {
    min-height: 0;
    background-image: url("/heromobile.webp");
    background-position: center top;
  }
  .article-hero__overlay {
    background: linear-gradient(180deg, #101010 0%, rgba(16, 16, 16, 0.85) 45%, rgba(16, 16, 16, 0.35) 70%, rgba(16, 16, 16, 0.08) 100%);
  }
  .article-hero__inner {
    padding: 2rem 1.25rem 2.25rem;
  }
  .article-hero__title {
    max-width: none;
  }
}

/* ── Two-column layout ───────────────────────────────── */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: 2;
  }
}

/* ── Article content / prose ─────────────────────────── */
.article-content {
  min-width: 0;
  color: #3a3a3a;
  font-size: 1rem;
  line-height: 1.75;
}

.article-content__cover {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 1.75rem;
}

.article-lead {
  font-size: 1.0625rem;
  color: #2a2a2a;
}

.article-content h2 {
  position: relative;
  margin: 2.75rem 0 1.1rem;
  padding-top: 1.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.article-content > h2:first-of-type {
  margin-top: 1.5rem;
}

.article-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.article-content p {
  margin: 0 0 1.1rem;
}

.article-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 138, 67, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.article-content a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.article-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.article-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f6ead3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b58a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.article-callout {
  margin: 1.5rem 0;
  font-size: 1.0625rem;
  color: #000000;
}

/* ── Tip box ──────────────────────────────────────────── */
.tip-box {
  display: flex;
  gap: 0.9rem;
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.tip-box__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6ead3;
  color: var(--gold);
}
.tip-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold);
}
.tip-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* ── Table ────────────────────────────────────────────── */
.table-scroll {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 420px;
}
.article-table thead th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  background: #101010;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-table tbody td {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--hairline);
  background: #ffffff;
}
.article-table tbody tr:nth-child(even) td {
  background: var(--ivory);
}
.article-table td.is-highlight {
  font-weight: 700;
  color: var(--gold);
}

/* ── FAQ ──────────────────────────────────────────────── */
.article-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
.article-faq__item {
  padding: 1.1rem 1.4rem;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.article-faq__item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: #000000;
}
.article-faq__item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4a4a4a;
}

/* ── Inline CTA ───────────────────────────────────────── */
.article-cta-inline {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background: #101010;
  border: 1px solid var(--gold);
  border-radius: 16px;
}
.article-cta-inline p {
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.article-cta-inline p:last-of-type {
  margin-bottom: 1.1rem;
}
.article-cta-inline a:not(.btn-pill) {
  color: var(--gold-light);
  border-bottom-color: rgba(216, 181, 111, 0.4);
}

.article-signoff {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  color: #000000;
}

.article-disclaimer {
  margin: 1.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Tags ─────────────────────────────────────────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.article-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  background: #f6ead3;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ── Share ────────────────────────────────────────────── */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.article-share__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-right: 0.3rem;
}
.article-share__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  color: #101010;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.article-share__btn:hover {
  background: #101010;
  border-color: #101010;
  color: var(--gold-light);
}

/* ── Author card ──────────────────────────────────────── */
.article-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.article-author__logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}
.article-author__body {
  flex: 1;
  min-width: 200px;
}
.article-author__body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: #000000;
}
.article-author__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}
.article-author__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.article-author__link:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ── Sidebar ──────────────────────────────────────────── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 5.5rem;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sidebar-card__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.25rem 0.25rem 0.25rem 0.85rem;
}
.sidebar-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
}
.sidebar-search button {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: none;
  background: var(--ivory);
  color: var(--gold);
  cursor: pointer;
}
.sidebar-search__results {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.sidebar-search__results li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.sidebar-search__results li:last-child {
  border-bottom: none;
}
.sidebar-search__results a {
  color: var(--text);
  text-decoration: none;
}
.sidebar-search__results a:hover {
  color: var(--gold);
}
.sidebar-search__empty {
  color: var(--text-soft);
}

.sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-categories a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  transition: background 0.15s ease;
}
.sidebar-categories li.is-active a {
  background: #f6ead3;
  color: #9c7a3d;
  font-weight: 600;
}
.sidebar-categories a:hover {
  background: var(--ivory);
}
.sidebar-categories__icon {
  display: inline-flex;
  color: var(--gold);
  flex-shrink: 0;
}
.sidebar-categories__label {
  flex: 1;
}
.sidebar-categories__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--ivory);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.sidebar-categories li.is-active .sidebar-categories__count {
  background: #ffffff;
  color: #9c7a3d;
}

.sidebar-card--cta {
  background: #101010;
  border-color: #101010;
  color: #ffffff;
}
.sidebar-card--cta h2 {
  margin: 0 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}
.sidebar-card--cta h2 .gold {
  color: var(--gold-light);
}
.sidebar-card--cta p {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.sidebar-card--cta .btn-pill {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

@media (max-width: 991px) {
  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 599px) {
  .article-sidebar {
    flex-direction: column;
  }
  .article-author {
    flex-direction: column;
    text-align: center;
  }
  .article-author__body {
    text-align: center;
  }
}
