/* =========================================================
   GUIDE PAGES — Editorial Layout System
========================================================= */

.page-guide {
  font-family: 'Montserrat', sans-serif;
  background: #f8f8f8;
  color: #222;
}

.page-guide .container {
  max-width: 1250px;
}

/* =========================================================
   GLOBAL HEADER — ISOLATED FOR PAGE-GUIDE
   (Safe: does NOT touch cruise-ui.css)
========================================================= */

.page-guide .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0)
  );
  backdrop-filter: blur(4px);
}

/* 3-column global grid */
.page-guide .site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px 0;
}

/* Global logo */
.page-guide .logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
  margin: 0;
  padding: 0;
  padding-left: 20px;   /* FIX */
  line-height: 1.2;
}

/* Global nav layout */
.page-guide .main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

/* Global nav links */
.page-guide .main-nav a {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 18px;
  padding-bottom: 0;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
}


/* =========================================================
   GLOBAL BREADCRUMB — ISOLATED FOR PAGE-GUIDE
========================================================= */

.page-guide .breadcrumb {
  background: #f5f5f5;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #e0e0e0;
  margin-top: 60px;
}

.page-guide .breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-guide .breadcrumb a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.page-guide .breadcrumb a:hover {
  text-decoration: underline;
}

.page-guide .breadcrumb span {
  color: #666;
}


/* =========================================================
   HERO
========================================================= */

.page-guide .hero-guide {
  position: relative;
  margin-bottom: 40px;
  display: block !important;        /* FIX: remove flexbox */
  text-align: left !important;      /* FIX: prevent centering */
  min-height: 480px;
}

.page-guide .hero-guide .hero-background {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  z-index: 1;
}

.page-guide .hero-guide .hero-content {
  position: absolute !important;
  top: 18%;          /* move text UP into sky */
  right: 25%;        /* FIX: move text LEFT so full title is visible */
  width: 420px;      /* keep title + subtitle on one line */
  z-index: 3;
  color: #fff;
  text-align: left !important;
}

.page-guide .hero-guide .hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  white-space: nowrap !important; /* FIX: keep heading on ONE LINE */
}

.page-guide .hero-guide .hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  text-align: center !important;
  margin-left: 50px;   /* move paragraph slightly to the RIGHT */
}


/* =========================================================
   SECTION SPACING
========================================================= */

.page-guide .guide-section {
  padding: 70px 0;
  border-bottom: 1px solid #d0d0d0;
}

.page-guide .guide-section:last-of-type {
  border-bottom: none;
}

.page-guide .section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  color: #0077cc !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* =========================================================
   TABLE
========================================================= */

.page-guide .guide-table-wrapper {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 12px !important;
  border: 1px solid #d0d7e2 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06) !important;

  /* FIX 1: Table width correction */
  max-width: 1000px;
  margin: 0 auto;
}

.page-guide .comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  text-align: left !important;
}

.page-guide .comparison-table thead th {
  background: #e8f1fb !important;
  color: #003f7f !important;
  font-weight: 700 !important;
}

.page-guide .comparison-table th,
.page-guide .comparison-table td {
  padding: 14px 16px !important;
  border: 1px solid #d8dfe8 !important;
  line-height: 1.7;
}

.page-guide .comparison-table tbody tr:nth-child(even) {
  background: #f2f6fa !important;
}

/* NEW: subtle hover state for better UX */
.page-guide .comparison-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.page-guide .table-caption {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #003f7f;
  /* NEW: add top spacing for breathing room */
  margin-top: 10px;
}

/* =========================================================
   LISTS — CLEAN + CONSISTENT
========================================================= */

.page-guide .guide-list {
  list-style: disc !important;
  margin: 0 auto !important;
  max-width: 720px !important;
  padding-left: 24px !important;
  text-align: left !important;
}

.page-guide .guide-list li {
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
}

/* FIX 4: Add spacing under intro paragraphs */
.page-guide .guide-section p {
  max-width: 720px;
  margin: 0 auto 20px auto;
  text-align: left;
  line-height: 1.7;
}

/* =========================================================
   CENTRING FOR COMMON MISTAKES + TIPS
========================================================= */

.page-guide .guide-list-center {
  text-align: center;
  width: 100%;
  display: block;
}

.page-guide .guide-list-center .guide-list {
  display: inline-block;
  margin: 0;
  text-align: left;
  list-style-position: inside;
  padding: 0 16px;
  position: relative;

  /* FIX 2: Better centring */
  left: 10px;
}

/* =========================================================
   RESPONSIVE + ALIGNMENT FIXES
========================================================= */

@media (max-width: 768px) {
  .page-guide .guide-section {
    padding: 40px 0;
  }
  .page-guide .hero-guide {
    height: 320px !important;
  }
}

/* =========================================================
   GLOBAL FOOTER — ISOLATED FOR PAGE-GUIDE
   (Matches Cruise Home footer exactly)
========================================================= */

.page-guide .site-footer {
  background: #0d2247 !important;
  padding: 28px 0 18px !important;
  border-top: 1px solid #0b1a33 !important;
  margin-top: 0 !important;
}

.page-guide .site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #0b1a33 !important;
}

.page-guide .site-footer .footer-col h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: #ffffff !important;
}

.page-guide .site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-guide .site-footer .footer-col ul li {
  margin-bottom: 4px !important;
}

.page-guide .site-footer .footer-col ul li a {
  font-size: 0.97rem;
  color: #dbe4f3 !important;
  text-decoration: none;
  transition: 0.2s ease;
}

