/* BPA Course Calendar — brand colours from the site's Elementor kit. */
.bpa-cc {
    --bpa-plum: #502430;
    --bpa-plum-dark: #3d1b25;
    --bpa-slate: #28373b;
    --bpa-text: #1e1e1e;
    --bpa-muted: #5b5557;
    --bpa-blush: #e5d1d1;
    --bpa-blush-soft: #f3e8e6;
    --bpa-mist: #eae6e4;
    --bpa-cream: #fbf8f5;
    --bpa-white: #fff;
    --bpa-radius: 16px;
    --bpa-serif: "Lora", Georgia, "Times New Roman", serif;
    --bpa-sans: "Heebo", "Segoe UI", Arial, sans-serif;

    font-family: var(--bpa-sans);
    color: var(--bpa-text);
    line-height: 1.6;
}

.bpa-cc *, .bpa-cc *::before, .bpa-cc *::after { box-sizing: border-box; }

/* Edubin pads its content wrapper on non-Elementor pages; the hero should sit right under the header. */
body.bpa-cc-page .tpc-site-content { padding-top: 0 !important; padding-bottom: 0 !important; }
body.bpa-cc-page .elementor-button { white-space: nowrap; }

/* The theme and the Elementor kit style headings, inputs and SVGs globally; keep the calendar's own look
   (Elementor widget style controls still override these). */
.bpa-cc .bpa-cc-hero__title, .bpa-cc .bpa-cc-card__title, .bpa-cc .bpa-cc-card__cats,
.bpa-cc .bpa-cc-heading, .bpa-cc .bpa-cc-subheading, .bpa-cc .bpa-cc-panel__title { font-family: var(--bpa-serif); }
.bpa-cc .bpa-icon { width: 22px; height: 22px; flex-shrink: 0; }
.bpa-cc .bpa-cc-search input[type="search"] {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    height: 46px; padding: 0 4px; margin: 0; border-radius: 0;
}

.bpa-cc-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.bpa-cc .screen-reader-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.bpa-cc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 28px; border-radius: 6px;
    font-family: var(--bpa-sans); font-size: 17px; font-weight: 500; line-height: 1;
    text-decoration: none !important; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.bpa-cc-btn--light { background: var(--bpa-blush); color: var(--bpa-plum) !important; border: 1px solid var(--bpa-blush); }
.bpa-cc-btn--light:hover { background: var(--bpa-white); border-color: var(--bpa-white); }
.bpa-cc-btn--outline { background: transparent; color: var(--bpa-white) !important; border: 1px solid rgba(255, 255, 255, .75); }
.bpa-cc-btn--outline:hover { background: rgba(255, 255, 255, .1); }
.bpa-cc-btn--primary { background: var(--bpa-plum); color: var(--bpa-white) !important; border: 1px solid var(--bpa-plum); }
.bpa-cc-btn--primary:hover { background: var(--bpa-plum-dark); }

