.ahad-home-blog-section,
.ahad-blog-page,
.ahad-blog-detail-page {
    --ahad-blog-accent: #9b654f;
    --ahad-blog-accent-strong: #c6805f;
    --ahad-blog-ink: #1f201b;
    --ahad-blog-ink-soft: #5d5a53;
    --ahad-blog-surface: #f7f0e7;
    --ahad-blog-surface-alt: #efe4d7;
    --ahad-blog-border: rgba(36, 26, 21, 0.1);
    --ahad-blog-shadow: 0 28px 60px rgba(31, 20, 17, 0.14);
}

.ahad-home-blog-section {
    position: relative;
    overflow: hidden;
    padding: 138px 0 150px;
    background:
        radial-gradient(circle at 12% 12%, rgba(155, 101, 79, 0.18), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(56, 72, 60, 0.1), transparent 24%),
        linear-gradient(180deg, #f8f3eb 0%, #f0e6da 100%);
}

.ahad-home-blog-section .container {
    max-width: 1380px;
    padding-left: 52px;
    padding-right: 52px;
}

.ahad-home-blog-header {
    max-width: 760px;
    margin: 0 auto 58px;
    text-align: center;
}

.ahad-home-blog-eyebrow,
.ahad-blog-kicker,
.ahad-blog-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(155, 101, 79, 0.11);
    border: 1px solid rgba(155, 101, 79, 0.16);
    color: var(--ahad-blog-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ahad-home-blog-title,
.ahad-blog-title,
.ahad-blog-detail-title {
    margin: 0;
    color: var(--ahad-blog-ink);
    font-family: var(--title-font), Georgia, "Times New Roman", serif;
    font-size: clamp(2.9rem, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.ahad-home-blog-description,
.ahad-blog-lead,
.ahad-blog-detail-lead {
    margin: 18px auto 0;
    max-width: 650px;
    color: var(--ahad-blog-ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.ahad-home-blog-card {
    height: 100%;
}

.ahad-home-blog-card__link {
    display: block;
    height: 100%;
}

.ahad-home-blog-card__inner {
    position: relative;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: #d8c5b8;
    box-shadow: var(--ahad-blog-shadow);
    isolation: isolate;
}

.ahad-home-blog-section .ahad-home-blog-card__inner {
    min-height: 470px;
    border-radius: 0;
}

.ahad-home-blog-card__inner::before {
    content: "";
    position: absolute;
    inset: auto 0 -100% 0;
    height: 48%;
    max-height: 180px;
    background: linear-gradient(180deg, rgba(163, 59, 39, 0.96) 0%, rgba(163, 59, 39, 0.92) 100%);
    transition: inset 0.5s ease;
    z-index: 1;
}

.ahad-home-blog-card__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 12, 10, 0.06) 0%, rgba(16, 12, 10, 0.18) 34%, rgba(16, 12, 10, 0.9) 100%),
        linear-gradient(0deg, rgba(16, 12, 10, 0.22), rgba(16, 12, 10, 0));
    z-index: 0;
}

.ahad-home-blog-card__media {
    position: absolute;
    inset: 0;
}

.ahad-home-blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.ahad-home-blog-card__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 0 24px 22px;
    color: #fff;
}

.ahad-home-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ahad-home-blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.ahad-home-blog-card__meta span:first-child {
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.ahad-home-blog-card__title {
    margin: 0;
    color: inherit;
    font-family: var(--title-font), Georgia, "Times New Roman", serif;
    font-size: clamp(1.18rem, 1.45vw, 1.55rem);
    line-height: 1.24;
    letter-spacing: -0.02em;
    transition: color 0.35s ease;
}

.ahad-home-blog-section .ahad-home-blog-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.ahad-home-blog-card:hover .ahad-home-blog-card__inner::before,
.ahad-home-blog-card:focus-within .ahad-home-blog-card__inner::before {
    inset: auto 0 0 0;
}

.ahad-home-blog-card:hover .ahad-home-blog-card__media img,
.ahad-home-blog-card:focus-within .ahad-home-blog-card__media img {
    transform: scale(1.08) rotate(-2deg);
}

.ahad-home-blog-card:hover .ahad-home-blog-card__title,
.ahad-home-blog-card:hover .ahad-home-blog-card__meta span,
.ahad-home-blog-card:focus-within .ahad-home-blog-card__title,
.ahad-home-blog-card:focus-within .ahad-home-blog-card__meta span {
    color: #fff;
}

.ahad-home-blog-card:hover .ahad-home-blog-card__meta span:first-child,
.ahad-home-blog-card:focus-within .ahad-home-blog-card__meta span:first-child {
    border-color: rgba(255, 255, 255, 0.34);
}

.ahad-home-blog-footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.ahad-home-blog-button,
.ahad-blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #a33b27;
    background: #a33b27;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 34px rgba(163, 59, 39, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ahad-home-blog-button:hover,
.ahad-home-blog-button:focus-visible,
.ahad-blog-button:hover,
.ahad-blog-button:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.ahad-home-blog-empty,
.ahad-blog-empty,
.ahad-blog-not-found__card {
    border: 1px solid var(--ahad-blog-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(31, 20, 17, 0.08);
    text-align: center;
}

.ahad-home-blog-empty,
.ahad-blog-empty {
    padding: 42px 30px;
    color: var(--ahad-blog-ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.ahad-blog-page,
.ahad-blog-detail-page {
    background:
        radial-gradient(circle at top left, rgba(155, 101, 79, 0.1), transparent 24%),
        linear-gradient(180deg, #f8f1e8 0%, #efe5d8 100%);
}

.ahad-blog-hero,
.ahad-blog-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 184px 0 90px;
    color: #fff;
}

.ahad-blog-hero {
    background-image:
        linear-gradient(125deg, rgba(20, 15, 13, 0.94) 0%, rgba(33, 25, 21, 0.82) 52%, rgba(33, 25, 21, 0.56) 100%),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        var(--ahad-blog-hero-image);
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
}

.ahad-blog-detail-hero {
    background-image:
        linear-gradient(125deg, rgba(20, 15, 13, 0.94) 0%, rgba(33, 25, 21, 0.8) 52%, rgba(33, 25, 21, 0.54) 100%),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        var(--ahad-blog-detail-hero-image);
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
}

.ahad-blog-breadcrumbs,
.ahad-blog-detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ahad-blog-breadcrumbs li:not(:last-child)::after,
.ahad-blog-detail-breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.32);
}

.ahad-blog-breadcrumbs a,
.ahad-blog-detail-breadcrumbs a {
    color: inherit;
}

.ahad-blog-title,
.ahad-blog-detail-title {
    color: #fff;
}

.ahad-blog-lead,
.ahad-blog-detail-lead {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.82);
}

.ahad-blog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.ahad-blog-hero__content {
    max-width: 690px;
}

.ahad-blog-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.ahad-blog-listing {
    padding: 34px 0 128px;
}

.ahad-blog-grid,
.ahad-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ahad-home-blog-card--page .ahad-home-blog-card__inner {
    min-height: 470px;
}

.ahad-home-blog-card--page .ahad-home-blog-card__body {
    padding-right: 28px;
}

.ahad-blog-detail-content {
    position: relative;
    margin-top: -42px;
    padding: 0 0 128px;
}

.ahad-blog-detail-article {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(34px, 4vw, 60px);
    overflow: hidden;
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(198, 128, 95, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 240, 232, 0.96) 100%);
    border: 1px solid rgba(108, 74, 58, 0.11);
    box-shadow:
        0 32px 70px rgba(31, 20, 17, 0.1),
        0 10px 24px rgba(31, 20, 17, 0.04);
}

.ahad-blog-detail-article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, rgba(155, 101, 79, 0.88), rgba(198, 128, 95, 0.36), rgba(198, 128, 95, 0));
}

