:root {
    --bg: #f8f7f4;
    --card: #ffffff;
    --text: #151515;
    --muted: #767676;
    --border: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1280px, 92%);
    margin: auto;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(248, 247, 244, .82);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: .02em;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    color: var(--muted);
    transition: .25s ease;
}

.nav a:hover {
    color: var(--text);
}

/* HERO */
.hero {
    padding: 70px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: .95;
    max-width: 8ch;
}

.hero-text p {
    margin-top: 18px;
    max-width: 460px;
    color: var(--muted);
    line-height: 1.8;
}

.btn {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 26px;
    border: 1px solid var(--text);
    transition: .25s ease;
}

.btn:hover {
    background: var(--text);
    color: #fff;
}

.hero-image img {
    height: 78vh;
    object-fit: cover;
    border-radius: 12px;
}

/* GALLERY */
.gallery-section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 42px;
}

.section-title h2 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/5;
    background: #efefef;
}

.card img {
    height: 100%;
    object-fit: cover;
    transition: .6s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    opacity: .92;
}

.caption h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.caption span {
    font-size: .82rem;
    opacity: .8;
}

/* ABOUT */
.about {
    padding: 20px 0 100px;
}

.about-inner {
    text-align: center;
    max-width: 760px;
}

.about h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.about p {
    color: var(--muted);
    line-height: 1.9;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    justify-content: center;
    gap: 28px;
    color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: auto;
        aspect-ratio: 4/5;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav {
        gap: 16px;
        font-size: .92rem;
    }

    .hero {
        padding-top: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2,
    .about h2 {
        font-size: 2.1rem;
    }
}

/* WORK PAGE */

.work-page {
    padding: 80px 0 100px;
}

.breadcrumb {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--text);
}

.work-detail {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 60px;
    align-items: start;
}

.work-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.work-info h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.meta {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.work-description {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 30px;
}

.work-navigation {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--muted);
}

.work-navigation a:hover {
    color: var(--text);
}

/* Responsive */

@media(max-width:992px) {
    .work-detail {
        grid-template-columns: 1fr;
    }

    .work-info h1 {
        font-size: 2.2rem;
    }

    .work-navigation {
        flex-direction: column;
        gap: 16px;
    }
}
.about-layout{
display:grid;
grid-template-columns:45% 55%;
gap:80px;
padding:80px 0;
align-items:start;
}

.about-image{
position:sticky;
top:120px;
}

.about-image img{
width:100%;
max-height:520px;
object-fit:cover;
border-radius:12px;
}

.about-image figcaption{
font-size:13px;
color:#777;
margin-top:10px;
}

.about-content{
max-width:540px;
}

.about-content h1{
font-size:42px;
margin-bottom:24px;
}

.about-content h2{
margin-top:30px;
}

.about-content p{
line-height:1.7;
margin-bottom:16px;
}

.breadcrumb{
font-size:14px;
color:#777;
margin-top:20px;
}

@media(max-width:900px){

.about-layout{
grid-template-columns:1fr;
gap:40px;
}

.about-image{
position:relative;
top:0;
}

.about-image img{
max-height:420px;
}

.about-content{
max-width:100%;
}

}
/* Gallery */
/* =========================
   GALLERY PAGE
========================= */
/* ==========================================================================
   GALLERY PAGE (Optimized & Integrated)
   ========================================================================== */

/* Layout & Sections */
/* =========================================
   GALLERY PAGE - SAFE SCOPED VERSION
   فقط برای صفحه gallery
========================================= */
/* ================================
   Gallery SEO/UX Final Add-ons
   Safe scoped additions
================================ */

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: #151515;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 999px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 14px;
}

/* Gallery hero */
.gallery-hero {
    padding: 48px 0 18px;
}

.gallery-hero .breadcrumb {
    margin-bottom: 28px;
    font-size: 0.85rem;
    opacity: 0.75;
}

.gallery-hero .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.gallery-hero .breadcrumb a:hover {
    opacity: 0.7;
}

