:root {
    --gold: #e0c297;
    --bg: #0a1215;
    --panel: #0c1418;
    --muted: #b5c0c7;
    --line: #1a2429;
    --rad: 20px;
}

.category-posts {
    padding: 100px 0 140px;
    background: var(--bg);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 36px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--rad);
    overflow: hidden;
    transition: all 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.post-card:hover {
    transform: translateY(-18px);
    box-shadow:
        0 38px 80px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(224, 194, 151, 0.22);
}

.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.post-card:hover img {
    transform: scale(1.09);
}

.post-content {
    padding: 30px;
}

.post-card h3 {
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #fff;
}

.post-card p {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.read-more {
    color: var(--gold);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 16px;
    color: #fff;
}

.custom-pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-pagination a,
.custom-pagination span {
    background: var(--panel);
    color: var(--muted);
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--line);
    min-width: 52px;
    text-align: center;
    font-weight: 500;
    transition: all 0.35s ease;
}

.custom-pagination a:hover,
.custom-pagination .current {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .category-posts {
        padding: 80px 0 100px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.animated-hero {
    height: 52dvh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(to bottom,
            rgba(10, 18, 21, 0.84),
            rgba(10, 18, 21, 0.97)),
        radial-gradient(circle at 32% 42%,
            rgba(224, 194, 151, 0.12),
            transparent 44%),
        radial-gradient(circle at 68% 68%,
            rgba(224, 194, 151, 0.09),
            transparent 46%),
        radial-gradient(circle at 50% 18%,
            rgba(224, 194, 151, 0.045),
            transparent 50%),
        var(--bg);
}

.animated-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(224, 194, 151, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(224, 194, 151, 0.025) 1px, transparent 1px);
    background-size: 78px 78px;
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
    animation: heroGridMove 30s linear infinite;
}

.animated-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 35% 45%,
            rgba(224, 194, 151, 0.11),
            transparent 46%),
        radial-gradient(circle at 65% 70%,
            rgba(224, 194, 151, 0.08),
            transparent 48%);
    pointer-events: none;
    z-index: 1;
    animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 78px 78px;
    }
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: 0.72;
    }

    50% {
        opacity: 1;
    }
}

.animated-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.animated-hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 18px;
}

.animated-hero__eyebrow {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.18em;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.animated-hero__title {
    font-family: "Barlow", sans-serif;
    font-size: clamp(34px, 5.6vw, 58px);
    line-height: 1.05;
    margin: 0 0 14px;
    color: #fff;
    font-weight: 800;
}

.animated-hero__desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    display: block;
}

