/* ================================================
   ARTICLE & BLOG POST TYPOGRAPHY
   ================================================ */
.article-content {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.75;
    font-size: 1.1rem;
    max-width: 70ch;
    margin: 0 auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'DM Serif Display', serif;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.article-content h2 { 
    font-size: 2.2rem; 
    color: var(--plum); 
}

.article-content h3 { 
    font-size: 1.6rem; 
    color: var(--forest); 
}

.article-content p {
    margin-bottom: 1.6rem;
    color: #4f5f59;
}

.article-content blockquote,
.article-content .wp-block-quote {
    border-left: 3px solid var(--leaf);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--leaf-deep);
    background: transparent;
}

.article-content img,
.article-content figure,
.article-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.6rem;
    padding-left: 1.5rem;
    color: #4f5f59;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content a {
    color: var(--leaf-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--plum);
}

/* ---- Directory Card Link Fix ---- */
.practitioner-card {
    position: relative; /* Ensures the absolute link stays inside the card */
}

.card-link,
.card-image-link,
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50 !important; /* Ensure it's above other card content but below favourite button and badges */
    /* Remove default outline, but keep it accessible for keyboard users */
    outline: none; 
}

.card-link:focus-visible {
    border: 2px solid var(--forest);
    border-radius: inherit;
}

/* --- Favourite Button on Cards --- */
.favourite-btn {
    position: absolute !important;
    top: 12px;
    right: 12px;
    left: auto !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(108, 83, 109, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    z-index: 100 !important; /* Ensure it's above the card-link and badges */
}

.favourite-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.favourite-btn.active {
    background: rgba(255, 228, 233, 0.9);
}

.favourite-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    fill: none;
    transition: all 0.3s ease;
}

.favourite-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.favourite-btn.active svg {
    fill: #4A7B72; /* Sage Green */
    stroke: #4A7B72;
}



/* ================================================
   EDITORIAL MAGAZINE FILTERS & PILLS
   ================================================ */
.blog-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.blog-filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    background: #FAF8F5;
    color: var(--text-muted, #6B7280);
    border: 1px solid rgba(108, 83, 109, 0.12);
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
    background: #ffffff;
    color: var(--forest, #6C536D);
    border-color: var(--forest, #6C536D);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--forest, #6C536D);
    color: #ffffff;
    border-color: var(--forest, #6C536D);
    box-shadow: 0 4px 14px rgba(108, 83, 109, 0.25);
}

.filter-search-wrapper {
    position: relative;
    flex: 0 1 280px;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.filter-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.6;
    pointer-events: none;
    line-height: 1;
}

.filter-search-wrapper .interests-search {
    width: 100%;
    padding: 0.65rem 1.25rem 0.65rem 2.75rem;
    background: #ffffff;
    border: 1px solid rgba(108, 83, 109, 0.18);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--ink, #212523);
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(108, 83, 109, 0.04);
    box-sizing: border-box;
}

.filter-search-wrapper .interests-search:focus {
    border-color: var(--forest, #6C536D);
    box-shadow: 0 0 0 3px rgba(108, 83, 109, 0.14);
    background: #ffffff;
}

@media (max-width: 768px) {
    .blog-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .blog-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-search-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 100%;
    }
}

/* ================================================
   EQUAL HEIGHT ARTICLE CARDS FOR MAGAZINE & BLOG
   ================================================ */
#blog-grid.practitioner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    align-items: stretch; /* Cards stretch to equal height across each row */
}

#blog-grid .practitioner-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(108, 83, 109, 0.08);
    box-shadow: 0 4px 16px rgba(45, 62, 51, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease;
}

#blog-grid .practitioner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(108, 83, 109, 0.12);
    border-color: rgba(108, 83, 109, 0.2);
}

#blog-grid .practitioner-img-wrap,
.blog-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--bg-stone, #F9F8F6);
    flex-shrink: 0;
}

#blog-grid .practitioner-img,
#blog-grid .blog-card-img,
.blog-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: unset !important;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#blog-grid .practitioner-card:hover .practitioner-img,
#blog-grid .practitioner-card:hover .blog-card-img {
    transform: scale(1.05);
}

