@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam.ttf'); font-display: swap; }
@font-face { font-family: 'ShabnamBold'; src: url('../fonts/Shabnam-Bold.ttf'); font-display: swap; }
@font-face { font-family: 'ShabnamLight'; src: url('../fonts/Shabnam-Light.ttf'); font-display: swap; }
@font-face { font-family: 'ShabnamMedium'; src: url('../fonts/Shabnam-Medium.ttf'); font-display: swap; }
@font-face { font-family: 'ShabnamThin'; src: url('../fonts/Shabnam-Thin.ttf'); font-display: swap; }

@font-face { font-family: 'VazirmatnBlack'; src: url('../fonts/Vazirmatn-Black.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnBold'; src: url('../fonts/Vazirmatn-Bold.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnExtraBold'; src: url('../fonts/Vazirmatn-ExtraBold.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnExtraLight'; src: url('../fonts/Vazirmatn-ExtraLight.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnLight'; src: url('../fonts/Vazirmatn-Light.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnMedium'; src: url('../fonts/Vazirmatn-Medium.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnRegular'; src: url('../fonts/Vazirmatn-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnSemiBold'; src: url('../fonts/Vazirmatn-SemiBold.ttf'); font-display: swap; }
@font-face { font-family: 'VazirmatnThin'; src: url('../fonts/Vazirmatn-Thin.ttf'); font-display: swap; }
.lrl-blog-hero {
    position: relative;
    overflow: hidden;
    direction: rtl;
    background: #050816;
    color: #fff;
    padding: 40px 20px 30px;
}

.lrl-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(123, 92, 255, 0.22), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(166, 109, 255, 0.14), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(108, 69, 255, 0.12), transparent 30%);
    pointer-events: none;
}

.lrl-blog-hero__container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 36px;
    min-height: 520px;
}

.lrl-blog-hero__content {
    max-width: 620px;
}

.lrl-blog-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.lrl-blog-hero__breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.lrl-blog-hero__title {
    font-size: clamp(28px, 4vw, 37px);
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 18px;
    font-family: 'VazirmatnBlack';
    letter-spacing: -0.5px;
}

.lrl-blog-hero__title-accent {
    display: block;
    color: #8b5cf6;
}

.lrl-blog-hero__text {
    font-size: 16px;
    font-family: 'VazirmatnMedium';
    line-height: 2;
    color: rgba(255,255,255,0.78);
    max-width: 540px;
    margin: 0 0 28px;
}

.lrl-blog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.lrl-blog-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.35s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
}

.lrl-blog-hero__btn--primary {
    color: #fff;
    font-family: 'VazirmatnBlack';
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.lrl-blog-hero__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.5);
}

.lrl-blog-hero__btn--secondary {
    font-family: 'VazirmatnBlack';
    color: #efe9ff;
    background: rgba(255,255,255,0.03);
    border-color: rgba(155, 126, 255, 0.28);
}

.lrl-blog-hero__btn--secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(155, 126, 255, 0.5);
    background: rgba(255,255,255,0.06);
}

.lrl-blog-hero__btn-icon {
    font-style: normal;
    font-size: 16px;
}

.lrl-blog-hero__visual {
    position: relative;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lrl-blog-hero__scene {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lrl-blog-hero__main-img {
    width: 594px;
    /* max-width: 540px; */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 55px rgba(124, 58, 237, 0.35));
    animation: lrlBlogFloat 6s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
    border-radius: 10px;
}

.lrl-blog-hero__floating {
    position: absolute;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(36, 15, 77, 0.7);
    border: 1px solid rgba(168, 120, 255, 0.28);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    animation: lrlBlogBubble 4.8s ease-in-out infinite;
}

.lrl-blog-hero__floating--html {
    top: 12%;
    right: 16%;
    animation-delay: 0s;
}

.lrl-blog-hero__floating--css {
    top: 10%;
    left: 16%;
    animation-delay: 0.6s;
}

.lrl-blog-hero__floating--js {
    top: 28%;
    right: 2%;
    animation-delay: 1s;
}

.lrl-blog-hero__floating--laravel {
    left: 2%;
    top: 36%;
    animation-delay: 1.4s;
}

.lrl-blog-hero__floating--python {
    bottom: 14%;
    left: 18%;
    animation-delay: 1.8s;
}

.lrl-blog-search {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 10px;
}

.lrl-blog-search__form {
    display: grid;
    grid-template-columns: 1fr 220px 160px;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(14, 10, 30, 0.78);
    border: 1px solid rgba(148, 93, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.lrl-blog-search__field {
    position: relative;
}

.lrl-blog-search__field input,
.lrl-blog-search__field select {
    width: 100%;
    height: 54px;
    font-family: 'VazirmatnMedium';
    border: 1px solid rgba(141, 105, 255, 0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    color: #fff;
    outline: none;
    padding: 0px 18px;
    font-size: 14px;
}

.lrl-blog-search__field input::placeholder {
    color: rgba(255,255,255,0.55);
}

.lrl-blog-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.55);
    pointer-events: none;
}

.lrl-blog-search__btn {
    font-family: 'VazirmatnBlack';
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.32);
}

.lrl-blog-search__btn:hover {
    transform: translateY(-2px);
}

/* Reveal on scroll */
.lrl-blog-hero__reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.lrl-blog-hero__reveal.lrl-blog-hero__is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .lrl-blog-hero__container {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        padding-top: 20px;
    }

    .lrl-blog-hero__visual {
        min-height: auto;
    }

    .lrl-blog-search__form {
        grid-template-columns: 1fr 1fr;
    }

    .lrl-blog-search__btn {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .lrl-blog-hero {
        padding: 30px 5px 25px;
    }

    .lrl-blog-hero__container {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
    }

    .lrl-blog-hero__content {
        max-width: 100%;
        text-align: center;
    }

    .lrl-blog-hero__breadcrumb {
        justify-content: center;
        margin-bottom: 12px;
    }

    .lrl-blog-hero__title {
        font-size: clamp(22px, 5.5vw, 28px);
        margin-bottom: 12px;
    }

    .lrl-blog-hero__text {
        font-size: 14.5px;
        line-height: 1.8;
        margin: 0 auto 20px;
    }

    .lrl-blog-hero__actions {
        justify-content: center;
        gap: 10px;
    }

    .lrl-blog-hero__btn {
        flex: 1;
        min-width: 140px;
        min-height: 48px;
        padding: 0 15px;
        font-size: 14px;
        border-radius: 12px;
    }

    .lrl-blog-hero__scene {
        width: calc(100% - 10px);
        margin: 0 auto;
    }

    .lrl-blog-hero__main-img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .lrl-blog-hero__floating {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
        backdrop-filter: blur(8px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    .lrl-blog-hero__floating--html {
        top: 8%;
        right: 8%;
    }

    .lrl-blog-hero__floating--css {
        top: 6%;
        left: 8%;
    }

    .lrl-blog-hero__floating--js {
        top: 28%;
        right: -2px;
    }

    .lrl-blog-hero__floating--laravel {
        left: -2px;
        top: 36%;
    }

    .lrl-blog-hero__floating--python {
        bottom: 8%;
        left: 10%;
    }

    .lrl-blog-search {
        margin-top: 20px;
        padding: 0 5px;
    }

    .lrl-blog-search__form {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        border-radius: 16px;
    }

    .lrl-blog-search__field input,
    .lrl-blog-search__field select,
    .lrl-blog-search__btn {
        height: 48px;
        font-size: 13.5px;
        border-radius: 10px;
    }

    .lrl-blog-search__btn {
        grid-column: span 1;
    }
}


/* Animations */
@keyframes lrlBlogFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes lrlBlogBubble {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

/* Responsive */
@media (max-width: 992px) {
    .lrl-blog-hero__container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lrl-blog-hero__visual {
        order: 2;
        min-height: 420px;
    }

    .lrl-blog-hero__content {
        order: 1;
        max-width: 100%;
        text-align: center;
    }

    .lrl-blog-hero__breadcrumb,
    .lrl-blog-hero__actions {
        justify-content: center;
    }

    .lrl-blog-hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .lrl-blog-search__form {
        grid-template-columns: 1fr 1fr;
    }

    .lrl-blog-search__btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .lrl-blog-hero {
        padding: 28px 14px 22px;
    }

    .lrl-blog-hero__visual {
        min-height: 320px;
    }

    .lrl-blog-hero__scene {
        width: 100%;
    }

    .lrl-blog-hero__floating {
        font-size: 12px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .lrl-blog-hero__floating--html { top: 8%; right: 10%; }
    .lrl-blog-hero__floating--css { top: 8%; left: 10%; }
    .lrl-blog-hero__floating--js { top: 26%; right: 0; }
    .lrl-blog-hero__floating--laravel { left: 0; top: 38%; }
    .lrl-blog-hero__floating--python { bottom: 10%; left: 12%; }

    .lrl-blog-search__form {
        grid-template-columns: 1fr;
    }

    .lrl-blog-search__field input,
    .lrl-blog-search__field select,
    .lrl-blog-search__btn {
        height: 50px;
    }
}

/* Container & Wrapper */
.dp-blog-wrapper {
    background-color: #05020d;
    padding: 60px 20px;
    direction: rtl;
    font-family: 'Tahoma', sans-serif;
    overflow: hidden;
}

/* 1. Categories Styling */
.dp-blog-cats {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.dp-blog-cats__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.dp-blog-cats__all {
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.dp-blog-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.dp-blog-cat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'VazirmatnBlack';
    margin-top: 7px;
}

.dp-blog-cat-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: #7c3aed;
}

.dp-blog-cat-card__icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dp-icon-glow--red { box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.dp-icon-glow--blue { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

.dp-blog-cat-card__title {
    color: #fff;
    font-size: 14px;
    margin: 0 0 5px;
}

.dp-blog-cat-card__count {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
}

/* 2. Featured Post Styling */
.dp-featured-post {
    max-width: 1200px;
    margin: 0 auto;
}

.dp-featured-card {
    background: linear-gradient(135deg, rgba(17, 10, 43, 0.8) 0%, rgba(5, 2, 13, 1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.dp-featured-card__badge {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
    font-family: 'VazirmatnBlack';
}

.dp-featured-card__title {
    color: #fff;
    font-size: 32px;
    font-family: 'VazirmatnBlack';
    font-weight: 800;
    margin-bottom: 25px;
}

.dp-featured-card__meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 30px;
    font-family: 'VazirmatnMedium';
}

.dp-featured-card__desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: 'VazirmatnMedium';
}

.dp-featured-card__btn {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: 0.3s;
    font-family: 'VazirmatnBlack';
}

.dp-featured-card__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Visuals & Floating */
.dp-featured-card__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container { position: relative; width: 100%; }

.main-mockup {
    width: 100%;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.3));
}

.floating-item {
    position: absolute;
    color: #fff;
    padding: 8px 15px;
    animation: float 4s ease-in-out infinite;
}

.fi-1 { top: 20%; right: -5%; animation-delay: 0s; }
.fi-2 { top: 40%; left: -10%; animation-delay: 1s; }
.fi-3 { bottom: 10%; right: 0; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 3. Reveal on Scroll Logic */
.dp-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dp-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 992px) {
    .dp-featured-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .dp-featured-card__visual { order: -1; margin-bottom: 20px; }
    .dp-featured-card__title { font-size: 24px; }
}

@media (max-width: 576px) {
    .dp-blog-cats__grid {
        display: flex;
        gap: 10px;
    }
    .dp-blog-cat-card { min-width: 100px; }
    .dp-featured-card__meta { flex-direction: column; gap: 10px; }
}

.lrl-latest-posts {
    direction: rtl;
    padding: 50px 20px;
    background: #05020d;
    overflow: hidden;
}

.lrl-latest-posts__inner {
    max-width: 1240px;
    margin: 0 auto;
}

.lrl-latest-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    direction: ltr;
    font-family: 'VazirmatnBlack';
}

.lrl-latest-posts__title {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 800;
}

.lrl-latest-posts__more {
    color: #c084fc;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.lrl-latest-posts__more:hover {
    color: #fff;
    transform: translateX(-3px);
}

.lrl-latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lrl-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 120, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.lrl-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 120, 255, 0.28);
    box-shadow: 0 22px 55px rgba(124, 58, 237, 0.18);
}

.lrl-post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.22), transparent 55%), #12081f;
}

.lrl-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lrl-post-card:hover .lrl-post-card__media img {
    transform: scale(1.05);
}

.lrl-post-card__badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-family: 'VazirmatnMedium';
    font-weight: 700;
    color: #fff;
    background: rgba(124, 58, 237, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.lrl-post-card__body {
    padding: 18px 18px 16px;
}

.lrl-post-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 800;
}

.lrl-post-card__title a {
    color: #fff;
    text-decoration: none;
    transition: 0.25s ease;
    font-family: 'VazirmatnBlack';
}

.lrl-post-card__title a:hover {
    color: #c084fc;
}

.lrl-post-card__text {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 2;
    font-family: 'VazirmatnMedium';
}

.lrl-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    font-family: 'VazirmatnMedium';
}

