/*
Theme Name: Live Church
Theme URI: https://example.com/live-church-theme
Author: Christo Innocent
Author URI: https://example.com/christo-innocent
Description: A highly customized Single Page Application (SPA) WordPress theme designed for live ministry and media content.
Version: 1.0.0
Text Domain: live-church
Tags: one-column, custom-menu, custom-header, full-width-template, responsive-layout, accessibility-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap');

:root {
    --color-primary: #59167e;
    --color-accent: #f7a01d;
    --color-accent-bg: #fea916;
    --color-label-bg: #d37f00;
    --color-marquee-text: #3e2f11;
    --color-bg-light: #eff3fe;
    --color-bg-dark: #3a0058;
    --color-sidebar-bg: #8c54c3;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-bg-dark);
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: hidden !important;
    height: auto !important;
    display: block !important;
    flex-direction: unset !important;
}

/* Main Content Window */
.main-content {
    box-sizing: border-box !important;
    padding: 20px !important; /* Desktop padding */
}

@media (max-width:599px){

	/* Main content */
	#main-content{
		padding-left:20px !important;
		
	}
	
}

/* Main content */
#main-content {
    padding-right: 50px !important;
    padding-left: 40px !important;
}

/* 599px and smaller screen sizes */
@media (max-width: 599px) {
    /* Main content */
    #main-content {
        padding-left: 0px !important;
    }
}

/* 600px and smaller screen sizes */
@media (max-width: 600px) {
    /* Main content */
    #main-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
   
    }


#page-title {
    margin-left: 35px !important;
    margin-bottom: 15px !important;
    margin-top: 40px !important;
    font-size: 28px;
    font-weight: 700;
}


#dynamic-content-container {
    padding: 0 20px;
}

.content-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.blog-post-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 24px;
    margin-bottom: 20px;
}

footer {
    margin-top: 45px;
    margin-bottom: 45px; /* Ensure footer text is fully visible */
    padding: 16px 20px;
    text-align: center;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background-color: var(--color-accent-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    padding: 0;
    font-weight: 700;
    font-size: 14px;
}

.top-announcement-bar .label {
    position: relative;
    z-index: 60;
    padding: 0 20px;
    background-color: var(--color-label-bg);
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative; 
    display: flex; 
    align-items: center; 
    min-height: 100%; 
}

/* Original marquee content style - Adjusted for seamless loop */
.marquee-content {
    display: inline-block; 
    white-space: nowrap;
    /* padding-left: 100%; REMOVED - Using duplicate content */
    animation-name: scrolling;
    animation-duration: 105s; /* SLOWED DOWN FURTHER */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: 2s; /* ADDED DELAY */
    color: var(--color-marquee-text);
    will-change: transform;
    font-weight: 700;
    padding-right: 40px; 
}

/* Remove ticker-specific styles */
.announcement-item,
.announcement-item.active,
.announcement-item.scrolling-announcement {
   display: none; 
}

/* Restore scrolling animation - Adjusted for seamless loop */
@keyframes scrolling {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); } /* Scrolls left by the width of ONE content span */
}

/* Remove scroll-text animation */
@keyframes scroll-text {
   /* No longer needed */
}


.top-announcement-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -43px;
    width: 190px;
    height: 100%;
    background: linear-gradient(to right, var(--color-label-bg) 90px, rgba(211, 127, 0, 0) 190px);
    z-index: 55;
    pointer-events: none;
}

.top-announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(to left, var(--color-accent-bg), rgba(254, 169, 22, 0));
    z-index: 55;
    pointer-events: none;
}

/* Header */
.header {
    background-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Left Navigation */
.left-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 80px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--color-primary);
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-item {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #848ea8;
    position: static;
    background-color: #eff3fe;
}

.nav-item.active {
    color: #ffffff;
    background-color: #d37f00;
    position: relative;
}

.nav-item:hover:not(.active) {
    color: #3a0058;
    background-color: #efb969;
}

.left-nav > .nav-item {
    border-radius: 0 !important;
}

.left-nav > .nav-item:first-child {
    border-top-right-radius: 20px !important;
}

.left-nav > .nav-item:last-child {
    border-bottom-right-radius: 20px !important;
}

.left-nav > .nav-item:first-child.active,
.left-nav > .nav-item:first-child:hover:not(.active) {
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 0 !important;
}

