/**
 * Coptic Church Theme - Main Stylesheet
 * A beautiful theme for Coptic Orthodox Churches
 */

/* ============================================
   CSS Variables - Church Color Palette
   ============================================ */
:root {
    /* Primary Colors - Gold and Deep Red (Traditional Orthodox) */
    --church-primary: #8B4513; /* Saddle Brown - Orthodox traditional */
    --church-primary-dark: #6B3410;
    --church-secondary: #C9A227; /* Gold - Byzantine/Coptic */
    --church-accent: #800020; /* Burgundy - Liturgical */

    /* Background Colors */
    --church-bg-light: #FDF8F3;
    --church-bg-dark: #1a1a2e;
    --church-bg-section: #F5EDE4;

    /* Text Colors */
    --church-text: #333333;
    --church-text-light: #666666;
    --church-text-muted: #888888;
    --church-text-white: #FFFFFF;

    /* Border Colors */
    --church-border: #E0D5C8;
    --church-border-dark: #8B4513;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-sm: 60px;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--church-text);
    background-color: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--church-primary-dark);
}

a {
    color: var(--church-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--church-secondary);
}

.section-padding {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--section-padding-sm) 0;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-church-primary {
    background-color: var(--church-primary);
    border-color: var(--church-primary);
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-church-primary:hover {
    background-color: var(--church-primary-dark);
    border-color: var(--church-primary-dark);
    color: #fff;
}

.btn-church-outline {
    background-color: transparent;
    border: 2px solid var(--church-primary);
    color: var(--church-primary);
    padding: 10px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-church-outline:hover {
    background-color: var(--church-primary);
    color: #fff;
}

/* ============================================
   Header Styles
   ============================================ */
.church-header {
    position: relative;
    z-index: 1000;
}

/* Spanning Logo - overlaps top bar and navbar */
.header-logo-wrapper {
    display: none; /* Hidden on mobile, shown on desktop */
}

@media (min-width: 992px) {
    .header-logo-wrapper {
        display: block;
        position: absolute;
        left: 50px;
        top: 0;
        z-index: 1001;
        height: calc(100% + 10px); /* Extend slightly below header */
    }

    .header-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 15px 10px 15px;
        height: 100%;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .header-logo:hover {
        transform: scale(1.05);
    }

    .header-logo .logo-img {
        max-height: 90px;
        width: auto;
        object-fit: contain;
    }

    .header-logo .logo-text {
        font-family: 'Cinzel', serif;
        font-size: 20px;
        font-weight: 700;
        color: var(--church-primary-dark);
    }
}

/* Responsive positioning based on container */
@media (min-width: 1200px) {
    .header-logo-wrapper {
        left: calc((100% - 1140px) / 2 + 15px);
    }
}

@media (min-width: 1400px) {
    .header-logo-wrapper {
        left: calc((100% - 1320px) / 2 + 15px);
    }
}

.header-top-bar {
    background-color: var(--church-bg-dark);
    color: var(--church-text-white);
    padding: 8px 0;
    font-size: 14px;
}

@media (min-width: 992px) {
    .header-top-bar .container {
        padding-left: 200px; /* Make room for spanning logo */
    }
}

.header-top-bar a {
    color: var(--church-text-white);
}

.header-top-bar a:hover {
    color: var(--church-secondary);
}

.header-top-bar .welcome-text {
    font-style: italic;
}

.header-top-bar .phone-link,
.header-top-bar .email-link {
    margin-left: 20px;
}

.header-top-bar .phone-link i,
.header-top-bar .email-link i {
    margin-right: 5px;
    color: var(--church-secondary);
}

.header-top-bar .social-icons a {
    padding: 0 8px;
}

.main-navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .main-navbar {
        padding: 20px 0;
    }

    .main-navbar .container {
        padding-left: 200px; /* Make room for spanning logo */
    }

    /* Center the nav items when logo is spanning */
    .main-navbar .navbar-nav {
        margin-left: auto;
        margin-right: auto;
    }

    .main-navbar .navbar-cta {
        margin-left: 0;
    }
}

.main-navbar .navbar-brand .logo-img {
    max-height: 60px;
}

.main-navbar .navbar-brand .logo-text {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--church-primary-dark);
}

/* Mobile Hamburger Menu Button */
.navbar-toggler {
    border: 2px solid var(--church-primary);
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.25);
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--church-primary);
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--church-primary);
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

.main-navbar .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px !important;
    color: var(--church-text);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-item.active .nav-link {
    color: var(--church-primary);
}

.navbar-cta .btn {
    font-size: 14px;
}

/* ============================================
   Hero Carousel (Bootstrap)
   ============================================ */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

#heroCarousel {
    width: 100%;
}

#heroCarousel .carousel-inner {
    height: 600px;
}

@media (max-width: 768px) {
    #heroCarousel .carousel-inner {
        height: 450px;
    }
}

#heroCarousel .carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#heroCarousel .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

#heroCarousel .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

#heroCarousel .slide-content {
    color: #fff;
    max-width: 700px;
}

#heroCarousel .slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #fff;
}

@media (max-width: 768px) {
    #heroCarousel .slide-title {
        font-size: 32px;
    }
}

#heroCarousel .slide-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    background-size: 50%;
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    margin-bottom: 30px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: none;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--church-secondary);
}

/* Default slide with gradient background */
#heroCarousel .default-slide {
    background: linear-gradient(135deg, var(--church-primary) 0%, var(--church-bg-dark) 100%) !important;
}