.gallery-hero .breadcrumb span {
    margin-inline: 4px;
}

.gallery-hero .section-title {
    text-align: center;
}

.gallery-hero .section-title .eyebrow {
    margin-bottom: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.62;
}

.gallery-hero .section-title h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 16px;
}

.gallery-hero .section-title p:not(.eyebrow) {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Gallery spacing */
.gallery-section {
    padding-top: 34px;
}

/* If your old .gallery-grid already exists, this only improves stability */
.gallery-grid {
    align-items: start;
}

.gallery-item {
    min-width: 0;
}

/* Better image stability */
.gallery-grid img,
.card img {
    display: block;
    width: 100%;
    height: auto;
}

/* Focus states */
.nav a:focus-visible,
.logo:focus-visible,
.card:focus-visible,
.pagination a:focus-visible,
.pagination-item:focus-visible,
.footer a:focus-visible,
.gallery-support a:focus-visible {
    outline: 2px solid #151515;
    outline-offset: 4px;
}

/* Fixed pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.pagination-item,
.gallery-pagination a,
.gallery-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 20, 0.18);
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1;
    background: transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gallery-pagination a:hover {
    background: #151515;
    color: #fff;
    border-color: #151515;
    transform: translateY(-1px);
}

.gallery-pagination .is-current {
    background: #151515;
    color: #fff;
    border-color: #151515;
    cursor: default;
}

.gallery-pagination .is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Support internal linking block */
.gallery-support {
    padding: 46px 0 72px;
    text-align: center;
}

.gallery-support p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.82;
}

.gallery-support a {
    color: inherit;
    text-underline-offset: 4px;
}

/* Responsive polish */
@media (max-width: 768px) {
    .gallery-hero {
        padding-top: 34px;
    }

    .gallery-hero .breadcrumb {
        margin-bottom: 22px;
    }

    .gallery-section {
        padding-top: 24px;
    }

    .gallery-pagination {
        margin-top: 42px;
        gap: 8px;
    }

    .pagination-item,
    .gallery-pagination a,
    .gallery-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 13px;
        font-size: 0.85rem;
    }

    .gallery-support {
        padding: 36px 0 56px;
    }
}
/* Work */
/* ==================================
   Single Artwork Page
================================== */

.work-page {
    padding: 36px 0 56px;
}

.work-page .breadcrumb {
    margin-bottom: 26px;
    font-size: 0.85rem;
    opacity: 0.72;
}

.work-page .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.work-page .breadcrumb span {
    margin-inline: 4px;
}

.work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.work-media {
    margin: 0;
}

.work-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.work-info {
    position: sticky;
    top: 24px;
}

.work-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
    margin-bottom: 10px;
}

.work-info h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 12px;
}

.work-meta {
    font-size: 0.98rem;
    opacity: 0.68;
    margin-bottom: 20px;
    line-height: 1.7;
}

.work-summary {
    margin-bottom: 24px;
}

.work-summary p {
    line-height: 1.9;
    max-width: 56ch;
}

.work-specs {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.work-specs div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.work-specs dt {
    font-size: 0.85rem;
    opacity: 0.6;
}

.work-specs dd {
    margin: 0;
}

.work-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn-primary {
    background: #151515;
    color: #fff;
    border: 1px solid #151515;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(20, 20, 20, 0.18);
}

.btn-secondary:hover {
    background: rgba(20, 20, 20, 0.04);
}

.work-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 20, 20, 0.08);
    flex-wrap: wrap;
}

.work-page-link {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 20, 0.18);
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
}

.work-page-link.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.work-page-link:hover {
    background: #151515;
    color: #fff;
    border-color: #151515;
}

@media (max-width: 980px) {
    .work-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-info {
        position: static;
        top: auto;
    }

    .work-summary p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .work-page {
        padding: 28px 0 44px;
    }

    .work-specs div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .work-pagination {
        justify-content: center;
    }
}
/* Concats */
/* ==================================
   Contact Page
================================== */

.contact-page {
    padding: 36px 0 56px;
}

