/* Home — Layihələr & Xəbərlər (aligned with catalog language) */
.home-ed {
    --ef: Outfit, ui-sans-serif, system-ui, sans-serif;
    --ink: #1A2433;
    --muted: #6B7280;
    --line: rgba(26, 36, 51, 0.08);
    --accent: #BE000E;
    --gold: #E89B12;
    position: relative;
    font-family: var(--ef);
    padding-top: 3.5rem !important;
    padding-bottom: 3.75rem !important;
}
.home-ed.is-mist,
.home-ed.is-white {
    background: #ffffff !important;
}

.home-ed-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.85rem;
}
.home-ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.home-ed-kicker::before {
    content: "";
    width: 1.15rem;
    height: 2px;
    background: var(--gold);
}
.home-ed-title {
    margin: 0.55rem 0 0;
    font-family: var(--ef);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
}
.home-ed-lead {
    margin: 0.55rem 0 0;
    max-width: 34rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
}
.home-ed-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(26, 36, 51, 0.16);
    border-radius: 999px;
    background: #fff;
    padding: 0.65rem 1.05rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.home-ed.is-mist .home-ed-all {
    background: #fff;
}
.home-ed-all:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.home-ed-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .home-ed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.home-ed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.home-ed-card:hover {
    border-color: rgba(190, 0, 14, 0.22);
    box-shadow: 0 14px 32px rgba(26, 36, 51, 0.08);
    transform: translateY(-2px);
}

.home-ed-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #E8ECF0;
}
.home-ed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}
.home-ed-card:hover .home-ed-media img {
    transform: scale(1.04);
}
.home-ed-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 36, 51, 0.35);
}

.home-ed-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.05rem 1.15rem 1.15rem;
}
.home-ed-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-ed-meta::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}
.home-ed-card-title {
    margin: 0;
    font-family: var(--ef);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.home-ed-card:hover .home-ed-card-title {
    color: var(--accent);
}
.home-ed-excerpt {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-ed-more {
    margin-top: auto;
    padding-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 550;
    color: var(--ink);
    transition: color 0.2s ease, gap 0.2s ease;
}
.home-ed-card:hover .home-ed-more {
    color: var(--accent);
    gap: 0.5rem;
}

.home-ed-pager {
    margin-top: 2rem;
}

.home-ed-badge {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    z-index: 1;
    border-radius: 0.45rem;
    background: var(--accent);
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

/* Detail pages */
.ed-article-hero {
    position: relative;
    overflow: hidden;
    background: #0B0C0E;
    padding: 7.5rem 0 3.25rem;
    color: #fff;
}
@media (min-width: 768px) {
    .ed-article-hero { padding: 8.25rem 0 3.75rem; }
}
.ed-article-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}
.ed-article-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.82) 100%),
        radial-gradient(60% 70% at 85% 20%, rgba(190,0,14,0.28), transparent 55%);
}
.ed-article-hero .container-sany { position: relative; z-index: 1; }
.ed-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 650;
    color: rgba(255,255,255,0.65);
    transition: color 0.15s ease;
}
.ed-back:hover { color: #fff; }
.ed-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.35rem;
}
.ed-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 550;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
}
.ed-chip.is-accent {
    border-color: transparent;
    background: #BE000E;
    color: #fff;
}
.ed-article-title {
    margin: 1rem 0 0;
    max-width: 46rem;
    font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.ed-article-lead {
    margin: 1rem 0 0;
    max-width: 40rem;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
}

.ed-feature {
    background: #F4F6F8;
    padding: 1.75rem 0 0;
}
.ed-feature-frame {
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(26,36,51,0.08);
    background: #fff;
}
.ed-feature-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
@media (min-width: 768px) {
    .ed-feature-frame img { aspect-ratio: 2.35 / 1; }
}

.ed-detail {
    --ef: Outfit, ui-sans-serif, system-ui, sans-serif;
    --ink: #1A2433;
    --muted: #6B7280;
    --accent: #BE000E;
    font-family: var(--ef);
    background: #fff;
    padding: 2.5rem 0 4rem;
}
.ed-detail.has-feature { padding-top: 1.75rem; }
.ed-detail-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .ed-detail-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 2.5rem;
    }
}
@media (min-width: 1280px) {
    .ed-detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

.ed-content {
    min-width: 0;
}
.ed-content-panel {
    border: 1px solid rgba(26,36,51,0.08);
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.5rem 1.35rem;
}
@media (min-width: 640px) {
    .ed-content-panel { padding: 2rem 1.85rem; }
}
@media (min-width: 768px) {
    .ed-content-panel { padding: 2.35rem 2.25rem; }
}
.ed-content-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E89B12;
}
.ed-content-kicker::before {
    content: "";
    width: 1.1rem;
    height: 2px;
    background: #E89B12;
}
.ed-content-heading {
    margin: 0.65rem 0 0;
    font-family: var(--ef);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--ink);
}

