/* ==========================================================================
   1. Imports & Resets
   ========================================================================== */
/* Import fonts */
@import url('https://use.typekit.net/exw4kfl.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Reset and base styles */
*,
*::before,
*::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border: none;
        background: transparent;
        vertical-align: baseline;
        text-underline-offset: 0.2em;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        font-family: "Inter", sans-serif;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2 {
        font-family: "balboa", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
}

h1 {
        font-size: clamp(3rem, 6vw, 5rem);
        line-height: 0.9;
        color: #fff;
        margin-bottom: 1.2rem;
}

h2 {
        font-size: clamp(1.8rem, 3.5vw, 2.6rem);
        line-height: 1.2;
        color: #2eb8c4;
}

h3, p {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.1;
        color: #1c2528;
}

p {
        line-height: 1.45;
}

/* ==========================================================================
   3. Layout Grid
   ========================================================================== */
body {
        background-color: #f2fbfb;
}

section {
        display: grid;
        grid-template-columns:
                [page-start] 1fr [gutter-start] 1rem [content-start] minmax(0, 1200px) [content-end] 1rem [gutter-end] 1fr [page-end];
        margin-top: 1.2rem;
}

.row {
        display: grid;
        grid-column: content-start / content-end;
        grid-template-columns: repeat(12, 1fr);
        column-gap: 1.2rem;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
section.hero {
        background-color: #0c818b;
        padding: 2.4rem 0;
        margin-bottom: 3.6rem;
        margin-top:0;
}

.hero-image {
        grid-column: span 6;
        aspect-ratio: 4 / 3;
        background-size: cover;
        background-position: center;
        border-radius: 0.8rem;
        box-shadow: rgba(16, 16, 36, 0.2) 2px 2px 10px;
}

.hero-text {
        grid-column: span 6;
        display: flex;
        flex-direction: column;
        justify-content: center;
}

.hero-text p {
        color: #fff;
        line-height: 1.4;
}

/* ==========================================================================
   5. Podcast / Advice Cards
   ========================================================================== */
.podcast-section-title {
        grid-column: span 12;
        margin-bottom: 0.8rem;
}

.article-card,
.advice-card {
        grid-column: span 3;
        margin-bottom: 2.4rem;
}

.podcast-poster {
        grid-column: span 3;
        position: relative;
        aspect-ratio: 1 / 1;
        background-size: cover;
        background-position: center;
        padding: 1rem;
        border-radius: 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
        box-shadow: rgba(16, 16, 36, 0.2) 2px 2px 10px;
        margin-bottom: 0.8rem;
}

.podcast-poster::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #0c818b;
        opacity: 0;
        z-index: 1;
}

.podcast-poster::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(16, 16, 36, 1), rgba(0, 0, 0, 0));
        z-index: 0;
}

.podcast-poster:hover {
        outline: 0.4rem solid #b1e4e9;
}

.podcast-poster:hover::before {
        opacity: 0.7;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
section.footer {
        background-color: #1c2528;
        padding: 1.8rem 0 3.6rem;
}

.footer-section {
        grid-column: span 3;
}

copyright-section,
.copyright-section {
        grid-column: span 12;
        margin-top: 2.4rem;
}

.footer-section h2,
.copyright-section p {
        text-transform: uppercase;
        font-family: "balboa", sans-serif;
        line-height: 1.2;
        color: #fff;
}

.footer-section h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 1.8rem 0 0.6rem;
}

.footer-section p {
        color: #fff;
}

.copyright-section p {
        font-size: 1.4rem;
        font-weight: 300;
}

/* ==========================================================================
   7. Plyr Audio (Trimmed - only audio, minimal overrides)
   ========================================================================== */
.plyr {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        position: relative;
        z-index: 1;
        direction: ltr;
}

.plyr audio {
        display: block;
        width: 100%;
        height: 100%;
}

.plyr:focus {
        outline: 0;
}

.plyr--full-ui a, .plyr--full-ui button, .plyr--full-ui input, .plyr--full-ui label {
        touch-action: manipulation;
}

.plyr__control {
        background: white;
        border: 0;
        cursor: pointer;
        padding: 0.8rem;
        position: relative;
        flex-shrink: 0;
        overflow: visible;
        border-radius: 2rem;
        box-shadow: rgba(16, 16, 36, 0.2) 2px 2px 10px;
}

.plyr__control svg {
        display: block;
        width: 0.8rem;
        height: 0.8rem;
        fill: #1c2528;
        pointer-events: none;
}

.plyr__control:hover svg {
    fill: #ffffff;
}

a.plyr__control {
        text-decoration: none;
}

.plyr__control.plyr__control--pressed .icon--not-pressed, .plyr__control.plyr__control--pressed .label--not-pressed, .plyr__control:not(.plyr__control--pressed) .icon--pressed, .plyr__control:not(.plyr__control--pressed) .label--pressed {
        display: none;
}

.plyr__controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
        color: #1c2528;
        border-radius: inherit;
}

.plyr__controls .plyr__controls__item {
        margin-left: 0.5rem;
}

.plyr__controls .plyr__controls__item:first-child {
        margin-left: 0;
        margin-right: auto;
}

.plyr__controls .plyr__controls__item.plyr__progress__container {
        flex: 1;
        min-width: 0;
        padding-left: 2.5px;
}