.left-nav > .nav-item:last-child.active,
.left-nav > .nav-item:last-child:hover:not(.active) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 20px !important;
}

/* Right Sidebar */
.right-sidebar {
    color: #333;
    /* Allow transitions defined in right-sidebar.css to control animations. */
}

#sidebar-content-container {
    height: 100%;
    background-color: var(--color-bg-light);
    border-radius: 10px 0 0 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#sidebar-content-container::-webkit-scrollbar {
    width: 12px;
    background-color: var(--color-bg-light);
}

#sidebar-content-container::-webkit-scrollbar-track {
    background-color: #e0e6f8;
    border-radius: 10px;
}

#sidebar-content-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 10px;
    border: 3px solid var(--color-bg-light);
}

.sidebar-view-padding {
    padding: 20px 25px 20px 20px;
}

.vertical-tab {
    width: 140px;
    padding: 10px 5px;
    transform: rotate(-90deg) translate(-100%, 0);
    transform-origin: top left;
    position: absolute;
    left: -37px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    z-index: 100;
    border-radius: 0 !important;
    background-color: transparent !important;
}

.vertical-tab.comments { top: 0px; z-index: 13; }
.vertical-tab.about { top: 140px; z-index: 12; }
.vertical-tab.info { top: 280px; z-index: 11; }

#tab-comments.active-sidebar-tab {
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0px !important;
    border-top-left-radius: 15px !important;
    background-color: var(--color-bg-light) !important;
    color: var(--color-primary) !important;
    box-shadow: none;
    opacity: 1;
    z-index: 20;
}

#tab-about.active-sidebar-tab,
#tab-info.active-sidebar-tab {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    background-color: var(--color-bg-light) !important;
    color: var(--color-primary) !important;
    box-shadow: none;
    opacity: 1;
    z-index: 20;
}

