/* =========================
   GENEL AYARLAR
   ========================= */
:root {
    --chp-red: #e0212b;
    --chp-red-dark: #c11821;
    --bg-panel: #ffffff;
    --border-soft: #dde1eb;
    --border-strong: #cfd4e2;
    --text-main: #1f2430;
    --text-muted: #707789;
    --accent-soft: #fff4f5;
    --shadow-soft: 0 26px 80px rgba(15, 23, 42, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ARKA PLAN GÖRSELİ */
body {
    font-family: var(--font-sans);
    margin: 0;

    /* SABİT, TAM EKRAN, BOZULMAYAN ARKA PLAN */
    background: 
        url("bg-sample.jpg") center top / cover no-repeat fixed,
        #0050b8;

    color: var(--text-main);
}


/* SAYFA MERKEZİ */
.page-shell {
    max-width: 1160px;
    margin: 32px auto 48px;
    padding: 0 20px;
}

/* ANA PANEL */
.page-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 22px 30px 26px;
}

.page-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 55%);
    pointer-events: none;
    opacity: 0.9;
}

.page-panel > * {
    position: relative;
    z-index: 1;
}

/* ÜST BAR */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-main {
    width: 56px;
    height: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-org {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.header-program {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-tag {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(224, 33, 43, 0.4);
    color: var(--chp-red-dark);
    background: linear-gradient(120deg, #fff8f8, #ffffff);
}

/* BANNER / SLOGAN */
.hero-banner {
    border-radius: 22px;
    padding: 20px 22px 18px;
    background: radial-gradient(circle at right top, #e0212b);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}





.hero-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.38em;
    font-family: 'Gotham', sans-serif;
    font-size: large;
    text-align: center;
}

/* ALT BAŞLIK */
.section-heading {
    margin-top: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-heading-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
     font-family: 'Gotham', sans-serif;
}

.section-heading h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 680px;
}

/* KART GRID – desktop: 2 kolon */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-top: 16px;
}

/* TEK KART */
.pdf-card {
    position: relative;
    display: flex;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e3e7f2;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
    min-height: 220px;
}

/* Sol kırmızı şerit */
.pdf-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #e0212b, #ff8a90);
    opacity: 0.9;
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22);
    border-color: rgba(224, 33, 43, 0.7);
    background: #ffffff;
}

/* Kapak alanı */
.pdf-card-media {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e5e8f2;
    background: #e6e9f2;
}

.pdf-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* İçerik alanı */
.pdf-card-content {
    flex: 1;
    padding: 14px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Üst satır */
.pdf-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.pdf-card-ribbon {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(224, 33, 43, 0.4);
    color: var(--chp-red-dark);
    background: #fff4f5;
    white-space: nowrap;
}

.pdf-card-category {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

/* Başlık / açıklama */
.pdf-card-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.pdf-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Alt bilgi */
.pdf-card-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 11px;
}

.pdf-card-file {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-card-btn {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(224, 33, 43, 0.4);
    color: var(--chp-red-dark);
    background: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

/* FOOTER */
.site-footer {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-chp {
    width: 34px;
    height: auto;
}

.footer-texts {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.footer-text-main {
    font-size: 13px;
    font-weight: 600;
}

.footer-text-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-logo-bitem {
    width: 90px;
    max-width: 100%;
    height: auto;
    display: block;
}



/* =========================
   RESPONSIVE
   ========================= */

/* Tablet: tek kolon grid */
@media (max-width: 992px) {
    .page-shell {
        margin: 24px auto 32px;
        padding: 0 14px;
    }

    .page-panel {
        padding: 18px 20px 22px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .featured-card-section {
        margin: 14px 0 18px;
    }

    .featured-card-section .pdf-card-featured {
        max-width: 100%;
    }
}

/* Mobil genel (telefonlar) */
@media (max-width: 768px) {

    /* Mobilde fixed yerine scroll olsun (performans için) */
    body {
        background-attachment: scroll;
    }

    .page-shell {
        max-width: 100%;
        margin: 16px auto 24px;
        padding: 0 10px;
    }

    .page-panel {
        padding: 16px 12px 18px;
        border-radius: 22px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 14px;
    }

    .header-logo-main {
        width: 48px;
    }

    .header-program {
        font-size: 15px;
    }

    .header-tag {
        font-size: 9px;
        letter-spacing: 0.18em;
        padding: 5px 10px;
    }

    .hero-banner {
        padding: 14px 12px 12px;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 18px;
        letter-spacing: 0.06em;
    }

    .section-heading {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pdf-card {
        flex-direction: row;
        min-height: 0;
    }

    .pdf-card-media {
        flex: 0 0 32%;
        height: auto;
        border-right: 1px solid #e5e8f2;
        border-bottom: none;
    }

    .pdf-card-content {
        padding: 10px 10px 10px 12px;
    }

    .pdf-card-topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .pdf-card-category {
        text-align: left;
    }

    .pdf-card-content h3 {
        font-size: 15px;
    }

    .pdf-card-desc {
        font-size: 12px;
    }

    .pdf-card-meta {
        margin-top: 6px;
        font-size: 10px;
    }

    .pdf-card-btn {
        padding: 4px 9px;
        font-size: 10px;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        margin-top: 12px;
        padding: 8px 10px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }

    .footer-right {
        flex-wrap: wrap;
        margin-top: 4px;
    }
}

/* Çok küçük telefonlar (320–400px) */
@media (max-width: 400px) {
    .page-panel {
        padding: 14px 10px 16px;
    }

    .hero-title {
        font-size: 16px;
    }

    .header-program {
        font-size: 14px;
    }

    .pdf-card-media {
        flex: 0 0 36%;
    }

    .pdf-card-content h3 {
        font-size: 14px;
    }

    .pdf-card-desc {
        font-size: 11px;
    }
}
/* ====================================
   ÖNE ÇIKAN TEK BÜYÜK KART
==================================== */
/* .featured-card-section {
    margin: 20px 0 32px;
}

.pdf-card-featured {
    position: relative;
    display: flex;
    gap: 0;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7f2;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 280px;
}

.pdf-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 62px rgba(15, 23, 42, 0.28);
} */

/* SOL GÖRSEL */
.featured-media {
    flex: 0 0 42%;
    overflow: hidden;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SAĞ METİN KISMI */
.featured-content {
    flex: 1;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.featured-ribbon {
    font-size: 10px;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    border-radius: var(--radius-pill);
    background: #fff4f5;
    color: var(--chp-red-dark);
    border: 1px solid rgba(224, 33, 43, 0.5);
    width: fit-content;
}

.featured-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.featured-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
}

.featured-action {
    margin-top: 10px;
}

.featured-btn {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(224,33,43,0.45);
    background: linear-gradient(120deg, #fff, #fff7f7);
    font-size: 12px;
    font-weight: 600;
    color: var(--chp-red-dark);
}

/* MOBİL */
@media (max-width: 768px) {
    .pdf-card-featured {
        flex-direction: column;
        min-height: 0;
    }

    .featured-media {
        flex: none;
        height: 180px;
    }

    .featured-content {
        padding: 18px 16px;
    }

    .featured-title {
        font-size: 18px;
    }

    .featured-desc {
        font-size: 13px;
    }
}
.program-pdf-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;

    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(224, 33, 43, 0.55);
    background: linear-gradient(120deg, #ffffff, #fff7f7);
    text-decoration: none;
    cursor: pointer;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--chp-red-dark);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);

    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;

    /* YANIP SÖNME / PULSE EFEKTİ */
    animation: pdfPulse 1.6s ease-in-out infinite;
}

.program-pdf-btn:hover {
    /* Hover’da animasyonu durdur, klasik hover davranışı kalsın */
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
    background: linear-gradient(120deg, #fff5f5, #ffffff);
}

.program-pdf-main {
    font-weight: 700;
    font-size: 11px;
}

.program-pdf-sub {
    font-size: 10px;
    opacity: 0.9;
}
@keyframes pdfPulse {
    0%, 100% {
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
        background: linear-gradient(120deg, #ffffff, #fff7f7);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 16px 34px rgba(224, 33, 43, 0.35);
        background: linear-gradient(120deg, #fff8f8, #ffe9ec);
        transform: translateY(-1px);
    }
}