.plyr__controls .plyr__controls__item.plyr__time {
        padding: 0 5px;
}

.plyr__controls .plyr__controls__item.plyr__progress__container:first-child, .plyr__controls .plyr__controls__item.plyr__time+.plyr__time, .plyr__controls .plyr__controls__item.plyr__time:first-child {
        padding-left: 0;
}

.plyr__progress {
        position: relative;
        left: 6.5px;
        margin-right: 13px;
}

.plyr__progress input[type=range], .plyr__progress__buffer {
        margin-left: -6.5px;
        margin-right: -6.5px;
        width: calc(100% + 13px);
}

.plyr__progress input[type=range] {
        position: relative;
        z-index: 2;
}

.plyr__progress__buffer {
  background: transparent;
  opacity:0;
  transition: background 0.3s ease;
}


.show-thumb .plyr__progress__buffer {
        position: absolute;
        top: 50%;
        left: 0;
        height: 5px;
        margin-top: -2.5px;
        padding: 0;
        border: 0;
        border-radius: 0.8rem;
        background: transparent;
          opacity:1;
        color: rgba(255, 255, 255, 0.6);
}

.plyr__progress__buffer::-webkit-progress-bar {
        background: transparent;
}

.plyr__progress__buffer::-webkit-progress-value {
        background: currentColor;
        border-radius: 0.8rem;
        min-width: 5px;
        transition: width 0.2s ease;
}

.plyr__progress__buffer::-moz-progress-bar {
        background: currentColor;
        border-radius: 0.8rem;
        min-width: 5px;
        transition: width 0.2s ease;
}

.plyr__tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translate(-50%, 10px) scale(0.8);
        transform-origin: 50% 100%;
        background: #fff;
        font-size: 0.8rem;
        font-weight: 400;
        line-height: 1;
        color: #1c2528;
        padding: 5px 7.5px;
        border-radius: 0.2rem;
        white-space: nowrap;
        margin-bottom: 5px;
        opacity: 0;
        pointer-events: none;
        z-index: 2;
}

.plyr__tooltip:before {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #fff;
        z-index: 2;
}

.plyr .plyr__control:hover .plyr__tooltip, .plyr .plyr__control:focus-visible .plyr__tooltip, .plyr__tooltip--visible {
        opacity: 0;
        transform: translate(-50%) scale(1);
}

.plyr--audio {
        display: block;
}

.plyr--audio .plyr__control:hover, .plyr--audio .plyr__control:focus-visible, .plyr--audio .plyr__control[aria-expanded="true"] {
        background: #2eb8c4;
        color: #fff;
}

/* .plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track, .plyr--full-ui.plyr--audio input[type=range]::-moz-range-track, .plyr--full-ui.plyr--audio input[type=range]::-ms-track { background-color: #c1c8d199; } */
.plyr--full-ui input[type=range] {
        appearance: none;
        background: transparent;
        border: 0;
        border-radius: 0.8rem;
        color: #2eb8c4;
        height: 19px;
        width: calc(100% + 13px);
        margin: 0;
        padding: 0;
        display: block;
        left: -6.5px;
}

.plyr--full-ui input[type=range]::-webkit-slider-runnable-track {
        height: 5px;
        border: 0;
        border-radius: 0.8rem;
        background-image: linear-gradient(to right, currentColor var(--value, 0), transparent var(--value, 0));
}

/* Hide thumbs by default */
.plyr--full-ui input[type=range]::-webkit-slider-thumb {
  opacity: 0;
  transition: opacity 0.3s;
}

.plyr--full-ui input[type=range]::-moz-range-thumb {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show thumbs after player has played */
.show-thumb.plyr--full-ui input[type=range]::-webkit-slider-thumb {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 0.8rem;
  width: 13px;
  height: 13px;
  margin-top: -4px;
  position: relative;
  opacity: 1;
}

.show-thumb.plyr--full-ui input[type=range]::-moz-range-thumb {
  background: #fff;
  border: 0;
  border-radius: 0.8rem;
  width: 13px;
  height: 13px;
  position: relative;
  opacity: 1;
}


.plyr--full-ui input[type=range]::-moz-range-track {
        height: 5px;
        border-radius: 0.8rem;
        background: transparent;
        transition: box-shadow 0.3s ease;
}

.plyr__sr-only {
        clip: rect(1px, 1px, 1px, 1px);
        position: absolute !important;
        height: 1px !important;
        width: 1px !important;
        overflow: hidden;
        padding: 0 !important;
        border: 0 !important;
}

.plyr [hidden] {
        display: none !important;
}

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {

        .article-card,
        .advice-card {
                grid-column: span 4;
        }

        .hero-image {
                grid-column: span 4;
                aspect-ratio: 1 / 1;
        }

        .hero-text {
                grid-column: span 8;
        }

        .footer-section {
                grid-column: span 6;
        }
}

@media (max-width: 767px) {

        .article-card,
        .advice-card {
                grid-column: span 6;
        }

        .hero-text {
                grid-column: span 12;
                margin-top: 2.4rem;
        }

        .hero-image {
                grid-column: span 12;
        }

        .footer-section {
                grid-column: span 6;
        }
}

@media (max-width: 500px) {

        .article-card,
        .advice-card, .hero-text, .hero-image, .footer-section {
                grid-column: span 12;
        }

        .podcast-poster {
        aspect-ratio: 16 / 9;
}
}