/* --- ABOUT GBN PAGE: SIX-SLOT SLIDESHOW LAYOUT --- */

.main-content.about-main {
  box-sizing: border-box;
  align-items: center;
}

.about-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.about-hero,
.about-slideshow-section,
.about-closing {
  width: 100%;
  margin: 20px auto;
  box-sizing: border-box;
}

/* Hero */

.about-hero {
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(22, 27, 34, 0.96)),
    #161b22;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.about-hero h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 1060px;
}

.about-hero p {
  color: #c9d1d9;
  max-width: 980px;
  line-height: 1.65;
  margin: 0;
}

/* Slideshow */

.about-slideshow-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 212, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(13, 57, 68, 0.94), rgba(22, 27, 34, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.about-slideshow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.about-slideshow-header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
}

.about-slide-counter {
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  white-space: nowrap;
  font-size: 0.76rem;
}

.about-slider-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: stretch;
}

.about-slide-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.about-slide-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.about-slide {
  flex: 0 0 100%;
  min-height: 245px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: clamp(24px, 2.7vw, 38px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-slide-tag {
  display: inline-flex;
  width: fit-content;
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.about-slide h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.75rem, 2.75vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.about-slide p {
  max-width: 980px;
  color: #d0d7e2;
  font-size: clamp(0.95rem, 1.08vw, 1.05rem);
  line-height: 1.55;
  margin: 0;
}

.about-slide-arrow {
  width: 34px;
  min-height: 100%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.07);
  color: #00d4ff;
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 900;
  transition: 0.2s ease;
}

.about-slide-arrow:hover {
  background: rgba(0, 212, 255, 0.16);
}

.about-slide-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}

.about-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.48);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.about-slide-dot.is-active {
  width: 22px;
  background: #00d4ff;
}

/* Closing */

.about-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(242, 204, 96, 0.1), rgba(22, 27, 34, 0.98)),
    #161b22;
  border: 1px solid rgba(242, 204, 96, 0.35);
  border-radius: 18px;
  padding: 26px;
}

.about-closing h3 {
  color: #fff;
  margin: 8px 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.about-closing p {
  color: #a8b3c7;
  line-height: 1.65;
  max-width: 900px;
}

.about-closing .hero-actions {
  flex-shrink: 0;
  margin-top: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .about-slider-shell {
    grid-template-columns: 1fr;
  }

  .about-slide-arrow {
    min-height: 40px;
    width: 100%;
  }

  .about-slide-viewport {
    order: 1;
  }

  #aboutPrevSlide {
    order: 2;
  }

  #aboutNextSlide {
    order: 3;
  }

  .about-closing {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-closing .hero-actions {
    width: 100%;
  }

  .about-closing .btn-main {
    width: 100%;
    justify-content: center;
  }

  .about-slide {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .about-page {
    width: 100%;
  }

  .about-hero,
  .about-slide,
  .about-closing {
    padding: 22px;
  }

  .about-slideshow-section {
    padding: 18px;
  }

  .about-hero h2 {
    font-size: 2.2rem;
  }

  .about-slide h2 {
    font-size: 1.85rem;
  }

  .about-slideshow-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* --- PAGE SHELL CENTERING FIX: ABOUT --- */
main.about-main,
.main-content.about-main {
  width: min(94vw, 1400px) !important;
  max-width: 1400px !important;
  margin: 140px auto 40px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  align-items: center !important;
}

.about-page {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 720px) {
  main.about-main,
  .main-content.about-main {
    width: 100% !important;
    margin: 120px auto 30px auto !important;
    padding: 0 14px !important;
  }
}

/* --- DESKTOP ADAPTIVE WIDTH UPGRADE --- */
:root { --about-content-max: 1400px; }
.main-content.about-main {
  width: min(94vw, var(--about-content-max)) !important;
  max-width: var(--about-content-max) !important;
}
.about-page,
.about-hero,
.about-section,
.about-grid,
.about-card {
  max-width: var(--about-content-max) !important;
}
@media (min-width: 1500px) { :root { --about-content-max: 1640px; } .main-content.about-main { width: min(92vw, var(--about-content-max)) !important; } }
@media (min-width: 1900px) { :root { --about-content-max: 1840px; } .main-content.about-main { width: min(90vw, var(--about-content-max)) !important; } }
@media (min-width: 2300px) { :root { --about-content-max: 2040px; } }
@media (max-width: 720px) { :root { --about-content-max: 1400px; } }


/* --- ABOUT PAGE RTL SUPPORT --- */
html[dir="rtl"] .about-page,
html[dir="rtl"] .about-hero,
html[dir="rtl"] .about-slideshow-section,
html[dir="rtl"] .about-closing {
  text-align: right;
}
html[dir="rtl"] .about-slideshow-header,
html[dir="rtl"] .about-closing {
  direction: rtl;
}
html[dir="rtl"] .about-slide-track {
  direction: ltr; /* Preserve translateX slideshow calculations. */
}
html[dir="rtl"] .about-slide {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .about-slide-tag {
  align-self: flex-start;
}
html[dir="rtl"] .about-closing .hero-actions {
  direction: rtl;
}
html[dir="rtl"] .about-slide-counter,
html[dir="rtl"] .about-slide-arrow {
  direction: ltr;
}


/* --- ABOUT HEADER / SIDEBAR RTL STABILITY FIX --- */
/* Keep the English GBN brand words in their original visual order. */
html[dir="rtl"] .banner-title {
  direction: ltr;
}

/* Sidebar icons and labels retain the same proven structure used on audited pages. */
html[dir="rtl"] #sidebar .nav-item {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] #sidebar .nav-item span {
  direction: rtl;
  text-align: right;
}