.ahad-blog-detail-article::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.ahad-blog-detail-article__topline,
.ahad-blog-detail-article__content > * {
    position: relative;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.ahad-blog-detail-article__topline {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
}

.ahad-blog-detail-article__topline::after {
    content: "";
    flex: 1 1 auto;
    min-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(155, 101, 79, 0.32), rgba(155, 101, 79, 0));
}

.ahad-blog-detail-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ahad-blog-detail-article__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(155, 101, 79, 0.08);
    border: 1px solid rgba(155, 101, 79, 0.14);
    color: #7d5140;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ahad-blog-detail-article__content > :first-child {
    margin-top: 0;
}

.ahad-blog-detail-article p {
    margin: 0 0 22px;
    color: #49453f;
    font-size: clamp(1.06rem, 1.2vw, 1.18rem);
    line-height: 1.95;
}

.ahad-blog-detail-article__content > p:first-of-type {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 3px solid rgba(155, 101, 79, 0.42);
    color: #2d221d;
    font-size: clamp(1.24rem, 1.7vw, 1.55rem);
    line-height: 1.78;
}

.ahad-blog-detail-article h1,
.ahad-blog-detail-article h2,
.ahad-blog-detail-article h3,
.ahad-blog-detail-article h4,
.ahad-blog-detail-article h5,
.ahad-blog-detail-article h6 {
    margin: 34px 0 16px;
    color: #201512;
    font-family: "Cormorant Garamond", serif;
    line-height: 1.12;
}

