/* --------------------------------------
   1. Global Reset, Variables, and Poppins Font
   -------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* NEW COLORS: Professional and Clean */
    --color-primary: #1e3a8a; /* Deep Navy Blue (Primary Brand Color) */
    --color-primary-light: #3b82f6; /* Medium Blue (Secondary Accent/CTA) */
    --color-primary-dark: #172554; /* Very Dark Navy */

    --color-text-dark: #1f2937; /* Near Black for headings */
    --color-text-light: #6b7280; /* Gray for body copy */

    --color-background: #ffffff; /* Pure White */
    --color-background-soft: #f8fafc; /* Very Light Gray/Blue for feature sections */

    --max-width: 1280px;
    --spacing-large: 6rem;
    --spacing-medium: 3rem;
    --spacing-small: 1.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.8;
    letter-spacing: 0.01em;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
}

.main-content {
    flex-grow: 1;
}

section {
    padding: var(--spacing-large) 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --------------------------------------
   2. Utility Classes & Buttons
   -------------------------------------- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary-light);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    color: var(--color-primary);
    background-color: transparent;
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.btn-donate {
    background-color: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --------------------------------------
   3. Header and Navigation
   -------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-background);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.site-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
}

/* Desktop Nav Styles (for wide screens) */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-background-soft);
}

.mobile-menu-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--color-primary);
}

/* Dropdown and Mobile Nav Menu styles copied from previous working version */
.nav-item-dropdown {
    position: relative;
    padding: 0.5rem 0.75rem;
}

.nav-item-dropdown {
    position: relative;
    padding-bottom: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    /* Ensure it starts right at the bottom of the nav bar */
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    /* This removes any gap that causes the menu to close */
    margin-top: -10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: var(--color-background-soft);
}

.mobile-nav-dropdown {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-dropdown a,
.mobile-nav-dropdown .mobile-dropdown-header {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.mobile-dropdown-header {
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-background-soft);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--color-text-dark);
    transition: transform 0.3s;
}

.mobile-sub-menu {
    display: none;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    border-left: 2px solid var(--color-primary);
}

.mobile-sub-menu a {
    font-weight: 400;
    padding: 0.4rem 0.75rem;
    margin-top: 0.2rem;
}


/* --------------------------------------
   4. NEW HERO: SPLIT-SCREEN INTRO (INDEX/ABOUT)
   -------------------------------------- */
.section-split-hero {
    padding-top: var(--spacing-medium);
    padding-bottom: var(--spacing-medium);
    position: relative;
    background-color: var(--color-background-soft);
}

.split-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-block {
    padding-top: 1rem;
}

