/* ============================================================
   Tamil Gospel Church - Main Stylesheet
   Design inspired by Colorlib Christian Template
   Built with Bootstrap 5.3
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Primary Colors */
    --primary: #d9b876;          /* Elevated warm gold */
    --primary-dark: #b8934f;     /* Deeper gold - for light backgrounds */
    --primary-light: #f0dcae;

    /* Secondary Colors */
    --secondary: #1a3a86;        /* Bright royal blue */
    --secondary-light: #2650ad;
    --secondary-dark: #122a63;

    /* Shared dark surface - navbar + footer */
    --surface-gradient: linear-gradient(135deg, #2350ad 0%, #1a3a86 52%, #122a63 100%);

    /* Accent */
    --accent: #e8c88a;
    --gold: #d9b876;

    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-body: #555555;
    --text-light: #888888;
    --text-white: #ffffff;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f5f0;
    --bg-dark: #1a1a2e;
    --bg-overlay: rgba(26, 26, 46, 0.7);

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section-padding {
    padding: var(--section-padding);
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 50px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.btn-light {
    background-color: var(--text-white);
    border-color: var(--text-white);
    color: var(--text-dark);
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-danger {
    border-radius: 0;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-danger {
    border-radius: 0;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
/* ============================================================
   NAVIGATION
   ============================================================ */
#mainNav {
    background: var(--surface-gradient);
    padding: 0;
    transition: var(--transition);
    z-index: 1030;
    border-bottom: 2px solid rgba(217, 184, 118, 0.45);
    box-shadow: 0 2px 18px rgba(18, 42, 99, 0.28);
}

#mainNav.scrolled {
    background: linear-gradient(135deg, rgba(35, 80, 173, 0.94) 0%, rgba(26, 58, 134, 0.94) 52%, rgba(18, 42, 99, 0.94) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 26px rgba(18, 42, 99, 0.35);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.navbar-brand .brand-logo {
    width: 45px;
    height: 45px;
    max-width: 45px;
    max-height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    border: 2px solid rgba(217, 184, 118, 0.55);
    box-shadow: 0 2px 8px rgba(18, 42, 99, 0.25);
}

.navbar-brand .brand-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    line-height: 1.2;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 25px 15px;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--accent));
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================================
   NAVIGATION DROPDOWN
   ============================================================ */
.navbar-nav .dropdown-menu {
    background: var(--surface-gradient);
    border: 1px solid rgba(217, 184, 118, 0.35);
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 0;
    min-width: 190px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(18, 42, 99, 0.40);
}

.navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    transition: var(--transition);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(217, 184, 118, 0.20);
    color: var(--primary);
}

.navbar-nav .dropdown-item.active {
    background-color: rgba(217, 184, 118, 0.28);
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

.navbar-nav .nav-link.dropdown-toggle::after {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 4px;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .navbar-nav .dropdown-item {
        padding: 10px 15px 10px 30px;
    }

    .navbar-brand .brand-text {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .navbar-brand .brand-logo {
        width: 38px;
        height: 38px;
        max-width: 38px;
        max-height: 38px;
    }
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
    position: relative;
}

.carousel-item {
    height: 70vh;
    background-color: var(--secondary-dark);
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
 * Poster-style slides (e.g. the newsletter flyer) must be shown whole
 * rather than cropped. Instead of leaving empty bars, ::before paints a
 * blurred, scaled copy of the image and ::after paints the crisp whole
 * image over it. Both inherit the background-image set inline on the
 * parent, and neither needs a negative z-index to stack correctly.
 */
.carousel-bg.is-contain::before,
.carousel-bg.is-contain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-bg.is-contain::before {
    background-size: cover;
    filter: blur(24px) brightness(0.6);
    transform: scale(1.15);
}

.carousel-bg.is-contain::after {
    background-size: contain;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    text-align: left;
}

.carousel-caption-custom .container {
    background: rgba(26, 26, 46, 0.65);
    padding: 25px 35px;
    border-radius: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.carousel-caption-custom h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0;
    white-space: nowrap;
}

.carousel-caption-custom p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    white-space: nowrap;
}

.carousel-caption-custom .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.carousel-indicators {
    bottom: 55px;
}

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

.carousel-indicators button.active {
    background-color: var(--primary);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    top: 0;
    bottom: 0;
    height: 100%;
    opacity: 1;
    transition: var(--transition);
    z-index: 15;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.15);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 169, 126, 0.6);
    border-radius: 0;
    background-size: 40%;
    transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary);
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome-section .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 400;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.welcome-features li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

.welcome-features li ion-icon {
    font-size: 22px;
    color: var(--primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.welcome-image-wrapper {
    position: relative;
}

.service-time-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--secondary);
    color: var(--text-white);
    padding: 25px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 280px;
}

.service-time-card h5 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-time-card p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ============================================================
   MINISTRY CARDS
   ============================================================ */
.ministry-card {
    background: var(--bg-white);
    padding: 35px 25px;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    border: 1px solid #eee;
}

.ministry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

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

.ministry-card:hover .ministry-icon {
    background: var(--primary);
}

.ministry-icon ion-icon {
    font-size: 36px;
    color: var(--primary);
    transition: var(--transition);
}

.ministry-card:hover .ministry-icon ion-icon {
    color: var(--text-white);
}

.ministry-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.ministry-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.ministry-card-full {
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.ministry-card-full .ministry-icon {
    margin: 0 0 20px 0;
}

/* ============================================================
   SCRIPTURE SECTION
   ============================================================ */
.scripture-section {
    position: relative;
    background: url('../images/carousel/slide2.jpg') center/cover no-repeat fixed;
    padding: 100px 0;
    text-align: center;
}

.scripture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
}

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

.scripture-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 25px;
}

.scripture-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.scripture-section cite {
    color: var(--primary);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 600;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.google-calendar-embed {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calendar-wrapper {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

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

.service-card-icon ion-icon {
    font-size: 32px;
    color: var(--primary);
}

.service-day {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.service-time {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */

/* Month Navigation */
.events-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.events-current-month {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    min-width: 220px;
    text-align: center;
}

/* Event Card */
.event-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #eee;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* Card Image Area */
.event-card-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.event-card:hover .event-card-image img,
.event-card-compact:hover .event-card-image img {
    transform: scale(1.05);
}

/* Date Badge */
.event-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 14px;
    text-align: center;
    line-height: 1;
    border-radius: 4px;
    z-index: 2;
}

.event-card-date .event-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.event-card-date .event-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Card Content Area */
.event-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.event-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.event-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.event-card-meta ion-icon {
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.event-card-desc {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card .btn,
.event-card-compact .btn {
    align-self: flex-start;
}

/* Homepage Compact Event Cards */
.event-card-compact {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #eee;
}

.event-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.event-card-compact .event-card-image {
    width: 200px;
    min-width: 200px;
}

.event-card-compact .event-card-content {
    padding: 20px;
}

.event-card-compact .event-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.event-card-compact .event-card-desc {
    display: none;
}

/* Event Cards Responsive — Tablet */
@media (max-width: 991.98px) {
    .event-card-image {
        width: 220px;
        min-width: 220px;
    }

    .event-card-compact .event-card-image {
        width: 160px;
        min-width: 160px;
    }

    .events-current-month {
        font-size: 1.3rem;
    }
}

/* Event Cards Responsive — Mobile */
@media (max-width: 767.98px) {
    .event-card,
    .event-card-compact {
        flex-direction: column;
    }

    .event-card-image,
    .event-card-compact .event-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .event-card-compact .event-card-image {
        height: 160px;
    }

    .events-month-nav {
        gap: 15px;
    }

    .events-current-month {
        font-size: 1.1rem;
        min-width: auto;
    }
}

/* ============================================================
   SERMONS / VIDEO SECTION
   ============================================================ */
.video-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

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

.video-card .video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-card .video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-card .video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(200, 169, 126, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.video-card:hover .video-play {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-play ion-icon {
    font-size: 28px;
    color: white;
    margin-left: 4px;
}

.video-card .video-info {
    padding: 20px;
}

.video-card .video-info h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .video-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    background: url('../images/carousel/slide3.jpg') center/cover no-repeat fixed;
    padding: 100px 0;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 169, 126, 0.9);
}

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

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info-list {
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    margin-right: 15px;
}

.contact-icon ion-icon {
    font-size: 24px;
    color: var(--primary);
}

.contact-info-item h5 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-item p {
    margin-bottom: 0;
    color: var(--text-body);
}

.contact-info-item a {
    color: var(--text-body);
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-social .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.map-wrapper iframe {
    display: block;
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.page-header {
    position: relative;
    background: url('../images/carousel/slide1.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   FAITH CARDS
   ============================================================ */
.faith-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 4px;
    height: 100%;
    border: 1px solid #eee;
    transition: var(--transition);
}

.faith-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.faith-icon ion-icon {
    font-size: 28px;
    color: var(--primary);
}

.faith-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* ============================================================
   MISSION LIST
   ============================================================ */
.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    font-size: 1rem;
}

.mission-list li ion-icon {
    font-size: 22px;
    color: var(--primary);
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   PASTOR CARD
   ============================================================ */
.pastor-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pastor-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--primary);
}

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

.pastor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.pastor-role {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.pastor-contact {
    margin-top: 20px;
}

.pastor-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.pastor-contact a:hover {
    color: var(--primary);
}

/* ============================================================
   MEMBERSHIP CARDS
   ============================================================ */
.membership-card {
    background: var(--bg-white);
    padding: 35px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition);
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

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

.membership-icon ion-icon {
    font-size: 32px;
    color: var(--primary);
}

/* ============================================================
   GIVE PAGE
   ============================================================ */
.give-card {
    background: var(--bg-white);
    padding: 50px 35px;
    border-radius: 4px;
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition);
}

.give-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.give-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
}

.give-icon ion-icon {
    font-size: 42px;
    color: var(--primary);
}

.give-scripture {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.give-scripture ion-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.give-scripture blockquote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

.give-scripture cite {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

.zelle-qr-wrapper {
    display: inline-block;
}

.zelle-qr-img {
    width: 180px;
    height: 180px;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.zelle-id {
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 4px;
    display: inline-block;
    word-break: break-all;
}

/* ============================================================
   GALLERY — ALBUM TILES
   ============================================================ */
.album-tile {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.album-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.album-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-placeholder ion-icon {
    font-size: 60px;
    color: var(--text-light);
    opacity: 0.3;
}

.album-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.album-tile:hover .album-cover-overlay {
    opacity: 1;
}

.album-cover-overlay ion-icon {
    font-size: 40px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.album-cover-overlay span {
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.album-info {
    padding: 18px 20px;
}

.album-name {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.album-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.album-meta ion-icon {
    font-size: 15px;
    color: var(--primary);
}

/* ============================================================
   GALLERY — PHOTOS VIEW
   ============================================================ */
.photos-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photos-album-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.photos-count {
    font-size: 0.9rem;
}

.btn-back-albums {
    padding: 8px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.photo-tile {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-tile:hover .photo-tile-overlay {
    opacity: 1;
}

.photo-tile:hover img {
    transform: scale(1.1);
}

.photo-tile-overlay ion-icon {
    font-size: 32px;
    color: var(--text-white);
}

/* ============================================================
   GALLERY — LEGACY (kept for other pages)
   ============================================================ */
.gallery-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image:hover img {
    transform: scale(1.1);
}

.gallery-overlay ion-icon {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.gallery-overlay span {
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Gallery responsive */
@media (max-width: 767.98px) {
    .album-cover {
        height: 180px;
    }

    .photos-header {
        gap: 10px;
    }

    .photos-album-title {
        font-size: 1.2rem;
        width: 100%;
        order: 2;
    }

    .photos-count {
        order: 3;
    }
}

/* ============================================================
   NEWSLETTER LIST
   ============================================================ */
.newsletter-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: var(--transition);
    color: var(--text-body);
}

.newsletter-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    transform: translateX(5px);
}

.newsletter-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.newsletter-icon ion-icon {
    font-size: 22px;
    color: var(--primary);
}

.newsletter-info {
    flex-grow: 1;
}

.newsletter-info h5 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 2px;
}

.newsletter-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.newsletter-download {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   NEWSLETTER PAGE
   ============================================================ */
.newsletter-sidebar {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.newsletter-sidebar-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    margin: 0;
    background: var(--secondary);
    color: var(--text-white);
}

.newsletter-nav-list {
    max-height: 500px;
    overflow-y: auto;
}

.newsletter-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-body);
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

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

.newsletter-nav-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.newsletter-nav-item.active {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

.newsletter-nav-item ion-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.newsletter-viewer {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: var(--bg-light);
}

.newsletter-viewer-header h4 {
    font-size: 1.1rem;
    margin: 0;
}

.newsletter-pdf-frame {
    background: #e0e0e0;
}

.newsletter-pdf-frame iframe {
    display: block;
}

@media (max-width: 767.98px) {
    .newsletter-sidebar {
        position: static;
    }

    .newsletter-nav-list {
        max-height: 200px;
    }

    .newsletter-pdf-frame iframe {
        height: 700px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface-gradient);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 0;
    border-top: 2px solid rgba(217, 184, 118, 0.45);
}

.footer-heading {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    margin-right: 10px;
    font-size: 20px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-white);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.footer-schedule li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-schedule strong {
    display: block;
    color: var(--text-white);
    font-size: 0.95rem;
}

.footer-schedule span {
    color: var(--primary);
    font-size: 0.9rem;
}

.footer-schedule small {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.footer-contact li ion-icon {
    font-size: 18px;
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

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

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

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

.footer-bottom a:hover {
    color: var(--primary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 0;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 60vh;
    }

    .carousel-caption-custom h1 {
        font-size: 1.6rem;
    }

    .carousel-caption-custom .container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 20px 25px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-time-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        max-width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px;
    }

    .navbar-collapse {
        background: var(--surface-gradient);
        border: 1px solid rgba(217, 184, 118, 0.35);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 12px 30px rgba(18, 42, 99, 0.35);
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 50vh;
    }

    :root {
        --section-padding: 50px 0;
    }

    .carousel-caption-custom {
        bottom: 0;
        text-align: center;
    }

    .carousel-caption-custom h1 {
        font-size: 1.4rem;
        white-space: normal;
    }

    .carousel-caption-custom p {
        font-size: 0.95rem;
        white-space: normal;
    }

    .carousel-caption-custom .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 15px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-tag {
        font-size: 12px;
    }

    .scripture-quote {
        font-size: 1.3rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .pastor-image {
        width: 140px;
        height: 140px;
    }

    .gallery-image img {
        height: 220px;
    }

    .contact-social .btn {
        width: 100%;
    }

    .footer-bottom .text-md-end {
        text-align: left !important;
        margin-top: 10px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption-custom h1 {
        font-size: 1.2rem;
    }

    .carousel-caption-custom .container {
        padding: 12px 15px;
        gap: 6px;
    }

    .btn-primary,
    .btn-outline-primary,
    .btn-light {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner (loading state) */
.spinner-border {
    width: 3rem;
    height: 3rem;
}