.ahad-blog-detail-article h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.ahad-blog-detail-article h3 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.ahad-blog-detail-article h4,
.ahad-blog-detail-article h5,
.ahad-blog-detail-article h6 {
    font-size: 1.35rem;
}

.ahad-blog-detail-article a {
    color: var(--ahad-blog-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ahad-blog-detail-article ul,
.ahad-blog-detail-article ol {
    margin: 0 0 24px;
    padding-left: 24px;
    color: #49453f;
    font-size: 17px;
    line-height: 1.9;
}

.ahad-blog-detail-article li + li {
    margin-top: 8px;
}

.ahad-blog-detail-article blockquote {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-left: 3px solid var(--ahad-blog-accent);
    border-radius: 20px;
    background: #f8f1ec;
    color: #3f322d;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
}

.ahad-blog-detail-article p:last-child {
    margin-bottom: 0;
}

.ahad-blog-detail-related {
    padding-top: 34px;
}

.ahad-blog-detail-related__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.ahad-blog-detail-related__header h2 {
    margin: 0;
    color: var(--ahad-blog-ink);
    font-family: var(--title-font), Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}

.ahad-blog-not-found {
    padding: 190px 0 128px;
}

.ahad-blog-not-found__card {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 38px;
}

.ahad-blog-not-found__card h1 {
    margin: 0 0 16px;
    color: var(--ahad-blog-ink);
    font-family: var(--title-font), Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: -0.04em;
}

.ahad-blog-not-found__card p {
    margin: 0 auto 24px;
    max-width: 520px;
    color: var(--ahad-blog-ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 1399.98px) {
    .ahad-home-blog-section .container {
        padding-left: 34px;
        padding-right: 34px;
    }

    .ahad-home-blog-section .ahad-home-blog-card__inner {
        min-height: 440px;
    }
}

@media (max-width: 1199.98px) {
    .ahad-blog-grid,
    .ahad-blog-related-grid,
    .ahad-blog-hero__grid,
    .ahad-blog-detail-hero__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .ahad-home-blog-section,
    .ahad-blog-listing,
    .ahad-blog-detail-content,
    .ahad-blog-not-found {
        padding-bottom: 96px;
    }

    .ahad-home-blog-section {
        padding-top: 110px;
    }

    .ahad-blog-hero,
    .ahad-blog-detail-hero {
        padding-top: 160px;
        padding-bottom: 74px;
    }

    .ahad-blog-grid,
    .ahad-blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ahad-home-blog-section .ahad-home-blog-card__inner {
        min-height: 420px;
    }

    .ahad-home-blog-card--page .ahad-home-blog-card__inner {
        min-height: 390px;
    }

}

@media (max-width: 767.98px) {
    .ahad-home-blog-section .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ahad-home-blog-header {
        margin-bottom: 38px;
    }

    .ahad-home-blog-title,
    .ahad-blog-title,
    .ahad-blog-detail-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .ahad-blog-grid,
    .ahad-blog-related-grid {
        grid-template-columns: 1fr;
    }

    .ahad-home-blog-card__body {
        padding: 0 20px 22px;
    }

    .ahad-home-blog-card__meta {
        margin-bottom: 16px;
    }

    .ahad-home-blog-section .ahad-home-blog-card__title {
        -webkit-line-clamp: 5;
    }

    .ahad-blog-detail-article {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .ahad-blog-detail-article__topline {
        align-items: start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 28px;
    }

    .ahad-blog-detail-article__topline::after {
        width: 100%;
        min-width: 0;
    }

    .ahad-blog-detail-article__content > p:first-of-type {
        padding-left: 18px;
    }

    .ahad-blog-detail-related__header {
        align-items: start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ahad-home-blog-card__inner::before,
    .ahad-home-blog-card__media img,
    .ahad-home-blog-card__title,
    .ahad-home-blog-card__meta span,
    .ahad-home-blog-button,
    .ahad-blog-button {
        transition: none;
    }
}
