/* ============================================================
   Investor Relations — Standalone CSS
   Replicates widget-v2/css/main.css layout using same class names
   Adapted to A&T brand colors
   ============================================================ */

.ir-page { --ir-primary: #040618; --ir-accent: #ff7f26; --ir-text: #6B6B78; --ir-radius: 24px; }
.ir-page p { margin: 0; }
.ir-page .font--48 { font-size: 48px; }
.ir-page .font--24 { font-size: 24px; }
.ir-page .font--20 { font-size: 20px; }
.ir-page .font--18 { font-size: 18px; }
.ir-page .font--16 { font-size: 16px; }
.ir-page .semi--bold { font-weight: 600; }
.ir-page .regular { font-weight: 400; }
.ir-page .primary--color { color: var(--ir-primary); }
.ir-page .black { color: #161A19; }
.ir-page .darkgrey { color: var(--ir-text); }
.ir-page .text--color { color: var(--ir-text); }
.ir-page .danger { color: #F95353; }
.ir-page .orange { color: var(--ir-accent); }
.ir-page .ir-price-value { font-size: 32px; font-weight: 600; color: #040618; margin: 0; line-height: 1.2; }
.ir-page .ir-price-label { font-size: 14px; color: #6B6B78; margin: 0; }

/* ── Spacing ──────────────────────────────────────────────── */
.ir-page .section--space { margin-top: 100px; margin-bottom: 100px; }
.ir-page .marbot-40 { margin-bottom: 40px; }
.ir-page .marbot-24 { margin-bottom: 24px; }
.ir-page .marbot-md-24 { margin-bottom: 0; }
.ir-page .martop-24 { margin-top: 24px; }
.ir-page .gap-4 { gap: 4px !important; }
.ir-page .gap-8 { gap: 8px; }
.ir-page .gap-32 { gap: 32px; }
.ir-page .border--24 { border-radius: var(--ir-radius); }

/* ── Banner ───────────────────────────────────────────────── */
.ir-page .banner { margin-top: 0; }
.ir-page .banner__image { position: relative; }
.ir-page .banner__image > img { width: 100%; height: 750px; object-fit: cover; }

/* Video hero */
.ir-page .ir-hero-video {
  width: 100%;
  height: 750px;
  overflow: hidden;
  position: relative;
}
.ir-page .ir-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Banner Header Overlay ────────────────────────────────── */
.ir-page .banner__header-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: 220px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(4,6,24,0.55) 0%, rgba(4,6,24,0.25) 60%, rgba(4,6,24,0) 100%);
}
.ir-page .banner__header-overlay h1 { line-height: 1.4; }
.ir-page .banner__header-overlay p { line-height: 1.6; margin-top: 12px; }

/* ── Stock Content (overlay) ──────────────────────────────── */
.ir-page .stock-content { margin-top: -160px; position: relative; z-index: 2; }

/* ── Stock Health Card ────────────────────────────────────── */
.ir-page .stock__health {
  width: 100%; height: 100%;
  min-height: 280px;
  background: linear-gradient(180deg, #245fb3 0%, #183f77 100%);
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--ir-radius);
}
.ir-page .stock__health .primary--color { color: #fff !important; }

/* ── Stock Detail Card ────────────────────────────────────── */
.ir-page .stock__detail {
    height: auto;
    min-height: 280px;
    background-color: #ffffff;
    padding: 50px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: var(--ir-radius);
}
.ir-page .stock__detail .box-left {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  flex-shrink: 0;
}
.ir-page .stock__detail .box-right {
  display: flex; flex-direction: row; gap: 40px; align-items: center;
}

/* Stock items — same style as home */
.ir-page .stock__detail .box-right .who-we-are-body-item-metal {
  flex-direction: row !important;
  text-align: left !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
}

/* ── Badge ────────────────────────────────────────────────── */
.ir-page .badge-alert {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px 4px 8px; border-radius: 30px;
  font-size: 16px; font-weight: 500; color: #fff;
  background: var(--ir-accent);
}

/* ── readmore-btn override ────────────────────────────────── */
.ir-page .stock__detail .readmore-btn {
  color: var(--ir-primary) !important;
  padding-right: 40px !important;
  transition: color 0.3s ease;
}
.ir-page .stock__detail .readmore-btn:hover {
  color: var(--ir-accent) !important;
}
.ir-page .stock__detail .readmore-btn::before {
  background-color: var(--ir-accent) !important;
  border-radius: 50% !important;
  width: 30px !important; height: 30px !important;
  background-size: 14px !important;
  background-image: url('../images/icon-btn-arrow.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  right: 0 !important;
}
.ir-page .icon-box {
  min-width: 60px; width: 60px; height: 60px;
  border-radius: 50%; background: rgba(255,127,38,0.1);
  display: flex; justify-content: center; align-items: center;
  color: var(--ir-accent); font-size: 20px; flex-shrink: 0;
}

/* ── Health card link (same style as service-item-btn-metal) ── */
.ir-page .stock__health .ir-health-link {
  color: #fff !important;
  font-size: 16px;
  font-weight: 400;
  margin-top: auto;
  padding-right: 35px;
  align-self: flex-start;
}
.ir-page .stock__health .ir-health-link::before {
    background-color: rgb(255 255 255 / 17%) !important;
  height: 28px !important;
  width: 28px !important;
  border-radius: 50% !important;
  background-size: 14px auto !important;
}
.ir-page .stock__health .ir-health-link:hover { color: #fff !important; }
.ir-page .stock__health .ir-health-link:hover::before { background-color: var(--ir-accent) !important; }

/* ── Activities card readmore link (circular arrow bg) ─────── */
.ir-page .ir-activities-detail .ir-health-link {
  color: #fff !important;
  font-size: 16px;
  font-weight: 400;
  padding-right: 34px;
  align-self: flex-start;
  width: fit-content;
}
.ir-page .ir-activities-detail .ir-health-link::before {
  background-color: rgb(255 255 255 / 17%) !important;
  height: 28px !important;
  width: 28px !important;
  border-radius: 50% !important;
  background-size: 14px auto !important;
}
.ir-page .ir-activities-detail .ir-health-link:hover::before {
  background-color: var(--ir-accent) !important;
}
.ir-page .ir-activities-detail .badge-alert {
  align-self: flex-start;
  width: fit-content;
}
.ir-page .ir-activities-title {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
}
.ir-page .ir-activities-title:hover {
  color: var(--ir-accent) !important;
}
/* กิจกรรมที่ไม่มีไฟล์แนบ — asp:HyperLink จะ render <a> โดยไม่มี href จึงกดไม่ได้อยู่แล้ว
   ตรงนี้ตัด hover/cursor ออกด้วย เพื่อไม่ให้ดูเหมือนลิงก์ */
.ir-page .ir-activities-title:not([href]) {
  pointer-events: none;
  cursor: default;
}
.ir-page .ir-activities-title:not([href]):hover {
  color: inherit !important;
}

/* ── Bell shake animation ─────────────────────────────────── */
.ir-page .ir-bell-shake {
  display: inline-block;
  animation: irBellShake 1.5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes irBellShake {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(14deg); }
  20%  { transform: rotate(-12deg); }
  30%  { transform: rotate(10deg); }
  40%  { transform: rotate(-8deg); }
  50%  { transform: rotate(5deg); }
  60%  { transform: rotate(-3deg); }
  70%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* ── About Us section (counter cards + image swiper) ───────── */
.ir-page .about-counter-item-prime {
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
}
.ir-page .about-counter-item-content-prime {
  border-top: 1px solid var(--divider-color);
  padding-top: 15px;
}
.ir-page .about-counter-item-content-prime p {
  border-top: none;
  margin: 0;
  padding: 0;
}
.ir-page .about-us-image-swiper-mobile {
  display: none;
}

/* ── Financial Highlight section ───────────────────────────── */
/* .ir-page .ir-financial-highlight {
    background: linear-gradient(135deg, rgba(47, 16, 133, 0.92) 0%, rgba(41, 20, 122, 0.92) 100%), url('../images/bg-financial-03.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
} */
 .ir-page .ir-financial-highlight {
    background: linear-gradient(135deg, rgb(47 16 133 / 7%) 0%, rgb(50 20 134 / 66%) 100%), url(../images/bg-financial-03.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
}
.ir-page .ir-financial-highlight .primary--color {
  color: #fff;
}
.ir-page .ir-financial-highlight .section-title-center {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}
.ir-page .ir-finance-data-card,
.ir-page .ir-finance-chart-card {
  background: #fff;
  border: 1px solid rgba(4, 6, 24, 0.06);
  border-radius: var(--ir-radius);
  padding: 32px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  transition: box-shadow 0.3s ease;
}
.ir-page .ir-finance-data-card:hover,
.ir-page .ir-finance-chart-card:hover {
  box-shadow: var(--at-shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
}
.ir-page .ir-finance-data-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ir-page .ir-finance-data-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ir-page .ir-finance-data-card--full {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.ir-page .ir-finance-data-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ir-page .ir-icon-circle {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--ir-accent, #ff7f26);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ir-page .ir-icon-circle img {
  max-width: 50%;
  max-height: 50%;
  transition: filter 0.4s ease-in-out;
}
.ir-page .ir-finance-data-item:hover .ir-icon-circle img {
  filter: brightness(1) invert(1);
}

/* ── News + Activities Calendar section ────────────────────── */
.ir-page .ir-news-calendar .section-title-center {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.ir-page .ir-news-card {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(4, 6, 24, 0.06);
  border-radius: var(--ir-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  transition: box-shadow 0.3s ease;
}
.ir-page .ir-news-card:hover {
  box-shadow: var(--at-shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
}
.ir-page .ir-news-card-height {
  min-height: 140px;
}
.ir-page .ir-badge-outline {
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 6px 20px;
  background: rgba(255, 127, 38, 0.08);
  border: 1px solid var(--ir-accent);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ir-accent);
}
.ir-page .ir-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}
.ir-page .ir-news-title:hover {
  color: var(--ir-accent);
}
.ir-page .ir-description-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.ir-page .ir-news-hr {
  width: 100%;
  height: 1px;
  background-color: #EFEFEF;
}
.ir-page .ir-news-card .readmore-btn {
  color: var(--ir-primary) !important;
  padding-right: 36px !important;
  transition: color 0.3s ease;
}
.ir-page .ir-news-card .readmore-btn:hover {
  color: var(--ir-accent) !important;
}
.ir-page .ir-news-card .readmore-btn::before {
  background-color: var(--ir-accent) !important;
  border-radius: 50% !important;
  width: 28px !important; height: 28px !important;
  background-size: 14px !important;
  background-image: url('../images/icon-btn-arrow.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  right: 0 !important;
}

.ir-page .ir-activities-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--ir-radius);
  overflow: hidden;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  transition: box-shadow 0.3s ease;
}
.ir-page .ir-activities-card:hover {
  box-shadow: var(--at-shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
}
.ir-page .ir-activities-image {
  width: 100%;
  height: 100%;
}
.ir-page .ir-activities-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ir-page .ir-activities-card:hover .ir-activities-image img {
  transform: scale(1.06);
}
.ir-page .ir-activities-detail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    /* backdrop-filter: blur(8px); */
    background: var(--at-gradient-blue-card, linear-gradient(180deg, #2869c7 0%, #1c498a 83%, #133361 113%)) !important;
}

/* ── Information Highlights section ────────────────────────── */
.ir-page .ir-info-highlight {
    background-color: #7c1d85;
    padding: 100px 0;
}
.ir-page .ir-info-highlight h2 {
    color: #fff;
    margin-bottom: 16px;
}
.ir-page .section-title-left {
    text-align: left;
}
.ir-page .ir-info-highlight-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
}

.ir-page .ir-download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ir-page .ir-download-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ir-page .ir-download-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ir-page .ir-download-no {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 28px;
}
.ir-page .ir-download-title {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
}
.ir-page .ir-download-link {
  color: #fff !important;
  font-size: 16px;
  font-weight: 400;
  padding-right: 35px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ir-page .ir-download-link:hover {
  color: var(--ir-accent) !important;
}
.ir-page .ir-download-link::before {
    background-color: rgb(255 255 255 / 17%) !important;
    background-image: url(../images/icon-btn-download.svg) !important;
    height: 28px !important;
    width: 28px !important;
    border-radius: 50% !important;
    background-size: 16px auto !important;
}
.ir-page .ir-download-link:hover::before {
  background-color: var(--ir-accent) !important;
  transform: translateY(-50%) !important;
}

/* Service-item-metal cards (same pattern as .service-item-metal.bg-service-Construction on home.html) */
.ir-page .service-item-content-metal p {
  margin: 10px 0 0;
}

/* --------------------การ์ด-นโยบายจ่ายเงินปันผล----------------------- */
.ir-page .ir-bg-dividend .icon-box img {
    max-width: 38px;
}
.service-item-metal.ir-bg-dividend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    height: 430px;
    min-height: var(--height-430, 430px);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.service-item-metal.ir-bg-dividend::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(4, 6, 24, 0.55), rgba(4, 6, 24, 0.55)), url('../images/img-dividend-policy.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: -1;
}
.service-item-metal.ir-bg-dividend:hover::before {
    transform: scale(1.2);
}

/* --------------------การ์ด-ความรับผิดชอบต่อสังคม----------------------- */
.service-item-metal.ir-bg-csr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    height: 430px;
    min-height: var(--height-430, 430px);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.service-item-metal.ir-bg-csr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(4, 6, 24, 0.55), rgba(4, 6, 24, 0.55)), url('../images/img-corporate-social-responsibility-01.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: -1;
}
.service-item-metal.ir-bg-csr:hover::before {
    transform: scale(1.2);
}

/* --------------------การ์ด-บทวิเคราะห์----------------------- */
.service-item-metal.ir-bg-analysis {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    height: 430px;
    min-height: var(--height-430, 430px);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.service-item-metal.ir-bg-analysis::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(4, 6, 24, 0.55), rgba(4, 6, 24, 0.55)), url('../images/img-analysis.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: -1;
}
.service-item-metal.ir-bg-analysis:hover::before {
    transform: scale(1.2);
}

/* --------------------การ์ด-ติดต่อนักลงทุนสัมพันธ์----------------------- */
.service-item-metal.ir-bg-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    height: 430px;
    min-height: var(--height-430, 430px);
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.service-item-metal.ir-bg-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(4, 6, 24, 0.55), rgba(4, 6, 24, 0.55)), url('../images/img-contact-ir-01.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: -1;
}
.service-item-metal.ir-bg-contact:hover::before {
    transform: scale(1.2);
}

@media (max-width: 991px) {
  .ir-page .ir-info-highlight { padding: 60px 0; }
  .ir-page .ir-download-title { font-size: 16px; }
  .ir-page .ir-bg-dividend .icon-box img { max-width: 32px; }
}


/* ══════════════════════════════════════════════════════════════
   A&T LOGO BADGE (แทนหมุดเดิมด้วยโลโก้ A&T + เอฟเฟกต์ pulse)
   ══════════════════════════════════════════════════════════════ */
.ir-page .at-logo-badge a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: #ee211d;
    border-radius: 50%;
}
.ir-page .at-logo-badge .at-logo-badge__logo {
  position: relative;
  width: 60% !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 0;
  animation: none;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(4, 6, 24, 0.25));
}
.ir-page .at-logo-badge .at-logo-badge__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--at-orange, #ff7f26);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
  animation: atBadgePulse 2.6s ease-out infinite;
}
.ir-page .at-logo-badge .at-logo-badge__pulse--delay {
  animation-delay: 1.3s;
}
@keyframes atBadgePulse {
  0%   { transform: translate(-50%, -50%) scale(0.75); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── 1399px ───────────────────────────────────────────────── */
@media (max-width: 1399px) {
  .ir-page .stock__detail { padding: 40px 44px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .ir-page .stock__detail .box-right { gap: 32px; }
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal { gap: 12px !important; }

  /* สุขภาพหุ้น กว้างขึ้น */
  .ir-page .stock-content .col-lg-3 { width: 33.333%; flex: 0 0 33.333%; max-width: 33.333%; }
  .ir-page .stock-content .col-lg-9 { width: 66.666%; flex: 0 0 66.666%; max-width: 66.666%; }

  .ir-page .ir-finance-data-grid { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
}

/* ── 1199px ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .ir-page .font--48 { font-size: 36px; }

  .ir-page .ir-hero-video,
  .ir-page .banner__image > img { height: 680px; }
  .ir-page .banner__header-overlay { padding-top: 180px; }
  .ir-page .stock-content { margin-top: -140px; }

  /* Column proportions: health 36% / detail 64% */
  .ir-page .stock-content .col-lg-3 { width: 36%; flex: 0 0 36%; max-width: 36%; }
  .ir-page .stock-content .col-lg-9 { width: 64%; flex: 0 0 64%; max-width: 64%; }

  /* Health card: vertical layout — heading → paragraph → button */
  .ir-page .stock__health {
    min-height: 280px;
    padding: 28px 32px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  /* Title + badge inline on one line */
  .ir-page .stock__health .d-xl-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    flex-wrap: wrap;
  }
  .ir-page .stock__health .d-xl-flex h5 { margin-bottom: 0; }

  /* Detail card */
  .ir-page .stock__detail { padding: 32px 36px; }
  .ir-page .stock__detail .box-right { gap: 20px; }

  .ir-page .ir-finance-data-card--full { flex-direction: column; align-items: stretch; }
  .ir-page .ir-finance-data-grid { grid-template-columns: repeat(2, minmax(45%, 1fr)); }
}

/* ── 991px ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .ir-page .at-logo-badge a { width: 100px; height: 100px; }
  .ir-page .font--20 { font-size: 18px; }
  .ir-page .font--18 { font-size: 16px; }

  .ir-page .ir-hero-video,
  .ir-page .banner__image > img { height: 620px; }
  .ir-page .banner__header-overlay { padding-top: 150px; }
  .ir-page .stock-content { margin-top: -120px; }

  .ir-page .ir-news-card-height { min-height: unset; }
  .ir-page .ir-activities-card { min-height: 380px; }

  .ir-page .ir-finance-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Keep 36%/64% col proportions */
  .ir-page .stock-content .col-lg-3 { width: 36%; flex: 0 0 36%; max-width: 36%; }
  .ir-page .stock-content .col-lg-9 { width: 64%; flex: 0 0 64%; max-width: 64%; }

  /* Health card */
  .ir-page .stock__health { min-height: 220px; padding: 24px 28px; }

  /* Detail card: tighter padding, smaller gap between top info and prices */
  .ir-page .stock__detail { padding: 28px 32px; min-height: 220px; gap: 16px; }

  /* Price items: undo display:none — show as 3 equal columns with dividers, no icons */
  .ir-page .stock__detail .box-right {
    display: flex !important;
    gap: 0;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(4, 6, 24, 0.08);
  }
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal {
    flex: 1;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    padding: 0 8px !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  /* Icon: perfect circle, solid orange */
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal .icon-box {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    background: #ff7f26 !important;
    flex-shrink: 0 !important;
    align-self: center;
  }
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal .icon-box img {
    width: 26px !important;
    height: 26px !important;
  }
  .ir-page .ir-price-value { font-size: 24px !important; }
  .ir-page .ir-price-label { font-size: 13px; }

  /* Equal card heights */
  .ir-page .stock-content .row { align-items: stretch; }
  .ir-page .stock-content .col-lg-3,
  .ir-page .stock-content .col-lg-9 { display: flex; flex-direction: column; }
  .ir-page .stock__health,
  .ir-page .stock__detail { flex: 1; height: auto; }

  .ir-page .marbot-md-24 { margin-bottom: 20px; }
  .ir-page .section--space { margin-top: 80px; margin-bottom: 80px; }
  .ir-page .ir-financial-highlight { padding: 80px 0; }
  .ir-page .ir-history-nav { flex-shrink: 0; }
}

/* ── 767px ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ir-page .font--48 { font-size: 30px; }
  .ir-page .font--24 { font-size: 20px; }

  .ir-page .ir-hero-video,
  .ir-page .banner__image > img { height: 560px; }
  .ir-page .banner__header-overlay { padding-top: 120px; }
  .ir-page .stock-content { margin-top: -100px; }

  /* Reset columns: full width, cancel 991px flex/display overrides */
  .ir-page .stock-content .col-lg-3,
  .ir-page .stock-content .col-lg-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block;
  }

  /* Reset card flex/height overrides from 991px */
  .ir-page .stock__health,
  .ir-page .stock__detail { flex: none; height: auto; }

  /* Detail card */
  .ir-page .stock__detail { padding: 28px 24px; gap: 20px; align-items: stretch; }
  .ir-page .stock__detail .box-left { flex-direction: column; align-items: flex-start; }

  /* Price items: 3 equal columns, keep icon+value+label column layout from 991px */
  .ir-page .stock__detail .box-right { flex-wrap: nowrap; gap: 0; }
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal {
    flex: 1 !important;
    width: auto !important;
    padding: 0 8px !important;
  }
  .ir-page .ir-price-value { font-size: 20px !important; }

  /* Health card: full-width, comfortable padding */
  .ir-page .stock__health { min-height: 200px; padding: 24px 28px; }
  .ir-page .stock__health .ir-health-link { margin-top: 20px; }

  .ir-page .section--space { margin-top: 60px; margin-bottom: 60px; }
  .ir-page .ir-financial-highlight { padding: 80px 0; }
  .ir-page .gap-32 { gap: 18px; }
  .ir-page .marbot-40 { margin-bottom: 24px; }

  /* จัดกลางหัวข้อ "ข้อมูลสำหรับนักลงทุน" */
  .ir-page .ir-info-highlight .section-title-left { text-align: center; }
  .ir-page .ir-info-highlight-desc { margin-left: auto; margin-right: auto; }

  /* About Us image: swap to swiper, drop the desktop logo badge */
  .ir-page .about-us-image-box-prime { display: none; }
  .ir-page .about-us-image-swiper-mobile { display: block; }
  .ir-page .about-us-image-swiper-mobile .swiper-slide figure {
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
  }
  .ir-page .about-us-image-swiper-mobile .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 0.891;
    object-fit: cover;
    border-radius: 20px;
  }
  .ir-page .about-us-image-swiper-mobile .swiper-pagination {
    position: static;
    margin-top: 16px;
  }

  /* About Us body: add breathing room below the image swiper */
  .ir-page .about-us-body-item-prime { margin-top: 30px; }

  /* Financial Highlight: tighter cards, shorter charts */
  .ir-page .ir-finance-data-card,
  .ir-page .ir-finance-chart-card { padding: 24px; }
  .ir-page #ir-financial-chart,
  .ir-page #ir-income-chart { height: 300px !important; }
}

/* ── History nav buttons ──────────────────────────────────── */
.ir-page .ir-history-nav {
  display: flex;
  gap: 12px;
}
.ir-page .ir-history-nav .swiper-button-prev,
.ir-page .ir-history-nav .swiper-button-next {
  position: static;
  transform: none;
  margin: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #f0f3f8;
  color: var(--ir-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-size: 16px;
}
.ir-page .ir-history-nav .swiper-button-prev::after,
.ir-page .ir-history-nav .swiper-button-next::after { display: none; }
.ir-page .ir-history-nav .swiper-button-prev:hover,
.ir-page .ir-history-nav .swiper-button-next:hover {
  background: var(--ir-primary);
  color: #fff;
}
.ir-page .ir-history-nav .swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ── History slide cards ──────────────────────────────────── */
.ir-page .ir-history-swiper .swiper-slide {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(4, 6, 24, 0.08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  box-shadow: 0 2px 12px rgba(4, 6, 24, 0.05);
}

/* ── 575px ────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .ir-page .font--20 { font-size: 16px; }
  .ir-page .font--18, .ir-page .font--16 { font-size: 14px; }

  .ir-page .ir-hero-video,
  .ir-page .banner__image > img { height: 480px; }
  .ir-page .banner__header-overlay { padding-top: 150px; }
  .ir-page .ir-news-card { padding: 24px; }
  .ir-page .ir-activities-card {
        min-height: 440px;
    }
  .ir-page .ir-activities-detail { padding: 20px; }
  .ir-page .stock-content { margin-top: -80px; }

  .ir-page .ir-finance-data-grid { grid-template-columns: 1fr; }

  .ir-page .stock__detail { padding: 20px; gap: 20px; }
  .ir-page .stock__detail .box-right { gap: 16px; }
  .ir-page .stock__detail .box-right .who-we-are-body-item-metal {
    width: 100% !important; gap: 10px !important;
  }

  .ir-page .stock__health { min-height: 160px; padding: 16px; }
  .ir-page .icon-box { min-width: 60px; width: 60px; height: 60px; }
  .ir-page .section--space { margin-top: 80px; margin-bottom: 80px; }
  .ir-page .ir-financial-highlight { padding: 80px 0; }
  .ir-page .marbot-40 { margin-bottom: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   Email Alert Page (email-alert.html)
   ══════════════════════════════════════════════════════════════ */

.ir-page .ir-email-alert .section-title-center {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ir-page .ir-email-alert .section-title p {
    max-width: 700px;
    margin: 16px auto 0;
    color: var(--ir-text);
    line-height: 1.7;
}
/* ── Card ─────────────────────────────────────────────────── */
.ir-page .ir-email-alert-card {
  background: #fff;
  border-radius: var(--ir-radius);
  box-shadow: 0 10px 40px rgba(4, 6, 24, 0.08);
  padding: 48px;
  margin-top: 40px;
}

.ir-page .ir-email-alert-lead {
  text-align: center;
  color: var(--ir-text);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Form ─────────────────────────────────────────────────── */
.ir-page .ir-email-alert-form .form-label {
  font-weight: 500;
  color: var(--ir-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.ir-page .ir-email-alert-form .required {
  color: #e65757;
  margin-left: 4px;
}

.ir-page .ir-email-alert-form .form-control {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ir-primary);
  transition: border-color 0.3s;
}

.ir-page .ir-email-alert-form .form-control:focus {
  border-color: var(--ir-accent);
  box-shadow: 0 0 0 3px rgba(255, 127, 38, 0.1);
}

.ir-page .ir-email-alert-form .form-check-input:checked {
  background-color: var(--ir-accent);
  border-color: var(--ir-accent);
}

.ir-page .ir-email-alert-form .consent-text {
  font-size: 15px;
  color: var(--ir-text);
  line-height: 1.6;
}

.ir-page .ir-email-alert-form .consent-text a {
  color: #2869c7;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ir-page .ir-email-alert-form .consent-text a:hover {
  color: var(--ir-accent);
}

.ir-page .ir-email-alert-unsub {
  color: #2869c7;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.ir-page .ir-email-alert-unsub:hover {
  color: var(--ir-accent);
}

/* ── 575px ────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .ir-page .ir-email-alert-card { padding: 28px 20px; }
}

/* ── Financial Highlights Page (financial-highlights.html only — scoped to .fh-page, not .ir-page) ── */
.fh-page .ir-financial-highlight.fh-no-bg {
  background: none;
}

.fh-page .fh-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.fh-page .fh-table-section {
  padding: 0px 0 100px;
}

.fh-page .fh-table-unit {
  color: var(--ir-text, #6B6B78);
  margin-bottom: 24px;
}

.fh-page .fh-table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 6, 24, 0.28) transparent;
  padding-bottom: 6px;
}

/* คลิกค้างลากเลื่อนตารางแนวนอนด้วยเมาส์ (ดู assets/js/dividend-policy.js)
   ใส่คลาสให้เฉพาะตอนที่ตารางกว้างเกินกรอบจริง ๆ จะได้ไม่ขึ้นมือจับทั้งที่เลื่อนไม่ได้ */
.fh-page .fh-table-wrap.is-draggable {
  cursor: grab;
}

.fh-page .fh-table-wrap.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.fh-page .fh-scroll-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(4, 6, 24, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

.fh-page .fh-scroll-hint.is-visible {
  opacity: 1;
}

.fh-page .fh-scroll-hint i {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  animation: fh-scroll-hint-swipe 1s ease-in-out infinite;
}

@keyframes fh-scroll-hint-swipe {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

.fh-page .fh-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.fh-page .fh-table th,
.fh-page .fh-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider-color, rgba(4, 6, 24, 0.10));
  white-space: nowrap;
}


.fh-page .fh-table thead th {
    background: #2f1085;
    color: #fff;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.fh-page .fh-table thead th:first-child {
  text-align: left;
}

.fh-page .fh-table .fh-group-row th {
  background: #f3f3f3;
  color: var(--ir-primary, #040618);
  font-weight: 500;
  text-align: left;
}

.fh-page .fh-table tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--ir-text, #6B6B78);
}

.fh-page .fh-table td {
  text-align: center;
  color: #040618;
  font-variant-numeric: tabular-nums;
}

.fh-page .fh-table tbody tr:hover {
  background: var(--ir-accent-light, #fff2e9);
}

@media (max-width: 767px) {
  .fh-page .fh-table-section { padding: 0px 0px 60px; }
  .fh-page .fh-table-section .ck-heading,
  .fh-page .fh-table-unit {
    text-align: center;
  }
}

/* ── ตารางของหน้า IR (ใช้ร่วมกัน: mda.aspx, webcasts.aspx, major-shareholder.aspx) ──
   ตัวตารางใช้สไตล์ .fh-page .fh-table เดิม ที่นี่คุมเฉพาะกรอบการ์ด ระยะห่าง การจัดคอลัมน์ และปุ่มในเซลล์
   ใช้กับตารางใหม่: ครอบ <table class="fh-table"> ด้วย <div class="fh-table-wrap ir-table-wrap">
   หมายเหตุ specificity: .ir-table-wrap .fh-table เท่ากับ .fh-page .fh-table (0,2,0) จึงชนะด้วยลำดับ
   ในไฟล์ — บล็อกนี้ต้องอยู่ "หลัง" บล็อก .fh-page .fh-table เสมอ */
.ir-table-wrap {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--ir-radius, 24px);
  box-shadow: 0 10px 40px rgba(4, 6, 24, 0.08);
  /* overflow: hidden ไม่ได้ เพราะ .fh-table-wrap ต้อง scroll แนวนอนบนจอเล็ก */
}

.ir-table-wrap .fh-table {
  min-width: 720px;
  margin-bottom: 0 !important;
}

.ir-table-wrap .fh-table thead th {
  padding: 18px 24px;
}

.ir-table-wrap .fh-table thead th:first-child {
  border-top-left-radius: var(--ir-radius, 24px);
}

.ir-table-wrap .fh-table thead th:last-child {
  border-top-right-radius: var(--ir-radius, 24px);
}

.ir-table-wrap .fh-table tbody td {
  padding: 14px 24px;
  vertical-align: middle;
}

.ir-table-wrap .fh-table tbody tr:last-child td {
  border-bottom: none;
}

/* คอลัมน์ข้อความหลัก — ชิดซ้าย ตัดบรรทัดได้ กินพื้นที่ที่เหลือ */
.ir-table-wrap .fh-table .fh-th-label,
.ir-table-wrap .fh-table .fh-td-label {
  text-align: left;
  white-space: normal;
  min-width: 340px;
  font-weight: 500;
}

/* คอลัมน์ปุ่ม/ลำดับ — บีบพอดีเนื้อหา จัดกลาง */
.ir-table-wrap .fh-table .fh-th-action,
.ir-table-wrap .fh-table .fh-td-action {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

/* คอลัมน์สถานที่ (เช่น ตารางปฏิทินนักลงทุน) — ข้อความยาวให้ตัดขึ้นบรรทัดใหม่
   ไม่ดันตารางให้กว้างจนต้องเลื่อนแนวนอน คอลัมน์อื่นเป็น nowrap อยู่แล้ว
   เบราว์เซอร์จึงเลือกหักบรรทัดที่คอลัมน์นี้ก่อน */
.ir-table-wrap .fh-table .fh-th-place,
.ir-table-wrap .fh-table .fh-td-place {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;   /* กันข้อความยาวติดกันไม่มีเว้นวรรค เช่น URL หรือชื่อสถานที่ภาษาอังกฤษยาว ๆ */
  word-break: break-word;
  min-width: 180px;
  max-width: 320px;
}

/* คอลัมน์ตัวเลข — ชิดขวา เรียงหลักตรงกันด้วย tabular-nums */
.ir-table-wrap .fh-table .fh-th-num,
.ir-table-wrap .fh-table .fh-td-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* DataTables เขียนข้อความ "ไม่พบข้อมูล" ลง td เดียวเต็มแถว */
.ir-table-wrap .fh-table td.dataTables_empty {
  text-align: center;
  color: var(--ir-text, #6B6B78);
  padding: 32px 24px;
}

/* ── ข้อความ "ยังไม่มีข้อมูล ณ ขณะนี้" ของ DataTables (ดู assets/js/datatables-defaults.js) ──
   จัดกึ่งกลางให้ทุกหน้า ไม่ว่าตารางจะอยู่ใน .ir-table-wrap หรือเป็นตารางเปล่า
   (เช่น news-clipping กับ download_financial ที่ไม่ได้ใช้คลาสชุด fh-table)

   ใช้ !important เพราะแต่ละหน้าโหลด jquery.dataTables.css ใน Content1 ซึ่งมาทีหลัง
   ไฟล์นี้ที่อยู่ใน master head — ถ้าไม่ใส่ ลำดับ CSS จะทำให้กฎนี้แพ้ในบางหน้า */
table.dataTable td.dataTables_empty,
table td.dataTables_empty,
td.dataTables_empty {
  text-align: center !important;
  vertical-align: middle;
  padding: 32px 24px;
  color: var(--ir-text, #6B6B78);
}

/* ── ข้อความ "ยังไม่มีข้อมูล ณ ขณะนี้" ของหน้าที่ไม่ได้ใช้ DataTables ──
   เช่น หน้าข่าว (set-announcement, news-update) ที่แสดงผลด้วย asp:Label

   ต้องมี display:block เพราะ asp:Label render ออกมาเป็น <span> ซึ่งเป็น inline element
   การใส่ text-align กับ inline element ไม่มีผล ข้อความจึงชิดซ้ายอยู่
   ตั้งค่าให้เหมือน td.dataTables_empty ด้านบน เพื่อให้ทุกหน้าหน้าตาเดียวกัน */
.ir-no-data {
  display: block;
  width: 100%;
  text-align: center;
  padding: 32px 24px;
  color: var(--ir-text, #6B6B78);
}

/* ปุ่มในตาราง — ย่อ .btn-default ให้พอดีความสูงแถว และเปลี่ยนไอคอนลูกศรเป็นไอคอนดาวน์โหลด */
.ir-table-btn {
  font-size: 14px !important;
  padding: 10px 44px 10px 20px !important;
}

.ir-table-btn::before {
  right: 18px;
  width: 18px;
  height: 18px;
  background-image: url('../images/icon-btn-download.svg');
}

.ir-table-btn:hover::before {
  transform: translateY(-50%) translateY(3px);
  filter: brightness(0) invert(1);
}

/* ปุ่มโทนโปร่ง คู่กับปุ่มทึบ (ตามคู่ปุ่มของหน้า 56-1 One Report) */
.ir-table-btn.btn-outline-secondary {
  background: transparent !important;
  border: 1px solid var(--accent-color, #040618) !important;
  color: var(--primary-color, #040618) !important;
}

.ir-table-btn.btn-outline-secondary::before {
  background-image: url('../images/icon-btn-arrow.svg');
}

.ir-table-btn.btn-outline-secondary:hover {
  border-color: var(--color-violet-250, #7c1d85) !important;
  color: #fff !important;
}

.ir-table-btn.btn-outline-secondary:hover::before {
  transform: translateY(-50%) rotate(45deg);
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .ir-table-wrap {
    border-radius: 16px;
  }

  .ir-table-wrap .fh-table thead th,
  .ir-table-wrap .fh-table tbody td {
    padding: 12px 16px;
  }

  .ir-table-wrap .fh-table .fh-th-label,
  .ir-table-wrap .fh-table .fh-td-label {
    min-width: 260px;
  }

  .ir-table-wrap .fh-table .fh-th-place,
  .ir-table-wrap .fh-table .fh-td-place {
    min-width: 140px;
    max-width: 200px;
  }

  .ir-table-btn {
    font-size: 13px !important;
    padding: 9px 38px 9px 16px !important;
  }

  .ir-table-btn::before {
    right: 14px;
    width: 16px;
    height: 16px;
  }
}

/* ── MD&A Page (management-discussion-and-analysis.html only — scoped to .mda-page) ── */
.mda-page .mda-intro {
  padding: 100px 0 60px;
}

.mda-page .mda-featured {
  display: flex;
  align-items: stretch;
  height: 340px;
  border-radius: var(--ir-radius, 24px);
  overflow: hidden;
  margin-top: 40px;
  /* box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08)); */
}

.mda-page .mda-featured-image {
  flex: 0 0 48%;
  max-width: 48%;
}

.mda-page .mda-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mda-page .mda-featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px 32px;
    background: #dfe9f7;
}

.mda-page .mda-featured-title {
  font-size: 22px;
  font-weight: 600;
  color: #040618;
  margin: 0;
}

.mda-page .mda-featured-btn::before {
  background-image: url('../images/icon-btn-download.svg') !important;
}

.mda-page .mda-featured-btn:hover::before {
  transform: translateY(-50%);
}

/* ── Filing Page (filing.html only — scoped to .filing-page) ── */
.filing-page .filing-featured-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.filing-page .filing-featured-actions .btn-default {
  min-width: 240px;
  text-align: center;
}

.filing-page .btn-download-icon::before {
  background-image: url('../images/icon-btn-download.svg') !important;
}

.filing-page .btn-download-icon:hover::before {
  transform: translateY(-50%);
}

.filing-page .btn-outline-secondary {
  background: transparent !important;
  color: var(--ir-accent, #ff7f26) !important;
  border: 1px solid var(--ir-accent, #ff7f26) !important;
  padding-right: 32px !important;
}

.filing-page .btn-outline-secondary::before {
  display: none;
}

.filing-page .btn-outline-secondary::after {
  background-color: var(--ir-accent, #ff7f26) !important;
}

.filing-page .btn-outline-secondary:hover {
  color: #fff !important;
}

/* ── 56-1 One Report Page (56-1-one-report.html only — cover thumbnail in .ck-filecard) ── */
.filing-page .ck-filecard-cover {
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--at-shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.12));
}
.filing-page .ck-filecard-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top;
}

.filing-page .ck-filecard-title {
  text-align: center;
}

.filing-page .ck-filecard-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filing-page .ck-filecard-actions .btn-default {
  font-size: 13px;
  padding: 12px 34px 12px 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filing-page .ck-filecard-actions .btn-default::before {
  right: 13px;
  width: 16px;
  height: 16px;
}

.filing-page .ck-filecard-actions .btn-outline-secondary {
  padding: 12px 34px 12px 16px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.filing-page .ck-filecard-actions .btn-outline-secondary::before {
  display: block !important;
  right: 13px;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 2C6.48 2 2 6.48 2 12S6.48 22 12 22S22 17.52 22 12S17.52 2 12 2ZM11 19.93C7.05 19.44 4 16.08 4 12C4 11.38 4.08 10.79 4.21 10.21L9 15V16C9 17.1 9.9 18 11 18V19.93ZM17.9 17.39C17.64 16.58 16.9 16 16 16H15V13C15 12.45 14.55 12 14 12H8V10H10C10.55 10 11 9.55 11 9V7H13C14.1 7 15 6.1 15 5V4.59C17.93 5.78 20 8.65 20 12C20 14.08 19.2 15.97 17.9 17.39Z" fill="%23ff7f26"/></svg>');
}

.filing-page .ck-filecard-actions .btn-outline-secondary:hover::before {
  filter: brightness(0) invert(1);
  transform: translateY(-50%);
}

.filing-page .ck-filecard-actions .btn-outline-secondary::after {
  background-color: var(--color-violet-250, #7c1d85) !important;
}

.filing-page .ck-filecard-actions .btn-outline-secondary:hover {
  border-color: var(--color-violet-250, #7c1d85) !important;
}

@media (max-width: 767px) {
  .mda-page .mda-featured {
    height: auto;
    flex-direction: column;
  }
    .mda-page .mda-featured-image {
        flex: none;
        max-width: 100%;
        height: 300px;
    }
}

.mda-page .mda-list-section {
  padding: 60px 0 100px;
}

.mda-page .mda-year-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--divider-color, rgba(4, 6, 24, 0.10));
  border-radius: 999px;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.mda-page .mda-year-filter label {
  font-size: 15px;
  font-weight: 600;
  color: #040618;
  white-space: nowrap;
}

.mda-page .mda-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  border-radius: 999px;
  padding: 8px 38px 8px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ir-primary, #040618);
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23585960" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 16px center;
  background-size: 11px 7px;
  cursor: pointer;
}

.mda-page .mda-year-select:hover {
  color: var(--ir-accent, #ff7f26);
}

.mda-page .mda-year-select:focus,
.mda-page .mda-year-select:focus-visible {
  outline: none;
  box-shadow: none;
}

@media (max-width: 575px) {
  .mda-page .mda-featured {
    flex-direction: column;
    text-align: center;
  }
      .mda-page .mda-featured-image {
        height: 200px;
    }
}

/* ── Public Relations Page (public-relations.html only — scoped to .pr-page) ── */
.pr-page .pr-intro {
  padding: 100px 0 0px;
}

.pr-page .pr-list-section {
  padding: 0px 0 100px;
}

.pr-page .pr-year-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid var(--divider-color, rgba(4, 6, 24, 0.10));
  border-radius: 999px;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.pr-page .pr-year-filter label {
  font-size: 15px;
  font-weight: 600;
  color: #040618;
  white-space: nowrap;
}

.pr-page .pr-year-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  border-radius: 999px;
  padding: 8px 38px 8px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ir-primary, #040618);
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23585960" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 16px center;
  background-size: 11px 7px;
  cursor: pointer;
}

.pr-page .pr-year-select:hover {
  color: var(--ir-accent, #ff7f26);
}

.pr-page .pr-year-select:focus,
.pr-page .pr-year-select:focus-visible {
  outline: none;
  box-shadow: none;
}

.pr-page .pr-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(4, 6, 24, 0.06);
  border-radius: var(--ir-radius);
  overflow: hidden;
  box-shadow: var(--at-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.pr-page .pr-card:hover {
  box-shadow: var(--at-shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
}

.pr-page .pr-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pr-page .pr-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pr-page .pr-card:hover .pr-card__thumb img {
  transform: scale(1.06);
}

.pr-page .pr-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  flex: 1;
}

.pr-page .pr-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ir-text, #6B6B78);
}

.pr-page .pr-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-primary, #212529);
  transition: color 0.3s ease;
  margin: 0;
}

.pr-page .pr-card:hover .pr-card__title {
  color: var(--ir-accent, #ff7f26);
}

.pr-page .pr-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ir-primary) !important;
  padding-right: 36px !important;
  transition: color 0.3s ease;
}

.pr-page .pr-card:hover .pr-card__link {
  color: var(--ir-accent) !important;
}

.pr-page .pr-card__link::before {
  background-color: var(--ir-accent) !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  background-size: 14px !important;
  background-image: url('../images/icon-btn-arrow.svg') !important;
}

.pr-page .pr-pagination {
  margin-top: 48px;
}

.pr-page .pr-pagination li.disabled a {
  opacity: 0.35;
  pointer-events: none;
}

.pr-page .pr-pagination ul li.active a,
.pr-page .pr-pagination ul li a:hover {
  background: #fe7f27;
  color: var(--white-color);
}

/* ── Dividend Policy Page (dividend-policy-payment.html only — scoped to .dividend-page) ── */
.dividend-page .dividend-intro {
  padding: 100px 0 60px;
}

.dividend-page .dividend-featured {
  display: flex;
  align-items: stretch;
  height: 340px;
  border-radius: var(--ir-radius, 24px);
  overflow: hidden;
  margin-top: 40px;
}

.dividend-page .dividend-featured-image {
  flex: 0 0 48%;
  max-width: 48%;
}

.dividend-page .dividend-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dividend-page .dividend-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px 32px;
  background: #dfe9f7;
}

.dividend-page .dividend-featured-title {
  font-size: 22px;
  font-weight: 600;
  color: #040618;
  margin: 0;
}

.dividend-page .dividend-featured-btn::before {
  background-image: url('../images/icon-btn-download.svg') !important;
}

.dividend-page .dividend-featured-btn:hover::before {
  transform: translateY(-50%);
}

.dividend-page .fh-table {
  min-width: 1200px;
}

@media (max-width: 991px) {
}

@media (max-width: 767px) {
  .dividend-page .dividend-featured {
    height: auto;
    flex-direction: column;
  }
  .dividend-page .dividend-featured-image {
    flex: none;
    max-width: 100%;
    height: 300px;
  }
}

@media (max-width: 575px) {
  .dividend-page .dividend-featured {
    flex-direction: column;
    text-align: center;
  }
  .dividend-page .dividend-featured-image {
    height: 200px;
  }
}

/* ── IR Contact Page (ir-contact.html only — scoped to .ir-contact-page) ── */
.ir-contact-page .ir-contact-intro {
  max-width: 760px;
  margin: 0 auto 8px;
}

.ir-contact-page .cp-contact-item-icon {
  box-shadow: 0 6px 16px rgba(255, 127, 38, 0.25);
}

.ir-contact-page .ir-contact-form-section {
    padding: 100px 0;
    background: #dfe9f7;
}
.ir-contact-page .ir-contact-form-card {
  background: #fff;
  border: 1px solid rgba(4, 6, 24, 0.06);
  border-radius: var(--ir-radius, 24px);
  padding: 48px;
  margin-top: 40px;
}

.ir-contact-page .ir-recaptcha-box {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #e2e2e6;
  border-radius: 14px;
  padding: 14px 20px;
  background: #fbfbfc;
}

.ir-contact-page .ir-recaptcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ir-contact-page .ir-recaptcha-check input {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #c1c1c1;
  cursor: pointer;
  margin: 0;
}

.ir-contact-page .ir-recaptcha-check label {
  font-size: 14px;
  color: var(--ir-text, #6B6B78);
  cursor: pointer;
  margin: 0;
}

.ir-contact-page .ir-recaptcha-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid #e2e2e6;
}

.ir-contact-page .ir-recaptcha-brand img {
  width: 30px;
  height: 30px;
}

.ir-contact-page .ir-recaptcha-brand span {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .ir-contact-page .ir-contact-form-card {
    padding: 28px 20px;
  }
}

.ir-contact-page .ir-contact-form .form-label {
  font-weight: 500;
  color: var(--ir-primary, #040618);
  margin-bottom: 8px;
  font-size: 16px;
}

.ir-contact-page .ir-contact-form .form-label .required {
  color: #e65757;
  margin-left: 4px;
}

.ir-contact-page .ir-contact-form .form-control,
.ir-contact-page .ir-contact-form .form-select {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ir-primary, #040618);
  transition: border-color 0.3s;
}

.ir-contact-page .ir-contact-form .form-control:focus,
.ir-contact-page .ir-contact-form .form-select:focus {
  border-color: var(--ir-accent, #ff7f26);
  box-shadow: 0 0 0 3px rgba(255, 127, 38, 0.1);
}

.ir-contact-page .ir-contact-form textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.ir-contact-page .ir-contact-form .form-check-input:checked {
  background-color: var(--ir-accent, #ff7f26);
  border-color: var(--ir-accent, #ff7f26);
}

.ir-contact-page .ir-contact-form .consent-text {
  font-size: 15px;
  color: var(--ir-text, #6B6B78);
  line-height: 1.6;
}

/* ── News Read Detail Page banner (readdetail.html only) ── */
.page-header-readdetail {
  padding: 15px 0;
  margin-top: 0;
  height: 110px;
  display: flex;
  align-items: center;
  overflow: visible;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.11);
  background-position: top left;
}

.page-header-readdetail:before {
  display: none;
}

.page-header-readdetail .page-header-box {
  text-align: center;
}

.page-header-readdetail .logo-02 {
  width: 90px;
  margin-bottom: 0;
}

@media only screen and (max-width: 575px) {
  .page-header-readdetail {
    height: 64px;
  }

  .page-header-readdetail .logo-02 {
    width: 68px;
  }
}

/* ── News Read Detail Page (readdetail.html only — scoped to .news-detail-page) ── */
.news-detail-page .news-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  color: var(--ir-text, #6B6B78);
  font-size: 15px;
}

.news-detail-page .news-detail-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ir-primary, #040618);
  margin-bottom: 28px;
  text-align: center;
}

.news-detail-page .news-detail-image {
  border-radius: var(--ir-radius, 24px);
  overflow: hidden;
  margin-bottom: 36px;
}

.news-detail-page .news-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.news-detail-page .news-detail-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ir-text, #6B6B78);
  margin-bottom: 20px;
}

.news-detail-page .news-detail-body p:last-child {
  margin-bottom: 0;
}

.news-detail-page .news-detail-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--divider-color, rgba(4, 6, 24, 0.10));
}

.news-detail-page .news-detail-share-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ir-primary, #040618);
}

.news-detail-page .news-detail-share-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--ir-primary, #040618);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.3s ease;
}

.news-detail-page .news-detail-share-btn:hover {
  background: var(--ir-accent, #ff7f26);
  color: #fff;
}

@media (max-width: 767px) {
  .news-detail-page .news-detail-title {
    font-size: 24px;
  }
  .news-detail-page .news-detail-image img {
    max-height: 260px;
  }
}

/* ── ปุ่มเปลี่ยนหน้า (pagination) ของหน้า IR — หน้าตาเดียวกับดีไซน์ public-relations.html ──
   ต้นแบบคือ .page-pagination ใน custom.css (วงกลม 40px, หน้าปัจจุบัน/hover เป็นสีส้ม)
   บล็อกนี้ทำ 2 อย่าง
   1) ขยายสไตล์ .page-pagination ให้ใช้ได้ทุกหน้าใน .ir-page ไม่ใช่เฉพาะ .pr-page .pr-pagination
   2) เขียนกฎคู่ขนานให้ DataTables ที่ render ปุ่มเป็น <a class="paginate_button"> (ไม่ใช่ <ul class="pagination">)
      ต้องมี specificity สูงกว่า jquery.dataTables.css และใส่ !important ตรงที่ไฟล์นั้นใส่ไว้
      เพราะ jquery.dataTables.css ถูกโหลดทีหลัง (อยู่ในเนื้อหน้า ไม่ใช่ <head>) */

.ir-page .page-pagination ul li.active a,
.ir-page .page-pagination ul li a:hover {
  background: #fe7f27;
  color: var(--white-color, #fff);
}

.ir-page .page-pagination ul li.disabled a {
  opacity: 0.35;
  pointer-events: none;
}

/* จุดไข่ปลาคั่นเลขหน้า — ไม่ใช่ปุ่ม จึงไม่ต้องมีวงกลม */
.ir-page .page-pagination ul li.ellipsis span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 40px;
  color: var(--ir-text, #6B6B78);
}

/* ── DataTables ── */
.ir-page .dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 100%;
  margin-top: 30px;
  padding-top: 0;
  text-align: center;
}

.ir-page .dataTables_wrapper .dataTables_paginate span {
  display: inline-flex;
  align-items: center;
}

.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: var(--secondary-color, #fff) !important;
  color: var(--primary-color, #040618) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1em;
  box-shadow: none;
  transition: all 0.3s ease-in-out;
}

.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border: none;
  background: #fe7f27 !important;
  color: var(--white-color, #fff) !important;
}

.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.ir-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  opacity: 0.35;
  cursor: default;
  border: none;
  box-shadow: none;
  background: var(--secondary-color, #fff) !important;
  color: var(--primary-color, #040618) !important;
}

.ir-page .dataTables_wrapper .dataTables_paginate .ellipsis {
  padding: 0 4px;
  color: var(--ir-text, #6B6B78);
}