/* Hero */
.bpa-cc-hero {
    background-color: var(--bpa-plum);
    color: var(--bpa-white);
    padding: 120px 0 80px;
}
.bpa-cc-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bpa-cc-hero__title {
    font-family: var(--bpa-serif); font-weight: 500;
    font-size: clamp(36px, 5vw, 60px); line-height: 1.1;
    color: var(--bpa-white); margin: 0 0 14px;
}
.bpa-cc-hero__subtitle { font-size: 19px; margin: 0; color: rgba(255, 255, 255, .9); }
.bpa-cc-hero__eyebrow { font-family: var(--bpa-serif); font-size: 22px; margin: 0 0 8px; color: rgba(255, 255, 255, .9); }
.bpa-cc-hero--single { padding: 110px 0 28px; }
.bpa-cc-hero__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
.bpa-cc-hero__nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* "Course types" dropdown */
.bpa-cc-dropdown { position: relative; }
.bpa-cc-dropdown summary { list-style: none; }
.bpa-cc-dropdown summary::-webkit-details-marker { display: none; }
.bpa-cc-dropdown summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin: 5px 0 0 4px; }
.bpa-cc-dropdown ul {
    position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
    min-width: 280px; margin: 0; padding: 8px 0; list-style: none;
    background: var(--bpa-white); border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.bpa-cc-dropdown li a { display: block; padding: 9px 18px; color: var(--bpa-text); text-decoration: none; font-size: 15px; }
.bpa-cc-dropdown li a:hover { background: var(--bpa-blush-soft); color: var(--bpa-plum); }

/* Filter bar */
.bpa-cc-filters { background: var(--bpa-mist); padding: 20px 0; margin: 0; border-bottom: 10px solid #dcd6d3; }
.bpa-cc-filters__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 20px; align-items: center; }
.bpa-cc-select { position: relative; display: block; margin: 0; }
.bpa-cc-select select {
    width: 100%; height: 46px; padding: 0 44px 0 14px; margin: 0;
    font-family: var(--bpa-sans); font-size: 17px; color: var(--bpa-text);
    background: var(--bpa-white); border: 1px solid #cfc8c5; border-radius: 6px;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.bpa-cc-select::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; pointer-events: none;
    border-right: 2px solid var(--bpa-text); border-bottom: 2px solid var(--bpa-text);
    transform: translateY(-70%) rotate(45deg);
}
.bpa-cc-select select:focus, .bpa-cc-search input:focus { outline: 2px solid var(--bpa-plum); outline-offset: 2px; }
.bpa-cc-search { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: 20px; border-left: 1px solid #b9b1ae; color: var(--bpa-slate); }
.bpa-cc-search input {
    flex: 1; min-width: 0; height: 46px; padding: 0 4px; margin: 0;
    font-family: var(--bpa-serif); font-size: 18px; color: var(--bpa-text);
    background: transparent; border: 0; box-shadow: none;
}

/* Listing */
.bpa-cc-listing { padding: 64px 0 96px; background: var(--bpa-white); }
.bpa-cc-note { font-size: 15px; margin: 0 0 20px; color: var(--bpa-muted); }
.bpa-cc-empty { font-size: 18px; padding: 48px 0; text-align: center; color: var(--bpa-muted); }
.bpa-cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.bpa-cc-card[hidden] { display: none; }

/* The whole card is one link to the details page. */
.bpa-cc-card__link { display: block; color: inherit !important; text-decoration: none !important; }
.bpa-cc-card__link:focus-visible { outline: 2px solid var(--bpa-plum); outline-offset: 6px; border-radius: var(--bpa-radius); }
.bpa-cc-card__body, .bpa-cc-card__cats { display: block; }
.bpa-cc-card__media {
    position: relative; display: block; aspect-ratio: 16 / 9.5; overflow: hidden;
    border-radius: var(--bpa-radius); background: var(--bpa-mist);
    transition: transform .5s ease, opacity .5s ease;
}
.bpa-cc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Image grows into place as the card scrolls into view (only once the script is running, so images
   never stay hidden without JavaScript), and eases in slightly on hover. */
.bpa-cc-animate .bpa-cc-card__media { opacity: 0; transform: scale(.8); }
.bpa-cc-animate .bpa-cc-card.is-visible .bpa-cc-card__media { opacity: 1; transform: scale(1); }
.bpa-cc-card:hover .bpa-cc-card__media,
.bpa-cc-animate .bpa-cc-card.is-visible:hover .bpa-cc-card__media { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) {
    .bpa-cc-card__media, .bpa-cc-animate .bpa-cc-card__media { transition: none; opacity: 1; transform: none !important; }
}
.bpa-cc-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bpa-blush), var(--bpa-mist)); }
.bpa-cc-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .8); color: var(--bpa-slate); font-size: 14px; font-weight: 500;
    box-shadow: 0 0 2px rgba(0, 0, 0, .25); transition: background-color .5s ease;
}
.bpa-cc-card:hover .bpa-cc-badge { background: #fff; }
.bpa-cc-card__body { padding-top: 18px; }
.bpa-cc-card__title { font-family: var(--bpa-serif); font-weight: 500; font-size: 24px; line-height: 1.25; margin: 0 0 6px; }
.bpa-cc-card__title { transition: color .3s ease; }
.bpa-cc-card__link:hover .bpa-cc-card__title { color: var(--bpa-plum); }
.bpa-cc-card__cats { font-family: var(--bpa-serif); font-size: 17px; margin: 0 0 14px; color: var(--bpa-slate); }
.bpa-cc-card__title { color: var(--bpa-text); }
.bpa-cc-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bpa-cc-card__when { display: block; font-size: 15px; line-height: 1.6; margin: 0; color: var(--bpa-text); }
.bpa-cc-price {
    flex-shrink: 0; padding: 8px 20px; border-radius: 999px;
    background: var(--bpa-blush); color: var(--bpa-plum); font-size: 15px; font-weight: 500; white-space: nowrap;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* Details page */
.bpa-cc-section { padding: 96px 0; background: var(--bpa-white); }
.bpa-cc-section--pattern {
    background-color: var(--bpa-cream);
    border-top: 28px solid var(--bpa-mist);
}
.bpa-cc-section--blush { background: var(--bpa-blush-soft); border-top: 28px solid var(--bpa-blush); }
.bpa-cc-section--cream { background: var(--bpa-cream); border-top: 28px solid var(--bpa-mist); }
.bpa-cc-heading { font-family: var(--bpa-serif); font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; color: var(--bpa-text); margin: 0 0 28px; }
.bpa-cc-subheading { font-family: var(--bpa-serif); font-weight: 500; font-size: 26px; margin: 0 0 10px; color: var(--bpa-text); }
.bpa-cc-prose { font-size: 18px; line-height: 1.75; }
.bpa-cc-prose p, .bpa-cc-prose ul, .bpa-cc-prose ol { margin: 0 0 20px; }
.bpa-cc-prose h2, .bpa-cc-prose h3, .bpa-cc-prose h4 { font-family: var(--bpa-serif); font-weight: 500; font-size: 22px; line-height: 1.3; margin: 28px 0 10px; color: var(--bpa-text); }
.bpa-cc-prose ul, .bpa-cc-prose ol { padding-left: 22px; }
.bpa-cc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.bpa-cc-split--top { align-items: start; }
.bpa-cc-split__text .bpa-cc-btn { margin-top: 8px; }
.bpa-cc-split__media img { width: 100%; height: auto; display: block; border-radius: var(--bpa-radius); }
.bpa-cc-link { color: var(--bpa-plum); font-size: 18px; text-decoration: none; border-bottom: 1px dashed currentColor; }

.bpa-cc-info { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr); gap: 32px; }
.bpa-cc-info--single { grid-template-columns: minmax(0, 1fr); }
.bpa-cc-panel { background: var(--bpa-white); border-radius: var(--bpa-radius); padding: 32px; }
.bpa-cc-panel--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.bpa-cc-panel__title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--bpa-serif); font-weight: 500; font-size: 24px; color: var(--bpa-text);
    margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--bpa-mist);
}
.bpa-cc-panel__title .bpa-icon { color: var(--bpa-plum); flex-shrink: 0; }
.bpa-cc-panel p { margin: 0 0 6px; font-size: 18px; }
.bpa-cc-panel .bpa-cc-panel__date { font-weight: 600; font-size: 20px; }
.bpa-cc-panel .bpa-cc-panel__small { font-size: 15px; color: var(--bpa-muted); }
.bpa-cc-panel .bpa-cc-panel__price { font-size: 20px; margin-top: 16px; }
.bpa-cc-dash-list, .bpa-cc-dot-list { margin: 0; padding: 0; list-style: none; font-size: 18px; }
.bpa-cc-dash-list li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.bpa-cc-dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--bpa-plum); }
.bpa-cc-dot-list li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.bpa-cc-dot-list li::before {
    content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px;
    border-radius: 50%; background: var(--bpa-plum);
}

