/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.4
*/

/* Global Reset (Targeted for Performance) */
html, body, iframe {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none !important;
}

iframe {
    max-width: 100%;
    display: block;
}

/* Skip-to-Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 10px;
    background: #0066cc;
    color: #fff;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Unified Container Rule */
.ast-container,
.container {
    width: 80%;
    max-width: 1100px;
    margin: 20px auto 40px auto;  /* Top Right Bottom Left */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px 2px #A1A5AB;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    overflow: hidden;
}
/* Alternative footer spacing fix */
.site-main {
    margin-bottom: 40px !important;
}


/* Single Post Container moved to single.css */

/* Hero Banner */
.hero-cover {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: clamp(400px, 60vh, 780px);
    min-height: 400px;
    background-color: #fff;
}

.hero-cover .wp-block-cover__background {
    background: rgba(51,51,51,0.15);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-cover .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: 55% 54%;
    filter: brightness(1.25);
}

.hero-cover .wp-block-cover__inner-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 44px 20px;
}

.hero-cover .wp-block-heading {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    text-align: center;
    max-width: 95vw;
    margin: 0 0 12px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-cover .wp-block-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 95vw;
    flex-wrap: wrap;
}

.hero-cover .wp-block-button__link.cta-button {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    background-color: #1A73E8;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.hero-cover .wp-block-button__link.cta-button:hover {
    background-color: #135AB6;
}

.hero-cover .wp-block-button__link.cta-button svg {
    vertical-align: middle;
    margin-right: 4px;
    height: 1em;
    width: 1em;
    fill: currentColor;
}

/* Video Embed */
.video-embed-container {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.video-embed-container iframe {
    width: 100%;
    max-width: 900px;
    height: 506px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-embed-container iframe:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.video-caption {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Player Styles */
.player-container {
    position: relative;
    width: 100%;
    margin: 40px 0;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
    visibility: visible;
    padding-bottom: 56.25%;
    height: 0;
}

.player-container iframe.youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
    visibility: visible;
}

.player-container iframe.spotify {
    position: relative;
    padding-bottom: 0;
    height: 152px;
    width: 100%;
}

.player-controls {
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #1A73E8;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.player-controls button:hover {
    background-color: #135AB6;
}

/* Heading Section */
.heading-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px #A1A5AB;
    margin: 30px auto;
    max-width: 900px;
    animation: fadeIn 1s ease-in-out;
}

.styled-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Cards */
.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card {
    flex: 1 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px #A1A5AB;
    border: 2px solid #A1A5AB;
    transition: transform 0.3s ease;
    min-height: 250px;
}

.cta-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
}

.cta-card .cta-button {
    margin-top: auto;
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.cta-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.cta-card button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #1A73E8;
    color: #fff;
}

.cta-card button:hover {
    background-color: #135AB6;
}

.cta-card a {
    color: white;
    text-decoration: none;
}

/* Featured Content Section */
.featured-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
    max-width: 960px;
    margin: 30px auto;
}

.featured-card {
    flex: 1 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px #A1A5AB;
    border: 2px solid #A1A5AB;
    transition: transform 0.3s ease;
    min-height: 350px;
}

.featured-card .book-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

.featured-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
}

.featured-card .cta-button {
    margin-top: auto;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.featured-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.featured-card button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #1A73E8;
    color: #fff;
}

.featured-card button:hover {
    background-color: #135AB6;
}

.featured-card a {
    color: white;
    text-decoration: none;
}

/* Blog Posts Section */
.blog-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
    max-width: 960px;
    margin: 30px auto;
    overflow: hidden;
}

.blog-post-card {
    position: relative;
    flex: 0 0 calc(33.333% - 13.33px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px #A1A5AB;
    border: 2px solid #A1A5AB;
    transition: transform 0.3s ease;
    min-height: 450px;
}

.blog-post-card img {
    width: 100%;
    max-width: 280px;
    max-height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: cover;
    display: block;
}

.blog-post-card h3 {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 10px;
}

.blog-post-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #475569;
}

.blog-post-card .date {
    font-size: 0.9rem;
    color: #666;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
}

.blog-post-card a {
    text-decoration: none;
    color: inherit;
}

/* Columns */
.wp-block-columns {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
    overflow: hidden;
}

#audioPlayer {
    gap: 30px;
}

.wp-block-column {
    flex: 1;
}

.text-column {
    padding-right: 10px;
    white-space: normal;
    word-wrap: break-word;
    padding-top: 75px;
}

.player-column {
    padding-left: 10px;
}

#playlist-section .player-column {
    flex: 0 0 50%;
    margin: 0 auto;
    overflow: hidden;
}

