/* =========================================
OUR STORY PAGE
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  color: #000000;
  background: #ffffff;
}


/* =========================================
STORY HEADER
========================================= */

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 5%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.story-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.story-home-link {
  display: inline-block;
  padding: 11px 18px;
  color: #ffffff;
  background: #3aa9cf;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.story-home-link:hover {
  background: #2e91b4;
}


/* =========================================
MAIN PAGE
========================================= */

.story-page {
  width: 100%;
  background: #ffffff;
}

.story-container {
  width: min(1540px, 90%);
  margin: 0 auto;
}


/* =========================================
MAIN TITLE
========================================= */

.story-heading-section {
  padding: 50px 0 20px;
}

.story-main-title {
  margin: 0;
  color: #000000;
  font-size: clamp(58px, 6vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  text-align: center;
}


/* =========================================
STORY PANELS
========================================= */

.story-panel {
  padding: 55px 0 65px;
}

.story-panel + .story-panel .story-container {
  border-top: 4px solid #a3a3a3;
  padding-top: 70px;
}

.story-row {
  display: grid;
  grid-template-columns:
    minmax(420px, 0.95fr)
    minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(70px, 10vw, 180px);
  min-height: 610px;
}

.story-row-reverse {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(420px, 0.95fr);
}


/* =========================================
STORY TEXT
========================================= */

.story-copy {
  width: 100%;
  max-width: 610px;
}

.story-copy h2 {
  margin: 0 0 24px;
  color: #3aa9cf;
  font-size: clamp(40px, 4vw, 62px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.story-copy p {
  margin: 0 0 20px;
  color: #000000;
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 700;
  line-height: 1.3;
}

.story-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================
STORY IMAGE AREA
========================================= */

.story-gallery {
  width: 100%;
}

.story-image-frame {
  position: relative;
  width: 100%;
  height: 610px;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 34px;
}

.story-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* =========================================
RETURN HOME SECTION
========================================= */

.story-return-section {
  padding: 20px 0 80px;
  text-align: center;
}

.story-return-section .story-home-link {
  display: inline-block;
}


/* =========================================
TABLET
========================================= */

@media screen and (max-width: 950px) {

  .story-container {
    width: min(760px, 90%);
  }

  .story-row,
  .story-row-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .story-row-reverse .story-gallery {
    order: 1;
  }

  .story-row-reverse .story-copy {
    order: 2;
  }

  .story-copy {
    max-width: none;
  }

  .story-image-frame {
    height: 520px;
  }

  .story-panel + .story-panel .story-container {
    padding-top: 55px;
  }

}


/* =========================================
MOBILE
========================================= */

@media screen and (max-width: 600px) {

  .story-header {
    padding: 14px 18px;
  }

  .story-brand span {
    display: none;
  }

  .story-brand-logo {
    width: 44px;
    height: 44px;
  }

  .story-home-link {
    padding: 10px 14px;
    font-size: 14px;
  }

  .story-heading-section {
    padding: 40px 0 15px;
  }

  .story-main-title {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .story-panel {
    padding: 38px 0 45px;
  }

  .story-panel + .story-panel .story-container {
    border-top-width: 2px;
    padding-top: 45px;
  }

  .story-row,
  .story-row-reverse {
    gap: 28px;
  }

  .story-copy h2 {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .story-copy p {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
  }

  .story-image-frame {
    height: 360px;
    border-radius: 22px;
  }

}
/* =========================================
BUSINESS AND EDUCATION GALLERY
========================================= */

.photo-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

#education-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-gallery .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.photo-gallery .gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.photo-gallery .previous {
  left: 20px;
}

.photo-gallery .next {
  right: 20px;
}

@media screen and (max-width: 600px) {
  .photo-gallery .gallery-arrow {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  .photo-gallery .previous {
    left: 12px;
  }

  .photo-gallery .next {
    right: 12px;
  }
}