/* ============================================
   Livestream Section
   ============================================ */
.livestream-section {
    position: relative;
}

.livestream-overlay {
    background-color: var(--church-accent);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px 0;
}

.livestream-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 32, 0.9);
}

.livestream-overlay .container {
    position: relative;
    z-index: 2;
}

.livestream-content {
    color: #fff;
}

.livestream-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

.livestream-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.live-badge {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px;
}

.live-badge i.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ============================================
   Events Section
   ============================================ */
.events-section {
    background-color: var(--church-bg-light);
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--church-secondary);
}

.section-subtitle {
    color: var(--church-text-light);
    margin-top: 15px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.event-card .event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--church-secondary);
    color: #fff;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 14px;
}

.event-content {
    padding: 25px;
}

.event-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-time {
    color: var(--church-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.event-description {
    color: var(--church-text-light);
    margin-bottom: 20px;
}

/* ============================================
   About Section
   ============================================ */
.about-section .about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-text {
    margin-bottom: 25px;
    color: var(--church-text-light);
}

/* ============================================
   Quick Links Section
   ============================================ */
.quick-link-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.quick-link-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--church-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.quick-link-card .icon-box i {
    font-size: 28px;
    color: var(--church-primary);
}

.quick-link-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: var(--church-text-light);
    margin-bottom: 0;
    font-size: 14px;
}

/* ============================================
   Food Service Section
   ============================================ */
.food-service-section {
    background: var(--church-bg-section, #f8f6f0);
}

.food-service-banner {
    background: var(--church-primary, #8B0000);
    color: #fff;
    border-radius: 12px;
    padding: 50px 40px;
}

.food-service-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.food-service-banner h2 {
    color: #fff;
    margin-bottom: 10px;
}

.food-service-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.food-service-banner .btn-church-primary {
    background: #fff;
    color: var(--church-primary, #8B0000);
    border-color: #fff;
}

.food-service-banner .btn-church-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--church-primary, #8B0000);
}

/* ============================================
   Minimal Layout (logo only, no nav/footer)
   ============================================ */
.minimal-layout .page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.minimal-layout .main-content {
    flex: 1;
}

.minimal-header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.minimal-logo {
    display: inline-block;
    text-decoration: none;
}

.minimal-logo img {
    max-height: 70px;
    width: auto;
}

.minimal-logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--church-primary, #8B0000);
}

/* ============================================
   Bible Study Upload Form — Senior-Friendly
   ============================================ */
.upload-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--church-bg-section, #f8f6f0);
    padding: 60px 0;
}

.upload-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 45px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

/* Header icons */
.upload-lock-icon {
    font-size: 60px;
    color: var(--church-primary, #8B0000);
    margin-bottom: 15px;
    display: block;
}

.upload-main-icon {
    font-size: 64px;
    color: var(--church-primary, #8B0000);
    margin-bottom: 15px;
    display: block;
}

.upload-title {
    font-size: 28px;
    color: var(--church-text-dark, #333);
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 0;
}

/* Numbered step fields */
.upload-field {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.upload-field-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--church-primary, #8B0000);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.upload-field-content {
    flex: 1;
    min-width: 0;
}

/* Labels */
.upload-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--church-text-dark, #333);
    margin-bottom: 10px;
}

.upload-optional {
    font-weight: 400;
    color: #999;
    font-size: 15px;
}

/* Inputs */
.upload-input {
    font-size: 18px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    border: 2px solid #ddd !important;
}

.upload-input:focus {
    border-color: var(--church-primary, #8B0000) !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12) !important;
}

.upload-input::placeholder {
    color: #bbb;
    font-size: 16px;
}

/* Language toggle buttons */
.upload-language-buttons {
    display: flex;
    gap: 14px;
}

.upload-lang-radio {
    display: none;
}

.upload-lang-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    transition: all 0.2s ease;
}

.upload-lang-btn i {
    font-size: 28px;
}

.upload-lang-arabic-text {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.upload-lang-btn:hover {
    border-color: var(--church-primary, #8B0000);
    background: #fff;
}

.upload-lang-radio:checked + .upload-lang-btn {
    border-color: var(--church-primary, #8B0000);
    background: rgba(139, 0, 0, 0.06);
    color: var(--church-primary, #8B0000);
}

/* File dropzone */
.upload-dropzone {
    position: relative;
    border: 3px dashed #ccc;
    border-radius: 14px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.upload-dropzone:hover {
    border-color: var(--church-primary, #8B0000);
    background: rgba(139, 0, 0, 0.03);
}

.upload-dropzone.has-file {
    border-style: solid;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.04);
}

.upload-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-dropzone-icon {
    font-size: 52px;
    color: var(--church-primary, #8B0000);
    margin-bottom: 10px;
}

.upload-dropzone-text {
    font-size: 20px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.upload-dropzone-hint {
    font-size: 15px;
    color: #999;
    margin-bottom: 0;
}

.upload-dropzone-check {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 8px;
}

.upload-dropzone-filename {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    word-break: break-all;
}

.upload-btn--change {
    font-size: 15px;
    color: var(--church-primary, #8B0000);
    border: 1px solid var(--church-primary, #8B0000);
    border-radius: 8px;
    padding: 6px 18px;
    background: #fff;
    position: relative;
    z-index: 3;
}

.upload-btn--change:hover {
    background: var(--church-primary, #8B0000);
    color: #fff;
}

/* Buttons */
.upload-btn {
    font-size: 20px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn--primary {
    background: var(--church-primary, #8B0000);
    color: #fff;
}

.upload-btn--primary:hover {
    background: #6d0000;
    color: #fff;
}

.upload-btn--submit {
    background: var(--church-primary, #8B0000);
    color: #fff;
    font-size: 22px;
    padding: 18px 24px;
    margin-top: 10px;
}

.upload-btn--submit:hover {
    background: #6d0000;
    color: #fff;
}

.upload-btn--submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Alerts */
.upload-alert {
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 18px;
}

.upload-alert i {
    font-size: 22px;
    margin-right: 6px;
}

.upload-alert-hint {
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 767px) {
    .upload-card {
        padding: 30px 22px;
    }

    .upload-title {
        font-size: 24px;
    }

    .upload-field {
        flex-direction: column;
        gap: 10px;
    }

    .upload-field-number {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .upload-lang-btn {
        padding: 16px 12px;
    }

    .upload-btn--submit {
        font-size: 19px;
        padding: 16px 20px;
    }
}

/* ============================================
   Image Links Section
   ============================================ */
.image-links-section {
    background: var(--church-bg-section);
}

.image-link-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

.image-link-bg {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--church-primary);
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease;
}

.image-link-card:hover .image-link-bg {
    transform: scale(1.02);
}

.image-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    transition: background 0.3s ease;
}

.image-link-card:hover .image-link-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.image-link-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-link-content h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.image-link-arrow {
    width: 45px;
    height: 45px;
    background: var(--church-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-link-arrow i {
    color: #fff;
    font-size: 18px;
}

.image-link-card:hover .image-link-arrow {
    background: #fff;
    transform: translateX(5px);
}

.image-link-card:hover .image-link-arrow i {
    color: var(--church-primary);
}

/* ============================================
   Map & Address Section
   ============================================ */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 350px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
    display: block;
}

.map-placeholder {
    background: #e9ecef;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--church-text-light);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

.address-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.address-card h4 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--church-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--church-bg-section);
}

.address-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.address-item:last-child {
    margin-bottom: 0;
}

.address-item i {
    width: 20px;
    color: var(--church-secondary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.address-item p {
    margin: 0;
    color: var(--church-text);
    line-height: 1.6;
}

.address-item a {
    color: var(--church-text);
    transition: color 0.3s ease;
}

.address-item a:hover {
    color: var(--church-primary);
}

/* ============================================
   Page Hero
   ============================================ */
.page-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero.default-hero {
    background: linear-gradient(135deg, var(--church-primary) 0%, var(--church-bg-dark) 100%);
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.page-hero .hero-title {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
}

.page-hero .hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================
   Content Pages
   ============================================ */
.content-wrapper {
    font-size: 16px;
    line-height: 1.8;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper p {
    margin-bottom: 20px;
}

/* ============================================
   Broadcast Page
   ============================================ */
.video-placeholder {
    background: var(--church-bg-dark);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-placeholder .placeholder-content {
    text-align: center;
    color: #fff;
}

.video-placeholder i {
    font-size: 60px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.schedule-widget,
.social-widget {
    background: var(--church-bg-section);
    padding: 25px;
    border-radius: 8px;
}

.schedule-widget h3,
.social-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--church-border);
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--church-border);
    display: flex;
    justify-content: space-between;
}

.schedule-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
}

.service-time {
    color: var(--church-text-muted);
}

.btn-youtube {
    background: #FF0000;
    color: #fff;
    width: 100%;
}

.btn-youtube:hover {
    background: #cc0000;
    color: #fff;
}

.btn-facebook {
    background: #1877F2;
    color: #fff;
    width: 100%;
}

.btn-facebook:hover {
    background: #0d65d9;
    color: #fff;
}

/* ============================================
   Clergy & Father Cards
   ============================================ */
.clergy-card,
.father-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.clergy-photo,
.father-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.clergy-photo img,
.father-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clergy-photo.placeholder,
.father-photo.placeholder {
    background: var(--church-bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.clergy-photo.placeholder i,
.father-photo.placeholder i {
    font-size: 60px;
    color: var(--church-border);
}

.clergy-name,
.father-name {
    font-size: 20px;
    margin-bottom: 5px;
}

.clergy-title,
.father-title {
    color: var(--church-secondary);
    font-weight: 600;
    margin-bottom: 15px;
}

.clergy-bio {
    color: var(--church-text-light);
    font-size: 14px;
}

.btn-book-confession {
    margin-top: 15px;
}

/* ============================================
   Confession Booking Modal
   ============================================ */
.confession-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.confession-modal-overlay.active {
    display: flex;
}

.confession-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confession-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--church-border);
    background: var(--church-bg-section);
}

.confession-modal-header h4 {
    margin: 0;
    font-size: 20px;
    color: var(--church-primary);
}

.confession-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--church-text-light);
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.confession-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--church-text);
}

.confession-modal-body {
    padding: 0;
    min-height: 650px;
}

.confession-modal-body .calendly-inline-widget {
    width: 100%;
    height: 650px;
}

/* ============================================
   Session Cards
   ============================================ */
.session-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.session-icon {
    width: 60px;
    height: 60px;
    background: var(--church-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.session-icon i {
    font-size: 24px;
    color: var(--church-primary);
}

.session-name {
    font-size: 20px;
    margin-bottom: 15px;
}

.session-details {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.session-details li {
    padding: 5px 0;
    color: var(--church-text-light);
}

.session-details i {
    width: 20px;
    color: var(--church-primary);
}

/* ============================================
   Donation Options
   ============================================ */
.donation-option-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.option-icon {
    width: 80px;
    height: 80px;
    background: var(--church-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.option-icon i {
    font-size: 32px;
    color: var(--church-primary);
}

/* ============================================
   Events Page
   ============================================ */
.event-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.event-meta {
    margin-bottom: 15px;
}

.event-meta span {
    display: inline-block;
    margin-right: 20px;
    color: var(--church-text-muted);
}

.event-meta i {
    margin-right: 5px;
    color: var(--church-primary);
}

/* ============================================
   Calendar Page
   ============================================ */
.feasts-sidebar {
    background: var(--church-bg-section);
    padding: 25px;
    border-radius: 8px;
}

.feasts-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--church-border);
}

.feasts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feast-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--church-border);
}

.feast-item:last-child {
    border-bottom: none;
}

.feast-date {
    font-weight: 700;
    color: var(--church-secondary);
    font-size: 14px;
}

.feast-name {
    font-weight: 600;
    margin-top: 5px;
}

.feast-description {
    color: var(--church-text-light);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* ============================================
   Booking Box
   ============================================ */
.booking-box {
    background: var(--church-bg-section);
    padding: 40px;
    border-radius: 8px;
}

.booking-box h3 {
    margin-bottom: 15px;
}

.booking-box p {
    color: var(--church-text-light);
    margin-bottom: 25px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
}

.cta-section .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.9);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
}

/* ============================================
   Footer
   ============================================ */
.church-pre-footer {
    background-color: var(--church-bg-dark);
    color: #fff;
    padding: 60px 0;
}

.footer-widget .widget-title {
    color: var(--church-secondary);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--church-secondary);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    width: 25px;
    color: var(--church-secondary);
}

.contact-info a {
    color: rgba(255,255,255,0.7);
}

.contact-info a:hover {
    color: var(--church-secondary);
}

.liturgy-times {
    color: rgba(255,255,255,0.7);
}

.liturgy-times i {
    color: var(--church-secondary);
    margin-right: 5px;
}

.church-pre-footer .social-icons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.church-pre-footer .social-icons a:hover {
    background: var(--church-secondary);
}

.church-footer {
    background-color: #111;
    color: rgba(255,255,255,0.6);
    padding: 20px 0;
}

.church-footer .copyright {
    font-size: 14px;
}

.church-footer .footer-text {
    font-style: italic;
    font-size: 14px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
    .header-top-bar {
        display: none;
    }

    /* Hide spanning logo on mobile, use navbar-brand instead */
    .header-logo-wrapper {
        display: none !important;
    }

    .main-navbar .navbar-brand {
        display: flex !important;
    }

    .main-navbar .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .navbar-cta {
        margin-top: 15px;
    }

    .livestream-section .text-lg-end {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        height: 250px;
    }

    .page-hero .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .church-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .church-footer .footer-text {
        margin-top: 10px;
    }
}

/* ============================================
   Calendar Page Styles
   ============================================ */

/* Event Type Colors */
:root {
    --event-liturgy: #8B4513;
    --event-feast: #C9A227;
    --event-fast: #2E7D32;
    --event-education: #1565C0;
    --event-prayer: #6A1B9A;
    --event-sacrament: #800020;
    --event-social: #E65100;
    --event-general: #757575;
}

/* Calendar Date Groups */
.calendar-date-group {
    margin-bottom: 30px;
}

.date-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--church-border);
}

.date-badge {
    background: var(--church-primary);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
}

.date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-info .weekday {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--church-primary-dark);
}

.date-info .relative {
    display: block;
    font-size: 14px;
    color: var(--church-text-muted);
}

/* Event Cards */
.date-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.event-type-indicator {
    width: 5px;
    flex-shrink: 0;
}

.event-type-liturgy .event-type-indicator { background: var(--event-liturgy); }
.event-type-feast .event-type-indicator { background: var(--event-feast); }
.event-type-fast .event-type-indicator { background: var(--event-fast); }
.event-type-education .event-type-indicator { background: var(--event-education); }
.event-type-prayer .event-type-indicator { background: var(--event-prayer); }
.event-type-sacrament .event-type-indicator { background: var(--event-sacrament); }
.event-type-social .event-type-indicator { background: var(--event-social); }
.event-type-general .event-type-indicator { background: var(--event-general); }

.event-time {
    padding: 20px 15px;
    background: var(--church-bg-section);
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-time .time {
    font-weight: 600;
    color: var(--church-primary-dark);
}

.event-time .time-separator {
    color: var(--church-text-muted);
    margin: 0 2px;
}

.event-time .all-day {
    font-size: 13px;
    font-weight: 600;
    color: var(--church-text-muted);
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--church-primary-dark);
}

.event-title i {
    margin-right: 8px;
    opacity: 0.7;
}

.event-location {
    font-size: 14px;
    color: var(--church-text-muted);
    margin-bottom: 8px;
}

.event-location i {
    margin-right: 5px;
}

.event-description {
    font-size: 14px;
    color: var(--church-text-light);
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.event-type-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: var(--church-bg-section);
    color: var(--church-text-light);
}

.event-type-liturgy .event-type-badge { background: rgba(139,69,19,0.15); color: var(--event-liturgy); }
.event-type-feast .event-type-badge { background: rgba(201,162,39,0.15); color: #8B7000; }
.event-type-fast .event-type-badge { background: rgba(46,125,50,0.15); color: var(--event-fast); }
.event-type-education .event-type-badge { background: rgba(21,101,192,0.15); color: var(--event-education); }
.event-type-prayer .event-type-badge { background: rgba(106,27,154,0.15); color: var(--event-prayer); }
.event-type-sacrament .event-type-badge { background: rgba(128,0,32,0.15); color: var(--event-sacrament); }
.event-type-social .event-type-badge { background: rgba(230,81,0,0.15); color: var(--event-social); }

.event-link {
    font-size: 13px;
    color: var(--church-primary);
}

.event-link:hover {
    color: var(--church-secondary);
}

/* Calendar Widgets */
.calendar-widget {
    background: var(--church-bg-section);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.calendar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--church-border);
}

.calendar-widget h3 i {
    margin-right: 10px;
    color: var(--church-secondary);
}

/* Widget Events List */
.widget-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-event {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--church-border);
}

.widget-event:last-child {
    border-bottom: none;
}

.widget-event-date {
    background: var(--church-primary);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 50px;
}

.widget-event-date .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.widget-event-date .month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
}

.widget-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-event-info .title {
    font-weight: 600;
    color: var(--church-primary-dark);
    font-size: 14px;
}

.widget-event-info .time,
.widget-event-info .weekday {
    font-size: 13px;
    color: var(--church-text-muted);
}

.feast-event .widget-event-date {
    background: var(--event-feast);
}

/* Event Legend */
.event-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--church-text-light);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.event-type-liturgy { background: var(--event-liturgy); }
.legend-color.event-type-feast { background: var(--event-feast); }
.legend-color.event-type-fast { background: var(--event-fast); }
.legend-color.event-type-education { background: var(--event-education); }
.legend-color.event-type-prayer { background: var(--event-prayer); }
.legend-color.event-type-sacrament { background: var(--event-sacrament); }
.legend-color.event-type-social { background: var(--event-social); }

/* Quick Links Widget */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    padding: 8px 0;
}

.quick-links a {
    color: var(--church-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--church-primary);
}

.quick-links i {
    width: 20px;
    text-align: center;
    color: var(--church-secondary);
}

/* Calendar Error */
.calendar-error {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-error i {
    font-size: 20px;
}

/* No Events */
.no-events {
    background: var(--church-bg-section);
    border-radius: 8px;
    padding: 40px;
}

.no-events i {
    display: block;
}

/* Refresh Button */
.refresh-calendar {
    padding: 8px 15px;
}

.refresh-calendar i.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Calendar Responsive */
@media (max-width: 991px) {
    .event-card {
        flex-direction: column;
    }

    .event-time {
        min-width: auto;
        flex-direction: row;
        gap: 5px;
        padding: 10px 15px;
    }

    .event-type-indicator {
        width: 100%;
        height: 5px;
    }
}

@media (max-width: 767px) {
    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .date-badge {
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .date-badge .day {
        font-size: 20px;
    }
}

/* ============================================
   Monthly Calendar Grid View
   ============================================ */

/* View Toggle Controls */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle .view-btn {
    border-radius: 0;
    padding: 8px 12px;
}

.view-toggle .view-btn.active {
    background-color: var(--church-primary);
    border-color: var(--church-primary);
    color: #fff;
}

/* Month Calendar Container */
.month-calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 25px;
}

/* Month Header with Navigation */
.month-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--church-border);
}

.month-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--church-primary-dark);
}

.month-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--church-bg-section);
    color: var(--church-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.month-nav-btn:hover {
    background: var(--church-primary);
    color: #fff;
}

/* Month Grid */
.month-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--church-border);
    border-radius: 4px;
    overflow: hidden;
}

.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--church-primary);
    color: #fff;
}

