/*
 Theme Name:   Twenty Seventeen Child
 Theme URI:    https://wordpress.org/themes/twentyseventeen/
 Description: Child theme for Brook Farm Institute seminars
 Author:       Brook Farm Institute
 Template:     twentyseventeen
 Version:      1.0.0
*/

/* =========================================
   FRONT PAGE ONLY - REDUCE TOP SPACING
========================================= */

/* Target ONLY the front page - uses multiple specific selectors */
body.home.page-template-default .site-content-contain,
body.home.page-template-default .site-content {
    padding-top: 0 !important;
}

body.home.page-template-default .panel-content {
    padding-top: 0 !important;
}

/* Make banner sit flush under menu on front page */
body.home .seminar-banner {
    margin-top: 0;
}

/* Remove excessive whitespace on front page */
body.home .site-header,
body.home #masthead {
    margin-bottom: 0 !important;
}

body.home .wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.home .entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .site-content {
    padding-top: 0 !important;
}

/* =========================================
   FORCE FULL-WIDTH CONTENT (Seminars + Instructors)
========================================= */

body.single-seminar.has-sidebar .site-content-contain .wrap,
body.single-instructor.has-sidebar .site-content-contain .wrap {
    max-width: 1200px;
    padding: 0 1.5rem;
}

body.single-seminar.has-sidebar #secondary,
body.single-instructor.has-sidebar #secondary {
    display: none;
}

body.single-seminar.has-sidebar #primary,
body.single-instructor.has-sidebar #primary {
    width: 100%;
}

/* =================================================
   COURSES GRID PAGE - OVERRIDE THEME WIDTH
================================================= */

.courses-grid-page {
    max-width: none !important;
}

.courses-grid-page .wrap,
.courses-grid-page .site-content-contain,
.courses-grid-page .site-content {
    max-width: none !important;
    padding: 0 !important;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    max-width: 1800px;
    margin: 4rem auto;
    padding: 0 4rem;
}

/* =================================================
   FACULTY GRID - FORCE WIDER LAYOUT
================================================= */

.site-main.faculty-grid-page {
    max-width: none !important;
    width: 100% !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Reduce top margin on Faculty title */
.faculty-grid-page .course-month-title {
    margin-top: 3rem !important;
    padding-top: 0 !important;
}

/* Remove wrapper padding on faculty page */
body.page-template-page-faculty-grid .site-content-contain,
body.page-template-page-faculty-grid .site-content,
body.page-template-page-faculty-grid .wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    max-width: 1800px;
    margin: 1rem auto 4rem auto;
    padding: 0 4rem;
}

/* =================================================
   SHARED PAGE CONTAINER
================================================= */

body.single-seminar .site-main.seminar-page,
body.single-instructor .site-main.instructor-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =================================================
   SEMINAR PAGE
================================================= */

body.single-seminar .site-content {
    padding-top: 0;
}

body.single-seminar .seminar-hero {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 3rem;
    margin: 3rem 0;
}

body.single-seminar .seminar-hero>* {
    min-width: 0;
}

@media (max-width: 1024px) {
    body.single-seminar .seminar-hero {
        grid-template-columns: 1fr;
    }
}

body.single-seminar .seminar-image img {
    width: 100%;
    display: block;
}

body.single-seminar .seminar-image-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #556B4E;
    font-style: normal;
}

body.single-seminar .seminar-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

body.single-seminar .seminar-description {
    font-size: 1.05rem;
    line-height: 1.65;
}

body.single-seminar .seminar-schedule {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

body.single-seminar .seminar-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2F4F3E;
}

body.single-seminar .seminar-enrollment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ccc;
}

/* =================================================
   SINGLE SEMINAR — Featured Image Card (Image-only)
================================================= */

body.single-seminar .seminar-image img {
    display: block;
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    padding: 1.25rem;
    box-sizing: border-box;
}

/* =================================================
   INSTRUCTOR PAGE
================================================= */

body.single-instructor .instructor-hero {
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 65%);
    gap: 3rem;
    margin: 3rem 0;
}

@media (max-width: 1024px) {
    body.single-instructor .instructor-hero {
        grid-template-columns: 1fr;
    }
}

body.single-instructor .instructor-image img {
    width: 100%;
    display: block;
}

body.single-instructor .instructor-name {
    font-size: 2rem;
    margin-bottom: 1rem;
}

