/* =========================================================
   YEDİİKLİM İZMİR
   EĞİTİMLER / PROGRAM KARTLARI
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.programs-section {
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;

    padding: 115px 0 135px;

    background:
        radial-gradient(
            circle at 10% 25%,
            rgba(255, 90, 95, 0.055),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(76, 120, 255, 0.055),
            transparent 25%
        ),
        #ffffff;
}


/* =========================================================
   BAŞLIK
========================================================= */

.programs-heading {
    position: relative;
    z-index: 2;

    max-width: 680px;

    margin: 0 auto 60px;

    text-align: center;
}


.section-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 17px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.section-label::before,
.section-label::after {
    content: "";

    width: 22px;
    height: 2px;

    margin: 0 11px;

    border-radius: 999px;

    background:
        rgba(215, 25, 32, 0.45);
}


.programs-heading h2 {
    color: var(--navy-dark);

    font-size:
        clamp(38px, 4.2vw, 58px);

    font-weight: 850;

    line-height: 1.05;

    letter-spacing: -3px;
}


.programs-heading h2 span {
    color: var(--red);
}


.programs-heading p {
    max-width: 520px;

    margin: 20px auto 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   GRID
========================================================= */

.programs-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   GENEL KART
========================================================= */

.program-card {
    /* Varsayılan */
    --program-color: #ff4757;
    --program-color-2: #ff7580;
    --program-bg-1: #ffd3d7;
    --program-bg-2: #ffe7e9;
    --program-border: #ffb7bd;
    --program-shadow: rgba(255, 71, 87, 0.18);

    position: relative;

    min-height: 405px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 27px;

    border:
        1px solid var(--program-border);

    border-radius: 27px;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 255, 255, 0.75),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            var(--program-bg-2) 0%,
            var(--program-bg-1) 100%
        );

    box-shadow:
        0 14px 35px var(--program-shadow);

    isolation: isolate;

    transition:
        transform 320ms cubic-bezier(.2,.8,.2,1),
        box-shadow 320ms cubic-bezier(.2,.8,.2,1),
        border-color 320ms ease;
}


/* Hafif parlak cam katmanı */

.program-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -70px;

    z-index: -1;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.42);

    filter:
        blur(2px);

    pointer-events: none;

    transition:
        transform 500ms cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RENKLER
========================================================= */


/* ---------------------------------------------------------
   KPSS
   Açık Mercan / Parlak Kırmızı
--------------------------------------------------------- */

.program-kpss {
    --program-color: #f2384a;
    --program-color-2: #ff6976;

    --program-bg-1: #ffc9ce;
    --program-bg-2: #ffe5e7;

    --program-border: #ffadb5;

    --program-shadow:
        rgba(242, 56, 74, 0.15);
}


/* ---------------------------------------------------------
   YKS
   Açık Elektrik Mavi
--------------------------------------------------------- */

.program-yks {
    --program-color: #2764e7;
    --program-color-2: #4c8cff;

    --program-bg-1: #bdd8ff;
    --program-bg-2: #e2efff;

    --program-border: #9dc7ff;

    --program-shadow:
        rgba(39, 100, 231, 0.15);
}


/* ---------------------------------------------------------
   LGS
   Canlı Mint / Turkuaz
--------------------------------------------------------- */

.program-lgs {
    --program-color: #009f72;
    --program-color-2: #20c997;

    --program-bg-1: #aeeed5;
    --program-bg-2: #ddf9ee;

    --program-border: #8ae1c0;

    --program-shadow:
        rgba(0, 159, 114, 0.15);
}


/* ---------------------------------------------------------
   AGS
   Açık Mor / Lila / Pembe
--------------------------------------------------------- */

.program-ags {
    --program-color: #7c3aed;
    --program-color-2: #a855f7;

    --program-bg-1: #d9bcff;
    --program-bg-2: #f0e4ff;

    --program-border: #cba8ff;

    --program-shadow:
        rgba(124, 58, 237, 0.15);
}


/* =========================================================
   ÜST VURGU ÇİZGİSİ
========================================================= */

.program-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 27px;
    right: 27px;

    height: 4px;

    z-index: 3;

    border-radius:
        0 0 10px 10px;

    background:
        linear-gradient(
            90deg,
            var(--program-color),
            var(--program-color-2)
        );

    transform:
        scaleX(0.20);

    transform-origin:
        left center;

    opacity: 0.65;

    transition:
        transform 400ms cubic-bezier(.2,.8,.2,1),
        opacity 300ms ease;
}