.weekday-header {
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--church-border);
}

/* Day Cells */
.day-cell {
    position: relative;
    min-height: 120px;
    padding: 8px;
    background: #fff;
    border-right: 1px solid var(--church-border);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
}

.day-cell:last-child {
    border-right: none;
}

.day-cell.empty {
    background: var(--church-bg-light);
}

.day-cell:hover:not(.empty) {
    background: var(--church-bg-section);
}

.day-cell.today {
    background: rgba(201, 162, 39, 0.1);
}

.day-cell.today .day-number {
    background: var(--church-secondary);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--church-text);
    display: inline-block;
    margin-bottom: 4px;
}

/* Day Events List */
.day-events-list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-event-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    line-height: 1.2;
    border-left: 3px solid var(--event-general);
    background: rgba(0,0,0,0.03);
    overflow: hidden;
}

.day-event-item .event-time {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--church-text-muted);
    font-size: 0.65rem;
    white-space: nowrap;
}

.day-event-item .event-name {
    flex: 1;
    color: var(--church-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Event type colors for day items */
.day-event-item.event-type-liturgy { border-left-color: var(--event-liturgy); background: rgba(139, 69, 19, 0.08); }
.day-event-item.event-type-feast { border-left-color: var(--event-feast); background: rgba(201, 162, 39, 0.08); }
.day-event-item.event-type-fast { border-left-color: var(--event-fast); background: rgba(46, 125, 50, 0.08); }
.day-event-item.event-type-education { border-left-color: var(--event-education); background: rgba(21, 101, 192, 0.08); }
.day-event-item.event-type-prayer { border-left-color: var(--event-prayer); background: rgba(106, 27, 154, 0.08); }
.day-event-item.event-type-sacrament { border-left-color: var(--event-sacrament); background: rgba(128, 0, 32, 0.08); }
.day-event-item.event-type-social { border-left-color: var(--event-social); background: rgba(230, 81, 0, 0.08); }

/* Show More Button */
.show-more-events {
    display: block;
    width: 100%;
    padding: 3px 5px;
    margin-top: 2px;
    background: var(--church-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-more-events:hover {
    background: var(--church-primary-dark);
}

/* Hidden full events container */
.day-events-full {
    display: none;
}

/* Events Modal */
.events-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.events-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--church-primary);
    color: #fff;
}

.events-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.events-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.events-modal-close:hover {
    opacity: 1;
}

.events-modal-body {
    padding: 15px 20px;
    max-height: 50vh;
    overflow-y: auto;
}

/* Full event items in modal */
.full-event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--event-general);
    background: var(--church-bg-light);
}