body.single-instructor .instructor-bio {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Instructor featured image as card (match faculty grid) */
body.single-instructor .instructor-image {
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    padding: 1.25rem;
}

/* Prevent image card from stretching to match bio height */
body.single-instructor .instructor-image {
    align-self: start;
}

/* Remove bullets from instructor course lists */
body.single-instructor .instructor-seminars ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* =================================================
   FACULTY GRID - 4 COLUMNS WITH SQUARE IMAGES
================================================= */

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2.5rem;
}

.faculty-card {
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Square image container */
.faculty-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.75rem;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.05);
}

.faculty-name {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.faculty-name a {
    color: #2F4F3E;
    text-decoration: none;
}

.faculty-subjects {
    font-size: 0.9rem;
    color: #556B4E;
}

.faculty-more {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2F4F3E;
    text-decoration: underline;
}

/* =================================================
   COURSES GRID - 4 COLUMNS WITH SQUARE IMAGES
================================================= */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2.5rem;
}

.course-card {
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Image wrapper = hover anchor - NOW SQUARE */
.course-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover overlay — EXACT image size */
.course-hover {
    position: absolute;
    inset: 0;
    background: rgba(47, 79, 62, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.course-card:hover .course-hover {
    opacity: 1;
}

.course-hover-inner {
    color: #F7F6F2;
    line-height: 1.6;
}

.course-hover-inner .instructor {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.course-hover-inner .dates,
.course-hover-inner .days-time {
    font-size: 0.95rem;
}

/* Default (non-hover) info */
.course-info {
    text-align: left;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.course-title a {
    color: #2F4F3E;
    text-decoration: none;
}

.course-modality {
    font-size: 0.85rem;
    color: #556B4E;
}

/* Responsive */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .courses-grid,
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .courses-grid,
    .faculty-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}

/* =================================================
   Seminar Banner (Animated Slider)
================================================= */

.seminar-banner {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: #cfdac6;
}

/* Individual slides */
.seminar-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Active slide */
.seminar-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay container - link with no link styling */
.seminar-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-decoration: none !important;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0));
}

.seminar-slide-overlay:hover,
.seminar-slide-overlay:focus {
    text-decoration: none !important;
}

.seminar-slide-overlay * {
    text-decoration: none !important;
}

/* Title - WHITE */
.seminar-slide-title {
    margin: 0;
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Dates - WHITE */
.seminar-slide-dates {
    margin-top: 0.25rem;
    color: #ffffff !important;
    font-size: 0.85rem;
}

/* Description panel - DARK GREEN TEXT on light green background */
.seminar-slide-description {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(207, 218, 198, 0.88);
    color: #1F3D2B !important;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 42rem;
    max-height: 180px;
    overflow: hidden;
    align-self: flex-start;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Clamp description text by screen size */
@media (max-width: 640px) {
    .seminar-slide-description {
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .seminar-slide-description {
        -webkit-line-clamp: 5;
    }
}

@media (min-width: 1025px) {
    .seminar-slide-description {
        -webkit-line-clamp: 7;
    }
}


/* =================================================
   Seminar Banner Arrows
================================================= */

.seminar-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.seminar-banner-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.seminar-banner-arrow.prev {
    left: 0.5rem;
}

.seminar-banner-arrow.next {
    right: 0.5rem;
}

/* =================================================
   Seminar Register Button
================================================= */

a.seminar-register-button {
    display: inline-block;
    margin-top: 0.5rem;

    padding: 0.65rem 1.25rem;

    background-color: #1F3D2B;
    color: #ffffff;

    font-weight: 600;
    font-size: 0.95rem;

    text-decoration: none;
    border-radius: 2px;

    transition: background-color 0.2s ease;
}

a.seminar-register-button:hover {
    background-color: #183525;
}

/* =================================================
   FONT LAB — Montserrat + Roboto Slab
================================================= */

/* Body text */
body {
    font-family: "Roboto Slab", Georgia, serif;
    line-height: 1.7;
    font-size: 16px;
}

/* Headings, navigation, titles */
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.navigation-top,
.course-title,
.faculty-name {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.015em;
}

/* Site title: keep all-caps, slightly smaller */
.site-title {
    text-transform: uppercase;
    font-size: 2.15rem;
    letter-spacing: normal;
    line-height: 1.15;
}

.course-month-title {
    margin: 0 0 1.75rem 0;
    padding: 0;
    text-align: center;
    color: #1F3D2B;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =================================================
   GLOBAL LINK STYLING
================================================= */

a {
    color: #2F4F3E;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #1F3D2B;
    text-decoration: underline;
}

/* Content area links - ONLY in actual content paragraphs */
.entry-content p a,
.instructor-bio p a,
.site-footer p a,
.site-footer a,
article.post p a {
    color: #2F4F3E;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: none !important;
    box-shadow: none !important;
}

.entry-content p a:hover,
.instructor-bio p a:hover,
.site-footer p a:hover,
.site-footer a:hover,
article.post p a:hover {
    color: #1F3D2B;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* =================================================
   NAVIGATION + FOOTER — Unified Light Yellow
================================================= */

.navigation-top {
    background-color: #F7F6F2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navigation-top a {
    color: #1F3D2B;
    font-weight: 600;
}

.navigation-top a:hover,
.navigation-top a:focus {
    color: #183525;
    text-decoration: underline;
}

/* =================================================
   FOOTER — Unified Light Yellow
================================================= */

.site-footer,
.site-footer .widget-area,
.site-footer .site-info {
    background-color: #F7F6F2;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer,
.site-footer a {
    color: #1F3D2B;
}

.site-footer a:hover {
    color: #183525;
    text-decoration: underline;
}

/* =================================================
   SITE TITLE — White Outline, Slightly Larger
================================================= */

.site-header .site-title a {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.45rem 0.8rem;
    border: 2px solid #ffffff;
    border-radius: 2px;
    text-decoration: none;
}

/* ======================================
   HOME PAGE — UPCOMING SEMINARS GRID
====================================== */

.home-seminars {
    margin: 4rem auto;
    padding: 0 2.5rem;
}

.home-seminars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.home-seminar-card {
    text-decoration: none;
    color: inherit;
}

/* Square image container */
.home-seminar-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e5efe6;
}

.home-seminar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Title band */
.home-seminar-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(31, 61, 43, 0.92);
    color: #F7F6F2;
    padding: 1rem 1.25rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.25;
    transition: opacity 0.25s ease;
}

.home-seminar-image:hover .home-seminar-title {
    opacity: 0;
}

/* Modality label — bottom of square */
.home-seminar-modality {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 1rem;
    background: rgba(247, 246, 242, 0.9);
    color: #1F3D2B;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    z-index: 3;
    transition: opacity 0.25s ease;
}

.home-seminar-card:hover .home-seminar-modality {
    opacity: 0;
}

/* Hover overlay */
.home-seminar-hover {
    position: absolute;
    inset: 0;
    background: rgba(47, 79, 62, 0.92);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    transition: opacity 0.25s ease;
}

.home-seminar-hover-inner {
    color: #ffffff;
    line-height: 1.5;
}

.home-seminar-hover .instructor {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.home-seminar-hover .schedule {
    font-size: 0.95rem;
}

.home-seminar-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.75);
}

.home-seminar-card:hover .home-seminar-hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-seminars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-seminars-grid {
        grid-template-columns: 1fr;
    }
}

/* REMOVE Twenty Seventeen hover underline from home seminar tiles */
.home-seminar-card,
.home-seminar-card:hover,
.home-seminar-card:focus {
    box-shadow: none !important;
}

.home-seminar-card * {
    box-shadow: none !important;
}

/* Clamp banner description text — desktop */
.seminar-slide-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .seminar-slide-description {
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .seminar-slide-description {
        -webkit-line-clamp: 5;
    }
}

@media (min-width: 1025px) {
    .seminar-slide-description {
        -webkit-line-clamp: 7;
    }
}

/* =================================================
   IMPROVED SEMINAR PAGE META DESIGN
================================================= */

.seminar-schedule {
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.seminar-schedule strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #556B4E;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seminar-schedule-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.25rem;
    align-items: baseline;
}

.seminar-schedule-label {
    font-weight: 600;
    color: #556B4E;
    font-size: 0.9rem;
}

.seminar-schedule-value {
    color: #1F3D2B;
    font-size: 0.95rem;
}

/* Location address / phone / website lines */
.seminar-location-address {
    display: block;
    font-size: 0.875rem;
    color: #556B4E;
    margin-top: 0.2rem;
}

.seminar-location-address a {
    color: #556B4E;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.seminar-location-address a:hover {
    color: #2F4F3E;
}

/* Price styling */
.seminar-price-container {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid #E5E3DC;
}

.seminar-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2F4F3E;
    line-height: 1;
    font-family: "Montserrat", sans-serif;
}

.seminar-price-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #556B4E;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Instructor link styling */
.seminar-instructor {
    background: rgba(47, 79, 62, 0.06);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.seminar-instructor strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #556B4E;
    margin-right: 0.5rem;
}

.seminar-instructor a {
    color: #2F4F3E;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.seminar-instructor a:hover {
    border-bottom-color: #2F4F3E;
}

/* Enrollment section styling */
.seminar-enrollment {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    border-radius: 4px;
}

/* Status messages */
.seminar-status {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.seminar-status.pending {
    background: #FFF4E6;
    color: #8B6914;
    border: 1px solid #E5D4A8;
}

.seminar-status.closed {
    background: #F5E6E6;
    color: #8B4A3A;
    border: 1px solid #E5D4D4;
}

/* Urgency message */
.seminar-urgency {
    background: #FFF4E6;
    color: #8B6914;
    border: 1px solid #E5D4A8;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Register button - enhanced */
a.seminar-register-button {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: #2F4F3E;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a.seminar-register-button:hover {
    background-color: #1F3D2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 79, 62, 0.3);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .seminar-schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .seminar-schedule-label {
        font-weight: 700;
        margin-top: 0.5rem;
    }

    .seminar-price {
        font-size: 2rem;
    }
}

/* =================================================
   UPCOMING COURSES (TBA) - VISUAL DISTINCTION
================================================= */

.course-card.upcoming {
    background: #F0F0ED;
    border-color: #D5D3CB;
    opacity: 0.95;
}

/* TBA badge in corner */
.course-tba-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #8B6914;
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    z-index: 4;
}

/* Discount badge */
.course-discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #8B6914;
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    z-index: 4;
}

.course-card.upcoming:hover {
    opacity: 1;
}

/* Waitlist Form */
.waitlist-form-container {
    margin-top: 2rem;
}

.waitlist-form h3 {
    font-family: "Montserrat", sans-serif;
    color: #2F4F3E;
    margin-bottom: 1rem;
}

.waitlist-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
    border: 1px solid #E5E3DC;
    border-radius: 4px;
}

