/* ===================== DESIGN TOKENS ===================== */
:root {
  --dks-green: #1f9d55;
  --dks-green-dark: #157f43;
  --dks-navy: #122a52;
  --dks-navy-dark: #0c1d3a;
  --ink: #1b2430;
  --muted: #5a6675;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 42, 82, 0.10);
  --shadow-sm: 0 4px 14px rgba(18, 42, 82, 0.08);
  --maxw: 1180px;
}

/* ===================== RESET ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-weight: 800; font-size: 1.4rem; color: var(--dks-navy); letter-spacing: 0.5px;
}
.brand-text small {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 1.5px;
  color: var(--dks-green); text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 0.94rem;
  color: var(--ink); transition: background .18s, color .18s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--dks-green-dark); }
.main-nav .nav-cta {
  background: var(--dks-green); color: #fff; margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--dks-green-dark); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--dks-navy);
  transition: transform .25s, opacity .25s;
}

/* ===================== HERO SLIDESHOW ===================== */
.hero { position: relative; background: #000; overflow: hidden; }
.slideshow { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 320px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: #0c1d3a;
}
.slide.active { opacity: 1; }

.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; cursor: pointer; border: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.82); color: var(--dks-navy);
  font-size: 1.2rem; display: grid; place-items: center;
  transition: background .2s; box-shadow: var(--shadow-sm);
}
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 18px; }
.slide-btn.next { right: 18px; }