.full-event-item:last-child {
    margin-bottom: 0;
}

.full-event-item .event-time {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--church-primary);
    font-size: 0.85rem;
    min-width: 70px;
}

.full-event-item .event-name {
    flex: 1;
    color: var(--church-text);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Event type colors for modal items */
.full-event-item.event-type-liturgy { border-left-color: var(--event-liturgy); }
.full-event-item.event-type-feast { border-left-color: var(--event-feast); }
.full-event-item.event-type-fast { border-left-color: var(--event-fast); }
.full-event-item.event-type-education { border-left-color: var(--event-education); }
.full-event-item.event-type-prayer { border-left-color: var(--event-prayer); }
.full-event-item.event-type-sacrament { border-left-color: var(--event-sacrament); }
.full-event-item.event-type-social { border-left-color: var(--event-social); }

/* Month Summary */
.month-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--church-border);
}

/* Monthly Calendar Responsive */
@media (max-width: 991px) {
    .day-cell {
        min-height: 100px;
    }

    .day-event-item .event-time {
        display: none;
    }

    .day-event-item .event-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 767px) {
    .month-calendar-container {
        padding: 15px;
    }

    .weekday-header {
        padding: 8px 2px;
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .day-cell {
        min-height: 70px;
        padding: 4px;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .day-cell.today .day-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .day-event-item {
        padding: 2px 3px;
        font-size: 0.6rem;
        border-left-width: 2px;
    }

    .day-event-item .event-name {
        font-size: 0.6rem;
    }

    .show-more-events {
        font-size: 0.6rem;
        padding: 2px 3px;
    }

    .month-title {
        font-size: 1.2rem;
    }

    .month-nav-btn {
        width: 32px;
        height: 32px;
    }

    .events-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .events-modal-body {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .weekday-header {
        font-size: 0.6rem;
        padding: 6px 2px;
    }

    .day-cell {
        min-height: 55px;
        padding: 3px;
    }

    .day-number {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .day-events-list {
        gap: 1px;
    }

    .day-event-item {
        padding: 1px 2px;
        font-size: 0.55rem;
    }

    .day-event-item .event-name {
        font-size: 0.55rem;
    }

    .show-more-events {
        font-size: 0.55rem;
        padding: 1px 2px;
    }
}

/* ============================================
   Broadcast Page Styles
   ============================================ */

.broadcast-section {
    background: var(--church-bg-light);
}

.video-player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.video-container {
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--church-bg-dark) 0%, #2a2a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.placeholder-content i {
    font-size: 4rem;
    color: var(--church-secondary);
    margin-bottom: 20px;
    display: block;
}

.placeholder-content h3 {
    color: #fff;
    margin-bottom: 10px;
}

.placeholder-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stream-label {
    color: var(--church-primary-dark);
    font-size: 1.1rem;
}

.stream-label .text-danger {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.broadcast-info {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Broadcast Sidebar Widgets */
.schedule-widget,
.social-widget,
.help-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.schedule-widget h3,
.social-widget h3,
.help-widget h3 {
    font-size: 1.1rem;
    color: var(--church-primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--church-border);
}

.schedule-widget h3 i,
.social-widget h3 i,
.help-widget h3 i {
    color: var(--church-secondary);
    margin-right: 8px;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--church-border);
    display: flex;
    flex-direction: column;
}

.schedule-item:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 600;
    color: var(--church-text);
    margin-bottom: 3px;
}

.service-time {
    font-size: 0.9rem;
    color: var(--church-text-muted);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Professional Social Buttons */
.btn-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 200px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-social-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.btn-social-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.btn-social-platform {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-social-arrow {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-social:hover .btn-social-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* YouTube Professional Button */
.btn-youtube-pro {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: #fff;
}

.btn-youtube-pro .btn-social-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-youtube-pro:hover {
    background: linear-gradient(135deg, #FF1A1A 0%, #E60000 100%);
    color: #fff;
}

/* Facebook Professional Button */
.btn-facebook-pro {
    background: linear-gradient(135deg, #1877F2 0%, #0d5bbd 100%);
    color: #fff;
}

.btn-facebook-pro .btn-social-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-facebook-pro:hover {
    background: linear-gradient(135deg, #2b88f7 0%, #1877F2 100%);
    color: #fff;
}

/* Legacy button styles (keep for backward compatibility) */
.btn-youtube {
    background: #FF0000;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    background: #CC0000;
    color: #fff;
}

.btn-facebook {
    background: #1877F2;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: #0d65d9;
    color: #fff;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--church-text-light);
    font-size: 0.9rem;
}

.help-list li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--church-secondary);
    font-size: 0.8rem;
}

/* Broadcast Responsive */
@media (max-width: 991px) {
    .broadcast-section .col-lg-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .video-player-wrapper {
        border-radius: 0;
        margin: 0 -15px;
    }

    .placeholder-content i {
        font-size: 3rem;
    }

    .schedule-widget,
    .social-widget,
    .help-widget {
        margin-top: 20px;
    }
}

/* ============================================
   Bible Study Page
   ============================================ */
.bible-study-intro {
    background: var(--church-bg-light);
}

.bible-study-intro .intro-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--church-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Language Sections */
.language-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--church-border);
}

.language-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--church-bg-section);
}

.language-section .section-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.language-section .section-icon-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--church-primary) 0%, var(--church-primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.language-section .section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--church-primary-dark);
}

/* Arabic Section RTL */
.arabic-section .section-header {
    flex-direction: row-reverse;
}

.arabic-section .file-card {
    flex-direction: row-reverse;
}

.arabic-section .file-info {
    text-align: right;
}

.arabic-section .file-meta {
    justify-content: flex-end;
}

/* File Cards */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--church-bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.file-card:hover {
    border-color: var(--church-secondary);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
    transform: translateY(-2px);
}

.file-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-icon i {
    font-size: 1.5rem;
}

.file-icon .fa-file-pdf-o {
    color: #dc3545;
}

.file-icon .fa-file-word-o {
    color: #0d6efd;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-info .file-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--church-text);
    font-family: 'Open Sans', sans-serif;
}

.file-info .file-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--church-text-muted);
    margin-bottom: 8px;
}

