*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "poppins", sans-serif;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #e8e3d1;
  color: #02263c;
  letter-spacing:.5px;
}

.baskervville-bt {
  font-family: "Baskervville", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* ── Header ── */
.site-header {
  width: 100%;
  height: 520px;
  background-image: url('graphics/header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.site-header h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.site-header h1 .baskervville-bt {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.site-header h1 span:not(.baskervville-bt) {
  display: block;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.02em;
}

/* ── Rotator wrapper ── */
.rotator {
  width: 100%;
}

/* ── Text Panel ── */
.text-panel {
  background-color: #4e7aab;
  width: 100%;
  position: relative;
  padding: 50px 100px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.text-panel h2 {
  width:80%;
  margin:auto;
  text-align: center;
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  //font-family: "poppins-thin", sans-serif;
  font-weight: 300;
  letter-spacing:2px;
  margin-bottom: 40px;
  line-height: 1.3;
}

.text-panel h2 span {
  color: #6bc3f8;
  //font-family: "poppins-semibold", sans-serif;
  font-weight: 600;
  letter-spacing:5px;
}

.text-panel .slide-subtitle {
  width:80%;
  margin:auto;
  text-align: center;
  color: #02263c;
  font-size: clamp(1rem, 2vw, 1.6rem);
  margin-top: -42px;
  margin-bottom: 40px;
  line-height: 1.4;
}

.text-panel p {
  color: #ffffff;
  font-size: clamp(0.85rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 30px;
}

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

#slide-paragraphs {
  width:80%;
  margin:auto;
}

/* ── Arrow buttons ── */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 2;
}

.arrow-btn:hover {
  opacity: 1;
}

.arrow-btn img {
  width: 44px;
  height: auto;
  display: block;
}

.arrow-btn--prev {
  left: 16px;
}

.arrow-btn--next {
  right: 16px;
}

/* ── Image Panel ── */
.image-panel {
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

.image-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 38, 60, 0.35);
}

.image-panel h3 {
  position: relative;
  z-index: 10;
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  //font-family: "poppins-thin", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.3;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Detail Panel ── */
.detail-panel {
  background-color: #e8e3d1;
  padding: 60px 100px 90px;
}

#slide-details {
  width:80%;
  margin:auto;
}

.detail-panel h4 {
  //font-family: "poppins-medium", sans-serif;
  font-weight: 500;
  color: #02263c;
  font-size: clamp(1.75rem, 1.8vw, 1.1rem);
  margin-top: 28px;
  margin-bottom: 14px;
}

.detail-panel h4:first-child {
  margin-top: 0;
}

.detail-panel ul {
  list-style: disc;
  padding-left: 30px;
}

.detail-panel ul li {
  //font-family: "poppins-light", sans-serif;
  font-weight: 400;
  color: #02263c;
  font-size: clamp(1.4rem, 1.5vw, 0.97rem);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ── Crossfade overlay (JS-injected clone) ── */
.crossfade-clone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease;
}

/* ── Footer ── */
.site-footer {
  background-color: #02263c;
  width: 100%;
  height: 90px;
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .site-header {
    height:430px;
  }
}
@media (max-width: 870px) {
  .text-panel {
    padding: 60px 20px 50px;
  }

  .arrow-btn--prev {
    left: 8px;
  }

  .arrow-btn--next {
    right: 8px;
  }

  .arrow-btn img {
    width: 32px;
  }

  .detail-panel {
    padding: 30px 20px 40px;
  }

  .image-panel {
    height: 320px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height:250px;
  }
}