.contact-page .breadcrumb {
    margin-bottom: 22px;
    font-size: 0.85rem;
    opacity: 0.72;
}

.contact-page .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.contact-page .breadcrumb span {
    margin-inline: 4px;
}

.contact-hero {
    max-width: 760px;
    margin-bottom: 28px;
}

.contact-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
    margin-bottom: 10px;
}

.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 14px;
}

.contact-intro {
    max-width: 62ch;
    line-height: 1.9;
    opacity: 0.82;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 18px;
}

.contact-card,
.contact-form {
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.contact-card {
    padding: 22px;
}

.contact-card h2 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.contact-card p {
    line-height: 1.8;
    opacity: 0.82;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contact-list li {
    display: grid;
    gap: 4px;
}

.contact-list span {
    font-size: 0.82rem;
    opacity: 0.58;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-form {
    padding: 22px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row label {
    font-size: 0.92rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: #fff;
    color: inherit;
    border-radius: 10px;
    padding: 14px 15px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea {
    resize: vertical;
    min-height: 160px;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #151515;
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}

.contact-form .btn-primary {
    min-width: 180px;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-page {
        padding: 28px 0 44px;
    }

    .contact-card,
    .contact-form {
        padding: 18px;
    }

    .form-row textarea {
        min-height: 140px;
    }
}
/* blogs */
/* ==================================
   Blog / Journal Page
================================== */

.blog-page {
    padding: 36px 0 56px;
}

.blog-page .breadcrumb {
    margin-bottom: 22px;
    font-size: 0.85rem;
    opacity: 0.72;
}

.blog-page .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blog-page .breadcrumb span {
    margin-inline: 4px;
}

.blog-hero {
    max-width: 820px;
    margin-bottom: 30px;
}

.blog-eyebrow,
.post-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
    margin-bottom: 10px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 14px;
}

.blog-intro {
    max-width: 64ch;
    line-height: 1.9;
    opacity: 0.82;
}

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 42px;
}

.featured-post-media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.04);
}

.featured-post-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.featured-post-media:hover img {
    transform: scale(1.025);
}

.featured-post-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.12;
    font-weight: 400;
    margin-bottom: 14px;
}

.featured-post-content h2 a,
.blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-post-content h2 a:hover,
.blog-card h3 a:hover,
.text-link:hover {
    opacity: 0.65;
}

.featured-post-content p {
    line-height: 1.85;
    opacity: 0.82;
    max-width: 58ch;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 0.86rem;
    opacity: 0.62;
}

.text-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.blog-list-section {
    margin-top: 16px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.48);
}

.blog-card-media {
    display: block;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.04);
}

.blog-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-card-media:hover img {
    transform: scale(1.025);
}

.blog-card-body {
    padding: 18px;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 400;
    margin-bottom: 10px;
}

.blog-card-body p {
    line-height: 1.75;
    opacity: 0.78;
}

.blog-cta {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.blog-cta h2 {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 400;
    margin-bottom: 10px;
}

.blog-cta p {
    line-height: 1.75;
    opacity: 0.78;
    max-width: 58ch;
}

@media (max-width: 980px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .blog-page {
        padding: 28px 0 44px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-cta {
        padding: 20px;
    }
}
/* Single Blog */
/* ==================================
   Single Blog Post Page
================================== */

.post-page {
    padding: 36px 0 56px;
}

.post-page .breadcrumb {
    margin-bottom: 22px;
    font-size: 0.85rem;
    opacity: 0.72;
}

.post-page .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.post-page .breadcrumb span {
    margin-inline: 4px;
}

.post-hero {
    max-width: 860px;
    margin-bottom: 24px;
}

.post-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
    margin-bottom: 10px;
}

.post-hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    line-height: 1.04;
    font-weight: 400;
    margin-bottom: 14px;
    max-width: 14ch;
}

.post-dek {
    max-width: 62ch;
    line-height: 1.9;
    opacity: 0.82;
    margin-bottom: 14px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    opacity: 0.62;
}