/* =================================================
   INSTRUCTOR CONTACT PANEL
================================================= */

.instructor-contact {
    background: rgba(47, 79, 62, 0.06);
    padding: 1rem 1.25rem;
    border-left: 3px solid #2F4F3E;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.instructor-contact-link {
    color: #2F4F3E;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.instructor-contact-link:hover {
    color: #1F3D2B;
    transform: translateX(3px);
}

.contact-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .instructor-contact {
        padding: 0.75rem 1rem;
    }
}

/* =================================================
   COURSE FILTERS
================================================= */

.course-filters {
    background: #F7F6F2;
    border-bottom: 1px solid #E5E3DC;
    padding: 1rem 0;
    margin-top: 0;
    margin-bottom: 2rem;
}

.course-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group label {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #1F3D2B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn {
    padding: 0.4rem 1rem;
    background: #ffffff;
    color: #2F4F3E;
    border: 2px solid #E5E3DC;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.filter-btn:hover {
    border-color: #2F4F3E;
    background: #CFDAC6;
}

.filter-btn.active {
    background: #2F4F3E;
    color: #ffffff;
    border-color: #2F4F3E;
}

.filter-select {
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    color: #2F4F3E;
    border: 2px solid #E5E3DC;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-transform: none;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #2F4F3E;
    outline: none;
}