#playlist-section .text-column {
    flex: 1;
    min-width: 0;
}

.player-caption {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin: 10px 0;
    display: block;
}

/* Post Preview Image */
.post-preview .featured-img,
.post-thumb-img-content.post-thumb.featured-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Image */
.featured-image {
    margin-bottom: 20px;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.caption {
    font-style: italic;
    text-align: center;
    color: #555;
}

/* Blog Post Content */
.blog-post {
    font-family: Arial, sans-serif;
}

.blog-post h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.blog-post h2 {
    font-size: 1.8em;
    color: #333;
    margin: 20px 0 10px;
}

.blog-post h3 {
    font-size: 1.5em;
    color: #333;
    margin: 15px 0 10px;
}

.blog-post p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px;
}

.blog-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

/* CTA Buttons & Links (Homepage & All Pages) */
.cta-button .button-link,
.cta-button > a,
.cta-card .button-link,
.cta-card > .cta-button > a,
.featured-card .button-link,
.featured-card > .cta-button > a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1A73E8;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
    margin: 0;
    box-shadow: 0 3px 8px rgba(26,115,232,0.09);
}

.cta-button .button-link:hover,
.cta-button > a:hover,
.cta-card .button-link:hover,
.cta-card > .cta-button > a:hover,
.featured-card .button-link:hover,
.featured-card > .cta-button > a:hover {
    background-color: #135AB6;
    color: #fff;
    text-decoration: none;
}

/* Search Form Styling */
.ast-page-builder-template .entry-content .podcast-container form {
    margin-bottom: 40px;
    text-align: center;
}

.ast-page-builder-template .entry-content .podcast-container input[type="text"] {
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    width: 60%;
    margin-right: 10px;
    box-sizing: border-box;
}

.ast-page-builder-template .entry-content .podcast-container button {
    padding: 10px 20px;
    background-color: #1A73E8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.2s ease;
}

.ast-page-builder-template .entry-content .podcast-container button:hover {
    background-color: #135AB6;
}

/* Podcast List Styling */
.podcast-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.podcast-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D1D5DB;
}

.podcast-list h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.8;
}

.podcast-list h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.podcast-list h2 a:hover {
    color: #1A73E8;
    text-decoration: underline;
}

.podcast-list p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Pagination Links */
.pagination {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
}

.pagination a,
.pagination span {
    margin: 0 10px;
    text-decoration: none;
    color: #1A73E8;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination .current {
    color: #333;
    font-weight: bold;
}

.pagination .dots {
    color: #6B7280;
}

.pagination-btn {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #1A73E8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 10px;
}

.pagination-btn:hover {
    background-color: #135AB6;
}

/* Share Buttons moved to single.css */
/* Blog Page Specific Styles for page-blog.php and archive.php */
.ast-container {
    width: 80%;
    max-width: 1100px;
    margin: 40px auto;
    border: 1px solid #D1D5DB;
    box-shadow: 0 0 10px #A1A5AB;
    padding: 20px;
    box-sizing: border-box;
}

.page-header,
.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.page-title {
    font-size: 2.5em;
    color: #333;
    margin: 0 0 10px;
}

.archive-description {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0 20px;
}

.archive-divider {
    border: 0;
    border-top: 1px solid #D1D5DB;
    margin: 20px auto;
    width: 50%;
}

.page-content {
    margin: 0 auto;
}

