/* ========================================
   Home Page Styles - Tema 3
   Prefeitura de Bom Jesus da Penha
   ======================================== */

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
    right: 5%;
    text-align: left;
    z-index: 2;
}

.hero-slider .carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-slider .carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(34, 139, 34, 0.8);
    border-radius: 50%;
    opacity: 0.9;
}

.hero-slider .carousel-control-prev {
    left: 20px;
}

.hero-slider .carousel-control-next {
    right: 20px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(34, 139, 34, 1);
    opacity: 1;
}

/* Quick Access Cards */
.quick-access-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-access-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.2);
}

.quick-access-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.quick-access-card:hover .icon-wrapper {
    transform: rotate(360deg) scale(1.1);
}

.quick-access-card .icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.quick-access-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quick-access-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-card .news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card .news-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card .news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card .news-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.news-card .news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card .news-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Secretarias Grid */
.secretarias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.secretaria-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
}

.secretaria-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.15);
    transform: translateY(-5px);
}

.secretaria-card .secretaria-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.secretaria-card .secretaria-icon i {
    font-size: 1.8rem;
    color: white;
}

.secretaria-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.secretaria-card .secretaria-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.secretaria-card .secretaria-link:hover {
    text-decoration: underline;
}

/* Banner Modal */
.modal-banner .modal-dialog {
    max-width: 800px;
}

.modal-banner .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-banner .modal-body {
    padding: 0;
}

.modal-banner .modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slider .carousel-item {
        height: 450px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 350px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    
    .quick-access-card {
        padding: 1.5rem;
    }
    
    .quick-access-card .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .quick-access-card .icon-wrapper i {
        font-size: 2rem;
    }
}