#blog-grid .practitioner-info {
    display: flex;
    flex-direction: column;
    flex: 1; /* Fills remaining height */
    padding: 1.6rem 1.5rem 1.5rem 1.5rem;
    box-sizing: border-box;
}

.card-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-meta-bar .category-tag {
    margin-bottom: 0;
}

.card-read-time {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted, #6B7280);
    letter-spacing: 0.02em;
}

#blog-grid .practitioner-info h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.28rem;
    line-height: 1.35;
    color: var(--ink, #1F2937);
    margin: 0 0 0.65rem 0;
    display: block;
    overflow: visible;
}

#blog-grid .practitioner-info p.location,
#blog-grid .practitioner-info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #5F6F69;
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(108, 83, 109, 0.08);
}

.card-date {
    font-size: 0.78rem;
    color: var(--text-muted, #6B7280);
    font-weight: 500;
}

#blog-grid .practitioner-info .profile-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--forest, #6C536D);
    letter-spacing: 0.02em;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

.arrow-glide {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#blog-grid .practitioner-card:hover .arrow-glide {
    transform: translateX(4px);
}

/* ================================================
   SHIMMER SKELETON PLACEHOLDERS
   ================================================ */
.card-skeleton {
    background: #ffffff;
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #EDE8E2;
}

.skeleton-pill {
    width: 70px;
    height: 20px;
    border-radius: 999px;
    background: #EDE8E2;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    width: 85%;
    height: 22px;
    border-radius: 4px;
    background: #EDE8E2;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    width: 100%;
    height: 14px;
    border-radius: 4px;
    background: #EDE8E2;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.shimmer {
    background: linear-gradient(90deg, #EDE8E2 0%, #F5F2EE 50%, #EDE8E2 100%);
    background-size: 200% 100%;
    animation: shimmerPulse 1.6s infinite ease-in-out;
}

@keyframes shimmerPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ================================================
   "THE WEEKLY EDIT" SUNDAY NEWSLETTER STRIP
   ================================================ */
.sunday-edit-strip {
    margin: 4.5rem 0 3rem 0;
    background: 
        radial-gradient(circle at top right, rgba(111, 148, 138, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(108, 83, 109, 0.08), transparent 50%),
        #ffffff;
    border: 1px solid rgba(108, 83, 109, 0.12);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(108, 83, 109, 0.06);
}

.sunday-edit-content {
    max-width: 600px;
    margin: 0 auto;
}

.sunday-edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(111, 148, 138, 0.12);
    color: var(--leaf-deep, #3A6860);
    border: 1px solid rgba(111, 148, 138, 0.3);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.sunday-edit-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    color: var(--forest, #6C536D);
    margin: 0 0 0.85rem 0;
    line-height: 1.2;
}

.sunday-edit-content p {
    color: #4B5563;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1.75rem 0;
}

.btn-sunday-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--forest, #6C536D);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(108, 83, 109, 0.2);
}

.btn-sunday-edit:hover {
    background: var(--forest-mid, #5B445C);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(108, 83, 109, 0.28);
}

/* ================================================
   BLOG & ARTICLE PAGES
   ================================================ */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--leaf-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}
.blog-back-link:hover {
    color: var(--plum);
}

.blog-hero-image {
    height: 100%;
    min-height: 220px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

.blog-archive-section {
    margin-top: 3rem;
}

.blog-archive-title {
    margin-bottom: 2rem;
}

.blog-loading-message {
    text-align: center;
    color: var(--text-muted);
    width: 100%;
}

.blog-footer {
    text-align: center;
    background-color: #5c465d;
    padding: 3.5rem 1.5rem 2.5rem;
    color: #ffffff;
    margin-top: 4rem;
}

.blog-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-footer-crest {
    width: 55px; height: 55px; display: block; margin: 0 auto 1.2rem auto;
    object-fit: contain; filter: grayscale(1) invert(1) brightness(1.2);
    mix-blend-mode: screen; opacity: 0.9;
}

/* --- Article Specific --- */
.article-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    color: var(--forest, #6C536D);
    margin-bottom: 1rem;
}

.article-meta-line {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.article-header .blog-back-link {
    color: var(--forest);
}

.article-body-loading {
    text-align: center;
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 24px rgba(45, 62, 51, 0.08);
}

/* ================================================
   ARTICLE EVENT NOTICE BANNER (Concluded / Past Event)
   ================================================ */
.article-event-notice {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    background: #F7F5F0;
    border: 1px solid #E0D9CE;
    border-left: 4px solid var(--forest, #3D6B63);
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-event-notice-badge {
    display: inline-flex;
    align-items: center;
    background: #EAE5DB;
    color: var(--forest, #3D6B63);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.article-event-notice-body strong {
    display: block;
    color: var(--forest, #3D6B63);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.article-event-notice-body p {
    margin: 0;
    color: var(--text-muted, #6B7280);
}

.article-event-notice-body a {
    color: var(--forest, #3D6B63);
    font-weight: 600;
    text-decoration: underline;
}

/* ================================================
   READING PROGRESS BAR
   ================================================ */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #6C536D, #3A6860);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ================================================
   ARTICLE AUTHOR SIGN-OFF
   ================================================ */
.article-author-signoff {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #FAF8F5;
    border: 1px solid rgba(108, 83, 109, 0.12);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 3.5rem 0 2rem;
}

.article-author-signoff .author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 83, 109, 0.12);
    border: 2px solid #fff;
}

.article-author-signoff .author-info {
    flex: 1;
    min-width: 0;
}

.article-author-signoff .author-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.article-author-signoff .author-info h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--forest, #6C536D);
    margin: 0;
    line-height: 1.2;
}

.author-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(108, 83, 109, 0.08);
    color: var(--forest, #6C536D);
}

.author-role-badge--guest {
    background: rgba(74, 123, 114, 0.12);
    color: #386057;
    border: 1px solid rgba(74, 123, 114, 0.2);
}

.article-author-signoff .author-info p,
.article-author-signoff .author-info p.author-bio {
    font-size: 0.88rem;
    color: #5F6F69;
    line-height: 1.55;
    margin: 0;
}

.author-profile-cta-wrap {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(108, 83, 109, 0.15);
}

.author-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--forest, #6C536D);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--forest, #6C536D);
    box-shadow: 0 2px 6px rgba(108, 83, 109, 0.2);
    transition: all 0.25s ease;
}

.author-profile-btn:hover {
    background: #553F56;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 83, 109, 0.3);
}

.author-profile-btn .arrow-glide {
    display: inline-block;
    transition: transform 0.2s ease;
}

.author-profile-btn:hover .arrow-glide {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .article-author-signoff {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    .article-author-signoff .author-avatar {
        width: 60px;
        height: 60px;
    }
}

/* ================================================
   ARTICLE SHARE BAR
   ================================================ */
.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(108, 83, 109, 0.1);
    border-bottom: 1px solid rgba(108, 83, 109, 0.1);
    margin-bottom: 3.5rem;
}

.article-share-bar .share-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-share-bar .share-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FAF8F5;
    color: #374151;
    border: 1px solid rgba(108, 83, 109, 0.15);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 83, 109, 0.15);
}

.share-btn--copy:hover { border-color: #6C536D; color: #6C536D; }
.share-btn--whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn--email:hover { border-color: #6C536D; color: #6C536D; }

/* ================================================
   EXPLORE MORE ARTICLES SECTION
   ================================================ */
.explore-more-section {
    margin: 4rem 0 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(108, 83, 109, 0.12);
}

.explore-more-section h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--forest, #6C536D);
    margin-bottom: 2rem;
    text-align: center;
}



/* ================================================
   BLOG PAGINATION
   ================================================ */
#blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand);
    background: var(--white);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--leaf);
    color: var(--forest);
}

.pagination-btn.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.pagination-btn:disabled {
    background: var(--bg-sand);
    color: var(--text-muted);
    opacity: 0.7;
    cursor: not-allowed;
}

/* ================================================
   BLOG HERO SKELETON LOADER
   ================================================ */
.blog-hero-container.skeleton-loading {
    pointer-events: none;
}

.blog-hero-container.skeleton-loading .blog-hero-skeleton {
    display: flex !important;
}

.blog-hero-container:not(.skeleton-loading) .blog-hero-skeleton {
    display: none !important;
}

.blog-hero-skeleton .shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 100%);
    background-size: 200% 100%;
    animation: shimmerPulse 1.6s infinite ease-in-out;
}