.hero-intro-tag {
    font-weight: 600;
    color: var(--color-primary-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.hero-mission-summary {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-actions-new {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* --------------------------------------
   5. INTERNAL PAGE HERO (SERVICES/PRAYER REQUEST/CONTACT)
   -------------------------------------- */
.internal-hero {
    background-color: var(--color-primary-dark);
    color: white;
    padding: var(--spacing-medium) 1rem;
    text-align: center;
    position: relative;
    min-height: 200px;
}

.internal-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white; /* Ensure color is white over dark background */
    padding-top: 1rem;
    margin-bottom: 0.5rem;
}

.internal-hero p {
    font-size: 1.15rem;
    color: #e0e7ff;
}

.internal-hero .hero-header-cta {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: right;
    width: auto;
    padding: 0;
    z-index: 10;
}


/* Style for pages with a background image */
.page-hero-with-image {
    background-size: cover;
    background-position: center; /* Default starting point */
    background-repeat: no-repeat;
    min-height: 350px;
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Dark overlay for contrast on image banners */
.page-hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

/* Ensure text is above the overlay */
.page-hero-with-image h1,
.page-hero-with-image p,
.page-hero-with-image .hero-header-cta {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}


/* --------------------------------------
   6. CORE MINISTRIES SECTION (Unique Cards)
   -------------------------------------- */
.section-pillars {
    background-color: var(--color-background);
    text-align: center;
}

.section-header-centered {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-title-alt {
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle-small {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.pillar-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.pillar-card {
    background-color: var(--color-background-soft);
    padding: var(--spacing-medium);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--color-primary);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pillar-title {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pillar-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.btn-pillar-link {
    display: inline-block;
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}


/* --------------------------------------
   7. CAROUSEL SECTION
   -------------------------------------- */
.section-gallery {
    text-align: center;
    background-color: var(--color-background);
}

.section-gallery h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--color-text-dark);
}

.carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding-top: 56.25%;
    height: 0;
    background-color: #eee;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 24, 39, 0.6);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(17, 24, 39, 0.8);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--color-primary-light);
    transform: scale(1.2);
}


/* --------------------------------------
   8. FOOTER & CTA STYLES
   -------------------------------------- */
.section-contact-cta-minimal {
    padding: var(--spacing-large) 1rem;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.contact-content-wrapper h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.btn-cta-action {
    background-color: white;
    color: var(--color-primary);
    font-weight: 700;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-cta-action:hover {
    background-color: var(--color-background-soft);
}

.main-footer {
    background-color: var(--color-primary-dark);
    color: #9ca3af;
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* --------------------------------------
   9. ABOUT US SPECIFIC STYLES
   -------------------------------------- */

.section-about-intro {
    padding-top: var(--spacing-medium);
    padding-bottom: var(--spacing-medium);
    background-color: var(--color-background-soft);
}

.mission-grid-alt {
    max-width: 1000px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.mission-values-grid .pillar-card {
    background-color: var(--color-background);
    border-left: 5px solid var(--color-primary-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.clean-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.clean-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
    font-size: 1.05rem;
}

.clean-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
}

.section-bio-full {
    background-color: var(--color-background);
    padding: var(--spacing-large) 1rem;
}

.bio-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.bio-content-wrapper .bio-paragraph {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.bio-contact-cta {
    margin-top: 2rem;
    text-align: center;
}

/* --------------------------------------
   10. SERVICES HUB SPECIFIC STYLES
   -------------------------------------- */

.section-services-hub {
    background-color: var(--color-background-soft);
}

.services-hub-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card-full {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image-hub {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-position: top center;
}

.service-title-full {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.service-description-full {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.prayer-notes-section {
    background-color: var(--color-background);
    padding: var(--spacing-large) 1rem;
}

.hope-scripture {
    border-left: 4px solid var(--color-primary-light);
    padding: 1rem 1.5rem;
    background-color: var(--color-background-soft);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-dark);
    margin: 0 auto 2rem;
    max-width: 800px;
    text-align: left;
    border-radius: 4px;
}

.notes-heading {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.prayer-notes-list-alt {
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------
   12. PRAYER REQUEST FORM STYLES
   -------------------------------------- */

.form-section {
    background-color: var(--color-background-soft);
    padding: var(--spacing-large) 1rem;
}

.request-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: var(--spacing-medium);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.request-form .form-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-background-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, .form-group p {
    display: block;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Two-column grid layout for name/email on desktop */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: 1.5rem;
}

.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="tel"],
.request-form textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.request-form input:focus,
.request-form textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

.request-form textarea {
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400 !important;
}

.radio-label input {
    margin-right: 0.5rem;
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

/* --------------------------------------
   13. CONTACT PAGE SPECIFIC STYLES
   -------------------------------------- */

.contact-info-section {
    background-color: var(--color-background-soft);
    padding: var(--spacing-large) 1rem;
}

.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    align-items: flex-start;
    grid-template-columns: 1fr; /* Default to single column on mobile */
}

.contact-details-container h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--color-background-soft);
    padding-bottom: 0.5rem;
}

.contact-block {
    margin-bottom: 2rem;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.detail-value {
    display: block;
    font-size: 1.15rem;
    color: var(--color-text-dark);
    text-decoration: none;
    line-height: 1.5;
}

.detail-value:hover {
    color: var(--color-primary);
}

.contact-map-container {
    /* Placeholder for the map container */
    width: 100%;
    /* 16:9 Aspect Ratio container for the iframe */
    padding-top: 56.25%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------
   14. PRAYERS HUB SPECIFIC STYLES
   -------------------------------------- */

.prayer-hub-grid-section {
    background-color: var(--color-background-soft);
}

.prayer-hub-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    /* Mobile: 1 column, then switch to 2 columns */
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hub-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-top: 4px solid var(--color-primary-light); /* Top accent bar */
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hub-image-placeholder {
    width: 100%;
    height: 150px; /* Consistent height for the color block */
    border-radius: 8px;
    margin-bottom: 1rem;
    /* Styles for the text inside the placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.hub-description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; /* Ensures text aligns at bottom if needed */
}

/* --- Media Query for Prayer Hub --- */
@media (min-width: 500px) {
    .prayer-hub-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet size: 2 columns */
    }
}
@media (min-width: 900px) {
    .prayer-hub-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop size: 3 columns */
    }
}

/* --------------------------------------
   15. GENERIC ARTICLE & POST STYLES
   (Applies to all Prayer Subpages & Monthly Broadcast)
   -------------------------------------- */

.article-content-list, .video-gallery-content {
    background-color: var(--color-background);
}

/* Centers and constrains both article and video containers */
.article-posts-container,
.video-posts-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Shared styles for post paragraphs */
.post-content-area p,
.video-item-container p {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 2rem; /* The gap the client wants */
}

/* Universal Header Styles for posts */
.article-post-item h2,
.video-item-container h2 {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

/* Handle Scripture/Meta text */
.article-meta {
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 1rem;
}

/* --------------------------------------
   16. MEDIA FORMATTING (Images & Videos)
   -------------------------------------- */

/* Logic for dynamic images */
.article-banner-image-dynamic {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Universal 16:9 Aspect Ratio for Videos */
.video-wrapper,
.video-container,
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.5rem 0 2.5rem; /* Matches image spacing */
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe,
.video-container iframe,
.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Alignment fix for individual video items */
.video-item-container {
    width: 100%;
    text-align: left;
}

/* Read More Button Styling */
.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: none;
}

/* --------------------------------------
   17. PROMO GALLERY SECTION (Two-Image Display)
   -------------------------------------- */

.section-promo-gallery {
    background-color: var(--color-background); /* White background */
    text-align: center;
}

.promo-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: 2rem;
}

.promo-item {
    background-color: var(--color-background-soft);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.promo-item img {
    width: 100%;
    /* Keep aspect ratio constant to maintain poster integrity */
    height: auto;
    display: block;
}

/* --------------------------------------
   18. TESTIMONIAL CAROUSEL
   -------------------------------------- */
.section-testimonials {
    background-color: var(--color-background-soft);
    padding: var(--spacing-large) 1rem;
    overflow: hidden;
}

.testimonial-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.testimonial-slide {
    display: none; /* Hidden by default */
    padding: 2rem;
    animation: fadeIn 0.8s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    color: var(--color-primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablet and larger: 2 columns */
@media (min-width: 640px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------
   11. Media Queries
   -------------------------------------- */

/* Tablet and larger (Min-width 640px) */
@media (min-width: 640px) {
    /* Header/Nav */
    .desktop-nav { display: flex; }
    .mobile-menu-btn { display: none; }

    /* Hero Split (Index/About) */
    .section-split-hero {
        background-color: var(--color-background-soft);
        color: var(--color-text-dark);
    }
    .split-hero-content {
        grid-template-columns: 1.2fr 1fr;
    }
    .hero-main-title { font-size: 3rem; }
    .hero-actions-new {
        flex-direction: row;
        gap: 1.5rem;
    }
    .client-main-image { max-height: 700px; }
    .hero-image-block { display: block; }
    .hero-text-block {
        background-image: none !important;
        color: var(--color-text-dark);
        min-height: auto;
    }
    .hero-text-block::before { content: none; }
    .hero-main-title { color: var(--color-primary-dark); }
    .hero-actions-new .btn-secondary {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* Internal Page Hero (Services/Contact) */
    .internal-hero h1 { font-size: 3rem; }

    /* Grids */
    .pillar-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-grid-alt { grid-template-columns: repeat(3, 1fr); }
    .services-hub-grid { grid-template-columns: repeat(3, 1fr); }

    .form-grid-2 {
        /* Apply two-column grid on desktop */
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        /* Now defaults to single column inherited from mobile, no specific desktop grid needed */
        grid-template-columns: 1fr;
    }
    /* Ensure the h3 title takes full width */
    .contact-details-container {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Mobile-only styles (Max-width 639px) */
@media (max-width: 639px) {
    section { padding: 4rem 1rem; }

    /* Internal Page Hero Mobile Fix */
    .internal-hero { min-height: 250px; }

    /* Index/About Mobile Hero Background Image */
    .section-split-hero { background-color: var(--color-primary-dark); }
    .hero-image-block { display: none; }
    .hero-text-block {
        background-size: cover;
        background-position: center 25%;
        position: relative;
        padding: var(--spacing-medium);
        min-height: 400px;
        border-radius: 12px;
        overflow: hidden;
    }
    .hero-text-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
    .hero-text-block > * {
        position: relative;
        z-index: 2;
        color: white;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }
    .hero-main-title {
        color: white;
        font-size: 2rem;
    }
    .hero-actions-new .btn-secondary {
        border-color: white;
        color: white;
    }
    .hero-actions-new .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Specific Mobile Background Image Paths (Needs to be at the bottom) */
    .section-split-hero:not(.section-about-intro) .hero-text-block {
        /* Default for index.html (If applicable) */
        background-image: url('images/IMG-20251126-WA0002.jpg');
    }
    .section-about-intro .hero-text-block {
        /* About page image */
        background-image: url('images/IMG-20251126-WA0004.jpg');
    }
}


#contact-hero-bg.page-hero-with-image {
    background-position: 50% 12% !important;
    background-size: 65%;
}

/* Maintain this position on mobile so the face stays framed */
@media (max-width: 639px) {
    #contact-hero-bg.page-hero-with-image {
        background-position: 50% 15% !important;
        background-size: cover;
    }
}

.return-hub-section {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--color-background-soft);
}

.book-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.book-card {
    background: var(--color-background-soft);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    max-width: 200px; /* Keeps book covers from being too huge */
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.book-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.book-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    min-height: 3rem; /* Keeps buttons aligned if text length varies */
}



/* --- Admin Dashboard Editor Improvements --- */
#post-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
}

/* Small tip for the client under the content label */
#post-editor-form label[for="post-content"]::after {
    content: " (Press Enter twice for a new paragraph)";
    font-size: 0.8rem;
    color: var(--color-primary-light);
    font-weight: 400;
}

/* Fix for the Add Testimony button row on mobile */
#testimonial-manager div[style*="display: flex"] {
    flex-wrap: wrap; /* Allows items to stack if they don't fit */
}

#testimonial-manager input,
#testimonial-manager button {
    flex: 1 1 100% !important; /* Forces inputs and button to full width on small screens */
    margin-bottom: 8px;
}