.lrl-post-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.lrl-post-card__author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(168, 120, 255, 0.25);
}

.lrl-post-card__info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

/* reveal on scroll */
.lrl-reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lrl-reveal-up.lrl-is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* floating motion */
@keyframes lrlFloatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lrl-post-card:nth-child(1) .lrl-post-card__media img {
    animation: lrlFloatY 5s ease-in-out infinite;
}

.lrl-post-card:nth-child(2) .lrl-post-card__media img {
    animation: lrlFloatY 5.5s ease-in-out infinite;
}

.lrl-post-card:nth-child(3) .lrl-post-card__media img {
    animation: lrlFloatY 6s ease-in-out infinite;
}

/* responsive */
@media (max-width: 992px) {
    .lrl-latest-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lrl-latest-posts__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .lrl-latest-posts {
        padding: 36px 14px;
    }

    .lrl-latest-posts__grid {
        grid-template-columns: 1fr;
    }

    .lrl-post-card__body {
        padding: 16px;
    }

    .lrl-post-card__title {
        font-size: 16px;
    }

    .lrl-post-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .lrl-post-card__info {
        gap: 8px;
        flex-wrap: wrap;
    }
}

.lrl-popular-section {
    direction: rtl;
    background: #070b1d;
    padding: 70px 20px;
    overflow: hidden;
}

