/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
.single-post #main-content {
background-color: #edffee;
}

.cu-blog .et_pb_salvattore_content[data-columns]::before {
	content: '4 .column.size-1of4' !important;
}

.cu-blogim .et_pb_salvattore_content[data-columns]::before {
	content: '5 .column.size-1of4' !important;
} 

@media only screen and ( min-width: 981px ) {
	.cu-blog .column.size-1of4 {
	    width: 24%!important;
	    margin-right: 1%;
	}
	.cu-blogim .column.size-1of4 {
	    width: 19%!important;
	    margin-right: 1%;
	}
}

.et_pb_post {
    margin-bottom: 10px;
}
.et_pb_post a img {
    height: auto;
    float: left;
    width: 200px;
    left: 0;
    margin-right: 14px;
    margin-bottom: 10px;
}
@media only screen and (max-width: 980px) {
    .et_pb_post a img {
        float:none;
        width:100%;
        height: 300px;
    }
}

/* Hide "no results" message on blog module */
.et_pb_blog_grid .no-results {
    display: none;
}

/********* Mobile Menu Collapse ********/
  
/**** This hides the sub menu items on mobile ****/
  
#main-header .et_mobile_menu li ul.hide {
display: none !important;
}
  
/**** This adjusts the positioning and the background transparency of the parent menu item on mobile ****/
  
#mobile_menu .menu-item-has-children {
position: relative;
}
#mobile_menu .menu-item-has-children > a {
background: transparent;
}
  
/**** This styles the icon and moves it to the right ****/
  
#mobile_menu .menu-item-has-children > a + span {
position: absolute;
right: 0;
top: 0;
padding: 10px 20px;
font-size: 20px;
font-weight: 700;
cursor: pointer;
z-index: 3;
}
  
/**** Here you can swap out the actual icons ****/
  
span.menu-closed:before {
content: "\4c";
display: block;
color: #000;
font-size: 16px;
font-family: ETmodules;
}
  
span.menu-closed.menu-open:before {
content: "\4d";
}

/* Force EVP code module to full width so player measures container correctly */
.et_pb_code.et_pb_module {
    display: block;
    width: 100%;
}

.et_pb_code_inner {
    display: block;
    width: 100%;
}

.Elite_video_player {
    display: block;
    width: 100% !important;
}

/* ==========================================================================
   C434 Custom Single Post Templates
   Styles for show episodes (c434-single--show) and worship service posts
   (c434-single--worship). Uses Divi header/footer but owns the content area.
   ========================================================================== */

/* Reset the green background Divi child was adding to all single posts */
.c434-single.single-post #main-content,
#main-content:has(.c434-single) {
    background-color: #fff;
}

/* ==========================================================================
   Audio Episode Player  (content-audio.php)
   Matches the Divi audio player card: green background, artwork left, controls right.
   ========================================================================== */

/* ── Player card ────────────────────────────────────────────────────────────── */
.c434-audio-card {
    display: flex;
    align-items: stretch;
    background: #81CB8C;
    border-radius: 4px;
    overflow: hidden;
    margin: 28px 0 12px;
    max-width: 820px;
}

.c434-audio-card__art {
    flex-shrink: 0;
    width: 140px;
    min-height: 100px;
}

.c434-audio-card__art img {
    width: 140px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c434-audio-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px 14px 18px;
    gap: 4px;
}

.c434-audio-card__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.c434-audio-card__meta {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    margin: 0 0 8px;
}

/* ── Controls row ────────────────────────────────────────────────────────────── */
.c434-audio-card__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Play/pause button */
.c434-audio-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
.c434-audio-play:hover { background: rgba(255,255,255,0.2); }

/* Seek / progress */
.c434-audio-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.c434-audio-seek {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    outline: none;
    cursor: pointer;
}
.c434-audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    margin-top: 0;
}
.c434-audio-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

.c434-audio-time {
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 3em;
    text-align: right;
}