.file-info .file-date i {
    margin-right: 5px;
}

.file-info .file-description {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--church-text-light);
    line-height: 1.5;
}

.file-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-meta .file-type {
    background: var(--church-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.file-meta .file-size {
    font-size: 0.8rem;
    color: var(--church-text-muted);
}

.file-download {
    width: 45px;
    height: 45px;
    background: var(--church-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.file-download:hover {
    background: var(--church-primary);
    color: #fff;
    transform: scale(1.1);
}

.file-download i {
    font-size: 1.1rem;
}

/* No Files State */
.no-files {
    text-align: center;
    padding: 50px 20px;
    color: var(--church-text-muted);
}

.no-files i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-files p {
    margin: 0;
    font-size: 1rem;
}

/* Archive Section */
.bible-study-archive {
    background: var(--church-bg-section);
}

.archive-header {
    margin-bottom: 30px;
}

.archive-header .section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.archive-header .section-title i {
    color: var(--church-secondary);
}

.archive-toggle {
    margin-bottom: 30px;
}

#toggleArchive {
    padding: 12px 30px;
    font-size: 0.95rem;
}

#toggleArchive i {
    margin-right: 8px;
}

.archive-language-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--church-border);
    color: var(--church-primary);
}

.archived-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archived-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archived-file-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.archived-file-icon {
    width: 35px;
    height: 35px;
    background: var(--church-bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archived-file-icon i {
    font-size: 1rem;
}

.archived-file-icon .fa-file-pdf-o {
    color: #dc3545;
}

.archived-file-icon .fa-file-word-o {
    color: #0d6efd;
}

.archived-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.archived-file-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--church-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archived-file-date {
    font-size: 0.75rem;
    color: var(--church-text-muted);
}

.archived-file-download {
    width: 32px;
    height: 32px;
    background: var(--church-bg-light);
    color: var(--church-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.archived-file-download:hover {
    background: var(--church-secondary);
    color: #fff;
}

.archived-file-download i {
    font-size: 0.85rem;
}

/* RTL for Arabic archived files */
[dir="rtl"] .archived-file-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .archived-file-info {
    text-align: right;
}

/* Bible Study Responsive */
@media (max-width: 991px) {
    .language-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .language-section {
        padding: 20px;
    }

    .file-card {
        flex-wrap: wrap;
        padding: 15px;
    }

    .file-icon {
        width: 40px;
        height: 40px;
    }

    .file-icon i {
        font-size: 1.2rem;
    }

    .file-download {
        width: 40px;
        height: 40px;
    }

    .file-info .file-title {
        font-size: 0.95rem;
    }

    .arabic-section .file-card {
        flex-direction: row-reverse;
        flex-wrap: wrap;
    }
}

/* ============================================
   Generic Page Template Styles
   ============================================ */

/* Main Content Section */
.main-content-section {
    background: #fff;
}

.main-content-section .content-editor {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--church-text);
}

.main-content-section .content-editor h1,
.main-content-section .content-editor h2,
.main-content-section .content-editor h3,
.main-content-section .content-editor h4 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.main-content-section .content-editor p {
    margin-bottom: 1.25em;
}

.main-content-section .content-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.main-content-section .content-editor ul,
.main-content-section .content-editor ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.main-content-section .content-editor li {
    margin-bottom: 0.5em;
}

.main-content-section .content-editor blockquote {
    border-left: 4px solid var(--church-secondary);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--church-text-light);
}

/* Introduction Section */
.intro-section .section-title {
    margin-bottom: 25px;
}

.intro-section .intro-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--church-text-light);
}

