.elementor-2335 .elementor-element.elementor-element-819574a{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2335 .elementor-element.elementor-element-57a91d1{width:var( --container-widget-width, 100% );max-width:100%;--container-widget-width:100%;--container-widget-flex-grow:0;}.elementor-2335 .elementor-element.elementor-element-57a91d1.elementor-element{--align-self:center;}.elementor-2335 .elementor-element.elementor-element-b91b105{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}body.elementor-page-2335:not(.elementor-motion-effects-element-type-background), body.elementor-page-2335 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#121212;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-57a91d1 */h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 3rem 0 2rem 0;
    font-weight: 700;
    color: #ffffff;
}

/* ====================================================== */
/* UNIFIED SKELETON LOADER STYLE (For Both Sections) */
/* ====================================================== */
.card.skeleton {
    background-color: #252525;
    position: relative;
    overflow: hidden;
}
.skeleton-img, .skeleton-text {
    background: linear-gradient(90deg, #252525 25%, #3a3a3a 50%, #252525 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.card.skeleton .skeleton-img {
    height: 100%;
    width: 100%;
    position: absolute;
}
.card.skeleton .skeleton-text {
    position: absolute;
    height: 1.2rem;
    border-radius: 4px;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
}
.card.skeleton .skeleton-text.short {
    width: 40%;
    height: 0.8rem;
    bottom: 3.5rem;
}

/* ====================================================== */
/* SECTION 1: MASONRY GRID STYLES */
/* ====================================================== */
.masonry-container {
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}
.masonry-container .card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    color: white;
    transition: transform 0.3s ease;
    background-color: #252525;
    text-decoration: none;
}
.masonry-container .card:hover {
    transform: translateY(-5px);
}
.masonry-container .card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.masonry-container .card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    position: absolute;
    z-index: 1;
}
.masonry-container .card-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    z-index: 2;
}
.masonry-container .card-content {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
}
.masonry-container .card-category {
    display: inline-block;
    background-color: #007bff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.masonry-container .card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
}

/* ====================================================== */
/* SECTION 2: LATEST ARTICLES STYLES (CORRECTED FOR UNIFORM SIZE) */
/* ====================================================== */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
    align-items: stretch; /* **مهم:** تضمین می‌کند کارت‌های یک ردیف هم‌قد باشند */
}
.blog-card {
    display: flex;
    flex-direction: column; /* این به flex-grow اجازه کار می‌دهد */
    background-color: #252525;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-8px);
}
.blog-card-image {
    height: 256px !important;
    object-fit: fill; /* تصویر را برش می‌زند تا کاملاً فیت شود */
    flex-shrink: 0; /* جلوگیری از کوچک شدن تصویر */
    max-width: 512px !important;
    max-height: 256px !important;
   border-radius: 25px !important;
    padding: 10px !important;
    width: 100% !important;
}
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* **مهم:** این بخش فضای خالی را پر می‌کند */
}
.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    /* محدود کردن عنوان به ۲ خط و افزودن "..." */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-card-excerpt {
    padding-top: 0.75rem;
    font-size: 1rem;
    color: #aaaaaa;
    line-height: 1.6;
    /* محدود کردن خلاصه به ۳ خط و افزودن "..." */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* حذف height ثابت و flex-grow برای دادن کنترل به کانتینر والد */
    margin-bottom: 1.5rem;
}
.blog-card-footer {
    margin-top: auto; /* **مهم:** فوتر را به پایین‌ترین نقطه کارت می‌چسباند */
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-profile-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 100% !important;
    object-fit: fill !important;
}
.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cccccc;
}
.footer-arrow-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    flex-shrink: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .blog-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
@media (max-width: 768px) {
    .masonry-container, .blog-grid-container {
        grid-template-columns: 1fr;
    }
    .masonry-container .card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
}/* End custom CSS */