/*
Theme Name: FLOSS Articles
Theme URI: https://ads.flossdentalstudio.id/artikel
Author: FLOSS Dental Studio
Description: Editorial WordPress theme for FLOSS Dental Studio article hub.
Version: 1.0.0
Text Domain: floss-articles
*/

:root {
  --floss-green: #5f725f;
  --floss-ink: #2f4037;
  --floss-muted: #68766f;
  --floss-line: #dfe6e1;
  --floss-soft: #f6f8f5;
  --floss-white: #ffffff;
  --floss-radius: 18px;
  --floss-shadow: 0 24px 70px rgba(49, 64, 56, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fbfcfa;
  color: var(--floss-ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

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

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

.floss-container {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(95, 114, 95, 0.18);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 32px;
}

.site-logo img {
  width: 212px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--floss-ink);
  font-size: 1rem;
  font-weight: 750;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  padding-block: 10px;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--floss-green);
  content: "";
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  width: 100%;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--floss-green);
  color: #fff;
  font-weight: 800;
}

.article-page-shell {
  padding: 92px 0 88px;
}

.article-directory-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--floss-green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-directory-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--floss-ink);
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.article-directory-hero p {
  max-width: 690px;
  margin: 26px auto 0;
  color: var(--floss-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
  line-height: 1.62;
}

.article-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 32px;
}

.article-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-filter {
  border: 1px solid var(--floss-line);
  border-radius: 999px;
  background: #fff;
  color: var(--floss-green);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 850;
  padding: 12px 18px;
}

.article-filter.active,
.article-filter:hover {
  border-color: var(--floss-green);
  background: var(--floss-green);
  color: #fff;
}

.article-search {
  display: flex;
  align-items: center;
  min-width: 300px;
  border: 1px solid var(--floss-line);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
}

.article-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--floss-ink);
  font: inherit;
}

.article-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--floss-line);
  border-radius: var(--floss-radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(49, 64, 56, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--floss-shadow);
}

.article-card-image {
  aspect-ratio: 1.55;
  overflow: hidden;
  background: var(--floss-soft);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.035);
}

.article-card-body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px;
}

.article-card-meta,
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--floss-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 18px 0 12px;
  color: var(--floss-ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.article-card p {
  margin: 0;
  color: var(--floss-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.article-card-link {
  margin-top: auto;
  padding-top: 30px;
  color: var(--floss-green);
  font-weight: 900;
}

.article-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1320px, calc(100% - 48px));
  margin: 72px auto 0;
  border-radius: 24px;
  background: var(--floss-green);
  color: #fff;
  padding: 42px 48px;
}

.article-newsletter h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.article-newsletter p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.button.primary {
  min-height: 54px;
  padding: 0 26px;
  background: #fff;
  color: var(--floss-green);
}

.article-detail-page {
  padding: 72px 0 88px;
}

.article-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 820px) 360px;
  align-items: start;
  gap: 56px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: var(--floss-muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.article-breadcrumb span::before {
  content: "/";
}

.article-detail-hero h1 {
  margin: 18px 0 22px;
  color: var(--floss-ink);
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.article-detail-hero p {
  margin: 0;
  color: var(--floss-muted);
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.58;
}

.article-detail-cover {
  overflow: hidden;
  margin: 44px 0;
  border-radius: 22px;
  background: var(--floss-soft);
}

.article-detail-cover img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.article-detail-content {
  color: var(--floss-ink);
}

.article-lead {
  margin: 0 0 34px;
  color: var(--floss-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.58rem);
  font-weight: 680;
  line-height: 1.55;
}

.article-detail-content h2 {
  margin: 42px 0 14px;
  color: var(--floss-ink);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-detail-content p {
  margin: 0 0 18px;
  color: #53635b;
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-detail-content blockquote {
  margin: 48px 0 0;
  border: 0;
  border-left: 4px solid var(--floss-green);
  border-radius: 18px;
  background: #eef3ee;
  color: var(--floss-ink);
  padding: 28px;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.55;
}

.article-sidebar {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 16px;
}

.article-sidebar-card {
  border: 1px solid var(--floss-line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(49, 64, 56, 0.05);
}

.article-sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 1.36rem;
  line-height: 1.16;
}

.article-sidebar-card p {
  margin: 0 0 20px;
  color: var(--floss-muted);
  line-height: 1.6;
}

.article-sidebar-card .button.primary {
  background: var(--floss-green);
  color: #fff;
}

.article-facts {
  display: grid;
  gap: 14px;
}

.article-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--floss-line);
  padding-bottom: 14px;
}

.article-facts span {
  color: var(--floss-muted);
}

.article-facts strong {
  color: var(--floss-ink);
}

.site-footer {
  border-top: 1px solid var(--floss-line);
  padding: 42px 0;
  color: var(--floss-muted);
}

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

.site-footer img {
  width: 172px;
}

@media (max-width: 980px) {
  .site-header-inner,
  .site-nav,
  .article-tools,
  .article-newsletter,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .article-directory-grid,
  .article-detail-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .floss-container,
  .article-directory-hero,
  .article-tools,
  .article-directory-grid,
  .article-newsletter,
  .article-detail-shell {
    width: min(100% - 28px, 1320px);
  }

  .site-header-inner {
    min-height: 76px;
    gap: 18px;
    padding: 14px 0;
  }

  .site-logo img {
    width: 172px;
  }

  .site-nav {
    width: 100%;
    gap: 0;
  }

  .site-nav-list {
    width: 100%;
    gap: 0;
  }

  .site-nav a {
    width: 100%;
    border-top: 1px solid var(--floss-line);
    padding: 13px 0;
  }

  .article-page-shell,
  .article-detail-page {
    padding: 52px 0 64px;
  }

  .article-directory-hero {
    text-align: left;
  }

  .article-directory-hero h1,
  .article-directory-hero p {
    margin-inline: 0;
  }

  .article-search {
    min-width: 0;
    width: 100%;
  }

  .article-card-body {
    min-height: 0;
    padding: 22px;
  }

  .article-newsletter {
    padding: 30px 24px;
  }

  .article-newsletter .button,
  .site-cta {
    width: 100%;
  }

  .article-detail-cover {
    margin: 30px 0;
    border-radius: 16px;
  }

  .article-detail-content p {
    font-size: 1rem;
  }
}