.ast-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.ast-col-sm-12.ast-col-md-4 {
    flex: 1 1 33.3333%;
    max-width: 33.3333%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

.post-content.ast-grid-common-col {
    padding: 0 10px;
}

.ast-blog-featured-section.post-thumb {
    text-align: center;
}

.post-thumb-img-content.post-thumb.featured-img {
    display: block;
    margin: 0 auto;
}

.wp-post-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.entry-title {
    font-size: 1.5em;
    font-weight: normal;
    color: #333;
    margin: 0 0 10px;
}

.entry-title a {
    font-weight: normal;
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #1A73E8;
    text-decoration: underline;
}

.ast-blog-meta-container .entry-meta {
    font-size: 0.85em;
    font-weight: normal;
    color: #555;
    margin-bottom: 10px;
}

.entry-meta .posted-by,
.entry-meta .posted-on,
.entry-meta .published {
    font-weight: normal;
    color: #555;
}

.entry-meta .posted-by a {
    font-weight: normal;
    color: #1A73E8;
    text-decoration: none;
}

.entry-meta .posted-by a:hover {
    text-decoration: underline;
}

.ast-taxonomy-container.cat-links {
    font-size: 0.9em;
    font-weight: normal;
    color: #1A73E8;
    display: block;
    margin: 5px 0 10px;
}

.ast-excerpt-container {
    font-size: 1em;
    font-weight: normal;
    color: #444;
    margin-bottom: 15px;
}

.meta-prefix {
    color: #555;
}

.no-posts {
    text-align: center;
    font-size: 1.2em;
}

/* Blog Archive Specific Styles */
.blog header {
    text-align: center;
    margin-bottom: 40px;
}

.blog header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.blog header p {
    font-size: 1.2em;
    color: #555;
}

.blog .custom-header {
    position: static;
    background: rgba(249, 249, 0.95);
    padding: 15px 20px;
    border-bottom: 1px solid #D1D5DB;
    box-shadow: 0 2px 4px rgba(161, 165, 171, 0.2);
}

.blog .search-container {
    margin: 0 auto;
    max-width: 500px;
    display: flex;
    gap: 10px;
}

.blog .search-container input[type="text"] {
    flex: 1;
    padding: 4px;
    border: 4px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
}

.blog .search-container .search-button {
    padding: 10px 20px;
    background-color: #1A73E8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.blog .search-container .search-button:hover {
    background-color: #135AB6;
}

.blog .search-container {
    background-color: #333;
    color: #fff;
}

.blog .page-content,
.blog .page-title-section,
.blog .page-title-section .page-title,
.blog .page-title-section p {
    display: block;
    visibility: visible;
}

.blog .page-title-section {
    text-align: center;
    margin: 40px 0 60px;
    padding: 20px;
}

.blog .page-title-section .page-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog .page-title-section p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    max-width: 714px;
    margin: 0 auto;
}

.blog .divider {
    border: none;
    border-top: 1px solid #d1d1d5;
    margin: 20px 0;
}

.blog .wp-block-columns {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.blog .wp-block-column.blog-posts {
    flex: 1;
}

.blog .wp-block-column.sidebar {
    flex: none;
    max-width: 300px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 0px 15px 2px #A1A5AB;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
}

.blog .sidebar h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.blog .sidebar p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog .cta-button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background-color: #1A73E8;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    margin: 10px 0;
    text-align: center;
}

.blog .cta-button:hover {
    background-color: #135AB6;
}

.blog .categories {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 0px 15px 2px #A1A5AB;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
}

.blog .categories h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.blog .categories ul {
    list-style: none;
    padding: 0;
}

.blog .categories li {
    margin-bottom: 10px;
}

.blog .categories a {
    color: #1A73E8;
    text-decoration: none;
}

.blog .categories a:hover {
    color: #135AB6;
    text-decoration: underline;
}

.blog .pagination {
    text-align: center;
    margin: 20px 0;
}

.blog .wp-block-buttons {
    text-align: center;
    margin: 40px 0;
}

.blog .ast-header,
.blog .ast-primary-header-bar {
    z-index: 99;
}

.blog .ast-footer,
.blog .site-footer,
.blog #colophon {
    position: relative;
    z-index: 0;
    margin-top: 50px;
}

/* Desktop Header Styling */
@media (min-width: 769px) {
    #ast-desktop-header.site-header {
        z-index: 10000;
        background: #ffffff;
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #ast-desktop-header .header-wrapper {
        width: 99%;
        max-width: 1400px;
        margin: 0 auto;
        border: 1px solid #D1D5DB;
        border-radius: 10px;
        box-shadow: 0 0 15px 2px #A1A5AB;
        padding: 20px;
        background: #ffffff;
    }

    #ast-desktop-header .header-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    #ast-desktop-header .header-top-plane {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
    }

    #ast-desktop-header .header-logo-title {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    #ast-desktop-header .custom-logo {
        max-height: 160px;
        width: auto;
        display: block;
    }

    #ast-desktop-header .site-title {
        margin: 0;
        font-size: 32px;
        font-weight: 700;
        color: #222222;
        line-height: 1.2;
    }

    #ast-desktop-header .site-tagline {
        margin: 5px 0 0 0;
        font-size: 16px;
        color: #666666;
        font-style: italic;
    }

    #ast-desktop-header .ast-builder-menu-1 {
        position: relative;
    }

    #ast-desktop-header .menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    #ast-desktop-header .menu-item {
        position: relative;
        flex: 0 0 auto;
    }

    #ast-desktop-header .menu-item a {
        display: inline-block;
        padding: 10px 15px;
        color: #222222;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        background: #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        min-width: 120px;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #ast-desktop-header .menu-item a:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

    #ast-desktop-header .menu-item-has-children {
        position: relative;
    }

    #ast-desktop-header .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 5px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat center;
        background-size: contain;
        vertical-align: middle;
    }

    #ast-desktop-header .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: 0 0 15px 2px #A1A5AB;
        z-index: 9999;
        min-width: 200px;
        list-style: none;
        margin: 0;
        padding: 10px 0;
        border-radius: 8px;
    }

    #ast-desktop-header .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    #ast-desktop-header .sub-menu li {
        padding: 0;
    }

    #ast-desktop-header .sub-menu li a {
        display: block;
        padding: 8px 15px;
        color: #444444;
        font-size: 14px;
        background: #f5f5f5;
        border-radius: 0;
        box-shadow: none;
        transition: background 0.3s ease;
        min-width: 0;
        height: auto;
    }

    #ast-desktop-header .sub-menu li a:hover {
        background: #D1D5DB;
    }

    #ast-desktop-header .header-middle-plane {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
    }

    #ast-desktop-header .header-bottom-plane {
        display: flex;
        align-items: center;
        padding: 5px 0;
    }

    #ast-desktop-header .header-breadcrumbs {
        font-size: 12px;
        color: #666666;
    }

    #ast-desktop-header .header-breadcrumbs a {
        color: #1A73E8;
        text-decoration: none;
        margin-right: 5px;
    }

    #ast-desktop-header .header-breadcrumbs a:hover {
        text-decoration: underline;
    }
}