.lrl-popular-container {
    max-width: 1280px;
    margin: 0 auto;
}

.lrl-popular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.lrl-popular-title {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 800;
    font-family: 'VazirmatnBlack';
}

.lrl-popular-view-all {
    color: #9b6bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.lrl-popular-view-all:hover {
    color: #d1bcff;
}

.lrl-slider-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lrl-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding-bottom: 12px;
}

.lrl-slider-track {
    display: flex;
    gap: 18px;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.lrl-slide-card {
    flex: 0 0 calc((100% - 72px) / 5);
    min-width: calc((100% - 72px) / 5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(143, 91, 255, 0.18);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lrl-slide-card:hover {
    transform: translateY(-8px);
    border-color: rgba(179, 145, 255, 0.4);
    box-shadow: 0 16px 35px rgba(101, 56, 201, 0.22);
}

.lrl-slide-thumb {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: linear-gradient(135deg, #11162c, #0a1022);
}

.lrl-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: lrlThumbFloat 5.5s ease-in-out infinite;
    transition: transform 0.35s ease;
}

.lrl-slide-card:hover .lrl-slide-thumb img {
    transform: scale(1.06);
}

.lrl-slide-body {
    padding: 14px 14px 16px;
}

.lrl-slide-title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 700;
}

.lrl-slide-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
    font-family: 'VazirmatnBlack';
}

.lrl-slide-title a:hover {
    color: #c6a8ff;
}

.lrl-slide-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    white-space: nowrap;
    font-family: 'VazirmatnMedium';
}

