

.container-blog-blog-blog {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}




.search-box {
    margin: 0 auto;
    max-width: 500px;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.search-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #e67012;
}

.main-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    margin-top: 3rem;
    width: 80%;
}

.popular-section {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: fit-content;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}


.popular-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-color);
    transition: transform 0.3s;
    /* cursor: pointer; */
}

.popular-post:hover {
    transform: translateY(-5px);
}

.popular-post:last-child {
    border-bottom: none;
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.3rem 0;
}

.post-meta span {
    display: flex;
    align-items: center;
    margin-right: 0.8rem;
}

.post-meta i {
    margin-right: 0.3rem;
}

.popular-post h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.view-all-btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: var(--gray-color);
}

.blogs-section {
    flex: 2;
}



.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 4px;
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 180px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

/* .blog-content {
    padding: 1.2rem;
} */

.blog-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--third-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.blog-excerpt {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width:550px){
    .blog-footer{
        flex-direction: column;
        gap: 10px;
    }
    .blog-author{
        width: 100%;
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    .author-img {
        width: 25px;
        height: 25px;
    }
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
    width: 100%;
    justify-content: end;
}

.read-more:hover {
    color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-color);
    border-radius: 50%;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.subscribe-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #e67012;
}


.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .popular-section {
        order: 2;
    }
    
    .blogs-section {
        order: 1;
    }
    

}



@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    

    
    .popular-post {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-input, .subscribe-btn {
        border-radius: 50px;
        padding: 0.8rem;
    }
}



/* Estilos para la vista detallada del blog */
.blog-detail-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.blog-detail {
    flex: 2;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.back-to-blog:hover {
    text-decoration: underline;
}

.blog-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}


.blog-date {
    font-size: 0.9rem;
    color: #666;
}

.blog-image {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.blog-image img {
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
    padding: 10px;
}

@media (max-width:550px){
    .blog-content{
        margin-bottom: 0px;
        font-size: 0.8rem;
    }
}

.blog-content p{
    margin-bottom: 0px;
}


.blog-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-img img {
    /* width: 60px;
    height: 60px; */
    border-radius: 50%;
    object-fit: cover;
}

.author-info span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.author-info h4 {
    margin: 5px 0 0;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-detail-container {
        flex-direction: column;
    }
    
    .blog-detail h1 {
        font-size: 2rem;
    }
    .author-info h4 {
        font-size: 0.8rem;
    }
}