/* FAQ PAGE – LAYOUT & HERO
   -------------------------------------------------- */

/* HERO OFFSET — hero starts BELOW floating header */
.page-faq .faq-hero {
  margin-top: 80px; /* matches your chosen offset */
}

.page-faq main {
  background-color: #f7f8fa;
}

/* HERO */
.faq-hero {
  position: relative;
  min-height: 580px;              /* taller band so more of the ship fits */
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: url('../cruise-images/hero/faq-hero.webp');
  background-size: cover;
  background-position: center 20%; /* shift image down so bottom shows */
}


/*.faq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30),
    rgba(0, 0, 0, 0.45)
  );
}*/

.faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 40px 0;
}

.faq-hero-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.faq-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 640px;
}

/* TOP SECTION – SEARCH + CATEGORY TILES
   -------------------------------------------------- */

.faq-top {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.faq-search-block {
  margin-bottom: 1.75rem;
}

.faq-search-block input[type="text"] {
  width: 100%;
  max-width: 640px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #d0d4dd;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search-block input[type="text"]:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

/* CATEGORY TILES */

.faq-category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.faq-category-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #dde1ea;
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  color: #1f2933;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.faq-category-tile:hover {
  background-color: #f3f6fb;
  border-color: #c3d4f5;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.faq-category-tile.is-active {
  border-color: #0066cc;
  background: linear-gradient(135deg, #0066cc, #0090ff);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.35);
}

.faq-category-tile.is-active .faq-category-icon {
  background-color: rgba(255, 255, 255, 0.16);
}

.faq-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: #e5ecf7;
  font-size: 0.9rem;
}

.faq-category-label {
  font-weight: 500;
}

/* FAQ CONTENT GRID
   -------------------------------------------------- */

.faq-content {
  padding-top: 0;
  padding-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ GROUP CARD */

.faq-group-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e0e4ee;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.faq-group-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111827;
}

/* FAQ ITEMS – ACCORDION
   -------------------------------------------------- */

.faq-item + .faq-item {
  border-top: 1px solid #edf0f7;
}

.faq-question {
  width: 100%;
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.faq-question span:first-child {
  padding-right: 1.5rem;
}

.faq-toggle-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: right;
  font-size: 1.1rem;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
  color: #0066cc;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
  padding-bottom: 0.75rem;
}

/* OPEN STATE SPACING */

.faq-item.is-open .faq-answer {
  /* max-height is set inline via JS */
}

/* SMALL UTILITIES
   -------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-faq .faq-hero-subtitle {
  color: #ffffff !important;
  font-weight: 500;
}

/* =========================================================
   FAQ SEARCH BAR — CLEAN, MODERN, ICON INSIDE INPUT
========================================================= */

/* Center the entire search bar block */
.page-faq .faq-search-block {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.75rem;
}

/* Wrapper to hold input + icon button */
.page-faq .faq-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
}

/* Input styling */
.page-faq .faq-search-wrapper input[type="text"] {
  width: 100%;
  padding: 0.9rem 2.8rem 0.9rem 1rem; /* right padding for icon */
  border-radius: 999px;
  border: 1px solid #d0d4dd;
  font-size: 0.95rem;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.page-faq .faq-search-wrapper input[type="text"]:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
}

/* Search icon button inside input */
.page-faq #faq-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #7a869a;
  padding: 0;
}

/* Hover effect */
.page-faq #faq-search-btn:hover {
  color: #0066cc;
}

/* ============================================================
   FAQ FOOTER — MATCH ITINERARY FOOTER STYLE
============================================================ */

.page-faq .site-footer {
  background: #0d2247;
  padding: 30px 0 20px;
  color: #dbe4f3;
}

.page-faq .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq .footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-faq .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-faq .footer-col ul li {
  margin-bottom: 6px;
}

.page-faq .footer-col ul li a {
  color: #dbe4f3;
  text-decoration: none;
  font-size: 0.92rem;
}

.page-faq .footer-col ul li a:hover {
  text-decoration: underline;
}

.page-faq .footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 0.85rem;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.page-faq .back-to-top {
  background: transparent;
  border: 1px solid #dbe4f3;
  color: #dbe4f3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.page-faq .back-to-top:hover {
  background: #dbe4f3;
  color: #0d2247;
}

/* Divider above footer */
.page-faq .faq-footer-divider {
  border: none;
  border-top: 2px solid yellow; /* visible on white background */
  margin: 40px auto 0;           /* spacing above footer */
  width: 100%;
  max-width: 1200px;             /* matches container width */
  opacity: 0.9;
}

/* Reduce bottom padding so divider touches footer */
.page-faq .faq-content {
  padding-bottom: 1rem !important;
}

.page-cruises p, .page-cruise-line p, .page-cruise-region p {
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #ffffff;
}

/* ============================================================
   FAQ CARD UPGRADE — STRONG BORDER + COLOUR + HOVER EFFECT
============================================================ */

.faq-group-card {
  border: 2px solid #c8d4e8;          /* stronger border */
  background: #ffffff;                /* clean white card */
  transition: all 0.25s ease;         /* smooth hover */
}

/* Hover effect */
.faq-group-card:hover {
  border-color: #0066cc;              /* strong blue border on hover */
  background: #f5f9ff;                /* soft blue tint */
  transform: translateY(-6px);        /* lift effect */
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Title underline */
.faq-group-title {
  position: relative;
  padding-bottom: 6px;
}

.faq-group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #0066cc;                /* coloured underline */
  border-radius: 999px;
}