.intro-section .intro-content p:last-child {
    margin-bottom: 0;
}

/* Image & Text Section */
.image-text-section .image-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.image-text-section .image-wrapper img {
    transition: transform 0.4s ease;
}

.image-text-section .image-wrapper:hover img {
    transform: scale(1.03);
}

.image-text-section .text-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.image-text-section .text-content .section-title::after {
    left: 0;
    transform: none;
}

.image-text-section .section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--church-text-light);
}

.image-text-section .section-content p:last-child {
    margin-bottom: 0;
}

/* Two-Column Layout Section */
.two-column-section .column-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--church-text);
}

.two-column-section .column-content h2,
.two-column-section .column-content h3,
.two-column-section .column-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.two-column-section .column-content p:last-child {
    margin-bottom: 0;
}

.two-column-section .column-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.two-column-section .column-content ul,
.two-column-section .column-content ol {
    padding-left: 1.25em;
    margin-bottom: 1em;
}

/* Video Embed Section */
.video-section .section-description {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--church-text-light);
    font-size: 1.1rem;
}

.video-section .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-section .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cards Grid Section */
.cards-section .section-description {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--church-text-light);
}

.generic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.generic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.generic-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.generic-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.generic-card:hover .card-image img {
    transform: scale(1.08);
}

.generic-card .card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.generic-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--church-primary-dark);
}