.lrl-slider-btn {
    padding-bottom: 2px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #9d75ff, #642ee8);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(107, 54, 243, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 3;
}

.lrl-slider-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 30px rgba(107, 54, 243, 0.45);
}

.lrl-slider-btn:active {
    transform: scale(0.96);
}

.lrl-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.lrl-slider-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: 0.25s ease;
}

.lrl-slider-dot.lrl-active {
    width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8f5bff, #b79bff);
    box-shadow: 0 0 14px rgba(143, 91, 255, 0.5);
}

.lrl-reveal-item {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lrl-reveal-item.lrl-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes lrlThumbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 1199px) {
    .lrl-slide-card {
        flex: 0 0 calc((100% - 36px) / 3);
        min-width: calc((100% - 36px) / 3);
    }
}

@media (max-width: 991px) {
    .lrl-popular-section {
        padding: 60px 16px;
    }

    .lrl-slide-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }

    .lrl-slider-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .lrl-popular-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lrl-slider-shell {
        gap: 8px;
    }

    .lrl-slide-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .lrl-slide-title {
        font-size: 14px;
    }

    .lrl-slider-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 18px;
    }
}

.lrl-news-section {
    padding: 60px 20px;
    direction: rtl;
    background-color: #070b1d;
}

.lrl-news-container {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(105deg, rgba(143, 91, 255, 0.2) 0%, rgba(30, 10, 80, 0.6) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(143, 91, 255, 0.3);
    border-radius: 24px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.lrl-news-text {
    flex: 1;
    z-index: 2;
}

.lrl-news-title {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.lrl-news-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
}

.lrl-news-form-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.lrl-news-form {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 5px;
}

.lrl-news-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.lrl-news-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.lrl-news-submit {
    background: linear-gradient(90deg, #6b36f3, #8f5bff);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 54, 243, 0.4);
}

.lrl-news-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(107, 54, 243, 0.6);
}

.lrl-float-icon {
    position: absolute;
    z-index: 1;
    opacity: 0.4;
    filter: blur(1px);
}

.lrl-icon-1 { left: 40px; top: 20%; width: 80px; animation: lrlFloatAni 4s infinite ease-in-out; }
.lrl-icon-2 { left: 120px; top: 10%; width: 40px; animation: lrlFloatAni 3s infinite ease-in-out 0.5s; }
.lrl-icon-3 { left: 100px; bottom: 15%; width: 50px; animation: lrlFloatAni 5s infinite ease-in-out 1s; }

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

.lrl-reveal-newsletter {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.lrl-reveal-newsletter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .lrl-news-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .lrl-news-text { margin-bottom: 30px; }
    .lrl-news-form-wrapper { justify-content: center; width: 100%; }
}

@media (max-width: 576px) {
    .lrl-news-title { font-size: 20px; }
    .lrl-news-form { flex-direction: column; background: transparent; border: none; gap: 10px; }
    .lrl-news-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }
    .lrl-news-submit { width: 100%; padding: 15px; }
    .lrl-float-icon { display: none; }
}

/* ===== Newsletter Banner ===== */
.lrl-newsletter-section {
    direction: rtl;
    background: #040610;
    padding: 13px 0px 35px 0px;
}

.lrl-newsletter-banner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 22px 28px;
    min-height: 92px;
    display: flex;
    align-items: center;

    background: linear-gradient(90deg, #120c30 0%, #1b1440 52%, #211656 100%);
    border: 1px solid rgba(173, 147, 255, 0.14);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* subtle glow */
.lrl-newsletter-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 45%, rgba(128, 86, 255, 0.18), transparent 26%),
        radial-gradient(circle at 80% 25%, rgba(73, 165, 255, 0.08), transparent 20%);
    pointer-events: none;
}

