/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Arial', sans-serif;
    background-color: #f1f4fb;
    color: #333;
    line-height: 1.6;
}

:root {
    --dark-blue: #1a237e;
    --dark-blue-hover: #283593;
}

.navbar {
    background-color: var(--dark-blue) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 10%;
    z-index: 111;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 50vh;
    background: url('../images/aicBondeni.jpg') no-repeat center center/cover;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 120px 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #f1f4fb 100%);
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 2;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-size: 3.5rem;
    font-weight: bold;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hero-content .btn-primary {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    border: none;
}

.hero-content .btn-outline-light {
    border: 2px solid #ffffff;
    color: white;
}

.hero-content .btn:hover {
    transform: scale(1.05);
}

.hero-content .btn-primary:hover {
    background-color: var(--dark-blue-hover);
    border-color: var(--dark-blue-hover);
}

/* Featured Section */
.container {
    /* max-width: 1140px; */
    margin: 0 auto;
    /* padding: 2rem 1rem; */
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.card-text {
    font-size: 1rem;
    color: #777;
}

.card .btn {
    border-radius: 25px;
    text-transform: uppercase;
}

.card .btn-outline-primary:hover,
.card .btn-primary:hover {
    /* background-color: #5a34a3; */
}

/* Sermons & Prayer Requests Section */
.sermon-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.sermon-item:hover {
    background-color: #f8f9fa;
}

.sermon-card {
    margin-bottom: 20px;
}

.sermon-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.sermon-item h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.sermon-item .text-muted {
    font-size: 0.9rem;
}

.sermon-item p {
    color: #777;
    font-size: 0.9rem;
}

.sermon-item .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.sermon-item .ratio iframe {
    border-radius: 10px;
}

/* Prayer Request Section */
.prayer-item {
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prayer-request {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.prayer-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.prayer-item small {
    font-size: 0.875rem;
    color: #888;
}

.prayer-request:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prayer-count {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.pray-button {
    padding: 0;
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
}

.pray-button:hover {
    color: #0056b3;
    text-decoration: underline;
}

.event-card {
    border-left: 4px solid #007bff;
}

/* ministry st6yle section */
.ministry-card {
    transition: transform 0.2s;
    height: 100%;
}
.ministry-card:hover {
    transform: translateY(-5px);
}
.ministry-image {
    height: 200px;
    object-fit: cover;
}
.ministry-leader {
    font-style: italic;
}
.member-count {
    font-size: 0.9rem;
    color: #6c757d;
}
.btn-leave-ministry {
    background-color: #dc3545;
    color: white;
}
.btn-leave-ministry:hover {
    background-color: #bb2d3b;
    color: white;
}
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.donation-options {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.btn-outline-primary.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 1.25rem;
    border-radius: 30px;
}

/* Gallery Section */
.gallery {
    --gallery-item-width: 300px;
    --gallery-item-height: 250px;
    --gallery-carousel-height: 400px;
    --gallery-overlay-color: rgba(26, 35, 126, 0.9);
    --gallery-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --gallery-transition: 0.3s ease;
}

/* Gallery Item Styles */
.gallery-item {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--gallery-shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: var(--gallery-item-height);
    object-fit: cover;
    transition: transform var(--gallery-transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Caption */
.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: var(--gallery-overlay-color);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform var(--gallery-transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Gallery Carousel */
.gallery-carousel {
    height: var(--gallery-carousel-height);
    overflow: hidden;
    position: relative;
}

.gallery-carousel::before,
.gallery-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(248,249,250,1), rgba(248,249,250,0));
}

.gallery-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
}

/* Gallery Track Animation */
.gallery-track {
    display: flex;
    gap: 1rem;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* Carousel-specific Gallery Items */
.gallery-carousel .gallery-item {
    flex: 0 0 var(--gallery-item-width);
    height: 190px;
    margin-bottom: 0;
}

.gallery-carousel .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity var(--gallery-transition);
}

.gallery-carousel .gallery-item:hover::after {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .card-body {
        padding: 1.5rem;
    }
}

footer {
    background-color: var(--dark-blue) !important;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    position: relative;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #fff !important;
    opacity: 0.8;
}

.label {
    display: block;
    /* background-color: #0056b3; */
}

[for="r1"] {
    width: max-content;
}

.social-links #iconslinks {
    color: #ffffff;
    font-size: 30px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links #iconslinks:hover {
    transform: scale(1.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

.btn-primary {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

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

.btn-outline-primary {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-outline-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}
