/* ============ Carousel/Banner Styles ============ */

.carousel {
    position: relative;
    background-color: #102a43;
    border-radius: 12px;
    overflow: hidden;
}

.home-hero-carousel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-hero-carousel .carousel-item {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: transparent;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
        linear-gradient(135deg, rgba(0, 74, 68, 0.42), rgba(0, 0, 0, 0.22));
    z-index: 1;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.carousel-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-content .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.carousel-content .btn {
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.8);
    border-radius: 50%;
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--verde-folha);
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background: var(--verde-folha);
    width: 32px;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Search wrapper */
.carousel-search-wrapper {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    z-index: 3;
    max-width: 1000px;
}

.search-form {
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 100px;
    padding: 0.55rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.btn-search {
    background: var(--verde-folha);
    color: white;
    border: none;
    border-radius: 999px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-right: 0.3rem;
}

.btn-search:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Homepage hero section */
.home-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.home-hero .carousel-item {
    min-height: 680px;
}

/* Home highlights */
.home-highlights {
    background: linear-gradient(135deg, #f5faf8 0%, #f0faf6 100%);
}

.highlight-card {
    background: #fff;
    border: 1px solid rgba(0, 74, 68, 0.08);
    border-radius: 24px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.highlight-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.12);
    border-color: var(--verde-folha);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.highlight-card h3 {
    color: var(--verde-petroleo);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.highlight-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Featured section */
.featured-section {
    background: #fff;
}

.section-title {
    color: var(--verde-petroleo);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Business cards */
.business-card {
    background: #fff;
    border: 1px solid rgba(0, 74, 68, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.business-card:hover {
    border-color: var(--verde-folha);
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.12);
    transform: translateY(-4px);
}

.business-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.12);
    color: var(--verde-petroleo);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.business-title {
    color: var(--verde-petroleo);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.business-info {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.business-info i {
    color: var(--verde-folha);
    margin-right: 0.5rem;
}

/* News cards */
.news-card {
    background: #fff;
    border: 1px solid rgba(0, 74, 68, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--verde-folha);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    color: var(--verde-petroleo);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Sidebar widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid rgba(0, 74, 68, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.widget-header {
    background: linear-gradient(135deg, rgba(0, 74, 68, 0.05), rgba(76, 175, 80, 0.05));
    border-bottom: 1px solid rgba(0, 74, 68, 0.08);
    padding: 1.5rem;
}

.widget-header h3 {
    color: var(--verde-petroleo);
    font-weight: 700;
}

.widget-body {
    padding: 1.5rem;
}

.pharmacy-item h4 {
    color: var(--verde-petroleo);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.obit-item {
    color: #333;
}

.obit-item strong {
    color: var(--verde-petroleo);
    display: block;
    margin-bottom: 0.25rem;
}

/* Classified cards */
.classified-card {
    background: #fff;
    border: 1px solid rgba(0, 74, 68, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.classified-card:hover {
    border-color: var(--verde-folha);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.classified-card h4 {
    color: var(--verde-petroleo);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.classified-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        min-height: 300px;
    }

    .carousel-content .hero-title {
        font-size: 1.8rem;
    }

    .carousel-content .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-content .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-search-wrapper {
        bottom: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-search {
        margin-right: 0;
        margin-top: 0.3rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 250px;
    }

    .carousel-content {
        padding: 1rem;
    }

    .carousel-content .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .carousel-content .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-control-prev {
        left: 0.5rem;
    }

    .carousel-control-next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 0.5rem;
        gap: 0.25rem;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }

    .carousel-indicators [data-bs-target].active {
        width: 24px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .highlight-card {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .highlight-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}
