:root {
  --primary: #D62828;
  --accent: #2B2D42;
  --bg: #F7F7F7;
  --text: #1F2937;
  --muted: #6B7280;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.header { position: sticky; top:0; backdrop-filter: blur(6px); background: rgba(255,255,255,0.75); border-bottom: 1px solid #eee; }
.nav { display:flex; align-items:center; justify-content: space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; }
.logo { width:40px; height:40px; border-radius:10px; background: var(--primary); display:flex; align-items:center; justify-content:center; color:white; font-weight:700; }
.menu a { margin: 0 10px; font-weight: 600; }
.hero { padding: 72px 0 32px; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 8px; line-height: 1.1; }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
.cta-row { margin-top: 18px; display:flex; gap:12px; flex-wrap: wrap; }
.btn { display:inline-block; padding: 12px 16px; border-radius:10px; border:1px solid transparent; font-weight:700; }
.btn.primary { background: var(--primary); color:#fff; }
.btn.outline { border-color: var(--primary); color:var(--primary); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid #eee; border-radius:14px; overflow:hidden; }
.card .pad { padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer { margin-top: 60px; border-top: 1px solid #eee; padding: 24px 0; font-size: 14px; color: var(--muted); }
.player { aspect-ratio: 16/9; width: 100%; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:9999px; background:#fff; border:1px solid #eee; color:var(--muted); font-size: 12px; }
.section { padding: 28px 0; }
.kicker { text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-size: 12px; font-weight: 800; }
h2.section-title { margin: 0 0 12px; font-size: 26px; }
.meta { display:flex; align-items:center; gap:10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.subscribe { display:flex; gap:8px; flex-wrap: wrap; }
input[type="email"] { padding: 12px 14px; border:1px solid #ddd; border-radius: 10px; min-width: 260px; }
small.help { color: var(--muted); }
#otp-whats-bubble { font-size: 14px; }
.scroll-image-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

/* ==================================== */
/* MOBILE OPTIMIZATION         */
/* ==================================== */

/* Sets a maximum width for the container for better reading experience on large screens, */
/* but allows it to be full-width on smaller screens. */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px; /* Add some padding on the sides for smaller screens */
}

/* Base styles for sections and titles for a uniform look */
.section {
  padding: 40px 0;
}

/* Adjust the Hero section for better mobile stacking */
.hero {
  text-align: center;
  padding-top: 50px;
}

/* Ensure the main call-to-action buttons stack vertically on mobile */
.cta-row {
  display: flex;
  flex-direction: column; /* Stacks items vertically by default */
  gap: 15px; /* Spacing between the stacked buttons */
  margin-top: 30px;
}

.cta-row .btn {
  width: 100%; /* Makes buttons full-width on mobile */
  text-align: center;
}

/* Adjust the image scrolling container for mobile */
.scroll-image-container {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS */
  display: flex;
  padding: 10px 0; /* Add some vertical padding */
}

.scroll-image {
  flex-shrink: 0; /* Prevents images from shrinking */
  width: 200px; /* Fixed width for each image, creating the scroll effect */
  height: 200px;
  object-fit: cover;
  margin-right: 15px; /* Spacing between images */
  border-radius: 8px;
}

/* --- Media Query for Mobile and Small Tablets (Max Width 768px) --- */
@media (max-width: 768px) {
  
  .container {
    padding: 0 15px; /* Slightly less padding on smaller screens */
  }

  .section {
    padding: 30px 0; /* Reduce section padding */
  }

  .section-title {
    font-size: 1.8em; /* Make section titles smaller */
    text-align: center;
  }

  /* Force the 3-column grids to become a single column */
  .grid-3 {
    grid-template-columns: 1fr; /* Single column */
    gap: 30px; /* Add vertical spacing between grid items */
  }
  
  .grid-3 .card {
    padding: 20px;
  }
  
  /* Make all 'grid' elements that might hold episodes or other content stack vertically */
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Adjustments for the 'What makes OTP different' section */
  .section-what-different .grid-3 {
    text-align: center;
  }

  /* Center the list for a better mobile look */
  .section-who-listens ul {
      list-style-position: inside;
      padding: 0;
  }
}

/* --- Base Header Styles (for all screen sizes) --- */
.header {
  background-color: #f8f8f8; /* Example background color */
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.container.nav {
  max-width: 1200px; /* Max width for your content */
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between; /* Space out brand and menu */
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between logo and text */
}

/* Hide the toggle button by default (for desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}


/* --- Desktop/Larger Screen Styles (Default) --- */
.menu {
  display: flex; /* Display links side-by-side */
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
}


/* --- Mobile Styles (Media Query) --- */
@media (max-width: 768px) {
  /*
    On screens 768px wide or less:
    1. Show the hamburger button.
    2. Hide the main menu by default.
    3. Change the menu layout to stack links vertically.
  */

  /* 1. Show the toggle button */
  .menu-toggle {
    display: block;
    order: 2; /* Ensure it's on the right of the brand */
  }

  /* The navigation container itself */
  .container.nav {
    flex-wrap: wrap; /* Allows items to wrap onto a new line */
  }

  /* 2. Hide the menu by default and make it full width */
  .menu {
    display: none; /* Crucial for initial state on mobile */
    flex-direction: column; /* Stack links vertically */
    width: 100%; /* Take up full width below the brand/toggle */
    text-align: center;
    padding-top: 10px;
  }

  /* 3. Style the links for stacking */
  .menu a {
    display: block; /* Makes links take up the full width */
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Visual separation for stacked links */
  }

  /* State when the menu should be visible (using JavaScript) */
  .menu.is-open {
    display: flex; /* Use flex to show the column-stacked menu */
  }
}

/* In assets/styles.css */
@media (max-width: 768px) { /* Example mobile breakpoint */
  #primary-menu {
    display: none; /* Hidden by default on mobile */
  }

  #primary-menu.is-open {
    display: block; /* Shown when the class is added */
    /* Add any transitions, positioning, etc. */
  }
}