/* 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: 4rem auto;
  padding: 0 1.5rem;
}

/* Layout: Image side-by-side */
.about-block {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.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: 1.05rem;
  line-height: 1.8;
  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 {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text p {
  font-size: inherit;
  margin-bottom: 1rem;
}

.about-block-stacked .about-text p,
.stacked-text p {
  text-align: center;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text ul,
.about-text ol {
  margin: 1rem 0 1rem 2rem;
  text-align: left;
}

.about-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
}

.about-text table td,
.about-text table th {
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
}

.about-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.about-text blockquote {
  border-left: 4px solid #cbd5e1;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #64748b;
  font-style: italic;
}

/* 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 {
  max-width: 100%;
  width: 800px;
  margin: 3rem auto;
  border-radius: 4px;
  overflow: hidden;
  background: #000000;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.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: 4.5rem 0;
}

.highlights-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.highlights-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 0;
}

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

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

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

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

.highlight-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

/* Timeline Milestones block */
.about-milestones-container {
  margin: 5rem 0 3rem;
}

.milestones-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

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

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: none;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content-box {
  width: 45%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 1.25rem;
  box-shadow: none;
}

.timeline-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: #475569;
}

.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: 50%;
  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 (Centered) */
.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;
}

@media (max-width: 850px) {

  .about-text iframe,
  .about-text-wrap iframe,
  .about-block-stacked iframe,
  .about-block-top-center iframe,
  .atc-content iframe,
  .detail-body iframe {
    width: 100%;
    /* height: 380px; */
  }
}