* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: #f5f6f8;
  color: #1a2b49;
}

.container {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}

/* IMPORTANT: no stretching, no cropping */
.hero-img {
  width: 100%;
  min-height: 488px;
  height: auto;
  display: block;
}

/* icons */
.hero-icons {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 2;
}

.icon-btn {
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
}

/* CENTER TEXT ON IMAGE */
.hero-overlay {
  position: absolute;
  inset: 0; /* fills entire image */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 90px;
  align-items: center;     /* horizontal center */
  text-align: center;
  color: white;
  z-index: 1;
}

.hero-overlay .sub {
  font-weight: bold;
  letter-spacing: 2px;
}

.hero-overlay .date {
  font-size: 14px;
  opacity: 0.9;
}

.sub {
  margin-top: 10px;
}

.date {
  font-size: 14px;
  opacity: 0.8;
}

/* INTRO */
/* INTRO LAYOUT FIX */
/* MAIN ROW */
.intro {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: nowrap; /* prevent wrapping */
  align-items: flex-start;
}

/* LEFT COLUMN (image + name) */
.intro-left {
  display: flex;
  flex-direction: column;
  width: 140px; /* fixed like design */
  flex-shrink: 0;
}

.captain-img {
  width: 100%;
  border-radius: 12px;
}

/* TEXT UNDER IMAGE */
.captain-info {
  margin-top: 8px;
}

.name {
  font-weight: bold;
  font-size: 14px;
}

.role {
  font-size: 12px;
  color: gray;
  letter-spacing: 1px;
}

/* RIGHT COLUMN */
/* Intro right text */
.intro-right {
  font-size: 14px;
  line-height: 1.5;
  min-width: 0; /* allows text to shrink within flex */
}

/* Signature image */
.intro-right .signature {
  width: 120px;       /* adjust as needed */
  height: auto;       /* maintain aspect ratio */
  margin-top: 4px;    /* spacing above signature */
  display: block;     /* ensures it sits on its own line */
}

/* LOGO */
.logo-section {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.logo-section img {
  width: 300px;
}

/* TEXT */
.small {
  color: gray;
  font-size: 14px;
  margin-top: 10px;
}

.small-intro {
  color: black;
  font-weight: 600;
  font-size: 12px;
  margin-top: 10px;
}

h2 {
  margin: 10px 0;
}

h3 {
  margin: 20px 0 10px;
}

/* SLIDER */
.slider {
  position: relative;
  margin-top: 15px;
}

.slides {
  display: flex;
  overflow: hidden;
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 300px;        /* fixed height */
  object-fit: cover;    /* crops to fill without stretching */
  border-radius: 15px;
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1a2b49;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.small-slider-footer {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
  line-height: 1;
  margin-top: -25px;
}

.scroll-icon {
  width: 18px;
  height: auto;
  vertical-align: middle;
}

/* STEPS */
/* STEPS */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.steps span {
  display: flex;
  align-items: center;
  gap: 6px;           /* space between number circle and text */
  font-size: 14px;
}

/* Circle for the number */
.steps span::before {
  content: attr(data-number); /* use custom attribute for the number */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #08284b; /* circle color */
  color: white;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}

/* Tag-like heading */
.tagged-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;                  /* space between icon and text */
  background-color: #08284b; /* same color as step numbers */
  color: white;
  padding: 6px 12px;         /* top-bottom 6px, left-right 12px */
  border-radius: 20px;       /* fully rounded */
  font-size: 16px;
  font-weight: 600;
}

.tagged-heading .tag-icon {
  width: 16px;               /* size of the icon */
  height: 16px;
}

/* CARDS */
.card {
  margin-top: 20px;
}

/* Card image */
.card img:not(.scroll-icon) {
  width: 100%;
  border-radius: 15px;
  display: block;
  margin-top: 5px;
}

/* Icon container below the image */
.img-action {
  display: flex;
  justify-content: flex-end; /* align icon to the right */
  margin-top: 5px;           /* spacing from image */
}

.img-action img {
  width: 24px;                /* icon size */
  height: 24px;
  cursor: pointer;
  border-radius: 50%;         /* small round border if needed */
  border: 1px solid #ccc;     /* optional subtle border */
  padding: 4px;               /* padding inside the circle */
  background: #fff;           /* optional background */
}

/* Reset button styles */
.clickable-img-icon {
  background: none;          /* remove default button background */
  border: none;              /* remove default border */
  padding: 0;                /* remove padding */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Image inside the button */
.clickable-img-icon img {
  width: 24px;               /* adjust icon size */
  height: 24px;
  display: block;            /* removes extra inline spacing */
}

/* CTA */
.cta img {
  width: 100%;
  border-radius: 20px;
  margin-top: 10px;
}

.cta button {
  margin-top: 10px;
  padding: 12px 20px;
  border: none;
  background: #1a2b49;
  color: white;
  border-radius: 25px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between; /* left and right divs separated */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 20px;   /* added horizontal padding so content isn’t at edge */
  font-size: 14px;
  box-sizing: border-box; /* ensures padding doesn’t break layout */
  margin-bottom: 20px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Footer columns inside left/right */
.footer-column {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Share link */
.share-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: black; /* highlight color */
  font-weight: 600;
}

/* Hashtag style */
.hashtag {
  font-weight: bold;
  color: #333;
}

/* Social icons row */
.social-row {
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
}

.small-footer-text {
    font-weight: 600;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

/* 
TABLET'S AND DESKTOP STYLING
*/

/* Desktop / tablet styles */
@media (min-width: 500px) {
  .hero {
    max-width: 700px;       /* same as .container max-width */
    margin: 40px auto;      /* centers hero and adds vertical spacing */
    border-radius: 24px;
  }

  .hero-img {
    width: 100%;            /* fills hero container */
    height: auto;           /* maintain aspect ratio */
    max-height: 600px;      /* prevents image from growing too tall */
    display: block;
  }

  .hero-icons {
    padding: 0 24px;        /* more spacing on larger screens */
  }

  .hero-overlay .sub {
    font-size: 28px;        /* bigger heading on desktop */
  }

  .hero-overlay .date {
    font-size: 16px;        /* bigger subtext */
  }
    
}

/* ================================
   INTRO SPACING & MOBILE FIX
================================ */

/* Make the title below hero lighter on mobile */
.voyage-title {
  margin: 6px 0 12px;
  line-height: 1.1;
}

/* More space after hero */
.hero + .container {
  padding-top: 28px;
}

/* Intro block breathing */
.intro {
  margin-top: 28px;   /* bilo 20px */
  gap: 24px;          /* bilo 20px */
}

/* Captain image spacing */
.captain-img {
  margin-bottom: 10px;
}

/* Calm the text block */
.intro-right {
  line-height: 1.6;   /* bilo 1.5 */
}

/* Date spacing before captain section */
.voyage-dates {
  margin-bottom: 22px;
}

/* MOBILE ONLY */
@media (max-width: 500px) {

  .voyage-title {
    font-size: 34px;
    margin-bottom: 16px;
  }

  .ship-name {
    margin-bottom: 4px;
    opacity: 0.85;
  }

  .guest-name {
    margin-bottom: 4px;
    opacity: 0.9;
  }

  .voyage-dates {
    margin-bottom: 24px;
    opacity: 0.75;
  }

}