/* content layout */
.lrl-newsletter-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.lrl-newsletter-text {
    text-align: right;
    padding-inline-start: 8px;
}

.lrl-newsletter-title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.45;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.2px;
    font-family: 'VazirmatnBlack';
}

.lrl-newsletter-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(235, 229, 255, 0.72);
    font-family: 'VazirmatnMedium';
}

/* form */
.lrl-newsletter-form {
    display: flex;
    justify-content: flex-start;
}

.lrl-newsletter-input-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(9, 10, 24, 0.5);
    border: 1px solid rgba(180, 155, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.lrl-newsletter-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 14px 16px;
    font-size: 13px;
    font-family: 'VazirmatnMedium';
}

.lrl-newsletter-input::placeholder {
    color: rgba(235, 229, 255, 0.45);
}

.lrl-newsletter-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    padding: 0 22px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7b4dff 0%, #4f73ff 100%);
    box-shadow:
        0 8px 24px rgba(91, 93, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    font-family: 'VazirmatnBlack';
}

.lrl-newsletter-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 10px 28px rgba(91, 93, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* decorative art on the left */
.lrl-newsletter-art {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.lrl-envelope {
    position: absolute;
    display: block;
    filter: drop-shadow(0 0 14px rgba(129, 91, 255, 0.35));
    transform-origin: center;
}

.lrl-envelope svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lrl-envelope-main {
    left: 0;
    top: 18px;
    width: 92px;
    height: 92px;
    animation: lrlEnvelopeFloatMain 4.2s ease-in-out infinite;
}

.lrl-envelope-small {
    width: 42px;
    height: 42px;
    opacity: 0.9;
}

.lrl-env-1 {
    left: 10px;
    top: 4px;
    animation: lrlEnvelopeFloat1 3.2s ease-in-out infinite 0.2s;
}

.lrl-env-2 {
    left: 58px;
    top: 0;
    animation: lrlEnvelopeFloat2 3.8s ease-in-out infinite 0.6s;
}

.lrl-env-3 {
    left: 88px;
    top: 30px;
    animation: lrlEnvelopeFloat3 3.4s ease-in-out infinite 0.9s;
}

@keyframes lrlEnvelopeFloatMain {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes lrlEnvelopeFloat1 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(-8deg); }
    50% { transform: translateY(-10px) translateX(2px) rotate(-2deg); }
}

@keyframes lrlEnvelopeFloat2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(8deg); }
    50% { transform: translateY(-12px) translateX(-2px) rotate(2deg); }
}