.live-video-placeholder {
    min-height: 400px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.mobile-tab-btn {
    background-color: white;
    color: var(--color-primary);
    padding: 15px 0;
    flex: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: all 0.1s;
    font-size: 15px;
    font-weight: 700;
}

.mobile-tab-btn.active-mobile-tab {
    border-bottom-color: var(--color-accent);
    color: var(--color-primary);
    background-color: #f0f4ff;
}

/* Desktop and Tablet */
@media (min-width: 600px) {
    .left-nav {
        display: flex;
        transform: translateY(-50%) translateX(-30px);
    }
    .left-nav:hover {
        transform: translateY(-50%) translateX(0);
    }
    .right-sidebar {
        transform: translateX(0) !important;
        position: relative !important;
    }
    .vertical-tab {
        display: block !important;
        position: absolute !important;
        transform: rotate(-90deg) translate(-100%, 0);
        transform-origin: top left;
        left: -37px;
        grid-column: unset !important;
    }
    .mobile-sidebar-nav,
    .mobile-toggle-btn,
    .mobile-sidebar-header {
        display: none !important;
    }
}

@media (max-width: 599px) {
    .left-nav .nav-item,
    .left-nav .nav-item:hover,
    .left-nav .nav-item.active,
    .left-nav .nav-item:hover:not(.active),
    .left-nav .nav-item:first-child,
    .left-nav .nav-item:last-child,
    .left-nav .nav-item:first-child.active,
    .left-nav .nav-item:last-child.active,
    .left-nav .nav-item:first-child:hover:not(.active),
    .left-nav .nav-item:last-child:hover:not(.active) {
        border-radius: 0 !important;
    }
}

@media (max-width:600px){

	/* Font Icon */
	.left-nav .justify-center i{
		font-size:20px;
		line-height:25px;
	}
	
	/* Span Tag */
	.left-nav .justify-center span{
		line-height:1em;
	}
	
   .left-nav {
        height: 65px !important;
    }
    .left-nav .nav-item {
        height: 65px !important;
    }
    .main-content {
        padding-bottom: 65px !important;
    }
    .main-content.nav-hidden {
        padding-bottom: 0 !important;
    }
    
	.main-layout nav{
		height:65px !important;
		

}

/* Mobile Responsiveness */
@media (max-width: 599px) {
    .top-announcement-bar {
        position: fixed !important;
        top: 0 !important;
        width: 100vw !important;
        height: 40px !important;
        z-index: 100 !important;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    .top-announcement-bar .label span {
        display: none;
    }
    .top-announcement-bar .label {
        padding: 0 20px;
        width: auto;
    }
    #main-header {
        position: fixed !important;
        top: 40px !important;
        left: 0 !important;
        width: 100vw !important;
        height: 80px !important;
        z-index: 99 !important;
        transition: transform 0.3s ease-in-out !important;
    }
    #main-header.slide-up {
        transform: translateY(-100%) !important;
    }
    .left-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        width: 100vw !important;
        height: 80px !important; /* Change to 60px if Bottom Nav is 60px */
        z-index: 99 !important;
        transform: translateY(0) !important;
        transition: transform 0.3s ease-in-out !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: stretch !important;
        border-radius: 0 !important;
    }
    .left-nav .nav-item {
        flex: 1 !important;
        border-radius: 0 !important;
    }
    .left-nav .nav-item:first-child,
    .left-nav .nav-item:last-child,
    .left-nav .nav-item.active,
    .left-nav .nav-item:hover:not(.active) {
        border-radius: 0 !important;
    }
    .left-nav.slide-down {
        transform: translateY(100%) !important;
    }

    /* If the nav is aria-locked, do not allow slide-down to hide it */
    .left-nav[aria-locked="true"].slide-down {
        transform: translateY(0) !important;
        transition: none !important; /* avoid flicker during open/close */
    }
    .main-content {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        position: relative !important;
        height: 100vh !important;
        padding-top: 120px !important;
        padding-bottom: 80px !important; /* Change to 60px if Bottom Nav is 60px */
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;

    /* No emergency override in place — restored normal behavior for aria-locked nav. */
        overflow-y: auto !important;
        z-index: 1 !important;
        transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out !important;
    }
    .main-content.header-hidden {
        padding-top: 40px !important;
    }
    .main-content.nav-hidden {
        padding-bottom: 0 !important;
    }
    .main-content.nav-hidden footer {
        margin-bottom: 40px !important; /* Ensure footer text is visible */
    }
    .main-layout {
        overflow: hidden !important;
    }
    .mobile-toggle-btn {
        display: block !important;
    }
    .vertical-tab {
        display: none !important;
    }
    .mobile-sidebar-nav {
        display: flex !important;
    }
    #desktop-viewers-bar {
        display: none !important;
    }
    #mobile-viewers-bar {
        display: flex !important;
        justify-content: space-between;
        padding: 0 15px;
    }
    .mobile-close-btn {
        display: block;
        background-color: transparent;
        border-radius: 50%;
        color: white;
        padding: 8px;
        transition: background-color 0.2s, color 0.2s;
    }
    .mobile-close-btn:hover {
        background-color: white;
        color: var(--color-primary);
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-sidebar-header {
        display: flex;
    }
    .right-sidebar {
        grid-column: unset;
        grid-row: 1 / 4;
        width: calc(100vw - 30px);
        height: 100vh;
        z-index: 100;
        position: fixed !important;
        right: calc(0px - (100vw - 30px));
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
        transform: translateX(0);
    }
    .right-sidebar.open {
        right: 0 !important;
    }
    #sidebar-backdrop.visible {
        display: block !important;
        pointer-events: auto;
    }
    #sidebar-content-container {
        border-radius: 0 !important;
    }
    #page-title {
        margin: 20px 0 20px !important;
    }
    #dynamic-content-container {
        padding: 0;
    }
    footer {
        margin-top: 32px;
        margin-bottom: 40px; /* Ensure footer text is visible */
        padding: 16px 0;
    }

    /* --- Single Post Mobile View --- */
    #main-content.single-post-view {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #main-content.single-post-view .single-post-content .content-card {
        border-radius: 0;
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    #main-content.single-post-view footer {
        display: none;
    }
    #main-content.single-post-view .single-post-content {
        margin-top: 0 !important;
    }

}

}

/* 600px and smaller screen sizes */
@media (max-width: 600px) {
    /* Main header */
    #main-header {
        height: 65px !important;
    }
    /* Main content */
    .main-content {
        padding-top: 105px !important; /* 40px (announcement bar) + 65px (header) */
    }
    .main-content.header-hidden {
        padding-top: 40px !important; /* Only announcement bar when header is hidden */
    }
}