.generic-card .card-description {
    font-size: 0.95rem;
    color: var(--church-text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 15px;
}

.generic-card .btn-church-outline {
    align-self: flex-start;
    margin-top: auto;
}

/* Generic Page Responsive */
@media (max-width: 991px) {
    .image-text-section .text-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 30px;
    }

    .image-text-section .row.flex-row-reverse .text-content {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .main-content-section .content-editor {
        font-size: 1rem;
    }

    .intro-section .intro-content {
        font-size: 1rem;
    }

    .video-section .video-wrapper {
        border-radius: 0;
        margin: 0 -15px;
    }

    .generic-card .card-image {
        height: 180px;
    }

    .generic-card .card-body {
        padding: 20px;
    }

    .generic-card .card-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   Gallery Page Styles
   ============================================ */

/* Gallery Intro */
.gallery-intro .intro-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--church-text-light);
}

/* Album Section */
.album-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.album-info {
    flex: 1;
}

.album-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--church-primary-dark);
}

.album-title a {
    color: var(--church-primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.album-title a:hover {
    color: var(--church-secondary);
}

.album-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--church-text-muted);
    margin-right: 15px;
}

.album-date i {
    margin-right: 5px;
    color: var(--church-secondary);
}

.album-description {
    color: var(--church-text-light);
    margin: 10px 0;
    font-size: 0.95rem;
}