/* Mute button */
.c434-audio-mute {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

/* Volume slider */
.c434-audio-volume {
    flex-shrink: 0;
    width: 70px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    outline: none;
    cursor: pointer;
}
.c434-audio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.c434-audio-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

/* ── Download / hint area ─────────────────────────────────────────────────── */
.c434-audio-hint {
    font-size: 0.82rem;
    color: #555;
    margin: 0 0 10px;
}

.c434-btn--download {
    display: inline-block;
    padding: 10px 22px;
    background: #81CB8C;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}
.c434-btn--download:hover {
    background: #6aad45;
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .c434-audio-card { flex-direction: column; }
    .c434-audio-card__art { width: 100%; height: 120px; }
    .c434-audio-card__art img { width: 100%; height: 120px; object-fit: cover; }
    .c434-audio-volume { width: 50px; }
}

/* ==========================================================================
   Audio Series Landing  (content-audio-series.php)
   ========================================================================== */

.c434-audio-series__header {
    margin-bottom: 32px;
}

.c434-audio-series__hero {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 340px;
}

.c434-audio-series__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c434-audio-series__count {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 16px;
}

.c434-audio-series__empty {
    padding: 32px 0;
    color: #6b7280;
    font-style: italic;
}

/* Episode list */
.c434-episode-list {
    margin-top: 32px;
}

.c434-episode-list__heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.c434-episode-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c434-episode-list__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.c434-episode-list__item:last-child {
    border-bottom: none;
}

.c434-episode-list__title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: none;
    line-height: 1.4;
}

.c434-episode-list__title:hover {
    text-decoration: underline;
    color: #1e40af;
}

.c434-episode-list__date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: #9ca3af;
    white-space: nowrap;
}

@media ( max-width: 600px ) {
    .c434-episode-list__item {
        flex-direction: column;
        gap: 4px;
    }
    .c434-episode-list__date {
        font-size: 0.78rem;
    }
}

/* --- Hero image ---------------------------------------------------------- */
.c434-hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #111;
}

.c434-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.c434-hero__badge {
    position: absolute;
    bottom: 20px;
    left: 24px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
}

/* --- Content wrapper ---------------------------------------------------- */
.c434-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* --- Post header --------------------------------------------------------- */
.c434-post-header {
    text-align: center;
    margin-bottom: 36px;
}

.c434-post-header--left {
    text-align: left;
    margin-bottom: 24px;
}

.c434-show-name,
.c434-series-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 10px;
}

.c434-show-name a,
.c434-series-label a {
    color: #888;
    text-decoration: none;
}

.c434-show-name a:hover,
.c434-series-label a:hover {
    color: #333;
}

.c434-post-title {
    font-size: 2rem;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 10px;
    font-weight: 700;
}

.c434-post-title--green {
    color: #81cb8c;
}

.c434-post-date {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 16px;
}

.c434-post-meta {
    font-size: 13px;
    color: #aaa;
    margin: 6px 0 20px;
}

.c434-post-meta a {
    color: #aaa;
    text-decoration: none;
}

.c434-post-meta a:hover {
    color: #555;
}

/* --- Tags ---------------------------------------------------------------- */
.c434-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.c434-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s;
}

.c434-tag:hover {
    background: #ddd;
    color: #222;
}

/* --- Description --------------------------------------------------------- */
.c434-description {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 32px;
    border-left: 4px solid #e0e0e0;
    padding-left: 18px;
}

/* --- Media players ------------------------------------------------------- */
.c434-media {
    margin-bottom: 32px;
}

.c434-media__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px;
}

.c434-media video {
    display: block;
    width: 100%;
    border-radius: 6px;
    background: #000;
}

.c434-media audio {
    display: block;
    width: 100%;
}

/* Worship: side-by-side video + audio on wide screens */
.c434-media-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media ( min-width: 700px ) {
    .c434-media-row:has(.c434-media--video):has(.c434-media--audio) {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }
}

.c434-download {
    margin-top: 10px;
    font-size: 14px;
}

.c434-download a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.c434-download a:hover {
    color: #111;
}

/* --- Transcript ---------------------------------------------------------- */
.c434-transcript {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.c434-transcript__toggle {
    display: block;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    background: #f8f8f8;
    user-select: none;
    list-style: none;
}

.c434-transcript__toggle::-webkit-details-marker { display: none; }

.c434-transcript__toggle::before {
    content: '▶ ';
    font-size: 10px;
    margin-right: 4px;
}

details[open] .c434-transcript__toggle::before {
    content: '▼ ';
}

.c434-transcript__body {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #e5e5e5;
}

/* Hide any hero/featured image on custom-templated posts (audio has its own hero above the title) */
.c434-single:not(.c434-single--audio) .c434-hero,
.c434-single .et_featured_image,
.c434-single .entry-featured-image-url {
    display: none !important;
}

/* --- Featured image (in-body, not full-width hero) ----------------------- */
.c434-featured-img {
    margin-bottom: 28px;
}

.c434-featured-img__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


.c434-license {
    font-size: 13px;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.7;
}

/* --- Points + Series two-column green box -------------------------------- */
/* Two separate boxes side by side */
.c434-worship-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    align-items: stretch;
}

.c434-points {
    flex: 3;
    min-width: 240px;
    background: #81cb8c;
    border-radius: 6px;
    padding: 28px 24px;
}

.c434-points__heading {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 14px;
    font-weight: 700;
}

.c434-points__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c434-points__list li {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
}

.c434-points__num {
    flex-shrink: 0;
    font-weight: 700;
}

