/* Single Sermon Template Styles - Scoped to prevent affecting other parts of the site */

.sermonstack-single-sermon {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Video Hero Section */
.sermonstack-single-sermon .sermon-video-hero {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sermonstack-single-sermon .sermon-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.sermonstack-single-sermon .sermon-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sermonstack-single-sermon .sermon-video-html5 {
    width: 100%;
}

.sermonstack-single-sermon .sermon-video-html5 video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sermonstack-single-sermon .sermon-video-fallback {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.sermonstack-single-sermon .sermon-video-link {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sermonstack-single-sermon .sermon-video-link:hover {
    background: #005a87;
    color: white;
}

/* Main Content Container */
.sermonstack-single-sermon .sermon-info-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Header Section */
.sermonstack-single-sermon .sermon-header {
    margin-bottom: 30px;
}

.sermonstack-single-sermon .sermon-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.sermonstack-single-sermon .sermon-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sermonstack-single-sermon .sermon-speakers,
.sermonstack-single-sermon .sermon-series-meta,
.sermonstack-single-sermon .sermon-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sermonstack-single-sermon .meta-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.sermonstack-single-sermon .speakers-list,
.sermonstack-single-sermon .series-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sermonstack-single-sermon .speaker-item,
.sermonstack-single-sermon .series-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.sermonstack-single-sermon .speaker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.sermonstack-single-sermon .speaker-name,
.sermonstack-single-sermon .series-name {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.sermonstack-single-sermon .speaker-name:hover,
.sermonstack-single-sermon .series-name:hover {
    color: #005a87;
}

.sermonstack-single-sermon .date-value {
    color: #666;
    font-size: 16px;
}

/* Content Section */
.sermonstack-single-sermon .sermon-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.sermonstack-single-sermon .sermon-content p {
    margin-bottom: 16px;
}

.sermonstack-single-sermon .sermon-content h2,
.sermonstack-single-sermon .sermon-content h3,
.sermonstack-single-sermon .sermon-content h4 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Audio Section */
.sermonstack-single-sermon .sermon-audio-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.sermonstack-single-sermon .audio-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.sermonstack-single-sermon .sermon-audio-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sermonstack-single-sermon .sermon-audio-player audio {
    width: 100%;
    height: 40px;
}

.sermonstack-single-sermon .audio-download-link {
    align-self: flex-start;
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sermonstack-single-sermon .audio-download-link:hover {
    color: #005a87;
}

/* Sidebar */
.sermonstack-single-sermon .sermon-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sermonstack-single-sermon .sermon-thumbnail {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.sermonstack-single-sermon .sermon-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile thumbnail - hidden by default */
.sermonstack-single-sermon .sermon-mobile-thumbnail {
    display: none;
}

.sermonstack-single-sermon .sermon-series {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.sermonstack-single-sermon .sermon-series h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

.sermonstack-single-sermon .series-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sermonstack-single-sermon .series-list li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

/* Remove the arrow before series-list items */
/*
.sermonstack-single-sermon .series-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
}
*/

.sermonstack-single-sermon .series-list a {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sermonstack-single-sermon .series-list a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-single-sermon .sermon-date-small {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermonstack-single-sermon {
        padding: 15px;
    }
    
    .sermonstack-single-sermon .sermon-info-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sermonstack-single-sermon .sermon-title {
        font-size: 24px;
    }
    
    .sermonstack-single-sermon .sermon-meta {
        gap: 10px;
    }
    
    .sermonstack-single-sermon .sermon-speakers,
    .sermonstack-single-sermon .sermon-series-meta,
    .sermonstack-single-sermon .sermon-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sermonstack-single-sermon .speakers-list,
    .sermonstack-single-sermon .series-list-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .sermonstack-single-sermon .speaker-item,
    .sermonstack-single-sermon .series-item {
        width: fit-content;
    }
    
    .sermonstack-single-sermon .sermon-sidebar {
        order: -1;
    }
    
    /* Mobile Header with inline thumbnail */
    .sermonstack-single-sermon .sermon-header {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sermonstack-single-sermon .sermon-header-content {
        flex: 1;
    }
    
    .sermonstack-single-sermon .sermon-sidebar .sermon-thumbnail {
        display: none;
    }
    
    .sermonstack-single-sermon .sermon-mobile-thumbnail {
        display: block;
        flex-shrink: 0;
    }
    
    .sermonstack-single-sermon .sermon-mobile-thumbnail img {
        width: 50px;
        height: 50px;
        border-radius: 100px;
        object-fit: cover;
        border: 2px solid #e9ecef;
    }
}

@media (max-width: 480px) {
    .sermonstack-single-sermon .sermon-title {
        font-size: 20px;
    }
    
    .sermonstack-single-sermon .sermon-audio-section {
        padding: 16px;
    }
    
    .sermonstack-single-sermon .sermon-series {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .sermonstack-single-sermon .sermon-thumbnail,
    .sermonstack-single-sermon .sermon-mobile-thumbnail {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sermonstack-single-sermon .sermon-thumbnail,
    .sermonstack-single-sermon .sermon-mobile-thumbnail {
        display: none !important;
    }
}

/* No sidebar layout */
.sermonstack-single-sermon .sermon-info-container.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustment for no-sidebar */
@media (max-width: 768px) {
    .sermonstack-single-sermon .sermon-info-container.no-sidebar {
        max-width: 100%;
    }
}

/* Single Sermon Series Template Styles - Scoped to prevent affecting other parts of the site */

.sermonstack-single-series {
    min-width: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
}

/* Breadcrumb Navigation */
.sermonstack-single-series .sermonstack-breadcrumb {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10; /* Ensure breadcrumb is above other content */
    background: #ffffff; /* Add background to prevent overlap issues */
    padding: 8px 12px;
    border-radius: 4px;
}

.sermonstack-single-series .sermonstack-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

.sermonstack-single-series .sermonstack-breadcrumb li {
    color: #666;
}

.sermonstack-single-series .sermonstack-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    cursor: pointer; /* Ensure links are clearly clickable */
    transition: color 0.2s ease;
}

.sermonstack-single-series .sermonstack-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-single-series .breadcrumb-separator {
    color: #666;
}

/* Header Section */
.sermonstack-single-series .series-header {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.sermonstack-single-series .series-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* Main Content Container */
.sermonstack-single-series .series-info-container {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 800px;
    max-width: 800px;
    margin: 0 auto;
}

/* Thumbnail Section */
.sermonstack-single-series .series-thumbnail {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sermonstack-single-series .series-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile thumbnail - hidden by default */
.sermonstack-single-series .series-mobile-thumbnail {
    display: none;
}

.sermonstack-single-series .series-mobile-thumbnail img {
    width: 50px;
    height: 50px;
    border-radius: 100px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* Content Section */
.sermonstack-single-series .series-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.sermonstack-single-series .series-content p {
    margin-bottom: 16px;
}

.sermonstack-single-series .series-content h2,
.sermonstack-single-series .series-content h3,
.sermonstack-single-series .series-content h4 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.sermonstack-single-series .sermons-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

.sermonstack-single-series .sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.sermonstack-single-series .sermon-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sermonstack-single-series .sermon-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sermonstack-single-series .sermon-grid-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.sermonstack-single-series .sermon-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sermonstack-single-series .sermon-grid-content {
    padding: 16px;
}

.sermonstack-single-series .sermon-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.sermonstack-single-series .sermon-grid-title a {
    color: #007cba;
    text-decoration: none;
    font-size: 16px;
}

.sermonstack-single-series .sermon-grid-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-single-series .sermons-grid-speakers,
.sermonstack-single-series .sermon-grid-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sermonstack-single-series .meta-label {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.sermonstack-single-series .speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sermonstack-single-series .speaker-name {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.sermonstack-single-series .speaker-name:hover {
    color: #005a87;
}

.sermonstack-single-series .date-value {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermonstack-single-series {
        padding: 15px;
        min-width: 100%;
    }

    .sermonstack-single-series .series-title {
        font-size: 24px;
    }

    .sermonstack-single-series .series-mobile-thumbnail {
        display: block;
        flex-shrink: 0;
    }

    .sermonstack-single-series .series-thumbnail {
        display: none;
    }

    .sermonstack-single-series .series-info-container {
        min-width: 100%;
        max-width: 100%;
    }

    .sermonstack-single-series .sermonstack-breadcrumb {
        position: static;
        text-align: left;
        margin-bottom: 15px;
        padding: 0;
    }

    .sermonstack-single-series .sermonstack-breadcrumb ul {
        justify-content: flex-start;
    }

    .sermonstack-single-series .sermons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sermonstack-single-series .series-title {
        font-size: 20px;
    }

    .sermonstack-single-series .series-sermons-section {
        padding: 16px;
    }

    .sermonstack-single-series .sermon-grid-thumbnail {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .sermonstack-single-series .series-thumbnail,
    .sermonstack-single-series .series-mobile-thumbnail {
        display: none !important;
    }
}

/* Single Sermon Speaker Template Styles - Scoped to prevent affecting other parts of the site */

.sermonstack-single-speaker {
    min-width: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
}

/* Breadcrumb Navigation */
.sermonstack-single-speaker .sermonstack-breadcrumb {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10; /* Ensure breadcrumb is above other content */
    background: #ffffff; /* Add background to prevent overlap issues */
    padding: 8px 12px;
    border-radius: 4px;
}

.sermonstack-single-speaker .sermonstack-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

.sermonstack-single-speaker .sermonstack-breadcrumb li {
    color: #666;
}

.sermonstack-single-speaker .sermonstack-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    cursor: pointer; /* Ensure links are clearly clickable */
    transition: color 0.2s ease;
}

.sermonstack-single-speaker .sermonstack-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-single-speaker .breadcrumb-separator {
    color: #666;
}

/* Header Section */
.sermonstack-single-speaker .speaker-header {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.sermonstack-single-speaker .speaker-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* Avatar Section */
.sermonstack-single-speaker .speaker-avatar {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.sermonstack-single-speaker .speaker-avatar img {
    max-width: 100px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile avatar - hidden by default */
.sermonstack-single-speaker .speaker-mobile-avatar {
    display: none;
}

.sermonstack-single-speaker .speaker-mobile-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 100px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

/* Main Content Container */
.sermonstack-single-speaker .speaker-info-container {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 800px;
    max-width: 800px;
    margin: 0 auto;
}

/* Description Section */
.sermonstack-single-speaker .speaker-description {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.sermonstack-single-speaker .speaker-description p {
    margin-bottom: 16px;
}

.sermonstack-single-speaker .speaker-description h2,
.sermonstack-single-speaker .speaker-description h3,
.sermonstack-single-speaker .speaker-description h4 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Sermons Grid Section */
.sermonstack-single-speaker .speaker-sermons-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.sermonstack-single-speaker .sermons-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
}

.sermonstack-single-speaker .sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.sermonstack-single-speaker .sermon-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sermonstack-single-speaker .sermon-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sermonstack-single-speaker .sermon-grid-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.sermonstack-single-speaker .sermon-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sermonstack-single-speaker .sermon-grid-content {
    padding: 16px;
}

.sermonstack-single-speaker .sermon-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.sermonstack-single-speaker .sermon-grid-title a {
    color: #007cba;
    text-decoration: none;
}

.sermonstack-single-speaker .sermon-grid-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-single-speaker .sermon-grid-speakers,
.sermonstack-single-speaker .sermon-grid-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sermonstack-single-speaker .meta-label {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.sermonstack-single-speaker .speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sermonstack-single-speaker .speaker-name {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.sermonstack-single-speaker .speaker-name:hover {
    color: #005a87;
}

.sermonstack-single-speaker .date-value {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermonstack-single-speaker {
        padding: 15px;
        min-width: 100%;
    }

    .sermonstack-single-speaker .speaker-title {
        font-size: 24px;
    }

    .sermonstack-single-speaker .speaker-mobile-avatar {
        display: block;
        flex-shrink: 0;
    }

    .sermonstack-single-speaker .speaker-avatar {
        display: none;
    }

    .sermonstack-single-speaker .speaker-info-container {
        min-width: 100%;
        max-width: 100%;
    }

    .sermonstack-single-speaker .sermonstack-breadcrumb {
        position: static;
        text-align: left;
        margin-bottom: 15px;
        box-shadow: none; /* Remove shadow on mobile for cleaner look */
        padding: 0;
    }

    .sermonstack-single-speaker .sermonstack-breadcrumb ul {
        justify-content: flex-start;
    }

    .sermonstack-single-speaker .sermons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sermonstack-single-speaker .speaker-title {
        font-size: 20px;
    }

    .sermonstack-single-speaker .speaker-sermons-section {
        padding: 16px;
    }

    .sermonstack-single-speaker .sermon-grid-thumbnail {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .sermonstack-single-speaker .speaker-avatar,
    .sermonstack-single-speaker .speaker-mobile-avatar {
        display: none !important;
    }
}

/* Sermon Series Archive Template Styles - Scoped to prevent affecting other parts of the site */

.sermonstack-series-archive {
    min-width: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
}

/* Breadcrumb Navigation */
.sermonstack-series-archive .sermonstack-breadcrumb {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10; /* Ensure breadcrumb is above other content */
    background: #ffffff; /* Add background to prevent overlap issues */
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for visibility */
}

.sermonstack-series-archive .sermonstack-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

.sermonstack-series-archive .sermonstack-breadcrumb li {
    color: #666;
}

.sermonstack-series-archive .sermonstack-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    cursor: pointer; /* Ensure links are clearly clickable */
    transition: color 0.2s ease;
}

.sermonstack-series-archive .sermonstack-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-series-archive .breadcrumb-separator {
    color: #666;
}

/* Header Section */
.sermonstack-series-archive .archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.sermonstack-series-archive .archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Filters */
.sermonstack-series-archive .archive-filters {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.sermonstack-series-archive .archive-search,
.sermonstack-series-archive .archive-speaker-filter {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.sermonstack-series-archive .archive-search input,
.sermonstack-series-archive .archive-speaker-filter select {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sermonstack-series-archive .archive-search input:focus,
.sermonstack-series-archive .archive-speaker-filter select:focus {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Series Grid */
.sermonstack-series-archive .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sermonstack-series-archive .series-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sermonstack-series-archive .series-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sermonstack-series-archive .series-grid-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.sermonstack-series-archive .series-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sermonstack-series-archive .series-grid-content {
    padding: 16px;
}

.sermonstack-series-archive .series-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.sermonstack-series-archive .series-grid-title a {
    color: #007cba;
    text-decoration: none;
}

.sermonstack-series-archive .series-grid-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-series-archive .series-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sermonstack-series-archive .series-excerpt p {
    margin: 0;
}

.sermonstack-series-archive .series-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sermonstack-series-archive .meta-label {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.sermonstack-series-archive .count-value {
    color: #666;
}

/* Pagination */
.sermonstack-series-archive .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.sermonstack-series-archive .pagination .nav-links {
    display: flex;
    gap: 8px;
}

.sermonstack-series-archive .pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.sermonstack-series-archive .pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.sermonstack-series-archive .pagination .page-numbers:hover {
    background: #e9ecef;
}

/* No Results */
.sermonstack-series-archive .no-results {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermonstack-series-archive {
        padding: 15px;
        min-width: 100%;
    }

    .sermonstack-series-archive .archive-title {
        font-size: 24px;
    }

    .sermonstack-series-archive .archive-filters {
        flex-direction: column;
        align-items: center;
    }

    .sermonstack-series-archive .archive-search,
    .sermonstack-series-archive .archive-speaker-filter {
        max-width: 100%;
    }

    .sermonstack-series-archive .sermonstack-breadcrumb {
        position: static;
        text-align: left;
        margin-bottom: 15px;
        box-shadow: none; /* Remove shadow on mobile for cleaner look */
        padding: 0;
    }

    .sermonstack-series-archive .sermonstack-breadcrumb ul {
        justify-content: flex-start;
    }

    .sermonstack-series-archive .series-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sermonstack-series-archive .archive-title {
        font-size: 20px;
    }

    .sermonstack-series-archive .series-grid-content {
        padding: 12px;
    }

    .sermonstack-series-archive .series-grid-thumbnail {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .sermonstack-series-archive .series-grid-thumbnail {
        display: none;
    }
}

/* Sermon Archive Template Styles - Scoped to prevent affecting other parts of the site */

.sermonstack-sermon-archive {
    min-width: 800px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
}

/* Breadcrumb Navigation */
.sermonstack-sermon-archive .sermonstack-breadcrumb {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10; /* Ensure breadcrumb is above other content */
    background: #ffffff; /* Add background to prevent overlap issues */
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for visibility */
}

.sermonstack-sermon-archive .sermonstack-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

.sermonstack-sermon-archive .sermonstack-breadcrumb li {
    color: #666;
}

.sermonstack-sermon-archive .sermonstack-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    cursor: pointer; /* Ensure links are clearly clickable */
    transition: color 0.2s ease;
}

.sermonstack-sermon-archive .sermonstack-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-sermon-archive .breadcrumb-separator {
    color: #666;
}

/* Header Section */
.sermonstack-sermon-archive .archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.sermonstack-sermon-archive .archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Filters */
.sermonstack-sermon-archive .archive-filters {
    max-width: 800px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.sermonstack-sermon-archive .archive-search,
.sermonstack-sermon-archive .archive-speaker-filter {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.sermonstack-sermon-archive .archive-search input,
.sermonstack-sermon-archive .archive-speaker-filter select {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sermonstack-sermon-archive .archive-search input:focus,
.sermonstack-sermon-archive .archive-speaker-filter select:focus {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Sermon Grid */
.sermonstack-sermon-archive .sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sermonstack-sermon-archive .sermon-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sermonstack-sermon-archive .sermon-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sermonstack-sermon-archive .sermon-grid-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.sermonstack-sermon-archive .sermon-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sermonstack-sermon-archive .sermon-grid-content {
    padding: 16px;
}

.sermonstack-sermon-archive .sermon-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.sermonstack-sermon-archive .sermon-grid-title a {
    color: #007cba;
    text-decoration: none;
}

.sermonstack-sermon-archive .sermon-grid-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-sermon-archive .sermon-grid-speakers,
.sermonstack-sermon-archive .sermon-grid-date,
.sermonstack-sermon-archive .sermon-grid-media {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sermonstack-sermon-archive .meta-label {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.sermonstack-sermon-archive .speakers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sermonstack-sermon-archive .speaker-name {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.sermonstack-sermon-archive .speaker-name:hover {
    color: #005a87;
}

.sermonstack-sermon-archive .date-value {
    color: #666;
}

.sermonstack-sermon-archive .sermon-grid-media a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.sermonstack-sermon-archive .sermon-grid-media a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sermonstack-sermon-archive .sermon-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sermonstack-sermon-archive .sermon-excerpt p {
    margin: 0;
}

/* Pagination */
.sermonstack-sermon-archive .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.sermonstack-sermon-archive .pagination .nav-links {
    display: flex;
    gap: 8px;
}

.sermonstack-sermon-archive .pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.sermonstack-sermon-archive .pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.sermonstack-sermon-archive .pagination .page-numbers:hover {
    background: #e9ecef;
}

/* No Results */
.sermonstack-sermon-archive .no-results {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sermonstack-sermon-archive {
        padding: 15px;
        min-width: 100%;
    }

    .sermonstack-sermon-archive .archive-title {
        font-size: 24px;
    }

    .sermonstack-sermon-archive .archive-filters {
        flex-direction: column;
        align-items: center;
    }

    .sermonstack-sermon-archive .archive-search,
    .sermonstack-sermon-archive .archive-speaker-filter {
        max-width: 100%;
    }

    .sermonstack-sermon-archive .sermonstack-breadcrumb {
        position: static;
        text-align: left;
        margin-bottom: 15px;
        box-shadow: none; /* Remove shadow on mobile for cleaner look */
        padding: 0;
    }

    .sermonstack-sermon-archive .sermonstack-breadcrumb ul {
        justify-content: flex-start;
    }

    .sermonstack-sermon-archive .sermon-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sermonstack-sermon-archive .archive-title {
        font-size: 20px;
    }

    .sermonstack-sermon-archive .sermon-grid-content {
        padding: 12px;
    }

    .sermonstack-sermon-archive .sermon-grid-thumbnail {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .sermonstack-sermon-archive .sermon-grid-thumbnail {
        display: none;
    }
}