/* About Subpages */
.about-page,
.video-center-page {
  background: #f8fafc;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page-hero,
.video-center-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  background: linear-gradient(135deg, var(--page-header-gradient-start, #131e4a) 0%, var(--page-header-gradient-end, #1a2a5e) 100%);
  background-size: cover;
  background-position: center;
}

.about-page-hero-overlay,
.video-center-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--page-header-gradient-start, #131e4a) 0%, var(--page-header-gradient-end, #1a2a5e) 100%);
  pointer-events: none;
}

.about-page-hero::before,
.video-center-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 0.12);
}

.about-page-hero::after,
.video-center-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -140px;
  bottom: -220px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.about-page-hero .container,
.about-page-section .container,
.video-center-hero .container,
.video-center-list-section .container {
  max-width: 1480px;
  padding-left: 24px;
  padding-right: 24px;
}

.about-page-hero .container,
.video-center-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-page-eyebrow,
.video-center-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-page-hero h1,
.video-center-hero h1 {
  max-width: 920px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.12;
}

.about-page-hero p,
.video-center-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.about-page-section {
  padding: 84px 0 104px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f8fafc 100%);
}

.company-profile-intro {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 56px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8f1;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08);
}

.company-profile-copy {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 54px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.company-profile-copy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 44px;
  width: 5px;
  height: 78px;
  background: var(--primary-color);
}

.company-profile-intro-text {
  color: #425166;
  font-size: 18px;
  line-height: 1.88;
}

.company-profile-intro-text p {
  margin: 0 0 18px;
}

.company-profile-intro-text p:last-child {
  margin-bottom: 0;
}

.about-page-content {
  color: #526171;
  font-size: 17px;
  line-height: 1.85;
}

.company-profile-copy .about-page-content {
  margin-top: 24px;
}

.company-profile-copy .about-page-content:empty {
  display: none;
}

.about-page-content h2,
.about-page-content h3 {
  color: #0f172a;
}

.company-profile-image,
.about-media-card {
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid #dfe8f1;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.company-profile-image {
  position: relative;
  min-height: 100%;
  border: 0;
  box-shadow: none;
}

.company-profile-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.company-profile-image::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 6px;
  background: var(--primary-color);
}

.company-profile-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.company-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 56px;
  background: linear-gradient(135deg, #0f172a 0%, #172554 100%);
  border-bottom: 5px solid var(--primary-color);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.company-profile-stat {
  min-width: 0;
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.company-profile-stat:first-child {
  border-left: 0;
}

.company-profile-stat strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.company-profile-stat strong span + span {
  margin-left: 6px;
  font-size: 22px;
}

.company-profile-stat p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.about-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.about-media-grid-company {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-media-card {
  margin: 0;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.about-media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-color-rgb), 0.32);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.11);
}

.about-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-gallery-preview-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  text-align: inherit;
}

.about-gallery-preview-trigger img {
  display: block;
  transition: transform 0.28s ease;
}

.about-gallery-preview-trigger:hover img {
  transform: scale(1.04);
}

.about-gallery-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.about-gallery-preview-trigger:hover .about-gallery-zoom {
  transform: rotate(90deg);
  background: var(--primary-color);
  color: #fff;
}

.about-media-card figcaption {
  padding: 16px 18px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.about-gallery-content {
  max-width: 900px;
  margin-bottom: 42px;
}

.about-page-empty {
  padding: 44px;
  background: #fff;
  border: 1px solid #dfe8f1;
  color: #64748b;
  text-align: center;
}

.about-gallery-lightbox[hidden] {
  display: none;
}

.about-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.about-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.82);
  border: 0;
  cursor: zoom-out;
}

.about-gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 94vw);
  max-height: 90vh;
  text-align: center;
}

.about-gallery-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.about-gallery-lightbox-dialog p {
  margin: 16px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.about-gallery-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.about-gallery-lightbox-open {
  overflow: hidden;
}

.video-center-list-section {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f8fafc 100%);
}

.video-card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.video-card:hover {
  border-color: rgba(var(--primary-color-rgb), 0.32);
}

.video-card-body h2 {
  color: #0f172a;
}

@media (max-width: 1024px) {
  .company-profile-intro {
    grid-template-columns: 1fr;
  }

  .company-profile-image img {
    min-height: 360px;
  }

  .company-profile-stats,
  .about-media-grid,
  .about-media-grid-company {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .about-page-hero,
  .video-center-hero {
    padding: 56px 0 42px;
  }

  .about-page-hero .container,
  .about-page-section .container,
  .video-center-hero .container,
  .video-center-list-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-page-hero h1,
  .video-center-hero h1 {
    font-size: 32px;
    line-height: 1.14;
  }

  .about-page-hero p,
  .video-center-hero p {
    font-size: 15px;
    line-height: 1.68;
  }

  .about-page-section {
    padding: 42px 0 64px;
  }

  .company-profile-intro {
    gap: 24px;
    margin-bottom: 42px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .company-profile-copy {
    padding: 30px 22px;
    border: 1px solid #dfe8f1;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  }

  .company-profile-copy::before {
    top: 30px;
    height: 58px;
  }

  .company-profile-intro-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .company-profile-image img {
    min-height: 260px;
  }

  .company-profile-stats,
  .about-media-grid,
  .about-media-grid-company {
    grid-template-columns: 1fr;
  }

  .company-profile-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .company-profile-stat:first-child {
    border-top: 0;
  }

  .about-gallery-lightbox {
    padding: 18px;
  }

  .about-gallery-lightbox-dialog {
    max-width: 100%;
  }

  .about-gallery-lightbox-dialog img {
    max-height: 72vh;
  }

  .about-gallery-lightbox-close {
    top: 10px;
    right: 10px;
  }
}