.ed-gallery {
    margin-top: 1.75rem;
}
.ed-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.ed-gallery-title {
    margin: 0;
    font-family: var(--ef);
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.ed-gallery-count {
    font-size: 0.72rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.ed-gallery-grid {
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .ed-gallery-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-gallery-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .ed-gallery-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ed-gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(26,36,51,0.08);
    background: #F4F6F8;
}
.ed-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.ed-gallery-item:hover img { transform: scale(1.03); }

.ed-cta-bar {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 1px solid rgba(26,36,51,0.08);
    border-radius: 1.15rem;
    background: #F4F6F8;
    padding: 1.25rem 1.2rem;
}
.ed-cta-copy {
    flex: 1 1 100%;
    margin-bottom: 0.15rem;
}
.ed-cta-copy p {
    margin: 0.45rem 0 0;
    max-width: 36rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: #6B7280;
}
.ed-cta-btn.full { width: 100%; }
.ed-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.85rem;
    padding: 0.8rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ed-cta-btn.primary {
    background: #BE000E;
    color: #fff;
}
.ed-cta-btn.primary:hover { background: #96000B; color: #fff; }
.ed-cta-btn.ghost {
    border: 1px solid rgba(26,36,51,0.14);
    background: #fff;
    color: var(--ink);
}
.ed-cta-btn.ghost:hover {
    border-color: #BE000E;
    color: #BE000E;
}

.ed-side {
    display: grid;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .ed-side {
        position: sticky;
        top: 6.5rem;
    }
}
.ed-side-card {
    border: 1px solid rgba(26,36,51,0.08);
    border-radius: 1.15rem;
    background: #F4F6F8;
    padding: 1.35rem 1.25rem;
}
.ed-side-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.ed-side-title {
    margin: 0.55rem 0 0;
    font-family: var(--ef);
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.35;
    color: var(--ink);
}
.ed-side-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.55rem;
}
.ed-side-row {
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.8rem 0.95rem;
}
.ed-side-row dt {
    font-size: 0.68rem;
    font-weight: 550;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.ed-side-row dd {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}
.ed-side-actions {
    margin-top: 1.15rem;
    display: grid;
    gap: 0.55rem;
}
.ed-side-link {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--muted);
    transition: color 0.15s ease;
}
.ed-side-link:hover { color: var(--accent); }
.ed-side-promo {
    border: 1px solid rgba(190,0,14,0.18);
    border-radius: 1.15rem;
    background: linear-gradient(160deg, rgba(190,0,14,0.08), #fff 55%);
    padding: 1.35rem 1.25rem;
}
.ed-side-promo p {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}
.ed-side-promo a {
    display: inline-flex;
    margin-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 767px) {
    .home-ed {
        padding-top: 2.75rem !important;
        padding-bottom: 3rem !important;
    }
    .home-ed-grid {
        gap: 0.85rem;
    }
}