.hero-card {
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    border: 1px solid rgba(224, 194, 151, 0.2);
    background:
        linear-gradient(135deg,
            rgba(224, 194, 151, 0.105),
            rgba(255, 255, 255, 0.025)),
        rgba(12, 20, 24, 0.28);
    backdrop-filter: blur(2px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 6px rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 27px;
    opacity: 0;
    animation: heroCardFloat 22s ease-in-out infinite;
}

.hero-card i {
    transform: translateY(1px);
    text-shadow: 0 0 18px rgba(224, 194, 151, 0.28);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 19px;
    border: 1px solid rgba(224, 194, 151, 0.1);
}

.hero-card--1 {
    top: 16%;
    left: 8%;
    animation-delay: 0s;
}

.hero-card--2 {
    top: 65%;
    left: 15%;
    animation-delay: 4s;
}

.hero-card--3 {
    top: 18%;
    right: 10%;
    animation-delay: 8s;
}

.hero-card--4 {
    top: 66%;
    right: 16%;
    animation-delay: 12s;
}

.hero-card--5 {
    top: 48%;
    left: 61%;
    animation-delay: 16s;
}

@keyframes heroCardFloat {
    0% {
        transform: translate3d(0, 44px, 0) scale(0.86) rotate(4deg);
        opacity: 0;
    }

    18% {
        opacity: 0.42;
    }

    50% {
        transform: translate3d(18px, -28px, 0) scale(1.03) rotate(-4deg);
        opacity: 0.66;
    }

    82% {
        opacity: 0.28;
    }

    100% {
        transform: translate3d(-14px, -72px, 0) scale(0.86) rotate(4deg);
        opacity: 0;
    }
}

.hero-line {
    position: absolute;
    height: 1px;
    width: 280px;
    background: linear-gradient(90deg,
            transparent,
            rgba(224, 194, 151, 0.42),
            transparent);
    opacity: 0;
    animation: heroLineFlow 18s ease-in-out infinite;
}

.hero-line--1 {
    top: 31%;
    left: 10%;
    transform: rotate(18deg);
    animation-delay: 2s;
}

.hero-line--2 {
    top: 64%;
    right: 9%;
    transform: rotate(-18deg);
    animation-delay: 7s;
}

.hero-line--3 {
    top: 48%;
    left: 50%;
    width: 230px;
    transform: rotate(0deg);
    animation-delay: 12s;
}

@keyframes heroLineFlow {
    0% {
        opacity: 0;
        transform: translateX(-36px) rotate(18deg);
    }

    38% {
        opacity: 0.48;
    }

    72% {
        opacity: 0.18;
    }

    100% {
        opacity: 0;
        transform: translateX(42px) rotate(18deg);
    }
}

.animated-hero--contact .hero-card {
    border-radius: 24px;
}

.animated-hero--about .hero-card {
    border-radius: 50%;
}

.animated-hero--about .hero-card::before {
    border-radius: 50%;
}

.animated-hero--blog .hero-card,
.animated-hero--category .hero-card {
    border-radius: 22px;
}

.animated-hero--blog .hero-card::before,
.animated-hero--category .hero-card::before {
    border-radius: 16px;
}

@media (max-width: 767px) {
    .animated-hero {
        height: 46dvh;
        min-height: 320px;
    }

    .animated-hero__title {
        font-size: 40px;
    }

    .animated-hero__desc {
        font-size: 13px;
    }

    .hero-card {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 20px;
    }

    .hero-card::before {
        inset: 9px;
        border-radius: 13px;
    }

    .animated-hero--about .hero-card,
    .animated-hero--about .hero-card::before {
        border-radius: 50%;
    }

    .hero-line {
        width: 180px;
    }

    .hero-card--1 {
        left: 3%;
    }

    .hero-card--2 {
        left: 8%;
    }

    .hero-card--3 {
        right: 4%;
    }

    .hero-card--4 {
        right: 8%;
    }

    .hero-card--5 {
        left: 58%;
    }
}

.contact-hero.animated-hero,
.about-hero.animated-hero,
.blog-hero.animated-hero,
.category-hero.animated-hero {
    height: 52dvh;
    min-height: 380px;
    display: flex;
    place-items: unset;
    background:
        linear-gradient(to bottom,
            rgba(10, 18, 21, 0.84),
            rgba(10, 18, 21, 0.97)),
        radial-gradient(circle at 32% 42%,
            rgba(224, 194, 151, 0.12),
            transparent 44%),
        radial-gradient(circle at 68% 68%,
            rgba(224, 194, 151, 0.09),
            transparent 46%),
        radial-gradient(circle at 50% 18%,
            rgba(224, 194, 151, 0.045),
            transparent 50%),
        var(--bg);
}

.contact-hero.animated-hero::before,
.about-hero.animated-hero::before,
.blog-hero.animated-hero::before,
.category-hero.animated-hero::before {
    background:
        linear-gradient(90deg, rgba(224, 194, 151, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(224, 194, 151, 0.025) 1px, transparent 1px);
    background-size: 78px 78px;
}

@media (max-width: 767px) {

    .contact-hero.animated-hero,
    .about-hero.animated-hero,
    .blog-hero.animated-hero,
    .category-hero.animated-hero {
        height: 46dvh;
        min-height: 320px;
    }
}

.blog-category-page {
    direction: ltr;
}

.blog-category-page[dir="rtl"] {
    text-align: right;
}

.blog-category-page[dir="ltr"] {
    text-align: left;
}

.posts-grid {
    align-items: stretch;
}

.post-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
    will-change: transform;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card img {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    will-change: transform;
}

.post-card:hover img {
    transform: scale(1.035);
    filter: brightness(0.92);
}

.post-content,
.post-content * {
    transform: none !important;
    scale: 1 !important;
    letter-spacing: normal !important;
}

.post-content {
    position: relative;
    z-index: 2;
}

.post-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    line-height: 1.45;
}

.post-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 78px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.post-card:hover .post-content h3,
.post-card:hover .post-content p {
    color: inherit;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.read-more:hover {
    transform: none !important;
    scale: 1 !important;
}

.blog-category-page[dir="rtl"] .read-more__icon {
    transform: rotate(180deg);
}

.blog-category-page[dir="rtl"] .post-content h3,
.blog-category-page[dir="rtl"] .post-content p {
    text-align: right;
}

.blog-category-page[dir="ltr"] .post-content h3,
.blog-category-page[dir="ltr"] .post-content p {
    text-align: left;
}

.custom-pagination {
    direction: ltr;
}

@media (max-width: 768px) {
    .post-card:hover {
        transform: translateY(-4px);
    }

    .post-card:hover img {
        transform: scale(1.02);
    }

    .post-content p {
        min-height: auto;
    }
}