/* ==========================================================================
   Ayurveda Panchakarma page

   Two things live here. The programme cards, which follow the card system the
   homepage already uses, and nothing else: the photo section on this page is
   the site's own `.sya-life` component from ashram-life.css, not a local copy.

   Kept in its own file because theme.css and site-ui.css are replaced by an
   external sync. Loaded last, so these win on equal specificity.
   ========================================================================== */

/* ---------- Closing line ---------- */
/* The note carries no background of its own and `main.page-content` is white,
   so it landed on white directly beneath the white FAQ and the two read as one
   block. Cream separates it, and continues the page's alternation. */
body#bg .course-note {
    background-color: var(--course-cream, #fbf7f1);
    padding-bottom: 34px;
    padding-top: 34px;
    text-align: center;
}

body#bg .course-note p {
    color: #5c534b;
    margin: 0 auto 18px;
    max-width: 760px;
}

/* ---------- Programme cards ---------- */
/* Five half width blocks stacked down the page ran to several screens. The
   fees table above already carries duration, depth, suitability and price, so
   a card only has to describe the programme and say what it adds. */
body#bg .pk-card-grid,
.pk-card-grid {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 0;
}

/* The card treatment is the homepage's, borrowed deliberately: white surface,
   hairline border, gentle lift on hover, no heavy shadow. site-ui.css already
   styles `.sya-learn-card` this way and this matches it rather than inventing
   a third look. */
body#bg .pk-card,
.pk-card {
    background: #fff;
    border: 1px solid rgba(123, 109, 97, 0.16);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body#bg .pk-card:hover,
.pk-card:hover {
    border-color: rgba(199, 156, 102, 0.34);
    box-shadow: 0 2px 4px rgba(63, 56, 50, 0.05),
                0 20px 40px -18px rgba(99, 79, 52, 0.24);
    transform: translateY(-3px);
}

body#bg .pk-card-head,
.pk-card-head {
    align-items: baseline;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* the duration badge, in the gold pill the homepage uses for its card numbers */
body#bg .pk-card-days,
.pk-card-days {
    background: rgba(199, 156, 102, 0.14);
    border-radius: 20px;
    color: #8a6428;
    flex: 0 0 auto;
    font-family: var(--font-heading, 'Marcellus', Georgia, serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 12px;
    white-space: nowrap;
}

body#bg .pk-card-days small,
.pk-card-days small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body#bg .section-full .pk-card-title,
body#bg .pk-card-title,
.pk-card-title {
    color: var(--course-ink, #3f3832) !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* the title is a card heading, not a section heading, so it takes no ornament */
body#bg .pk-card-title::after {
    content: none !important;
}

body#bg .section-full .pk-card-desc,
body#bg .pk-card-desc,
.pk-card-desc {
    color: #5c534b;
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* four of the five programmes build on the one before. That was the first
   bullet in every list; as a line of its own it reads as what it is and gives
   each list back a row. */
body#bg .section-full .pk-card-inherits,
body#bg .pk-card-inherits,
.pk-card-inherits {
    border-top: 1px solid rgba(123, 109, 97, 0.14);
    color: #8a6428;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 10px;
    padding-top: 14px;
}

body#bg .pk-card-list,
.pk-card-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

body#bg .pk-card-list > li,
.pk-card-list > li {
    color: #5c534b;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 9px;
    padding-left: 20px;
    position: relative;
}

body#bg .pk-card-list > li::before,
.pk-card-list > li::before {
    background: var(--course-gold, #c79c66);
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 2px;
    position: absolute;
    top: 8px;
    width: 7px;
}

body#bg .pk-card-list > li strong,
.pk-card-list > li strong {
    color: var(--course-ink, #3f3832);
    font-weight: 600;
}

/* the button sits on the bottom edge whatever the card's height */
body#bg .pk-card-cta,
.pk-card-cta {
    align-self: flex-start;
    font-size: 14px;
    margin-top: auto;
    padding: 11px 20px;
}

@media (max-width: 1199px) {
    body#bg .pk-card-grid,
    .pk-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body#bg .pk-card-grid,
    .pk-card-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    body#bg .pk-card,
    .pk-card {
        padding: 20px 18px 18px;
    }

    body#bg .pk-card-cta,
    .pk-card-cta {
        align-self: stretch;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body#bg .pk-card,
    .pk-card {
        transition: none;
    }

    body#bg .pk-card:hover,
    .pk-card:hover {
        transform: none;
    }
}
