/* =========================
   Base
========================= */

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-soft: #faf8f3;
  --text: #1d211d;
  --muted: #586159;
  --brand: #7c8774;
  --brand-dark: #697261;
  --line: #ddd8ce;
  --accent: #d9902f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 22px rgba(0,0,0,0.05);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.08);
  --content-width: 860px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
}

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

.p_body {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 12px 0 24px 0;
}

/* =========================
   Typography
========================= */

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  font-weight: 300;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

b {
  font-weight: 700;
}

/* =========================
   Navigation
========================= */

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--brand);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
}

.topnav a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.topnav a.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.topnav .icon {
  display: none;
  margin-left: auto;
  padding: 6px 14px;
  font-size: 32px;
  font-weight: bold;
}

#loginBtn {
  display: none;
}

/* =========================
   Homepage cards
========================= */

.p_content .related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.art_lnk_e,
.art_lnk_o {
  display: block;
  padding: 0;
  background: transparent;
}

a.art_link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

a.art_link > .art_link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a.art_link:hover > .art_link {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cfc8bb;
}

.article_thumb {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  float: none;
  margin: 0;
}

.m_art_title {
  margin: 24px 26px 12px 26px;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #121512;
}

.art_lead {
  margin: 0 26px 18px 26px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

/* quieter editorial link style instead of a button */
a.art_link > .art_link::after {
  display: inline-block;
  align-self: flex-start;
  margin: auto 26px 24px 26px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(217,144,47,0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.art_link:hover > .art_link::after {
  transform: translateX(3px);
  border-color: rgba(217,144,47,0.8);
}

/* temporary neutral CTA until lang-aware rules are added */
.art_lnk_e a.art_link > .art_link::after,
.art_lnk_o a.art_link > .art_link::after {
  content: "Explore →";
}

/* =========================
   Article page
========================= */

.p_article {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.p_article article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  padding: 36px 0 48px 0;
}

.artcle_title {
  padding: 0 48px;
  margin-bottom: 16px;
}

.artcle_lead {
  max-width: 920px;
  margin: 0 auto 30px auto;
  padding: 0 48px;
  text-align: center;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.4;
  font-weight: 300;
  color: #485048;
}

article img[width="100%"] {
  width: calc(100% - 48px);
  margin: 0 24px 30px 24px;
  border-radius: 18px;
  object-fit: cover;
}

.article_subtitle {
  max-width: var(--content-width);
  margin: 0 auto 14px auto;
  padding: 0 48px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}

.article_body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 48px;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 300;
  color: #2d312d;
}

.article_body h1,
.article_body h2,
.article_body h3,
.article_body p {
  margin-left: 0;
  margin-right: 0;
}

.article_body h3 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #161916;
}

/* =========================
   Related on article pages
========================= */

.p_article section.related {
  margin-top: 24px;
}

section.related * {
  color: inherit;
  text-decoration: none;
}

section.related h2 {
  background: transparent;
  color: var(--brand-dark);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 10px 0;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.artlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.p_article .article_thumb {
  height: 180px;
}

.p_article .m_art_title {
  font-size: 24px;
  margin: 20px 22px 10px 22px;
}

.p_article .art_lead {
  font-size: 16px;
  margin: 0 22px 16px 22px;
}

.p_article a.art_link > .art_link::after {
  content: "Read more →";
  margin: auto 22px 22px 22px;
}

/* =========================
   Footer
========================= */

footer {
  margin-top: 24px;
}

footer p {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 14px;
}

/* =========================
   Forms
========================= */

.ContactBox {
  background: #fff;
  color: black;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.button {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  width: 200px;
  height: 50px;
  display: block;
  margin: auto;
  border-radius: 999px;
  border: none;
}

textarea.formBDY,
input.formFLD {
  width: 100%;
  box-sizing: border-box;
}

/* =========================
   Slideshow
========================= */

.pic {
  height: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pic img {
  max-height: 100%;
  max-width: 100%;
  display: block;
  margin: auto;
  border-radius: 16px;
}

.slideshow-container {
  max-width: 1240px;
  position: relative;
  margin: auto;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 14px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 0 10px 10px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.14);
}

.next {
  right: 0;
  border-radius: 10px 0 0 10px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

.text {
  color: #ddd;
  font-size: 15px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #ddd;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #c8c3b8;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s ease;
}

.active, .dot:hover {
  background-color: #7c8774;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.topnav {
  min-height: 48px;
}

.topnav a,
.topnav a.icon {
  box-sizing: border-box;
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
}

.topnav a.icon {
  font-size: 22px;
}


/* =========================
   Mobile
========================= */

@media screen and (max-width: 980px) {
  .p_body {
    width: min(100vw, calc(100vw - 14px));
    padding-top: 6px;
  }

  .p_content .related {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article_thumb {
    height: 230px;
  }

  .artcle_title,
  .artcle_lead,
  .article_subtitle,
  .article_body {
    padding-left: 28px;
    padding-right: 28px;
  }

  .article_body {
    font-size: 17px;
    line-height: 1.8;
  }
}

@media screen and (max-width: 750px) {
  .topnav {
    display: block;
    position: relative;
    overflow: visible;
    z-index: 1000;
  }

  .topnav a:not(.icon) {
    display: none;
  }

  .topnav a.icon {
    display: block;
    text-align: right;
  }

  .topnav.responsive a.icon {
    display: block;
    position: relative;
    z-index: 1003;
  }

  .topnav.responsive a:not(.icon) {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--brand);
    text-align: left;
    z-index: 1002;
  }

  .topnav.responsive a:nth-child(1) {
    top: 100%;
  }

  .topnav.responsive a:nth-child(2) {
    top: calc(100% + 46px);
  }

  .topnav.responsive a:nth-child(3) {
    top: calc(100% + 92px);
  }
}

@media only screen and (max-width: 600px) {
  .p_body {
    width: 100%;
    padding: 0;
  }

  .topnav {
    border-radius: 0;
    margin-bottom: 14px;
  }

  .p_content .related,
  .p_article {
    padding-left: 10px;
    padding-right: 10px;
  }

  .article_thumb {
    height: 190px;
  }

  .m_art_title {
    margin: 18px 18px 10px 18px;
    font-size: 24px;
  }

  .art_lead {
    margin: 0 18px 16px 18px;
    font-size: 16px;
  }

  a.art_link > .art_link::after {
    margin: auto 18px 18px 18px;
    font-size: 14px;
  }

  .p_article article {
    border-radius: 18px;
    padding-top: 24px;
  }

  .artcle_title,
  .artcle_lead,
  .article_subtitle,
  .article_body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .artcle_lead {
    font-size: 20px;
  }

  article img[width="100%"] {
    width: calc(100% - 20px);
    margin: 0 10px 20px 10px;
    border-radius: 14px;
  }

  .article_subtitle {
    font-size: 22px;
  }

  .article_body {
    font-size: 16px;
    line-height: 1.75;
  }

  .article_body h3 {
    font-size: 21px;
  }

  .pic {
    height: 260px;
  }

  .prev, .next, .text {
    font-size: 11px;
  }

  footer p {
    border-radius: 0;
  }
}