@keyframes lrlEnvelopeFloat3 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(-4deg); }
    50% { transform: translateY(-9px) translateX(3px) rotate(4deg); }
}

/* reveal animation */
.lrl-newsletter-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lrl-newsletter-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .lrl-newsletter-banner {
        padding: 22px;
        min-height: auto;
    }

    .lrl-newsletter-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 0;
    }

    .lrl-newsletter-text {
        text-align: center;
        padding-inline-start: 0;
    }

    .lrl-newsletter-form {
        justify-content: center;
    }

    .lrl-newsletter-art {
        left: 6px;
        width: 180px;
        height: 100px;
        opacity: 0.9;
    }
}

@media (max-width: 576px) {
    .lrl-newsletter-section {
        padding: 14px 12px;
    }

    .lrl-newsletter-banner {
        border-radius: 14px;
        padding: 18px 14px;
    }

    .lrl-newsletter-title {
        font-size: 17px;
        line-height: 1.55;
    }

    .lrl-newsletter-desc {
        font-size: 12px;
        line-height: 1.9;
    }

    .lrl-newsletter-input-wrap {
        flex-direction: column;
        max-width: 100%;
        border-radius: 12px;
        background: transparent;
        border: 0;
        gap: 8px;
        overflow: visible;
    }

    .lrl-newsletter-input {
        width: 100%;
        background: rgba(9, 10, 24, 0.55);
        border: 1px solid rgba(180, 155, 255, 0.22);
        border-radius: 10px;
        padding: 13px 14px;
        text-align: right;
    }

    .lrl-newsletter-btn {
        width: 100%;
        border-radius: 10px;
        padding: 13px 14px;
    }

    .lrl-newsletter-art {
        position: static;
        width: 100%;
        height: 70px;
        transform: none;
        margin-bottom: 10px;
        display: flex;
        justify-content: flex-start;
        opacity: 0.95;
    }

    .lrl-envelope-main {
        left: 0;
        top: 6px;
        width: 64px;
        height: 64px;
    }

    .lrl-envelope-small {
        width: 28px;
        height: 28px;
    }

    .lrl-env-1 { left: 26px; top: 0; }
    .lrl-env-2 { left: 64px; top: 2px; }
    .lrl-env-3 { left: 88px; top: 20px; }

    /* optionally reduce motion on small screens */
    .lrl-envelope,
    .lrl-newsletter-reveal {
        animation-duration: 0s;
        transition-duration: 0.5s;
    }
}

