/* ===============================
   Colour Scheme
   =============================== */
:root {
  --primary1: #4cb5f5;
  --primary2: #0B6836;
  --primary3: #b7b8b6;
  --secondary1: #f5f5f5;
  --secondary2: #c5deed;
  --secondary3: #222;
}

/* ===============================
   Base Layout & Typography
   =============================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--secondary3);
  background-color: var(--primary3);
}

body {
  display: flex;
  flex-direction: column;
}

/* Ensure footer sits at bottom on short pages */
.footer {
  margin-top: auto;
}

p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-top: 0;
}

.text-justify {
  text-align: justify;
}

.center {
	 text-align: center !important;
}

/* ===============================
   Row 1: Hero Split Layout (Desktop default)
   =============================== */
.rds-main-content {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  box-sizing: border-box;
  overflow: visible; /* safety: prevents Safari clipping in some cases */
}

/* Set hero height to 90vh by default (desktop intent) */
@media screen and (min-width: 1025px) {
  .rds-main-content {
    min-height: 90vh;
  }

  .rds-content-column {
    justify-content: center; /* vertical centre on desktop */
  }
}

/* Left image column */
.rds-image-column {
  flex: 1 1 50%;
  background-image: url("_images/land-rover_range-rover_2002_LHS.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Right content column */
.rds-content-column {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center; /* overridden on some breakpoints */
  padding: 10px;
  box-sizing: border-box;
  overflow: visible; /* safety */
}

/* Inner wrapper */
.rds-inner-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2%;
}

/* Logo */
.rds-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.rds-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Hero text container (first row details card) */
.rds-text-container {
  width: 100%;
  max-width: 80%;
  margin: 2rem auto 0 auto;
  padding: 25px;
  background-color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.rds-text-container h1 {
	font-weight: bold;
}

.rds-cta-row {
  margin-top: 10px;
}

/* Brochure button */
.rds-brochure-btn {
  display: inline-block;
  background-color: var(--primary2);
  color: #ffffff;
  text-decoration: none;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.rds-brochure-btn:hover {
  background-color: #289e50 !important;
  color: #ffffff !important;
}

/* Contact Info */
.rds-contact-info {
  margin-top: 2rem;
  font-size: 1rem;
}

.rds-phone {
  display: none; /* show later when ready */
}

/* ===============================
   Row 2: Contained Technical Row
   =============================== */
.rds-details-section {
  background: #ffffff;
  padding: 4rem 0;
}

/* Container max width 1120px */
.rds-details-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* All headings are h2 */
.rds-details-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--secondary3);
  text-align: left;
}

/* First heading: centred + larger */
.rds-details-container h2:first-of-type {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Keep technical text left-aligned for readability */
.rds-details-container p,
.rds-details-container ul {
  text-align: left;
}

/* Paragraphs */
.rds-details-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Plain bullet lists */
.rds-bullet-list {
  margin: 0 0 1.5rem 0;
  padding-left: 1.25rem;
}

.rds-bullet-list li {
  margin: 0.4rem 0;
  font-size: 1.05rem;
}

/* ===============================
   Footer
   =============================== */
.footer {
  background-color: var(--secondary3);
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.footer p {
  font-weight: bold;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary2);
}

.footer a:active {
  color: var(--primary1);
}

/* Social Buttons */
.social-btn {
  margin: 5px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  color: #ffffff !important;
  border-color: var(--primary2);
  background-color: var(--primary2) !important;
}

.social-btn:active {
  background-color: #289e50 !important;
  color: #ffffff !important;
}

/* ===============================
   Responsive Behaviour
   =============================== */
@media screen and (max-width: 980px) {
  h1 {
    font-size: 24px;
    font-weight: bold;
  }
}

/* ✅ Tablet portrait fix (iPad 9 portrait etc.)
   Stack hero layout so content doesn't clip/disappear */
@media screen and (max-width: 1024px) and (orientation: portrait) {
  .rds-main-content {
    flex-direction: column;
    min-height: auto; /* let content define height */
    background-image: url("_images/land-rover_range-rover_2002_LHS.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px !important;
  }

  .rds-image-column {
    display: none;
  }

  .rds-content-column {
    width: 100%;
    justify-content: flex-start; /* no vertical centring on portrait tablet */
    padding: 0;
  }

  .rds-inner-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .rds-text-container {
    max-width: 100%;
    margin-top: 0;
  }
}

/* Mobile (your existing behaviour) */
@media screen and (max-width: 768px) {
  .rds-main-content {
    flex-direction: column;
    min-height: auto;
    background-image: url("_images/land-rover_range-rover_2002_LHS.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 10px !important;
  }

  .rds-image-column {
    display: none;
  }

  .rds-content-column {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .rds-inner-content {
    padding: 2rem 0;
  }

  .rds-text-container {
    max-width: 100%;
    padding: 20px;
    margin-top: 0;
  }

  /* Row 2 spacing + typography */
  .rds-details-section {
    padding: 2.5rem 0;
  }

  .rds-details-container h2 {
    font-size: 1.2rem;
  }

  .rds-details-container h2:first-of-type {
    font-size: 1.4rem;
  }

  .rds-details-container p,
  .rds-bullet-list li {
    font-size: 1.05rem;
  }
}

@media screen and (max-width: 480px) {
  .rds-text-container {
    padding: 10px;
  }

  p {
    font-size: 1.1rem;
  }
}

/* ===============================
   Row 3: Player + Playlist
   =============================== */
.rds-video-section {
  background-color: var(--primary3);
  padding: 4rem 0;
}

.rds-video-layout { margin-top: 1.5rem; }

.rds-player-wrap {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 14px;
  box-sizing: border-box;
}

.rds-player-title {
  font-weight: 800;
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  text-align: center;
  color: #222;
}

.rds-playlist-wrap {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
}

.rds-pl-item {
  width: 100%;
  display: block;
  text-align: left;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 12px;
  margin: 8px 0;
  font-size: 1.05rem;
  cursor: pointer;
}

.rds-pl-item:hover {
  background: #e9f3fb;
  border-color: #c5deed;
}

.rds-pl-item.is-active {
  background: #c5deed;
  border-color: #4cb5f5;
}

@media screen and (max-width: 768px) {
  .rds-video-section { padding: 2.5rem 0; }
  .rds-player-wrap { margin-bottom: 18px; }
}

/* ===============================
   Row 3: Compact playlist (Option 1)
   Keeps 2-column layout on desktop, makes playlist tighter + scrollable
   =============================== */

.rds-playlist-wrap {
  max-height: 520px;      /* keeps the list compact on desktop */
  overflow-y: auto;
  padding: 8px;
}

.rds-pl-item {
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.25;
  border-radius: 6px;
}

.rds-pl-item.is-active {
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .rds-playlist-wrap {
    max-height: none;     /* allow full height on mobile */
  }
  .rds-pl-item {
    font-size: 0.98rem;
  }
}

/* Remove the “phantom” scrollbar by avoiding margin stacking */
.rds-playlist-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;              /* replaces the button margins */
}

.rds-pl-item {
  margin: 0;             /* important: stop margin accumulation */
}
``