/* Tablet */
@media (max-width: 1024px) {
    .bpa-cc-filters__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bpa-cc-search { border-left: 0; padding-left: 0; background: var(--bpa-white); border: 1px solid #cfc8c5; border-radius: 6px; padding: 0 14px; }
    .bpa-cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bpa-cc-info { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 680px) {
    .bpa-cc-container { padding: 0 16px; }
    .bpa-cc-hero { padding: 72px 0 48px; }
    .bpa-cc-hero--single { padding: 64px 0 24px; }
    .bpa-cc-hero__actions { margin-top: 32px; }
    .bpa-cc-hero__subtitle { font-size: 17px; }
    .bpa-cc-filters__inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bpa-cc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .bpa-cc-section { padding: 56px 0; }
    .bpa-cc-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bpa-cc-panel { padding: 24px; }
    .bpa-cc-panel--split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .bpa-cc-prose { font-size: 17px; }
    .bpa-cc-card__meta { flex-wrap: wrap; }
}

/* Lists output by the "Session field" dynamic tag inside Elementor Text Editor widgets.
   Give the widget the CSS class bpa-dash-list or bpa-dot-list for the dash / dot style. */
.bpa-cc-list { list-style: none; margin: 0; padding: 0; }
.bpa-cc-list li { position: relative; margin-bottom: 10px; }
.bpa-dash-list .bpa-cc-list li { padding-left: 22px; }
.bpa-dash-list .bpa-cc-list li::before { content: "–"; position: absolute; left: 0; color: #502430; }
.bpa-dot-list .bpa-cc-list li { padding-left: 34px; margin-bottom: 18px; }
.bpa-dot-list .bpa-cc-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: #502430; }
.elementor .bpa-cc-dropdown summary.bpa-cc-btn { min-height: 0; padding: 16px 28px; }