/* Responsive Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .ast-container,
    .container {
        width: 90%;
        padding: 30px 15px;
    }

    .ast-col-sm-12.ast-col-md-4 {
        flex: 1 1 50%;
        max-width: 50%;
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .ast-container,
    .container,
    .single .container {
        width: 90%;
        margin: 15px auto;
        padding: 15px;
    }

    .page-header h1,
    .page-title {
        font-size: 2em;
    }

    .archive-description {
        font-size: 1em;
    }

    .pagination {
        font-size: 1em;
    }

    .pagination-btn {
        padding: 8px 15px;
        font-size: 1em;
    }

    .ast-row {
        margin: -5px;
    }

    .ast-col-sm-12.ast-col-md-4 {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .hero-cover {
        height: clamp(200px, 40vh, 380px);
    }

    .hero-cover .wp-block-cover__image-background {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: 50% 50%;
    }

    .hero-cover .wp-block-cover__background {
        background: rgba(51,51,51,0.15);
    }

    .hero-cover .wp-block-cover__inner-container {
        padding: 0 12px 20px 12px;
    }

    .hero-cover .wp-block-heading {
        max-width: 95vw;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .hero-cover .wp-block-buttons {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        max-width: 95vw;
        justify-content: center;
    }

    .hero-cover .wp-block-button__link.cta-button {
        font-size: 0.97rem;
        padding: 8px 12px;
    }

    .video-embed-container iframe {
        height: 220px;
    }

    .player-container {
        margin: 16px 0;
    }

    .player-container iframe.youtube {
        width: 100%;
        height: 100%;
    }

    .player-container iframe.spotify {
        height: 152px;
        width: 100%;
    }

    .cta-card,
    .featured-card,
    .blog-post-card {
        flex: 1 0 100%;
        min-height: 400px;
    }

    .blog-post-card img {
        max-height: 180px;
    }

    .styled-heading {
        font-size: 1.25rem;
    }

    .wp-block-columns {
        flex-direction: column;
        gap: 10px;
    }

    .text-column {
        padding-right: 0;
        padding-top: 0;
    }

    .player-column {
        padding-left: 0;
    }

    #playlist-section .player-column {
        flex: 1 1 100%;
    }

    #audioPlayer {
        gap: 10px;
    }

    .player-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    body,
    button,
    input,
    select,
    textarea,
    .wp-block-button__link,
    .styled-heading,
    .player-caption {
        font-size: 17px;
    }

    .blog-post h1 {
        font-size: 2em;
    }

    .blog-post h2 {
        font-size: 1.5em;
    }

    .blog-post h3 {
        font-size: 1.3em;
    }

    .blog-post p {
        font-size: 1em;
    }

    .ast-page-builder-template .entry-content .podcast-container input[type="text"] {
        width: 70%;
    }

    .share-buttons a {
        padding: 8px;
        font-size: 0.85rem;
    }

    .share-icon,
    .three-dots-icon {
        width: 18px;
    }

    .copy-message {
        font-size: 0;
        margin-top: 6px;
    }

    .more-share-options {
        min-width: 305px;
    }

    .more-share-options li a {
        padding: 8px 12px;
        font-size: 16px;
    }

    .blog header h1 {
        font-size: 2em;
        margin-bottom: 8px;
    }

    .blog .wp-block-columns {
        margin-bottom: 20px;
    }

    .blog .wp-block-column.blog-posts,
    .blog .wp-block-column.sidebar {
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .blog .categories {
        margin-top: 20px;
        padding-bottom: 0px;
    }

    .blog .page-title-section {
        margin: 20px 0 40px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .blog .page-title-section p {
        font-size: 16px;
    }

    .blog .ast-footer,
    .site-footer,
    #colophon {
        margin-top: 25px;
    }
}

/* Extra Small Screens Adjustment */
@media (max-width: 480px) {
    .ast-col-sm .item {
        flex: 0 calc(100% - 33px);
        max-width: calc(600px - 33px);
    }

    .post-preview .featured-img {
        width: auto;
        height: auto;
        max-width: 300px;
        max-height: 300px;
        object-fit: cover;
        margin-bottom: 15px;
    }

    .blog-post-card img {
        max-height: 150px;
    }
    /* No Additional CSS needed; styles moved to single.css */
    /* Share Buttons moved to single.css for single posts */
    }
    /* === SHARE BUTTONS (Duplicated from single.css for podcast pages) === */
