.history-page {
  background: var(--cream);
  color: var(--ink);
}
.history-main {
  overflow: hidden;
  background: var(--cream);
}
.history-hero {
  height: 300px;
  display: grid;
  grid-template-columns: 45% 55%;
  direction: ltr;
  background: #f7f0e5;
  border-top: 4px solid var(--navy);
  overflow: hidden;
}
.history-hero-copy {
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 27px 11vw 24px 42px;
  position: relative;
  z-index: 2;
}
.history-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #4c6675;
  font-size: 11px;
}
.history-breadcrumb a {
  font-weight: 700;
  color: #12344e;
}
.history-breadcrumb span,.history-eyebrow {
  color: #b67a2e;
}
.history-eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
}
.history-hero h1 {
  margin: 0;
  color: #0a3651;
  font-size: 48px;
  line-height: 1.05;
}
.history-title-rule {
  width: 160px;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
}
.history-title-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,transparent,#c49351);
}
.history-title-rule span:last-child {
  transform: scaleX(-1);
}
.history-title-rule i {
  width: 7px;
  height: 7px;
  border: 1px solid #b77b31;
  transform: rotate(45deg);
}
.history-lead {
  margin: 0;
  max-width: 530px;
  color: #4d6574;
  font-size: 12px;
  line-height: 2;
}
.history-hero-visual {
  position: relative;
  overflow: hidden;
  background: #0b2d42;
}
.history-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.4px);
  transform: scale(1.035);
}
.history-hero-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#f7f0e5 0%,rgba(247,240,229,.78) 13%,rgba(247,240,229,.24) 35%,rgba(247,240,229,0) 60%),linear-gradient(0deg,rgba(3,24,35,.15),rgba(3,24,35,.02));
}
.history-gallery {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 28px 58px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 26px;
  align-items: start;
}
.history-card {
  min-width: 0;
  background: #fffaf2;
  border: 1px solid rgba(10,54,81,.14);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(4,30,45,.10);
  transition: transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.history-card:hover {
  transform: translateY(-5px);
  border-color: rgba(185,122,45,.44);
  box-shadow: 0 21px 44px rgba(4,30,45,.15);
}
.history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px 13px;
  background: linear-gradient(145deg,#fffaf2,#f3e7d6);
  border-bottom: 1px solid rgba(10,54,81,.09);
}
.history-card-head span {
  display: block;
  margin-bottom: 3px;
  color: #b47a31;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.history-card-head h2 {
  margin: 0;
  color: #12344e;
  font-size: 20px;
  line-height: 1.4;
}
.history-card-head b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(185,122,45,.30);
  border-radius: 50%;
  color: #9a682b;
  font-size: 11px;
  background: rgba(255,255,255,.55);
}
.history-media {
  position: relative;
  width: 100%;
  background: #08283a;
}
.history-slide {
  display: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.history-slide.is-active {
  display: block;
}
.history-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #08283a;
}
.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: #fffaf2;
  border-top: 1px solid rgba(10,54,81,.09);
  direction: ltr;
}
.history-arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(10,54,81,.14);
  border-radius: 50%;
  background: #fff;
  color: #12344e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}
.history-arrow:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.history-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 70%;
}
.history-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c6b9a6;
  cursor: pointer;
  transition: .2s ease;
}
.history-dot.is-active {
  width: 20px;
  border-radius: 8px;
  background: #b77b31;
}
.history-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2,17,25,.93);
  backdrop-filter: blur(7px);
}
.history-lightbox.is-open {
  display: flex;
}
.history-lightbox-dialog {
  max-width: min(94vw,1250px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-lightbox-dialog img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.history-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 29px;
  line-height: 1;
  z-index: 2;
  cursor: pointer;
}
.feature-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
@media(max-width:1050px) {
  .history-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:900px) {
  .history-hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .history-hero-copy {
    padding: 34px 7vw;
  }
  .history-hero-visual {
    height: 220px;
  }
  .history-hero h1 {
    font-size: 38px;
  }
}
@media(max-width:620px) {
  .history-hero h1 {
    font-size: 32px;
  }
  .history-gallery {
    grid-template-columns: 1fr;
    padding: 24px 14px 40px;
    gap: 18px;
  }
  .history-card-head {
    padding: 13px 14px;
  }
  .history-card-head h2 {
    font-size: 18px;
  }
  .history-lightbox {
    padding: 16px;
  }
}
/* ===== HISTORY PAGE — ORDERED 5-CARD LAYOUT ===== */
.history-gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 28px 58px;
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 26px;
  align-items: start;
}
.history-card {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.history-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.history-card:nth-child(5) {
  grid-column: 4 / span 2;
}
.history-media {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #08283a;
}
.history-slide,
.history-slide.is-active {
  width: 100%;
  height: 100%;
}
.history-slide {
  display: none;
}
.history-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #08283a;
}
.history-card-head {
  min-height: 78px;
}
.history-controls {
  min-height: 58px;
}
@media(max-width:1050px) {
  .history-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .history-card,.history-card:nth-child(4),.history-card:nth-child(5) {
    grid-column: auto;
  }
  .history-card:nth-child(5) {
    grid-column: 1 / -1;
    width: min(560px,100%);
    justify-self: center;
  }
  .history-media {
    height: 390px;
    min-height: 390px;
  }
}
@media(max-width:700px) {
  .history-gallery {
    grid-template-columns: 1fr;
    padding: 24px 14px 40px;
    gap: 18px;
  }
  .history-card,.history-card:nth-child(4),.history-card:nth-child(5) {
    grid-column: auto;
    width: 100%;
  }
  .history-media {
    height: min(72vh,500px);
    min-height: 340px;
  }
}
