/* ======================================== */
/* ========== GLOBAL RESET ================ */
/* ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f5f6f8;
  color: #111827;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ======================================== */
/* ============== TOPBAR ================== */
/* ======================================== */

.topbar {
  background: #111827;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.topbar-inner a {
  color: #e5e7eb;
  transition: .2s;
}

.topbar-inner a:hover {
  color: #16a34a;
}


/* ======================================== */
/* ============== HEADER ================== */
/* ======================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.header-logo {
  font-size: 28px;
  font-weight: 900;
  color: #16a34a;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
}

.header-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  margin: 3px 0;
}


/* ========== NAV ========== */

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 6px 10px;
  font-size: 15px;
  border-radius: 999px;
}

.nav-link-highlight {
  color: #16a34a;
  font-weight: 700;
}

/* mega menu */

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: absolute;
  top: 120%;
  left: 50%;
  width: 360px;
  transform: translate(-50%, 10px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;

  opacity: 0;
  visibility: hidden;
  transition: .18s;
}

.mega-item {
  font-size: 14px;
  padding: 7px 10px;
  background: #f3f4f6;
  border-radius: 999px;
}


/* ========== HEADER ACTIONS ========== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  font-size: 14px;
}

.header-btn {
  padding: 7px 14px;
  background: #16a34a;
  font-size: 14px;
  color: #fff;
  border-radius: 999px;
}



/* ======================================== */
/* ============ ARTICLE HERO ============== */
/* ======================================== */

.article-hero {
  margin-top: 20px;
}

.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #111827;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
}


/* ======== META ======== */

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 18px;
}

.meta-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
}

.meta-author {
  font-weight: 700;
}

.meta-role {
  font-size: 12px;
  color: #6b7280;
  display: block;
}

.meta-time {
  font-size: 12px;
  color: #6b7280;
}


/* ======== COVER ======== */

.article-cover img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
}

.cover-caption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  display: block;
}



/* ======================================== */
/* ============ ARTICLE BODY ============== */
/* ======================================== */

.article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #111827;
}

.article-content p {
  margin: 18px 0;
}

.intro-paragraph {
  font-size: 20px;
  font-weight: 500;
}

.article-content h2 {
  font-size: 24px;
  margin: 28px 0 12px;
  font-weight: 800;
}

.article-content h3 {
  font-size: 19px;
  margin: 22px 0 10px;
  font-weight: 700;
}



/* ======= FIGURE ======= */

.article-figure {
  margin: 26px 0;
}

.article-figure img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 14px;
}

.article-figure figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}



/* ======= HIGHLIGHT BOX ======= */

.article-highlight {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 16px 16px;
  border-radius: 12px;
  margin: 26px 0;
  color: #166534;
}



/* ======= QUOTE ======= */

.article-quote {
  font-style: italic;
  padding: 16px;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  background: #f3f4f6;
  margin: 30px 0;
}

.article-quote cite {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}



/* ======= IMAGE + TEXT ROW ======= */

.image-text-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 20px;
  margin: 28px 0;
}

.itr-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.itr-text p {
  margin: 10px 0;
}



/* ======= LIST ======= */

.article-list {
  padding-left: 22px;
}

.article-list li {
  margin: 10px 0;
}



/* ======= DIVIDER ======= */

.article-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 34px 0;
}



/* ======= ADS BOX ======= */

.ads-box {
  background: #f3f4f6;
  height: 240px;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  margin: 30px 0;
}



/* ============================================ */
/* ================ SIDEBAR ==================== */
/* ============================================ */

.article-sidebar {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-box {
  background: #ffffff;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.side-title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-list li {
  margin-bottom: 8px;
}

.side-pill {
  padding: 8px 14px;
  background: #f3f4f6;
  border-radius: 999px;
  display: inline-block;
  margin: 4px 6px 4px 0;
}

.side-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.side-card-title {
  font-size: 15px;
  margin-top: 6px;
}



/* ============================================ */
/* ============ SEO BOTTOM AREA =============== */
/* ============================================ */

.article-seo-bottom {
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
}

.seo-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,.05);
}

.seo-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.faq-item {
  margin-bottom: 12px;
}

.faq-q {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 700;
}

.faq-a {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

.tag-item {
  padding: 7px 14px;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 14px;
}



/* ============================================ */
/* =============== AUTHOR BOX ================== */
/* ============================================ */

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.author-photo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
}

.author-name {
  font-size: 17px;
  font-weight: 800;
}

.author-bio {
  font-size: 14px;
  margin: 8px 0;
  color: #4b5563;
}

.author-updated {
  font-size: 12px;
  color: #9ca3af;
}



/* ============================================ */
/* ================= FOOTER ==================== */
/* ============================================ */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}



/* ============================================ */
/* ============== RESPONSIVE =================== */
/* ============================================ */

@media (max-width: 980px) {
  .header-nav {
    display: none;
  }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .image-text-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  main.container {
    flex-direction: column;
  }
  .article-sidebar {
    width: 100%;
  }
  .article-cover img {
    height: 240px;
  }
}

