/* company-about-static.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

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

/* Page Content Body */
.detail-body {
  max-width: var(--content-width);
  margin: 1.5rem auto;
  padding: 1rem 1.5rem 2rem;
}

/* ── Portal Block Header — match reference style ── */
.portal-center-block .portal-block-header {
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid #15519d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: static;
  overflow: visible;
  gap: 0;
}

.portal-center-block .portal-block-header::before {
  display: none;
}

.portal-center-block .portal-block-header::after {
  display: none;
}

.portal-center-block .portal-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0d2854 !important;
  letter-spacing: 0;
  margin: 0;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.3;
}

.portal-center-block .portal-block-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1.3rem;
  background: #0d2854;
  border-radius: 0;
  flex-shrink: 0;
}

.portal-center-block .portal-block-content {
  background: #ffffff;
  border-radius: 0;
  border: none;
  border-top: none;
  padding: 0;
}


/* Layout: Image side-by-side */
.about-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.about-block.img-right {
  flex-direction: row-reverse;
}

.about-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.about-text-wrap {
  flex: 1.2;
}

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #475569;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Layout: Stacked vertically (รูปบน / รูปล่าง) */
.about-block-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.about-block-stacked .about-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-img-full {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.about-block-stacked .about-text-wrap,
.about-block-stacked .about-text,
.stacked-text {
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Layout: Centered Content */
.about-block-top-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.atc-img-wrap {
  margin-bottom: 2rem;
}

.atc-img {
  max-width: 800px;
  width: 100%;
  border-radius: 0;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.atc-content {
  max-width: 800px;
  margin: 0;
  text-align: left;
}

.atc-content .about-text {
  text-align: left;
}

.atc-content .about-text p {
  text-align: left;
}

/* Video Player Area */
.about-video-section {
  margin: 3rem auto;
  max-width: 100%;
  width: 800px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  background: #000000;
}

.about-video-player {
  width: 100%;
  display: block;
}

.about-youtube-wrap {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.about-youtube-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Highlights points cards */
.highlights-section {
  margin: 2rem 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.highlights-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #15519d);
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.highlights-label::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary, #15519d);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.highlight-card {
  background: #f8fafc;
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e9eef5;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  box-shadow: none;
}

.highlight-card:hover {
  border-color: #c7d8ef;
  background: #f0f6ff;
}

.highlight-num {
  width: 22px;
  height: 22px;
  background: var(--primary, #15519d);
  color: #ffffff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-num .material-icons {
  font-size: 0.8rem;
  font-weight: 700;
}

.highlight-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

/* Timeline Milestones block */
.about-milestones-container {
  margin: 2rem 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.milestones-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #15519d);
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.milestones-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary, #15519d);
}

.milestones-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary, #15519d), #c7d8ef);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--primary, #15519d);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 81, 157, 0.2);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content-box {
  width: 44%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 1rem 1.15rem;
  box-shadow: none;
  transition: box-shadow 0.2s;
}

.timeline-content-box:hover {
  box-shadow: 0 3px 10px rgba(21, 81, 157, 0.1);
}

.timeline-date {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #15519d);
  margin-bottom: 0.3rem;
}

.timeline-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.timeline-item.left-aligned {
  flex-direction: row;
}

.timeline-item.right-aligned {
  flex-direction: row-reverse;
}

/* Attachments list */
.about-attachment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  margin-top: 1rem;
}

.about-attachment-btn:hover {
  opacity: 0.9;
}

/* Scroll top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }

  .about-block,
  .about-block.img-right {
    flex-direction: column;
    gap: 2rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content-box {
    width: calc(100% - 45px);
    margin-left: auto;
  }

  .timeline-item.left-aligned,
  .timeline-item.right-aligned {
    flex-direction: row;
  }
}

/* Embedded Iframes & Media */
.about-text iframe,
.about-text-wrap iframe,
.about-block-stacked iframe,
.about-block-top-center iframe,
.atc-content iframe,
.detail-body iframe {
  max-width: 100%;
  width: 800px;
  /* height: 520px; */
  display: block;
  /* margin: 1.5rem auto !important; */
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}