.filter-clear {
    padding: 0.4rem 1rem;
    background: transparent;
    color: #2F4F3E;
    border: 2px solid #2F4F3E;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.filter-clear:hover {
    background: #2F4F3E;
    color: #ffffff;
}

.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-size: 1.1rem;
    font-family: "Roboto Slab", serif;
}

@media (max-width: 768px) {
    .course-filters-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group label {
        margin-bottom: 0.5rem;
    }

    .filter-clear {
        margin-left: 0;
    }
}

/* Force courses page specific overrides */
body.page-template-page-courses .site-content-contain,
body.page-template-page-courses .site-content,
body.page-id-58 .site-content-contain,
body.page-id-58 .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =================================================
   SINGLE SEMINAR — BLOCKQUOTE STYLING
================================================= */

body.single-seminar .seminar-description .wp-block-quote,
body.single-seminar .seminar-description blockquote {
    padding: 0 0 0 1rem;
    margin: 1.25rem 0;
    border-left: 3px solid #CFDAC6;
    font-size: 0.875rem;
    font-style: normal;
    line-height: 1.6;
    color: #556B4E;
    background: none;
}

body.single-seminar .seminar-description .wp-block-quote p,
body.single-seminar .seminar-description blockquote p {
    font-size: 0.875rem;
    font-style: normal;
    color: #556B4E;
    margin: 0 0 0.5rem 0;
}

