/* Community Service Page - Page-Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.4), rgba(221, 160, 221, 0.4)), #f8f9fa;
    padding: 140px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-banner img {
    width: 100%;
    height: 60vh;
    object-fit: fill;
    object-position: center;
    display: block;
}

/* Community Section */
.community-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #ff69b4;
    max-width: 700px;
    margin: 0 auto;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: transform 0.5s ease;
    position: relative;
    width: 100%;
}

.carousel-item {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    background: #f8f9fa;
}

/* Center item (active) */
.carousel-item.active {
    width: 500px;
    height: 400px;
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Left item */
.carousel-item.left-1 {
    width: 350px;
    height: 250px;
    z-index: 2;
    transform: translateX(-380px) scale(0.85);
    opacity: 0.7;
}

/* Far left item */
.carousel-item.left-2 {
    width: 250px;
    height: 180px;
    z-index: 1;
    transform: translateX(-600px) scale(0.7);
    opacity: 0.5;
}

/* Right item */
.carousel-item.right-1 {
    width: 350px;
    height: 250px;
    z-index: 2;
    transform: translateX(380px) scale(0.85);
    opacity: 0.7;
}

/* Far right item */
.carousel-item.right-2 {
    width: 250px;
    height: 180px;
    z-index: 1;
    transform: translateX(600px) scale(0.7);
    opacity: 0.5;
}

/* Hidden items */
.carousel-item.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff69b4, #dda0dd);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #ff69b4, #dda0dd);
    width: 30px;
    border-radius: 6px;
}

/* Alternate background */
.bg-light {
    background: #f8f9fa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .carousel-item.active {
        width: 300px;
        height: 200px;
    }

    .carousel-item.left-1,
    .carousel-item.right-1 {
        width: 200px;
        height: 140px;
        transform: translateX(-220px) scale(0.8);
    }

    .carousel-item.right-1 {
        transform: translateX(220px) scale(0.8);
    }

    .carousel-item.left-2,
    .carousel-item.right-2 {
        display: none;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
