/* ============================================
   BLOG SECTION STYLES - AQUAFLEX AQUECEDORES
   Baseado no Chaveiro Goiânia
   Adaptado para identidade visual Aquaflex
============================================ */

/* ===== VARIÁVEIS E CONFIGURAÇÕES GLOBAIS ===== */
.blog-section-auto {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* ===== CABEÇALHO DA SEÇÃO ===== */
.section-header {
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-badge i {
    font-size: 16px;
    color: #ff5500;
}

.section-title {
    font-family: 'Epilogue', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #010F1C;
    margin-bottom: 15px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.text-highlight {
    color: #ff5500;
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff5500 0%, #ff9a4d 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #5C6574;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-out;
}

/* ===== GRID DE BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* ===== CARD DE BLOG ===== */
.blog-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-card-inner {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(255, 85, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 85, 0, 0.15);
}

/* ===== IMAGEM DO CARD ===== */
.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* AZUL DE FUNDO */
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 123, 255, 0.4) 100%); /* OVERLAY AZUL SUTIL */
    z-index: 1;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-image::before {
    opacity: 0.3;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.95) 0%, rgba(255, 119, 51, 0.95) 100%); /* OVERLAY LARANJA NO HOVER */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .overlay-icon {
    transform: scale(1) rotate(0deg);
}

.overlay-icon i {
    font-size: 24px;
    color: #ff5500;
}

/* ===== CATEGORIA ===== */
.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #007bff;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    background: #ff5500;
    color: #fff;
    transform: translateY(-3px);
}

.blog-category i {
    font-size: 12px;
}

/* ===== CONTEÚDO DO CARD ===== */
.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ===== META INFORMAÇÕES ===== */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5C6574;
    font-family: 'Roboto', sans-serif;
}

.meta-item i {
    font-size: 14px;
    color: #ff5500;
}

/* ===== TÍTULO ===== */
.blog-title {
    font-family: 'Epilogue', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.title-link {
    color: #010F1C;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.title-link:hover {
    color: #ff5500;
}

/* ===== EXCERPT ===== */
.blog-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #5C6574;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FOOTER DO CARD ===== */
.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.author-name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #010F1C;
}

.read-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ff5500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
    color: #007bff;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

/* ===== BADGE DE DESTAQUE ===== */
.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #15B239 0%, #12a034 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 3;
    animation: pulse 2s infinite;
}

.featured-badge i {
    font-size: 14px;
}

/* ===== BOTÃO VER MAIS ===== */
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff5500 0%, #ff7733 100%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
    border: none;
    cursor: pointer;
}

.theme-btn:hover {
    background: linear-gradient(135deg, #ff7733 0%, #ff9944 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
    color: #fff;
}

.button-content-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-text {
    font-weight: 600;
}

.button-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.theme-btn:hover .button-icon {
    transform: translateX(5px);
}

.blog-btn-more {
    /* Herda estilos do .theme-btn */
}

/* ===== LOADING ===== */
.blog-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.blog-loading p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #5C6574;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.text-primary {
    color: #ff5500 !important;
    border-color: #ff5500 !important;
}

/* ===== DECORAÇÕES DE FUNDO ===== */
.blog-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-key {
    position: absolute;
    font-size: 120px;
    opacity: 0.03;
    color: #ff5500;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.decoration-2 {
    top: 50%;
    right: 5%;
    animation-delay: 2s;
    color: #007bff;
}

.decoration-3 {
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
    color: #ff9944;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(21, 178, 57, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(21, 178, 57, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 991px) {
    .blog-section-auto {
        padding: 80px 0;
    }

    .section-title {
        font-size: 40px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-card-image {
        height: 220px;
    }

    .decoration-key {
        font-size: 80px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .blog-section-auto {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-excerpt {
        font-size: 14px;
    }

    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .decoration-key {
        display: none;
    }

    .section-badge {
        font-size: 12px;
        padding: 8px 20px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .blog-card-content {
        padding: 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== UTILITÁRIOS ===== */
.mb-60 {
    margin-bottom: 60px;
}

.mt-50 {
    margin-top: 50px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .mb-60 {
        margin-bottom: 40px;
    }

    .mt-50 {
        margin-top: 30px;
    }

    .section-padding {
        padding: 60px 0;
    }
}












/* ===== EXCERPT CLICÁVEL ===== */
.blog-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #5C6574;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer; /* 👈 Cursor de mão */
    transition: color 0.3s ease;
}

.blog-excerpt:hover {
    color: #ff5500; /* 👈 Muda para laranja no hover */
}