/* =========================================================
   article.css - Article Page
   ========================================================= */

/* -- Variables -- */
:root {
  --color-primary:    #114E72;
  --color-header:     #6A8CA0;
  --color-white:      #ffffff;
  --color-border:     #D9D9D9;
  --color-text-muted: #7E7E7E;
  --color-bg:         #D9D9D9;
  --font-main:        'Hanuman', serif;
  --font-ibm:         'IBM Plex Sans Thai Looped', sans-serif;
  --font-radley:      'Radley', serif;
  --font-headland:    'Headland One', serif;
  --font-hedvig:      'Hedvig Letters Serif', serif;
  --radius-btn:       20px;
  --radius-sm:        8px;
}

/* -- Reset -- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-primary);
}

a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }

/* =========================================================
   HEADER  (2 rows: top-bar + navbar)
   ========================================================= */
.SiteHeader {
  width: 100%;
  background: var(--color-header);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* -- Row 1: logo + actions -- */
.SiteHeader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.SiteHeader-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.Logo-img {
  width: 82px;
  height: 60px;
  object-fit: contain;
}

.Logo-text {
  color: var(--color-white);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.SiteHeader-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.Icon-faq {
  width: 41px;
  height: 41px;
  object-fit: contain;
}

.BtnLogin {
  background: var(--color-white);
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-white);
  padding: 10px 28px;
  cursor: pointer;
}

.BtnLogin-text {
  color: var(--color-header);
  font-size: 24px;
  font-weight: 900;
}

/* -- Row 2: navbar -- */
.Navbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px 18px;
  flex-wrap: nowrap;
}

.NavBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-white);
  background: var(--color-header);
  color: var(--color-white);
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.NavBtn:hover   { background: rgba(255,255,255,0.15); }
.NavBtn--active { background: var(--color-primary); }

/* =========================================================
   HERO BANNER
   ========================================================= */
.ArticleHero {
  position: relative;
  width: 100%;
  height: 333px;
  overflow: hidden;
}

.ArticleHero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ArticleHero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ArticleHero-title {
  color: var(--color-white);
  font-size: 60px;
  font-family: var(--font-main);
  font-weight: 900;
  line-height: 1;
}

.Icon-faq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s, filter 0.2s;
  text-decoration: none;
}

.BtnLogin {
  background: var(--color-white);
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-white);
  padding: 10px 28px;
  cursor: pointer;
}

.BtnLogin-text {
  color: var(--color-header);
  font-size: 24px;
  font-weight: 900;
}

.Icon-faq-link:hover {
  filter: brightness(0.85);
}

.ArticleHero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 32px;
  font-family: var(--font-main);
  font-weight: 700;
}

.ArticleHero-breadcrumb a:hover { text-decoration: underline; }

/* =========================================================
   ARTICLE SECTION
   ========================================================= */
.ArticleSection {
  padding: 40px 112px 60px;
}

/* -- Card shell -- */
.ArticleCard {
  background: var(--color-bg);
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.55);
  padding: 28px 32px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* -- Left: intro text -- */
.ArticleCard-intro {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ArticleCard-heading {
  color: #000;
  font-size: 32px;
  font-family: var(--font-ibm);
  font-weight: 300;
}

.ArticleCard-body {
  color: #000;
  font-size: 11.5px;
  font-family: var(--font-ibm);
  font-weight: 500;
  line-height: 1.7;
   margin-top: -15px; /* เพิ่มค่าลบให้มากขึ้นเพื่อให้มันขยับขึ้นไปชิดตัวบน */
  margin-bottom: 5px;
}

.ArticleCard-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 45px;
  background: var(--color-header);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 22px;
  font-family: var(--font-main);
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  text-decoration: none;
}

.ArticleCard-readmore:hover { background: var(--color-primary); }

/* -- Carousel wrapper -- */
.Carousel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.Carousel-btn {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-family: var(--font-radley);
  font-weight: 400;
  color: var(--color-primary);
  transition: background 0.2s;
  background: var(--color-white);
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
}

.Carousel-btn:hover { background: var(--color-bg); }

.Carousel-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.Carousel-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  transition: transform 0.35s ease;
}

/* -- Slide item -- */
.Carousel-item {
  flex-shrink: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.Carousel-item img {
  width: 202px;
  height: 264px;
  object-fit: cover;
  display: block;
}

/* last item: half-visible peek */
.Carousel-item--peek img {
  width: 89px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.Carousel-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(106, 140, 160, 0.65);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--color-white);
  font-size: 10px;
  font-family: 'Radio Canada Big', sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

/* -- Dots -- */
.Carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
  padding: 0;
}

.Carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-header);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.Carousel-dot--active { background: var(--color-primary); }

.rc-logo {
  font-size: 55px;
  line-height: 1;
  font-weight: 550;
  letter-spacing: -2px;
  margin-bottom: 0;
}

.rc-text {
  font-size: 25.9px;
  letter-spacing: 2px;
  margin-top: -15px; /* เพิ่มค่าลบให้มากขึ้นเพื่อให้มันขยับขึ้นไปชิดตัวบน */
  margin-bottom: 5px;
  font-weight: 200;
  display: flex;
  align-items: center;    /* จัดกลางแนวตั้ง (ที่มีอยู่แล้ว) */
  justify-content: center; /* เพิ่มตัวนี้ เพื่อจัดกลางแนวนอน */
  width: 100%;            /* มั่นใจว่าตัวมันขยายเต็มความกว้างกล่อง */
}

.header-container {
  display: flex;
  align-items: center; /* จัดให้ตรงกันในแนวตั้ง */
  gap: 10px;           /* เว้นระยะห่างระหว่างข้อความกับโลโก้ */
}