.page-guide .site-footer .footer-col ul li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-guide .site-footer .footer-col ul li a::before {
  content: "•";
  margin-right: 6px;
  color: #9bb0d4 !important;
  font-size: 0.7rem;
  position: relative;
  top: -1px;
}

.page-guide .site-footer .footer-bottom {
  text-align: center;
  margin-top: 16px !important;
  padding-top: 12px !important;
  border-top: 1px solid #0b1a33 !important;
}

.page-guide .site-footer .footer-bottom p {
  font-size: 0.93rem;
  color: #dbe4f3 !important;
  letter-spacing: 0.25px;
}

/* Back to Top button (footer version) */
.page-guide .site-footer .back-to-top {
  background: #005fa3;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
}

.page-guide .site-footer .back-to-top:hover {
  background: #0077cc;
}

/* =========================================================
   GLOBAL CONTAINER FIX — PAGE-GUIDE
   Prevent content touching left/right edges
========================================================= */

.page-guide .container {
  max-width: 1150px;     /* your updated width */
  margin: 0 auto;        /* centre the container */
  padding: 0 20px;       /* FIX: add left/right spacing */
}

/* =========================================================
   PAGE-SPECIFIC FIX — Family vs Adults-Only Cruise Lines
   (Correct hero title positioning)
========================================================= */

body.page-guide.family-vs-adults-only .hero-guide .hero-content {
  top: 10% !important;      /* move text UP */
  right: 18% !important;    /* move text slightly RIGHT */
  width: 480px !important;  /* allow comfortable title width */
}

body.page-guide.family-vs-adults-only .hero-guide .hero-title {
  white-space: normal !important;  /* allow wrapping if needed */
  font-size: 2.4rem !important;    /* slightly smaller for balance */
}

body.page-guide.family-vs-adults-only .hero-guide .hero-subtitle {
  margin-left: 0 !important;       /* remove forced right shift */
  text-align: left !important;     /* match title alignment */
}

/* =========================================================
   PAGE-SPECIFIC FIX — Luxury vs Mainstream Cruise Brands
   (Correct hero title positioning)
========================================================= */

body.page-guide.luxury-vs-mainstream .hero-guide .hero-content {
  top: 10% !important;       /* move text UP */
  right: 18% !important;     /* move text slightly RIGHT */
  width: 480px !important;   /* allow comfortable title width */
}

body.page-guide.luxury-vs-mainstream .hero-guide .hero-title {
  white-space: normal !important;   /* allow wrapping if needed */
  font-size: 2.4rem !important;     /* slightly smaller for balance */
}

body.page-guide.luxury-vs-mainstream .hero-guide .hero-subtitle {
  margin-left: 0 !important;        /* remove forced right shift */
  text-align: left !important;      /* match title alignment */
}

/* =========================================================
   PAGE-SPECIFIC FIX — Onboard Atmosphere & Dress Codes
   (Correct hero title positioning)
========================================================= */

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-content {
  top: 10% !important;        /* move text UP */
  right: 18% !important;      /* move text LEFT into safe area */
  width: 480px !important;    /* allow comfortable title width */
}

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-title {
  white-space: normal !important;   /* allow wrapping if needed */
  font-size: 2.4rem !important;     /* slightly smaller for balance */
}

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-subtitle {
  margin-left: 0 !important;        /* remove forced right shift */
  text-align: left !important;      /* match title alignment */
}

/* =========================================================
   PAGE-SPECIFIC FIX — Onboard Atmosphere & Dress Codes
   (Move hero text DOWN to avoid covering heads)
========================================================= */

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-content {
  top: 25% !important;        /* move text DOWN */
  right: 18% !important;      /* keep consistent horizontal alignment */
  width: 480px !important;    /* comfortable title width */
}

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-title {
  white-space: normal !important;
  font-size: 2.4rem !important;
}

body.page-guide.onboard-atmosphere-dress-codes .hero-guide .hero-subtitle {
  margin-left: 0 !important;
  text-align: left !important;
}


/* =========================================================
   CRUISE CALENDAR — ISOLATED STYLES
   (Safe: does NOT affect any other pages)
========================================================= */

.cruise-calendar {
  padding: 60px 0;
}

.cruise-calendar .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cruise-calendar .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #555;
}

.cruise-calendar p {
  max-width: 720px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
  text-align: center;
}

/* External timetable cards */
.cruise-calendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.cruise-calendar .calendar-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  text-align: left;
}

.cruise-calendar .calendar-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #003f7f;
}

.cruise-calendar .calendar-card p {
  text-align: left;
  margin-bottom: 16px;
}

.cruise-calendar .calendar-btn {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.cruise-calendar .calendar-btn:hover {
  background: #005fa3;
}

/* Center the "How to Use These Timetables" heading */
.page-calendar .calendar-info h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .cruise-calendar .calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* Thumbnail for global pages */
.page-calendar .section-thumb {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  margin: 0 auto 30px auto;
  display: block;
}

/* Calendar page: adjust header logo spacing */
.page-calendar .site-header .container {
  padding-left: 20px;
}

/* =========================================================
   CALENDAR HERO IMAGE — PREMIUM BACKGROUND HERO
========================================================= */

.page-calendar .calendar-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-calendar .calendar-hero-inner {
  position: relative;
  height: 470px;              /* PREMIUM, SHALLOW HEIGHT */
  border-radius: 12px;
  overflow: hidden;
  background-image: url("../cruise-images/cruise-calendar/cruise-calendar-thumb.webp");
  background-size: cover;
  background-position: center;
}

.page-calendar .calendar-hero-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

.page-calendar .calendar-hero-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