/* Remove shadow from right sidebar on mobile */
@media (max-width: 599px) {
    .right-sidebar {
        box-shadow: none !important;
    }
}

/* **FIX 2: Removed hover effect from mobile header toggle button.** */


    /* Mobile close */
	#mobile-viewers-bar .mobile-close-btn{
		border-top-left-radius:50%;
		border-top-right-radius:50%;
		border-bottom-left-radius:50%;
		border-bottom-right-radius:50%;
		padding-left:12px;
		padding-right:11px;
		padding-top:5px;
		padding-bottom:5px;
	}

	/* Mobile close (hover) */
	#mobile-viewers-bar .mobile-close-btn:hover{
		background-color:rgba(252,252,252,0.18);
		color:#ffffff;
		
	}


    /* 600px and smaller screen sizes */
@media (max-width:600px){
	
	/* Page title */
	#page-title{
		transform:translatex(0px) translatey(0px);
		font-size:23px;
		margin-top:40px !important;
		margin-bottom:10px !important;
		margin-left:25px !important;
        margin-right:25px !important;
        line-height:30px;
	}

    /* **FIX 1: Mobile styles for blog/archive titles** */
    #dynamic-content-container .blog-listing-loaded > h2 {
        margin: 20px 25px !important;
        font-size:23px;
        line-height:30px;
        font-weight: 700;
    }

}

/* Article */
#dynamic-content-container .grid article{
	border-top-right-radius:20px;
	border-top-left-radius:20px;
	border-bottom-right-radius:20px;
	border-bottom-left-radius:20px;
	background-color:#ffffff;
	
}