.post-cover {
    margin: 0 0 32px;
}

.post-cover img {
    display: block;
    width: 100%;
    max-width: 960px;
    border-radius: 12px;
    aspect-ratio: 14 / 9;
    object-fit: cover;
}

.post-cover figcaption {
    margin-top: 10px;
    font-size: 0.84rem;
    opacity: 0.58;
}

.post-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    gap: 36px;
    align-items: start;
}

.post-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.45);
}

.post-toc h2 {
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.post-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.post-toc a {
    color: inherit;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.76;
}

.post-toc a:hover {
    opacity: 1;
}

.post-content {
    max-width: 720px;
}

.post-content > * + * {
    margin-top: 1.2em;
}

.post-content p,
.post-content li {
    font-size: 1.03rem;
    line-height: 1.95;
    opacity: 0.88;
}

.post-content h2 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.2;
    font-weight: 400;
    margin-top: 1.9em;
    margin-bottom: 0.4em;
}

.post-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content blockquote {
    margin: 1.8em 0;
    padding: 0.2em 0 0.2em 1em;
    border-left: 2px solid rgba(20, 20, 20, 0.18);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.86;
}

.post-footer {
    margin-top: 48px;
}

.post-cta {
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.post-cta h2 {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 400;
    margin-bottom: 10px;
}

.post-cta p {
    line-height: 1.8;
    opacity: 0.78;
    max-width: 58ch;
}

.related-posts .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .post-toc {
        position: static;
    }

    .post-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .post-page {
        padding: 28px 0 44px;
    }

    .post-hero h1 {
        max-width: none;
    }

    .post-cover {
        margin-bottom: 24px;
    }

    .post-toc {
        padding: 16px;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
        line-height: 1.88;
    }

    .post-cta {
        padding: 20px;
    }

    .related-posts .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
/* Albums */
.albums-page {
  padding: 32px 0 96px;
}

.albums-hero {
  max-width: 760px;
  margin-bottom: 40px;
}

.albums-hero h1 {
  margin-bottom: 12px;
}

.albums-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.album-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.album-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.album-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  flex: 1;
}

.album-card__meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-card__body h2 {
  margin: 0;
  font-size: 1.4rem;
}

.album-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.album-card__body p:not(.album-card__meta) {
  margin: 0;
  color: var(--muted);
}

.album-card__footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.albums-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
}

.albums-cta__content {
  max-width: 640px;
}

.albums-cta__content h2 {
  margin-bottom: 10px;
}

.albums-cta__content p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .albums-grid {
    grid-template-columns: 1fr;
  }

  .albums-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .albums-page {
    padding: 20px 0 72px;
  }

  .album-card__body {
    padding: 18px;
  }

  .albums-cta {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .album-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* صفحه دسته‌بندی */
.category-page {
    padding: 60px 0 100px;
    background-color: #faf9f6;
    font-family: inherit;
}

/* مسیر راهنما (Breadcrumb) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #111;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #111;
    font-weight: 500;
}

/* بخش هیرو دسته‌بندی */
.category-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 40px;
}

.category-hero__content {
    max-width: 800px;
}

.category-hero__subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #b59b7c;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.category-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.category-hero__description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.category-hero__meta {
    flex-shrink: 0;
}

.category-stat {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px 30px;
    text-align: center;
    border-radius: 4px;
}

.category-stat__number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.category-stat__label {
    display: block;
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 8px;
    white-space: nowrap;
}

/* گرید آلبوم‌ها */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* کارت آلبوم */
.album-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.album-card__image-link {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: #f0f0f0;
}

.album-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.album-card:hover .album-card__image {
    transform: scale(1.05);
}

.album-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.album-card__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.album-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.album-card__title a:hover {
    color: #b59b7c;
}

.album-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.album-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 16px;
    margin-top: auto;
}

.album-card__count {
    font-size: 13px;
    color: #8c8c8c;
}

.album-card__btn {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #b59b7c;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.album-card__btn:hover {
    color: #b59b7c;
    border-color: #1a1a1a;
}