.album-count {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--church-text-muted);
    background: var(--church-bg-section);
    padding: 4px 12px;
    border-radius: 20px;
}

.album-count i {
    margin-right: 5px;
}

.view-album-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Album Carousel */
.album-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.album-carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
}

@media (max-width: 991px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.gallery-lightbox-trigger {
    cursor: pointer;
}

.carousel-slide .image-wrapper {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: var(--church-bg-section);
}

.carousel-slide .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-slide .image-wrapper:hover img {
    transform: scale(1.08);
}

.carousel-slide .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide .image-wrapper:hover .image-overlay {
    opacity: 1;
}

.carousel-slide .image-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--church-primary);
    color: #fff;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-nav i {
    font-size: 1rem;
    color: var(--church-primary);
}

.carousel-nav:hover i {
    color: #fff;
}

/* ============================================
   Album Page Styles
   ============================================ */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--church-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--church-secondary);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* Album Description */
.album-description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--church-text-light);
}

/* Album Info Bar */
.album-info-bar {
    background: var(--church-bg-light);
    border-bottom: 1px solid var(--church-border);
}

.album-stats .photo-count {
    font-size: 0.95rem;
    color: var(--church-text-muted);
}

.album-stats .photo-count i {
    margin-right: 6px;
    color: var(--church-secondary);
}

/* Album Grid */
.album-grid {
    margin-top: 0;
}

.album-image-link {
    display: block;
    text-decoration: none;
}

.album-image-wrapper {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: var(--church-bg-section);
}

.album-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-image-wrapper:hover .album-image {
    transform: scale(1.08);
}

.album-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-image-wrapper:hover .album-image-overlay {
    opacity: 1;
}

.album-image-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* ============================================
   Lightbox Modal
   ============================================ */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}

.gallery-lightbox-modal.active {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   Album Modal (View All)
   ============================================ */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.album-modal.active {
    display: block;
}

.album-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.album-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.album-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--church-bg-section);
    border-bottom: 1px solid var(--church-border);
}

.album-modal-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--church-primary-dark);
}

.album-modal-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--church-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.album-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--church-text);
}

.album-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.album-full-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 991px) {
    .album-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .album-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.album-full-grid .grid-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: var(--church-bg-section);
}

.album-full-grid .grid-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-full-grid .grid-image:hover img {
    transform: scale(1.08);
}

.album-full-grid .grid-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-full-grid .grid-image:hover .grid-image-overlay {
    opacity: 1;
}

.album-full-grid .grid-image-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* Gallery Responsive */
@media (max-width: 767px) {
    .album-section {
        padding: 20px;
    }

    .album-header {
        flex-direction: column;
        gap: 15px;
    }

    .view-album-btn {
        width: 100%;
        text-align: center;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .album-modal-content {
        width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .album-modal-body {
        padding: 15px;
    }
}