.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.col-span-2 {
    grid-column: span 2 / span 2;
}
@media (max-width: 599px) {
    .col-span-2 {
        grid-column: span 1 / span 1;
    }
}
.h-60 {
    height: 15rem;
}
.p-4 {
    padding: 1rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.col-span-1 {
    grid-column: span 1 / span 1;
}
@media (min-width: 600px) {
    .col-span-1.md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
.h-60 {
    height: 15rem;
}
.p-6 {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:h-72 {
        height: 18rem;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .md\:mt-6 {
        margin-top: 1.5rem;
    }
    .md\:mt-3 {
        margin-top: 0.75rem;
    }
    .md\:mb-3 {
        margin-bottom: 0.75rem;
    }
}
.mt-4 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-white {
    color: #ffffff;
}


.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.col-span-1 {
    grid-column: span 1 / span 1;
}
@media (min-width: 600px) {
    .col-span-1.md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
.h-60 {
    height: 15rem;
}
.p-6 {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:h-72 {
        height: 18rem;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .md\:mt-6 {
        margin-top: 1.5rem;
    }
    .md\:mt-3 {
        margin-top: 0.75rem;
    }
    .md\:mb-3 {
        margin-bottom: 0.75rem;
    }
}
.mt-4 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-white {
    color: #ffffff;
}
.relative {
    position: relative;
}

.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.col-span-1 {
    grid-column: span 1 / span 1;
}
@media (min-width: 600px) {
    .col-span-1.md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
.h-60 {
    height: 15rem;
}
.p-6 {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:h-72 {
        height: 18rem;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .md\:mt-6 {
        margin-top: 1.5rem;
    }
    .md\:mt-3 {
        margin-top: 0.75rem;
    }
    .md\:mb-3 {
        margin-bottom: 0.75rem;
    }
}
.mt-4 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-white {
    color: #ffffff;
}
.relative {
    position: relative;
}
.rounded-xl {
    border-radius: 10px;
}


.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.col-span-1 {
    grid-column: span 1 / span 1;
}
@media (min-width: 600px) {
    .col-span-1.md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
.h-60 {
    height: 15rem;
}
.p-6 {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .md\:p-8 {
        padding: 2rem;
    }
    .md\:h-72 {
        height: 18rem;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .md\:mt-6 {
        margin-top: 1.5rem;
    }
    .md\:mt-3 {
        margin-top: 0.75rem;
    }
    .md\:mb-3 {
        margin-bottom: 0.75rem;
    }
}
.mt-4 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-white {
    color: #ffffff;
}
.relative {
    position: relative;
}
.rounded-xl {
    border-radius: 10px;
}

#main-header .md\\:hidden:hover,
#main-header .mobile-toggle-btn:hover {
    background-color: transparent !important;
}

.text-white {
    color: #ffffff;
}
.relative {
    position: relative;
}
.rounded-xl {
    border-radius: 10px;
}

/* * We need to add this icon class to our stylesheet 
 * because 'fa-hand-paper-o' is from Font Awesome 4/5.
 * The modern equivalent in FA6 (which we load) is 'fa-regular fa-hand'.
 * The PHP template is already updated to use 'fa-regular fa-hand'.
 * No CSS changes are strictly needed here if the Font Awesome
 * library is loaded correctly in header.php (which it is).
 */

#main-header .md\\:hidden:hover,
#main-header .mobile-toggle-btn:hover {
/* ... existing code ... */
}


/* Services Archive Custom Styles */
.service-card {
    border: none; /* Borderless by default */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Faint shadow */
    background: transparent; /* Ensure no white background */
}

.service-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow on hover */
}

.service-card .fas.fa-play-circle {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #ffb42a; /* Theme's gold color on hover */
}

.service-card:hover .fas.fa-play-circle {
    transform: scale(1.1);
    color: #ffc558; /* Theme's gold color on hover */
}

/* Ensure aspect ratio is enforced */
.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

/* Date stack styling */
.date-stack {
    line-height: 1; /* Reduced to 1.0 */
}

/* Subtitle styling */
.service-card h4 {
    font-size: 1.050rem; /* Reduced from 1.125rem (approx. 2pt less) */
    color: #ffffff9d; /* Grayish-white (Tailwind gray-300) */
    font-weight: 500; /* Medium weight for subtitle */
    line-height: 1; /* Reduced to 1.0 */
}

/* Responsive adjustments */
@media (max-width: 1023px) { /* Tablet (md breakpoint) */
    .grid-cols-1.md\:grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 767px) { /* Mobile */
    /* Scale down text and icons proportionately */
    .service-card h3 {
        font-size: 1.25rem; /* Reduced from 1.5rem */
    }

    .service-card h4 {
        font-size: 0.90rem; /* Reduced from 1rem */
        line-height: 1; /* Maintain 1.0 */
    }

    .service-card p {
        font-size: 0.75rem; /* Reduced from 0.875rem */
    }

    .service-card .fas.fa-play-circle {
        font-size: 1.875rem; /* Reduced from 2.25rem */
    }

    .service-card .text-6xl {
        font-size: 3rem; /* Reduced from 4rem */
    }

    .service-card .text-xl {
        font-size: 1.125rem; /* Reduced from 1.25rem */
        line-height: 1; /* Reduced to 1.0 */
    }

    .service-card .p-6 {
        padding: 1rem; /* Reduced from 1.5rem */
    }

    .service-card .bottom-6 {
        bottom: 1rem; /* Reduced from 1.5rem */
    }

    .service-card .right-6 {
        right: 1rem; /* Reduced from 1.5rem */
    }

    /* Reduce vertical space between day and month, ensure symmetry */
    .date-stack {
        gap: 0.25rem; /* Reduced vertical space */
        line-height: 1; /* Maintain 1.0 */
    }

    .date-stack span {
        font-size: 1.125rem; /* Match height with date number */
        line-height: 1; /* Reduced to 1.0 */
        display: block; /* Ensure each span takes its own line */
    }
}

/* Make Rhapsody & all blog/archive titles use the same styling as pages.
   Only apply when NOT viewing a single post (prevents single-post title changes). */
body:not(.single) #main-content:not(.single-post-view) #dynamic-content-container .page-title,
body:not(.single) #main-content:not(.single-post-view) #dynamic-content-container .archive-title,
body:not(.single) #main-content:not(.single-post-view) #dynamic-content-container .entry-title,
body:not(.single) #main-content:not(.single-post-view) .post-type-archive .page-title,
body:not(.single) #main-content:not(.single-post-view) .post-type-archive-rhapsody .page-title,
body:not(.single) #main-content:not(.single-post-view) .rhapsody-archive-title,
body:not(.single) #main-content:not(.single-post-view) .archive-rhapsody h2,
body:not(.single) #main-content:not(.single-post-view) .blog-listing-loaded > h2,
body:not(.single) #main-content:not(.single-post-view) .category .page-title,
body:not(.single) #main-content:not(.single-post-view) .tag .page-title,
body:not(.single) #main-content:not(.single-post-view) .author .page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
    margin-left: 35px !important;
    margin-right: 35px !important;
    color: inherit !important;
    display: block !important;
}

/* Ensure single posts keep their native title styling (defensive) */
body.single #main-content.single-post-view #dynamic-content-container .entry-title,
body.single #main-content.single-post-view #dynamic-content-container h1,
body.single .single .entry-title {
    text-transform: none !important;
    font-size: unset !important;
    font-weight: unset !important;
    line-height: unset !important;
    margin-top: unset !important;
    margin-bottom: unset !important;
    margin-left: unset !important;
    margin-right: unset !important;
    text-align: unset !important;
}

/* SINGLE POSTS: full-bleed content card for blog, messages, rhapsody single views.
   Scoped to #main-content.single-post-view so listings/archives are unaffected. */
#main-content.single-post-view {
    /* remove outer padding so content can reach viewport edges */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Make the white content frame full-width and full-height */
#main-content.single-post-view .content-card,
#main-content.single-post-view .blog-post-card,
#main-content.single-post-view .single-post-content .content-card,
#main-content.single-post-view .single-post-content .blog-post-card {
    /* full-viewport width using the centered negative-margin pattern */
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;

    /* remove rounded corners and internal spacing */
    border-radius: 0 !important;
    padding: 0 !important;

    /* ensure the white frame covers the viewport vertically so background doesn't show */
    min-height: 100vh !important;
    box-sizing: border-box !important;

    /* add the requested extra bottom space */
    padding-bottom: 150px !important;

    /* force a solid white background so underlying page background is hidden */
    background-color: #ffffff !important;
    color: #111 !important;

    /* remove shadow so the white frame visually touches the edges */
    box-shadow: none !important;
}

/* If inner wrappers exist that expect padding, you can reintroduce internal spacing
   inside them (so the card itself is full-bleed but content remains readable). Example:
   #main-content.single-post-view .content-card > .inner { padding: 24px; }
   Add such rule if your templates use an inner container. */

/* Defensive safety: don't affect non-single views */
body:not(.single) #main-content:not(.single-post-view) .content-card,
body:not(.single) #main-content:not(.single-post-view) .blog-post-card {
    /* ...existing code preserved ... */
}

/* STRONG: Full-bleed single-post card — applied only for SPA single views and classic single pages.
   Ensures the white card reaches both edges, removes radius/padding, adds 150px bottom space,
   and forces the card to cover the viewport so the background is not seen. */
body.single #main-content.single-post-view,
#main-content.single-post-view,
body.single #main-content,
#main-content.single-post-view .single-post-content,
#main-content.single-post-view article.post,
#main-content.single-post-view .entry-content,
#main-content.single-post-view .content-card,
#main-content.single-post-view .blog-post-card,
body.single .content-card,
body.single .blog-post-card {
    /* remove outer/main padding so we can bleed to edges */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make the "card" itself truly full-bleed and cover viewport height */
#main-content.single-post-view .content-card,
#main-content.single-post-view .blog-post-card,
#main-content.single-post_view article.post > .content-card,
body.single .content-card,
body.single .blog-post-card {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    /* remove rounded corners and shadows */
    border-radius: 0 !important;
    box-shadow: none !important;

    /* remove internal padding on the outer frame (keep inner wrapper if needed) */
    padding: 0 !important;

    /* force a solid white frame that hides the site background */
    background-color: #ffffff !important;
    color: #111 !important;

    /* cover the viewport vertically; allow internal scrolling */
    min-height: 100vh !important;
    height: auto !important;
    overflow: auto !important;

    /* required extra bottom space */
    padding-bottom: 150px !important;

    z-index: 2 !important;
}

/* If your templates use an inner wrapper for readable content (recommended),
   restore inner padding there so text isn't flush to edges. */
#main-content.single-post-view .content-card > .inner,
#main-content.single-post-view .blog-post-card > .inner,
body.single .content-card > .inner,
body.single .blog-post-card > .inner {
    padding: 28px !important; /* adjust as needed for readable gutters */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Defensive: ensure mobile media queries don't re-introduce outer padding */
@media (max-width: 600px) {
    body.single #main-content.single-post-view,
    #main-content.single-post-view {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #main-content.single-post-view .content-card,
    #main-content.single-post-view .blog-post-card {
        padding-bottom: 150px !important;
    }
}

