/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-transform: 0;
    background-color: #f5f5f5;
    
}

:root{
    --primary: #336600; 
    --secondary: #99cc66;
    --light: #f5f5f5;
    --dark: #14141f;
    --yellow: #ffcc33;
    --orange: #ff9900;
    --grem: #907c46;
}
/*================== portada prencipal blog ================*/
.contact-cover {
    position: relative;
    width: 100%;
    height: 46vh;
    overflow: hidden;
    top: -50px;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.contact-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }
    .contact-cover{
        height: 95vh;
    }
}


/*** section about blog **/
.about{
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.about .contentBx{
    max-width: 65%;
    width: 65%;
    text-align: left;
    padding-right: 40px;
}

.titleText{
    font-weight: 600;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.title-text{
    color: #111;
    font-size: 1em;
}

.about .imgBx{
    position: relative;
    min-width: 35%;
    width: 35%;
    min-height: 400px;
}
.about img{
    border-radius: 10px;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.btn-blog{
    position: relative;
    display: inline-block;
    margin-top: 30px;
    padding: 10px 30px;
    background: #fff;
    border: .8px solid #111;
    color: #333;
    text-decoration: none;
    transition: 0.5s;
}

.btn-blog:hover{
    background-color: var(--secondary);
    border: none;
    color: #fff;
}
h2{
    color: var(--primary);
}
@media (max-width: 768px) {
    .about .contentBx {
        max-width: 100%;
        width: 100%;
        padding: 0 20px 0 20px;
    }

    .about .imgBx {
        min-width: 100%;
        width: 100%;
        min-height: 300px;
        padding-top: 20px;
    }

    .titleText {
        font-size: 1.5rem;
    }

    .title-text {
        font-size: 0.875rem;
    }

    .btn-blog {
        padding: 8px 20px;
        margin-top: 20px;
    }
}
/*================== section blog ================*/
.content-subnavbar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    
}

.post-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-item {
    padding: 5px 10px;
    background-color: var(--light);
    border: 1px solid var(--dark);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-item:hover,
.filter-item.active-filter {
    background-color: var(--primary);
    color: var(--light);
}
#subcategories span{
    padding: 5px 10px;
    background-color: #03300a;
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
#subcategories span:hover{
    background-color: var(--primary);
    color: var(--light);
}

@media (max-width: 768px) {
    .filter-item {
        padding: 3px 8px;
        font-size: 0.875rem;
    }
}
/**==========================section post all not movile ===============**/
.post-filter{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

.filter-item{
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.active-filter{
    background: var(--second-color);
    color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
}

.post{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    gap: 1.5rem;
}

.post-box{
    background: var(--bg-color);
    box-shadow: 0 4px 14px hsl(35deg 25% 15% / 10%);
    padding: 15px;
    border-radius: 0.5rem;
}

.post-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

.category{
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--second-color);
}

.post-title{
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.post-date{
    display: flex;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 400;
    color: var(--dark);
}

.post-description{
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin: 5px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.profile-img{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--dark);
}
.profile-img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.profile-name{
    font-size: .8rem;
    font-weight: 500;
}