.slide-dots {
  position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 9px; justify-content: center;
}
.slide-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.5); transition: background .2s, transform .2s;
}
.slide-dots button.active { background: #fff; transform: scale(1.25); }

/* ===================== PRODUCTS ===================== */
.products { padding: 70px 22px 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 {
  font-size: 2.1rem; color: var(--dks-navy); font-weight: 800; margin-bottom: 12px;
}
.section-head h2::after {
  content: ""; display: block; width: 62px; height: 4px; border-radius: 4px;
  background: var(--dks-green); margin: 14px auto 0;
}
.section-head p { color: var(--muted); font-size: 1.04rem; }

.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 40px; margin-bottom: 34px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product.featured {
  background: linear-gradient(135deg, #0c1d3a 0%, #143669 100%);
  border-color: transparent; color: #fff;
}
.product.featured .product-desc { color: #d7e0ef; }
.product.featured .product-eyebrow { color: #7ed3a3; }
.product.featured .product-title { color: #fff; }

.product:nth-child(even) { grid-template-columns: 1fr 1fr; }
.product:nth-child(even) .product-media { order: 2; }

.product-media {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  transition: transform .5s ease;
}
.product:hover .product-media img { transform: scale(1.04); }

.product-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--dks-green); margin-bottom: 10px;
}
.product-title {
  font-size: 1.7rem; font-weight: 800; color: var(--dks-navy); margin-bottom: 14px;
  line-height: 1.25;
}
.product-desc { color: var(--muted); font-size: 1.02rem; margin-bottom: 24px; }

.product-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.action-group { display: inline-flex; gap: 8px; align-items: stretch; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-ebook { background: var(--dks-green); color: #fff; }
.btn-ebook:hover { background: var(--dks-green-dark); }
.btn-pdf { background: transparent; color: var(--dks-navy); border-color: var(--dks-navy); }
.btn-pdf:hover { background: var(--dks-navy); color: #fff; }
.product.featured .btn-pdf { color: #fff; border-color: rgba(255,255,255,.6); }
.product.featured .btn-pdf:hover { background: #fff; color: var(--dks-navy); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* compact icon-only share button paired with each action */
.btn-share {
  padding: 12px; background: transparent; color: var(--dks-navy);
  border-color: var(--line);
}
.btn-share svg { margin: 0; }
.btn-share:hover { background: var(--bg-soft); color: var(--dks-green-dark); border-color: var(--dks-green); }
.product.featured .btn-share { color: #fff; border-color: rgba(255,255,255,.4); }
.product.featured .btn-share:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--dks-navy-dark); color: #cdd6e4; margin-top: 50px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 56px 22px 40px;
}
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.footer-tagline { color: #aab6cb; font-size: 0.96rem; max-width: 360px; }
.footer-col h3 {
  color: #fff; font-size: 1.05rem; margin-bottom: 18px; font-weight: 700;
  position: relative; padding-bottom: 10px;
}
.footer-col h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px;
  background: var(--dks-green); border-radius: 3px;
}
.footer-info { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-info li { display: flex; gap: 10px; font-size: 0.95rem; color: #aab6cb; }
.footer-info li span.label { color: #7f8eaa; min-width: 64px; flex-shrink: 0; }
.footer-info a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0;
  font-size: 0.86rem; color: #7f8eaa; text-align: center;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--dks-green); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; transform: translateY(10px);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--dks-green-dark); }

/* ===================== DKS NEWS (home block) ===================== */
.news-block { padding: 20px 0 70px; background: var(--bg-soft); }
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.news-card {
  display: grid; grid-template-columns: 150px 1fr; align-items: stretch;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media { background: var(--bg-soft); overflow: hidden; }
.news-card-media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1;
  transition: transform .5s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.news-card-date {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dks-green);
}
.news-card-title {
  font-size: 1.08rem; font-weight: 700; color: var(--dks-navy); line-height: 1.35;
}
.news-more { text-align: center; margin-top: 40px; }
.news-more .btn { text-decoration: none; }

/* ===================== DKS NEWS (full page) ===================== */
.main-nav a.active, .main-nav a.active:hover { color: var(--dks-green-dark); background: var(--bg-soft); }
.news-page { padding: 70px 22px 50px; min-height: 60vh; }
.news-article {
  max-width: 820px; margin: 0 auto 48px; padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.news-article:last-of-type { border-bottom: 0; }
.article-head { margin-bottom: 26px; }
.article-date {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dks-green);
}
.article-title {
  font-size: 1.85rem; font-weight: 800; color: var(--dks-navy); line-height: 1.25; margin-top: 8px;
}
.article-body { display: flex; flex-direction: column; gap: 22px; }
.article-body p { color: var(--ink); font-size: 1.05rem; }
.article-figure {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.article-figure img { width: 100%; height: auto; }

/* ----- Article slideshow (title → slideshow → body) ----- */
.article-slideshow {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 3 / 4;
  margin: 0 auto 28px; border-radius: 12px; overflow: hidden;
  background: #0c1d3a; box-shadow: var(--shadow-sm);
}
.article-slideshow .slide { background-size: contain; }
.article-slideshow .slide-btn { width: 42px; height: 42px; font-size: 1.05rem; }

/* ----- Pagination ----- */
.pagination {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px;
}
.page-btn {
  min-width: 42px; padding: 10px 14px; border-radius: 10px; text-align: center;
  font-weight: 700; font-size: 0.95rem; border: 1px solid var(--line);
  color: var(--dks-navy); background: var(--bg); cursor: pointer; transition: all .18s;
}
.page-btn:hover { border-color: var(--dks-green); color: var(--dks-green-dark); background: var(--bg-soft); }
.page-btn.current { background: var(--dks-green); border-color: var(--dks-green); color: #fff; }
.page-btn.disabled { opacity: .45; pointer-events: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.open { max-height: 460px; }
  .main-nav a { padding: 14px 22px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin: 12px 22px; border-radius: 8px; text-align: center; }

  .product, .product:nth-child(even) { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .product .product-media, .product:nth-child(even) .product-media { order: 0; }
  .section-head h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }

  .news-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .product-actions { flex-direction: column; }
  .action-group { width: 100%; }
  .action-group .btn-ebook, .action-group .btn-pdf { flex: 1; justify-content: center; }
  .slide-btn { width: 38px; height: 38px; }
}