.share-buttons {
    margin: 24px 0 16px;
    text-align: center;
}

.share-buttons-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-buttons-list li {
    display: inline-block;
    margin: 0;
}

.share-buttons a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    color: #fff !important;
    gap: 8px;
    transition: background 0.18s, color 0.2s;
    border: none;
    outline: none;
    height: 44px;
    line-height: 1.1;
}

/* Smaller icons for main buttons */
.share-facebook .share-icon,
.share-x .share-icon,
.share-instagram .share-icon {
    fill: #fff !important;
    width: 18px;
    height: 18px;
}

/* Brand Colors - WITH !important to override Astra */
.share-facebook a {
    background: #1877F2 !important;
}
.share-x a {
    background: #000000 !important;
}
.share-instagram a {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737) !important;
}
.share-facebook a:hover {
    background: #1258b0 !important;
}
.share-x a:hover {
    background: #333 !important;
}
.share-instagram a:hover {
    background: #d6249f !important;
}

/* 'More' Menu Button */
.share-more {
    position: relative;
}
.share-more a.button,
.share-more a {
    background: #F3F4F6 !important;
    border: 1px solid #9CA3AF !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    height: 44px;
    font-size: 0.9em;
}
.share-more a.button:hover,
.share-more a:hover {
    background: #E5E8EB !important;
    color: #333 !important;
}
.share-more .three-dots-icon {
    fill: #333 !important;
    width: 18px;
    height: 18px;
    margin-left: 5px;
}

/* --- MORE SHARE OPTIONS POPUP --- */
.more-share-options {
    display: none;
    opacity: 0;
    transition: opacity 0.22s, display 0s 0.22s;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 220px;
    background: #fff !important;
    border: 5px solid #D1D5DB;
    border-radius: 10px;
    box-shadow: 0 0px 15px 2px #A1A5AB;
    margin-top: 8px;
}
.more-share-options.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.21s;
}

/* Options List */
.more-share-options-list {
    list-style: none;
    margin: 0;
    padding: 12px;
}
.more-share-options-list li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 5px;
    font-size: 1em;
    color: #333 !important;
    text-decoration: none;
    gap: 9px;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-weight: normal;
    transition: background 0.16s, color 0.18s;
    min-height: 44px;
}
.more-share-options-list li a:hover {
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    color: #333 !important;
}
.more-share-options-list li a .share-icon {
    fill: #333 !important;
    vertical-align: middle;
    margin-right: 10px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Copy Message for Instagram */
.copy-message {
    display: inline-block;
    margin-left: 8px;
    color: #fff !important;
    background: #d6249f !important;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.95em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.copy-message.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Adjustments for Share Buttons */
@media (max-width: 480px) {
    .more-share-options {
        position: absolute !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
    }
    .share-buttons-list {
        flex-direction: column;
        gap: 8px;
    }
}
.button-link {
    background: #1A73E8;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}
.button-link:hover {
    background: #135AB6;
    color: #fff;
}
/* === FORCE HIDE VISIBLE [newsletter] TEXT WHEN SHORTCODE IS DISABLED === */
body * {
  /* Hide any element that literally contains [newsletter] */
  visibility: visible;
}
body *:before,
body *:after {
  content: none !important;
}

body * {
  /* hide inline text nodes containing "[newsletter]" */
}
body:has(:not(script):not(style):not(noscript):contains("[newsletter]")) *:contains("[newsletter]") {
  display: none !important;
}

/* fallback: brute force */
body:contains("[newsletter]") {
  color: transparent !important;
  font-size: 0 !important;
}