/* بخش صفحه‌بندی (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid #eaeaea;
    background-color: #ffffff;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pagination__link:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.pagination__link--active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.pagination__link--active:hover {
    color: #ffffff;
}

.pagination__link--prev,
.pagination__link--next {
    padding: 0 16px;
}

/* ریسپانسیو (طراحی واکنش‌گرا) */
@media (max-width: 768px) {
    .category-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .category-hero__title {
        font-size: 30px;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
    }
}
/* --- اضافه شده برای صفحه آلبوم (Album Integration) --- */

.work-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.work-media img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.work-info .work-eyebrow {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-summary {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: var(--text);
}

.work-specs {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border);
}

.work-specs div {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.work-specs dt {
    font-weight: bold;
    color: var(--text);
}

.work-specs dd {
    color: var(--muted);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .work-layout {
        grid-template-columns: 1fr;
    }
}
/* Container for spacing */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 4px; /* یا طبق تم خودت گرد کن */
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Success Alert (For Flash Messages) */
.alert-success {
    background-color: #f0fdf4; /* سبز خیلی روشن */
    border: 1px solid #bbf7d0;
    color: #166534; /* سبز تیره برای متن */
}

/* Error Alert (For Validation) */
.alert-error {
    background-color: #fef2f2; /* قرمز خیلی روشن */
    border: 1px solid #fecaca;
    color: #991b1b; /* قرمز تیره برای متن */
}

.alert-error p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-error ul {
    list-style: disc;
    margin-left: 1.25rem; /* فاصله برای بولت‌ها */
    padding-left: 0;
}

.alert-error li {
    margin-bottom: 0.125rem;
}

/* Optional: Icon Support (اگر فونت‌آوسام داری یا SVG) */
.alert::before {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.alert-success::before {
    content: "Success";
}

.alert-error::before {
    content: "Error";
}
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.error-page__wrap {
    width: 100%;
    max-width: 760px;
    text-align: center;
    background: #fff;
    border: 1px solid #eceef3;
    border-radius: 24px;
    padding: 40px 24px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.error-page__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 10px;
}

.error-page__title {
    font-size: 36px;
    line-height: 1.4;
    margin: 0 0 14px;
    color: #111827;
}

.error-page__desc {
    font-size: 16px;
    line-height: 2;
    color: #4b5563;
    max-width: 560px;
    margin: 0 auto 28px;
}

.error-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: #111827;
    color: #fff;
}

.btn-primary:hover {
    background: #000;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.error-page__search {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-page__search input {
    flex: 1 1 320px;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.error-page__search input:focus {
    border-color: #111827;
}

.error-page__search button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.error-page__links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page__links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.error-page__links a:hover {
    color: #111827;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .error-page__wrap {
        padding: 32px 18px;
        border-radius: 18px;
    }

    .error-page__title {
        font-size: 28px;
    }

    .error-page__desc {
        font-size: 15px;
    }
}
.cookie-consent {
    position: relative;
    z-index: 9999;
}

.cookie-consent__bar {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.cookie-consent__content {
    max-width: 760px;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 22px;
}

.cookie-consent__text {
    margin: 0 0 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.cookie-consent__text.small {
    font-size: 14px;
}

.cookie-consent__text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn--primary {
    background: #fff;
    color: #111827;
}

.cookie-btn--secondary {
    background: #374151;
    color: #fff;
}

.cookie-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.cookie-modal__panel {
    position: relative;
    width: min(720px, calc(100% - 32px));
    margin: 5vh auto 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.cookie-modal__header,
.cookie-modal__footer {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.cookie-modal__footer {
    border-bottom: 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cookie-modal__body {
    padding: 24px;
}

.cookie-modal__close {
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-option h4 {
    margin: 0 0 6px;
}

.cookie-option p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: .2s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s ease;
}

.switch input:checked + .slider {
    background: #111827;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.cookie-settings-link {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9998;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .cookie-consent__bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1 1 auto;
    }
}