body.single-seminar .seminar-description .wp-block-quote p:last-child,
body.single-seminar .seminar-description blockquote p:last-child {
    margin-bottom: 0;
}

body.single-seminar .seminar-description .wp-block-quote cite,
body.single-seminar .seminar-description .wp-block-quote footer,
body.single-seminar .seminar-description blockquote cite {
    font-size: 0.8rem;
    font-style: normal;
    color: #556B4E;
}

/* =================================================
   WORDPRESS BUTTON BLOCK HOVER STYLES
================================================= */

.wp-block-button__link,
a.wp-block-button__link {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover,
a.wp-block-button__link:hover {
    background-color: #1F3D2B !important;
    border-color: #1F3D2B !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.seminar-sliding-scale-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #556B4E;
    line-height: 1.5;
}

.seminar-sliding-scale-note a {
    color: #556B4E;
    text-decoration: underline;
}

/* =================================================
   MAILERLITE FORM - SEMINAR NUDGE OVERRIDE
================================================= */

.seminar-mailing-nudge {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #F7F6F2;
    border: 1px solid #E5E3DC;
    border-radius: 4px;
}

.seminar-mailing-nudge>p {
    margin: 0 0 0.75rem 0;
    font-size: 0.88rem;
    color: #556B4E;
    font-style: normal;
    text-align: center;
}

/* Strip MailerLite wrapper styling */
.seminar-mailing-nudge .ml-embedded,
.seminar-mailing-nudge .ml-embedded .ml-form-embedWrapper,
.seminar-mailing-nudge .ml-embedded .ml-form-embedBody,
.seminar-mailing-nudge .ml-embedded .ml-form-embedContent,
.seminar-mailing-nudge .ml-embedded form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Hide MailerLite's own title and description */
.seminar-mailing-nudge .ml-embedded h4,
.seminar-mailing-nudge .ml-embedded .ml-form-embedBody p {
    display: none !important;
}

/* Field rows */
.seminar-mailing-nudge .ml-embedded .ml-form-fieldRow,
.seminar-mailing-nudge .ml-embedded .ml-form-horizontalRow {
    width: 100% !important;
    padding: 0 !important;
}

/* Email input */
.seminar-mailing-nudge .ml-embedded input[type="email"],
.seminar-mailing-nudge .ml-embedded .ml-form-fieldRow input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid #E5E3DC !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem !important;
}

/* Submit button */
.seminar-mailing-nudge .ml-embedded button[type="submit"],
.seminar-mailing-nudge .ml-embedded .ml-form-embedSubmit button,
.seminar-mailing-nudge .ml-embedded .ml-submit-button {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #2F4F3E !important;
    background-color: #2F4F3E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.65rem 1rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.seminar-mailing-nudge .ml-embedded button[type="submit"]:hover,
.seminar-mailing-nudge .ml-embedded .ml-form-embedSubmit button:hover {
    background: #1F3D2B !important;
    background-color: #1F3D2B !important;
}

.seminar-mailing-nudge .ml-embedded button.primary {
    background: #2F4F3E !important;
    background-color: #2F4F3E !important;
    color: #ffffff !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.65rem 1rem !important;
    cursor: pointer !important;
}

.seminar-mailing-nudge .ml-embedded button.primary:hover {
    background: #1F3D2B !important;
    background-color: #1F3D2B !important;
}
/* =================================================
   NOTIFY ME FORM - SPACING
================================================= */

.notify-me-container {
    margin-top: 1.5rem;
}

.notify-me-container .seminar-register-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notify-me-container input[type="email"] {
    font-family: "Roboto Slab", Georgia, serif;
}