/* =========================================================
   ARKADAKİ BÜYÜK KPSS / YKS / LGS / AGS
========================================================= */

.program-bg-text {
    position: absolute;

    top: 68px;
    right: -11px;

    z-index: 0;

    color:
        var(--program-color);

    opacity: 0.105;

    font-size: 83px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -7px;

    pointer-events: none;

    user-select: none;

    transition:
        transform 450ms cubic-bezier(.2,.8,.2,1),
        opacity 300ms ease;
}


/* =========================================================
   KART ÜST ALAN
========================================================= */

.program-top {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* 01 / 02 / 03 / 04 */

.program-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 35px;
    height: 27px;

    padding: 0 9px;

    border:
        1px solid rgba(255,255,255,0.72);

    border-radius: 999px;

    background:
        rgba(255,255,255,0.48);

    color:
        var(--program-color);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1px;

    backdrop-filter:
        blur(6px);
}


/* =========================================================
   İKON
========================================================= */

.program-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            var(--program-color),
            var(--program-color-2)
        );

    border:
        1px solid rgba(255,255,255,0.35);

    color: #ffffff;

    font-size: 18px;

    box-shadow:
        0 10px 22px var(--program-shadow),
        inset 0 1px 0 rgba(255,255,255,0.25);

    transition:
        transform 350ms cubic-bezier(.2,.8,.2,1),
        box-shadow 350ms ease;
}


/* =========================================================
   İÇERİK
========================================================= */

.program-content {
    position: relative;

    z-index: 2;

    margin-top: auto;

    padding-top: 78px;
}


.program-type {
    display: inline-block;

    margin-bottom: 8px;

    color:
        var(--program-color);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.15px;

    text-transform: uppercase;
}


.program-content h3 {
    margin-bottom: 12px;

    color:
        var(--navy-dark);

    font-size: 40px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -2.5px;
}


.program-content p {
    max-width: 230px;

    color:
        #53657b;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.65;
}


/* =========================================================
   ALT ALAN
========================================================= */

.program-footer {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 27px;

    padding-top: 19px;

    border-top:
        1px solid rgba(255,255,255,0.68);

    color:
        var(--navy);

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   OK
========================================================= */

.program-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--program-color),
            var(--program-color-2)
        );

    color: #ffffff;

    font-size: 12px;

    box-shadow:
        0 8px 18px var(--program-shadow);

    transition:
        transform 350ms cubic-bezier(.2,.8,.2,1),
        box-shadow 350ms ease;
}


/* =========================================================
   HOVER
========================================================= */

.program-card:hover {
    transform:
        translateY(-10px);

    border-color:
        var(--program-color);

    box-shadow:
        0 25px 55px var(--program-shadow);
}


.program-card:hover::before {
    transform:
        scaleX(1);

    opacity: 1;
}


.program-card:hover::after {
    transform:
        scale(1.20)
        translate(-12px, 12px);
}


.program-card:hover .program-bg-text {
    transform:
        translateX(-9px)
        scale(1.045);

    opacity: 0.16;
}


.program-card:hover .program-icon {
    transform:
        translateY(-3px)
        rotate(-5deg)
        scale(1.08);

    box-shadow:
        0 15px 28px var(--program-shadow),
        inset 0 1px 0 rgba(255,255,255,0.3);
}


.program-card:hover .program-arrow {
    transform:
        translateX(4px)
        scale(1.07);

    box-shadow:
        0 12px 23px var(--program-shadow);
}


/* =========================================================
   ACTIVE / CLICK
========================================================= */

.program-card:active {
    transform:
        translateY(-5px)
        scale(0.99);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .programs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .program-card {
        min-height: 370px;
    }

    .program-content p {
        max-width: 300px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .programs-section {
        padding:
            85px 0 95px;
    }


    .programs-heading {
        margin-bottom: 42px;
    }


    .programs-heading h2 {
        font-size: 39px;

        letter-spacing: -2px;
    }


    .programs-heading p {
        font-size: 14px;
    }


    .programs-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .program-card {
        min-height: 335px;

        padding: 23px;

        border-radius: 23px;
    }


    .program-bg-text {
        top: 64px;

        font-size: 73px;
    }


    .program-content {
        padding-top: 58px;
    }


    .program-content h3 {
        font-size: 36px;
    }


    .program-content p {
        max-width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .program-card,
    .program-card::before,
    .program-card::after,
    .program-bg-text,
    .program-icon,
    .program-arrow {
        transition: none;
    }

}
