:root {
    --primary-font: 'Outfit', sans-serif;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--primary-font);
}

.btn-donate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-donate:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: auto;        /* respeta las dimensiones originales de la imagen */
    display: block;
}

.carousel-item {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Capa oscura para legibilidad del texto */
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 15%;
    padding: 0 1rem;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    font-size: 2.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .carousel-img {
        width: 100%;
        height: auto;
    }

    .carousel-caption {
        bottom: 5%;
    }

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

    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    .carousel-caption .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Event & Sermon Cards */
.event-card,
.sermon-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.event-date-box {
    min-width: 60px;
    line-height: 1;
}

.bg-gradient {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.ratio-16x9 {
    cursor: pointer;
}

/* Gallery Preview (homepage) */
.gallery-preview-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-preview-item img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.85);
}

/* Blog Styles */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.blog-content {
    line-height: 1.8;
    color: #333;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
    margin: 2rem 0;
}