/* ====== Section 1 ====== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.site-name {
    color: var(--light-blue);
}

.hero .buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.resume-button {
    background: #eee;
    color: var(--light-blue);
    border: 1px solid var(--light-blue);
}

.resume-button:hover {
    background: #eee;
}

.hero-left div {
    width: 550px;
    height: 550px;
}


/* ====== Section 2 ====== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
    scroll-margin-top: 180px;
}

.feature-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ====== Section 3 ====== */
.resume {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    scroll-margin-top: 180px;
}

.resume article {
    width: calc(25% - 15px);
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background-position: top center;
    background-size: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease-in-out;

    /* کد های زیر برای متن هنگام هاور کاور مشکی */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume_1 {
    background-image: url('../../images/resumes/resume1.png');
}

.resume_2 {
    background-image: url('../../images/resumes/resume2.png');
}

.resume_3 {
    background-image: url('../../images/resumes/resume3.png');
}

.resume_4 {
    background-image: url('../../images/resumes/resume4.png');
}

.resume_5 {
    background-image: url('../../images/resumes/resume5.png');
}

/* .resume_6 {
    background-image: url('../../images/resumes/resume6.jpg');
}

.resume_7 {
    background-image: url('../../images/resumes/resume7.png');
}

.resume_8 {
    background-image: url('../../images/resumes/resume8.png');
} */

/* برای روکش مشکی هنگام هاور */
.resume article::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resume article:hover::after {
    opacity: 1;
}

.resume article:hover {
    background-position: center bottom;
}

/* استایل های مربوط به متن داخل یاکس هنگام باکس */
.resume article a {
    width: 110px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    color: var(--white);
    background-color: var(--light-blue);
    opacity: 0;
    z-index: 1;
    transform: translateY(-40px);
    transition: all 0.3s ease-in-out;
}

.resume article:hover a {
    opacity: 1;
    transform: translateY(0px);
}

/* ====== Section 4 ====== */
.weblog-container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.blog-arrow-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.blog-arrow-buttons button {
    width: 40px;
    height: 40px;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    background: #fff;
    color: var(--title-color);
    box-shadow: 0 0px 3px rgba(55, 55, 55, .1);
    border: 1px solid #ddd;
    cursor: pointer;
    transition: .2s
}

.blog-arrow-buttons button:hover {
    color: var(--blue);
}

.blog-arrow-buttons button.swiper-button-disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}


.blog-card {
    border-radius: 16px;
    background: var(--white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: .3s
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-card-image {
    width: 100%;
}

.blog-card-image img {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.blog-card-title {
    font-size: 0.915rem;
    font-weight: 600;
    margin-top: 0.85rem;
    color: var(--title-color);
    line-height: 1.5;
    min-height: 45px;
    /* محدود کردن به 2 خط */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-link {
    color: inherit;
    text-decoration: none
}

.blog-card-link:hover {
    text-decoration: underline
}

.blog-card-summary {
    font-size: 14px;
    color: var(--desc-color);
    text-align: justify;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-category {
    color: var(--desc-color);
    font-size: 0.775rem;
}

.published-date {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.775rem;
    color: var(--desc-color);
    gap: 5px;
}






/* ریسپانسیو */
@media (max-width: 1024px) {

    /* ====== Section 1 ====== */
    .hero {
        flex-direction: column-reverse;
    }

    .hero-right {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .hero-left div {
        width: 450px;
        height: 450px;
    }


    /* ====== Section 3 ====== */
    .resume article {
        width: calc(33% - 12px);
    }
}

@media (max-width: 768px) {

    /* ====== Section 1 ====== */
    .hero-left div {
        width: 380px;
        height: 340px;
    }

    /* ====== Section 2 ====== */
    .features {
        gap: 10px;
    }

    /* ====== Section 3 ====== */
    .resume {
        gap: 10px;
    }

    .resume article {
        width: calc(50% - 5px);
        height: 250px;
    }
}