.c434-series-box {
    flex: 2;
    min-width: 160px;
    max-width: 260px;
    background: #81cb8c;
    border-radius: 6px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.c434-series-box__img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.c434-series-box__link {
    display: inline-block;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-align: center;
}

.c434-series-box__link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* --- Audio players -------------------------------------------------------- */
.c434-audio-players > * + * {
    margin-top: 24px;
}

/* --- Audio footer --------------------------------------------------------- */
.c434-audio-footer {
    margin-top: 32px;
}

.c434-audio-instructions {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.c434-audio-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* --- Download buttons ----------------------------------------------------- */
.c434-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.c434-btn--download {
    background: #81cb8c;
    color: #fff !important;
    border: 2px solid #81cb8c;
}

.c434-btn--download:hover {
    background: #6ab877;
    border-color: #6ab877;
    color: #fff !important;
}

/* --- Mobile adjustments -------------------------------------------------- */
@media ( max-width: 600px ) {
    .c434-wrap {
        padding: 24px 16px 40px;
    }

    .c434-post-title {
        font-size: 1.5rem;
    }

    .c434-hero {
        max-height: 240px;
    }

    .c434-worship-info {
        flex-direction: column;
    }

    .c434-series-box {
        max-width: 100%;
        align-items: flex-start;
    }

    .c434-audio-downloads {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Shows Menu Page  (Template Name: Shows Menu Page)
   5-column alphabetical grid of all show tiles.
   ========================================================================== */

.c434-shows-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.c434-shows-menu__header {
    margin-bottom: 36px;
}

.c434-shows-menu__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.c434-shows-menu__intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    max-width: 860px;
}

.c434-shows-menu__empty {
    padding: 40px;
    text-align: center;
    color: #777;
    font-style: italic;
}

.c434-shows-grid {
    display: grid;
    grid-template-columns: repeat( 5, 1fr );
    gap: 16px;
}

@media ( max-width: 1024px ) {
    .c434-shows-grid {
        grid-template-columns: repeat( 4, 1fr );
    }
}

@media ( max-width: 768px ) {
    .c434-shows-grid {
        grid-template-columns: repeat( 3, 1fr );
        gap: 12px;
    }
}

@media ( max-width: 480px ) {
    .c434-shows-grid {
        grid-template-columns: repeat( 2, 1fr );
        gap: 8px;
    }
}

.c434-show-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.12 );
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c434-show-tile:hover {
    transform: translateY( -3px );
    box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.22 );
}

.c434-show-tile__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.c434-show-tile__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.c434-show-tile:hover .c434-show-tile__img-wrap img {
    transform: scale( 1.05 );
}

.c434-show-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba( 0, 0, 0, 0.75 ) 0%, transparent 55% );
    display: flex;
    align-items: flex-end;
    padding: 8px 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.c434-show-tile:hover .c434-show-tile__overlay {
    opacity: 1;
}

.c434-show-tile__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.6 );
}

/* ==========================================================================
   Show Landing Page  (Template Name: Show Landing Page)
   Season-tab + episode-grid layout for 434-in-motion shows.
   ========================================================================== */

.c434-show-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.c434-show-landing__header {
    margin-bottom: 32px;
}

.c434-show-landing__title {
    font-size: clamp( 1.8rem, 4vw, 2.6rem );
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}

.c434-show-landing__count {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.c434-show-landing__empty {
    color: #6b7280;
    font-size: 1rem;
    padding: 40px 0;
}

/* Season tabs */
.c434-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid #e5e7eb;
}

.c434-season-tab {
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.c434-season-tab:hover {
    color: #111;
}

.c434-season-tab.is-active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

/* Episode grid: 4 columns → 3 → 2 */
.c434-season-grid {
    display: none;
    grid-template-columns: repeat( 4, 1fr );
    gap: 24px;
}

.c434-season-grid.is-active {
    display: grid;
}

@media ( max-width: 1024px ) {
    .c434-season-grid { grid-template-columns: repeat( 3, 1fr ); }
}

@media ( max-width: 680px ) {
    .c434-season-grid { grid-template-columns: repeat( 2, 1fr ); gap: 14px; }
}

/* Episode card */
.c434-ep-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba( 0, 0, 0, .08 );
    transition: transform .15s, box-shadow .15s;
}

.c434-ep-card:hover {
    transform: translateY( -3px );
    box-shadow: 0 6px 20px rgba( 0, 0, 0, .14 );
}

.c434-ep-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.c434-ep-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c434-ep-card__no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient( 135deg, #1a1a2e 0%, #16213e 100% );
}

.c434-ep-card__badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba( 0, 0, 0, .72 );
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.c434-ep-card__body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.c434-ep-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.35;
}

.c434-ep-card__desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}