/**
 * Anasayfa — Projeler, Haberler, Etkinlikler (modern kurumsal)
 */

:root {
    --home-brand: #32439f;
    --home-brand-deep: #1e2a6b;
    --home-brand-soft: #eef1fb;
    --home-surface: #ffffff;
    --home-muted: #64748b;
    --home-border: #e2e8f0;
    --home-radius: 14px;
    --home-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --home-shadow-hover: 0 12px 40px rgba(50, 67, 159, 0.14);
}

/* ── Ortak bölüm başlığı ─────────────────────────────────── */
.home-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.home-section--alt {
    background: #f8fafc;
}

.home-section--white {
    background: var(--home-surface);
}

.home-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.home-section__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-brand);
    background: var(--home-brand-soft);
    border: 1px solid rgba(50, 67, 159, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
}

.home-section__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--home-brand-deep);
    line-height: 1.2;
}

.home-section__lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--home-muted);
}

.home-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding: 0.7rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--home-brand) 0%, var(--home-brand-deep) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(50, 67, 159, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.home-section__btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(50, 67, 159, 0.35);
    opacity: 0.96;
}

.home-section__btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.home-section__btn:hover i {
    transform: translateX(3px);
}

.home-section__btn--outline {
    color: var(--home-brand);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
}

.home-section__btn--outline:hover {
    color: var(--home-brand-deep);
    border-color: rgba(50, 67, 159, 0.25);
    background: var(--home-brand-soft);
}

.home-section__btn--compact {
    padding: 0.55rem 0.95rem;
    font-size: 0.74rem;
    gap: 0.45rem;
    white-space: nowrap;
}

/* Duyuru / ihale / vefat widget başlık satırı */
.duyurular-ihaleler-vefat-section .content-header {
    gap: 0.75rem;
}

.duyurular-ihaleler-vefat-section .home-section__btn--compact {
    width: auto;
}

/* ── Projeler logosu grid ─────────────────────────────────── */
.home-projects {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.home-projects__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-project-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1.15rem 1.15rem 1rem;
    box-shadow: var(--home-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    min-height: 100%;
}

.home-project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-hover);
    border-color: rgba(50, 67, 159, 0.22);
}

.home-project-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    max-height: 110px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    overflow: hidden;
}

.home-project-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-project-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(50, 67, 159, 0.35);
    font-size: 2rem;
}

.home-project-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.home-project-card__status {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.home-project-card--ongoing .home-project-card__status {
    color: #1d4ed8;
    background: #dbeafe;
}

.home-project-card--completed .home-project-card__status {
    color: #15803d;
    background: #dcfce7;
}

.home-project-card--planned .home-project-card__status {
    color: #b45309;
    background: #ffedd5;
}

.home-project-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--home-brand-deep);
}

.home-project-card__summary {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--home-muted);
}

.home-project-card__arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.65rem;
    height: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-brand-soft);
    color: var(--home-brand);
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-project-card:hover .home-project-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Haberler grid ─────────────────────────────────────────── */
.home-news__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

.home-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-hover);
}

.home-news-card--featured .home-news-card__media {
    aspect-ratio: 16 / 10;
}

.home-news-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #e2e8f0;
}

.home-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-card__media img {
    transform: scale(1.04);
}

.home-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.15rem 1.25rem 1.25rem;
}

.home-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    color: var(--home-muted);
}

.home-news-card__date i {
    color: var(--home-brand);
    font-size: 0.68rem;
}

.home-news-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--home-brand-deep);
}

.home-news-card--featured .home-news-card__title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.home-news-card__excerpt {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    height: 100%;
}

.home-news-card--compact .home-news-card__title {
    font-size: 0.88rem;
    line-height: 1.35;
}

.home-news-card--compact .home-news-card__body {
    padding: 0.85rem 1rem 1rem;
}

/* ── Etkinlikler — modern kart & nav ──────────────────────── */
.home-events__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.home-events__nav {
    display: flex;
    gap: 0.5rem;
}

.home-events__nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-brand);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: var(--home-shadow);
}

.home-events__nav-btn:hover {
    background: var(--home-brand);
    border-color: var(--home-brand);
    color: #fff;
}

.etkinlikler-section.home-section .etkinlik-kart-ozel {
    border-radius: var(--home-radius);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.etkinlikler-section.home-section .etkinlik-kart-ozel:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-hover);
}

.etkinlikler-section.home-section .etkinlik-kart-gorsel {
    border-radius: 0;
}

.etkinlikler-section.home-section .etkinlik-kart-tarih {
    background: linear-gradient(180deg, var(--home-brand) 0%, var(--home-brand-deep) 100%);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
}

.etkinlikler-section.home-section .tarih-gun-kucuk,
.etkinlikler-section.home-section .tarih-ay-kucuk,
.etkinlikler-section.home-section .tarih-gun-adi-kucuk {
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199px) {
    .home-projects__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-news__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .home-projects__grid {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .home-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-section__btn {
        width: 100%;
        justify-content: center;
    }
}
