/* ---
GLOBAL STYLES
--- */

/* --- Root Variables --- */
:root {
    --primary-blue: #007bff;
    --light-blue-bg: #eaf5ff;
    --dark-text: #333;
    --light-text: #fff;
    --body-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- General & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--body-bg);
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-video {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

/* ---
NAVIGATION BAR
--- */
.navbar {
    background: var(--white);
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
}

.navbar .logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    margin-left: 20px;
    position: relative;
}

.navbar .nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.navbar .nav-links a:hover {
    color: var(--primary-blue);
}

/* --- Dropdown Menu Styles --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 5px;
    margin-top: 10px;
    right: 0; /* Align to the right */
}

.navbar .nav-links .dropdown-content a {
    color: var(--dark-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 400;
}

.navbar .nav-links .dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-blue);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .drop-btn::after {
    content: ' ▼';
    font-size: 0.7em;
}

/* --- Hamburger Menu for Mobile --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    transition: all 0.3s ease;
}

/* ---
PAGE-SPECIFIC SECTIONS
--- */

/* --- Hero Section (index.html) --- */
.hero {
    /* CORRECTED STYLES START HERE */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('index_images/jesus-cross-background.png') no-repeat center center;
    background-color: #333; /* Fallback color */
    height: 500px; 
    background-size: contain;
    /* CORRECTED STYLES END HERE */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- Content Section (index.html) --- */
.content-section {
    background: var(--white);
    box-shadow: var(--shadow);
    margin: -80px auto 0 auto;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    max-width: 960px;
}

.content-section .container {
    padding: 40px;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

/* --- Icon Bullets (index.html) --- */
.icon-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.icon-list .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Increases the space to the right of the checkmark icon */
.icon-list .icon-bullet {
    margin-right: 20px; /* Increased for better spacing */
}

/* --- Prayer Box (index.html) --- */
.prayer-box {
    background-color: var(--light-blue-bg);
    border-left: 5px solid var(--primary-blue);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.prayer-box h3 {
    color: var(--primary-blue);
    margin-top: 0;
}

.prayer-box p {
    font-style: italic;
    margin-bottom: 0;
}

/* --- Next Steps Section (index.html) --- */
#next-steps {
    background-color: var(--body-bg);
    text-align: center;
}

#next-steps h2 {
     color: var(--dark-text);
     font-size: 2.5rem;
     margin-bottom: 40px;
}

/* --- Page Header (Sub-pages) --- */
.page-header {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 3rem;
}

.page-header p.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- Medical Analysis Page Specific --- */
.header-image-container {
    max-width: 250px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.header-image-container img {
    width: 100%;
    display: block;
}

.article-content {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    clear: both;
}

.article-content h2 .icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.article-image-right {
    float: right;
    width: 220px;
    margin-left: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-image-left {
    float: left;
    width: 280px;
    margin-right: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.diagram-figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
    clear: both;
}

.diagram-figure img {
    width: 100%;
    max-width: 600px;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.diagram-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intro-quote {
    font-style: italic;
    text-align: center;
    color: #555;
    padding: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.medical-fact {
    background-color: var(--light-blue-bg);
    border-left: 5px solid var(--primary-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
    clear: both;
}

.medical-fact strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.final-callout {
    background-color: #fff3cd;
    border-left: 5px solid #ffeeba;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-radius: 5px;
    clear: both;
}

.final-callout h3 {
    color: #856404;
    margin-bottom: 1rem;
}

/* --- Sermons & Testimonies Pages --- */
.main-content {
    padding: 40px 0;
}

.testimony-item, .sermon-item {
    background: var(--white);
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.testimony-header, .sermon-header {
    padding: 1rem 1.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
}

.testimony-header p, .sermon-header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Sermon Filter Buttons --- */
.filter-container {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: #e7e7e7;
    border: none;
    color: var(--dark-text);
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #ddd;
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

/* ---
SHARED SECTIONS (Learn More & Footer)
--- */

/* --- Learn More Section --- */
#learn-more {
    background-color: var(--body-bg);
    text-align: center;
    padding: 60px 0;
}

#learn-more h2 {
     color: var(--dark-text);
     font-size: 2.5rem;
     margin-bottom: 40px;
}

.learn-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.learn-more-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 2rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learn-more-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.learn-more-card .icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.learn-more-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.learn-more-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Footer --- */
.footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}

/* ---
RESPONSIVE DESIGN
--- */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 60px; /* Height of the navbar */
        left: 0;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        margin: 15px 0;
    }

    .navbar .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        border-radius: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .content-section {
        margin-top: -60px;
    }

    .content-section .container {
        padding: 20px;
    }

    .content-section h2, #next-steps h2, #learn-more h2, .page-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-image-right, .article-image-left {
        float: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 20px auto;
    }
}

/* --- Add this to the bottom of your styles.css file --- */

/* --- CTA Button (Community Page) --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Bible Study List Page --- */


.study-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.study-item:last-of-type {
    border-bottom: none;
}

.study-item h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.study-item p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.study-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.study-button:hover {
    background-color: #0056b3;
}

.study-item-placeholder {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #777;
}

/* --- Bible Study Header Image --- */
.study-header-image {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Controls the maximum height */
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 auto 2rem auto; /* Centers the image and adds space below it */
    display: block;
}

/* --- Responsive adjustment for the study header image --- */
@media (max-width: 768px) {
    .study-header-image {
        max-height: 200px; /* Make it a bit smaller on mobile */
    }
}

/* ========================================= */
/*  Enhanced Color Bible Study Table Styling v3
/* ========================================= */

/* Main wrapper for the table */
.table-wrapper {
    overflow-x: auto;
    margin: 2em 0;
    border: 1px solid #a2b8c9; /* A border color that complements the blue header */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    color: #2c3e50; /* A softer, dark blue-grey for text */
}

/* Table header styling with a soft blue background */
.table-wrapper th {
    background-color: #eaf4ff; /* Soft, welcoming blue */
    color: #2c3e50; /* Dark blue-grey text for strong contrast */
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid #a2b8c9; /* A stronger, complementary blue line */
    border-right: 1px solid #d6e6f2; /* Lighter blue for vertical lines */
}

.table-wrapper th:last-child {
    border-right: none;
}

/* Table cell styling */
.table-wrapper td {
    padding: 14px 16px;
    border-bottom: 1px solid #d6e6f2; /* Light blue horizontal lines */
    border-right: 1px solid #d6e6f2; /* Light blue vertical lines */
    vertical-align: top;
    background-color: #ffffff; /* Default row background is pure white */
}

.table-wrapper td:last-child {
    border-right: none;
}

/* Zebra-striping with a soft cream color */
.table-wrapper tbody tr:nth-of-type(even) td {
    background-color: #fdfaf4; /* A very light, warm cream/ivory */
}

/* Hover effect for rows */
.table-wrapper tbody tr:hover td {
    background-color: #dceaf7; /* A slightly darker blue for the hover effect */
}

/* First column (prophecy number) styling */
.table-wrapper td:first-child,
.table-wrapper th:first-child {
    text-align: center;
    font-weight: 700;
    width: 5%;
    border-right: 2px solid #a2b8c9; /* A stronger vertical line to separate the number */
}

/* Give the number column header the same blue as other headers */
.table-wrapper th:first-child {
    background-color: #eaf4ff;
}

/* Give the number column body a consistent, neutral background */
.table-wrapper td:first-child {
    background-color: #f5f7fa; /* A neutral, light grey to anchor the rows */
}

/* Ensure the number column hover matches the rest of the row */
.table-wrapper tbody tr:hover td:first-child {
    background-color: #dceaf7;
}

/* ========================================= */
/*  Bible Study Grid Layout
/* ========================================= */

.study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid */
    gap: 2rem; /* Space between the grid items */
    margin-top: 2rem;
}

.study-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.study-card h3 {
    font-size: 1.4em;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.study-card p {
    font-size: 1em;
    color: #555;
    flex-grow: 1; /* This makes the text content fill the available space */
    margin-bottom: 1.5rem;
}

.study-card .study-button {
    display: inline-block;
    background-color: #336699; /* A nice, respectable blue */
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin-top: auto; /* Pushes the button to the bottom of the card */
    align-self: flex-start; /* Aligns button to the left */
    transition: background-color 0.3s ease;
}

.study-card .study-button:hover {
    background-color: #28527a;
}

/* --- Responsive Adjustments for the Grid --- */

/* For tablets (2 columns) */
@media (max-width: 992px) {
    .study-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile phones (1 column) */
@media (max-width: 768px) {
    .study-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================= */
/*  Testimony Grid & Lightbox Styling
/* ========================================= */

/* --- Testimony Grid --- */
.testimony-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimony-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.testimony-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
}

.testimony-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimony-thumbnail .play-icon::after {
    content: '▶';
    font-size: 24px;
    color: #ffffff;
    margin-left: 4px; /* Nudge the play symbol to be centered */
}

.testimony-card:hover .play-icon {
    background-color: rgba(0, 123, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.testimony-title {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    background-color: #ffffff; /* CORRECTED: This should be white */
    border-top: 1px solid #e0e0e0;
}

/* --- Video Lightbox --- */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background-color: #000;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #ccc;
}

/* --- Responsive Adjustments for Testimony Grid --- */
@media (max-width: 992px) {
    .testimony-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimony-grid {
        grid-template-columns: 1fr;
    }
    .close-lightbox {
        top: -30px;
        font-size: 30px;
    }
}

/* ========================================= */
/*  Sermon Grid Layout
/* ========================================= */

.sermon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sermon-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flex to allow hiding/showing with JS */
    flex-direction: column;
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.sermon-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
}

.sermon-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sermon-thumbnail .play-icon::after {
    content: '▶';
    font-size: 24px;
    color: #ffffff;
    margin-left: 4px;
}

.sermon-card:hover .play-icon {
    background-color: rgba(0, 123, 255, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-title {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* --- Responsive Adjustments for Sermon Grid --- */
@media (max-width: 992px) {
    .sermon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sermon-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/*  General Article & List Styling
/* ========================================= */

/* Ensures all scripture blocks have a consistent style */
.scripture-block {
    font-style: italic;
    border-left: 4px solid #a2b8c9; /* Complements the blue theme */
    padding-left: 1.5rem;
    margin: 1.5rem 0 1.5rem 1rem;
    color: #555;
}

/* General styling for unordered lists within an article */
.article-content ul {
    list-style-type: disc; /* Standard disc bullet points */
    padding-left: 40px; /* Indent the list */
    margin-bottom: 1rem;
}

.article-content ul li {
    margin-bottom: 0.5rem; /* Space between list items */
}

/* General styling for ordered lists within an article */
.article-content ol {
    list-style-type: decimal; /* Standard numbered list */
    padding-left: 40px;
    margin-bottom: 1rem;
}

.article-content ol li {
    margin-bottom: 0.5rem;
}

/* Ensures the checkmark icon list has the correct spacing */
.icon-list .icon-bullet {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background-color: var(--primary-blue);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px; /* Increased spacing */
    font-size: 1rem;
    font-weight: bold;
}

/* ========================================= */
/*  Text Alignment Helper
/* ========================================= */

/* Overrides the default centered text for specific callout boxes */
.final-callout.text-left {
    text-align: left;
}



/* ========================================= */
/*  Facebook Lightbox Iframe Adjustment
/* ========================================= */

/* Ensures Facebook videos in the lightbox are responsive */
.lightbox-content iframe[src*="facebook.com"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================= */
/*  Vertical Video Lightbox Adjustment
/* ========================================= */

/* By default, the lightbox container is wide */
.lightbox-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* For horizontal videos */
    background-color: #000;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: max-width 0.4s ease; /* Smooth transition */
}

/* When it has the vertical-video class, it becomes narrow */
.lightbox-container.vertical-video {
    max-width: 350px; /* A good width for mobile videos */
}

/* Ensure the content area inside adapts */
.lightbox-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio default */
    height: 0;
    overflow: hidden;
}

/* When inside a vertical container, the padding changes to a tall aspect ratio */
.vertical-video .lightbox-content {
    padding-bottom: 177.77%; /* 9:16 aspect ratio (16 / 9 * 100) */
}
