﻿.sd__wrap {
    --sd-primary: #0A4D8C;
    --sd-primary-light: #5DA9DD;
    --sd-accent: #20396e;
    --sd-accent-soft: #5da9dd1c;
    --sd-card-bg: #ffffff;
    --sd-text-dark: #1a2535;
    --sd-text-mid: #4a5568;
    --sd-text-light: #8a9ab5;
    --sd-border: #dce6f3;
    --sd-shadow: 0 8px 32px rgba(26,79,138,0.12);
    --sd-radius: 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    width: 100%;
/*    max-width: 1100px;
*/    margin: 0 auto;
    padding: 32px 16px;
    font-family: 'Nunito', sans-serif;
    align-items: stretch;
}

    .sd__wrap *, .sd__wrap *::before, .sd__wrap *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

/* ── SLIDER ── */
.sd__slider-box {
    position: relative;
/*    border-radius: var(--sd-radius);
*/    overflow: hidden;
    box-shadow: var(--sd-shadow);
/*    aspect-ratio: 16/9;
*/    
    align-self: center;
}

.sd__slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.77,0,.18,1);
}

.sd__slide{
    min-width:100%;
    height:100%;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.sd__slide-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.sd__slide-label {
    display: inline-block;
    background: var(--sd-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.sd__slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px,4vw,40px);
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 10px;
}

.sd__slide-sub {
    font-size: clamp(14px,1.5vw,18px);
    color: var(--sd-text-mid);
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.5;
}

.sd__slide-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nunito',sans-serif;
    padding: 10px 26px;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s, transform .2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

    .sd__slide-btn:hover {
        background: var(--sd-accent);
        transform: translateY(-2px);
        color: #fff;
    }

.sd__slide-deco {
    position: absolute;
    border-radius: 50%;
    opacity: .18;
}

.sd__slide-1 .sd__slide-deco-1 {
    width: 260px;
    height: 260px;
    background: var(--sd-primary);
    top: -60px;
    left: -60px;
}

.sd__slide-1 .sd__slide-deco-2 {
    width: 180px;
    height: 180px;
    background: var(--sd-accent);
    bottom: -40px;
    right: -40px;
}

.sd__slide-2 .sd__slide-deco-1 {
    width: 220px;
    height: 220px;
    background: #e07b00;
    top: -50px;
    right: -50px;
}

.sd__slide-2 .sd__slide-deco-2 {
    width: 160px;
    height: 160px;
    background: #c04020;
    bottom: -30px;
    left: -30px;
}

.sd__slide-3 .sd__slide-deco-1 {
    width: 240px;
    height: 240px;
    background: #007a40;
    top: -55px;
    left: -55px;
}

.sd__slide-4 .sd__slide-deco-1 {
    width: 200px;
    height: 200px;
    background: #7a00c0;
    top: -50px;
    right: -50px;
}

.sd__slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transition: background .2s, transform .2s;
    backdrop-filter: blur(6px);
}

    .sd__slider-btn:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
    }

    .sd__slider-btn svg {
        width: 20px;
        height: 20px;
        stroke: var(--sd-primary);
        fill: none;
    }

.sd__slider-prev {
    left: 14px;
}

.sd__slider-next {
    right: 14px;
}

.sd__slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.sd__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: background .3s,transform .3s;
    padding: 0;
}

    .sd__dot.sd__active {
        background: var(--sd-primary);
        transform: scale(1.35);
    }

/* ── DUYURULAR ── */
.sd__duyurular-box {
    border-radius: var(--sd-radius);
    background: var(--sd-card-bg);
    box-shadow: var(--sd-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: start;
}

.sd__duy-header {
    background: linear-gradient(135deg,var(--sd-primary),var(--sd-text-dark));
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sd__duy-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sd__duy-header-left svg {
        width: 22px;
        height: 22px;
        stroke: #fff;
        fill: none;
    }

.sd__duy-header h2 {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .5px;
    font-family: 'Nunito',sans-serif;
}

.sd__duy-all {
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 8px;
    padding: 5px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    font-family: 'Nunito',sans-serif;
}

    .sd__duy-all:hover {
        background: rgba(255,255,255,.28);
        color: #fff;
    }

.sd__duy-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

    .sd__duy-track-wrap::before,
    .sd__duy-track-wrap::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 28px;
        z-index: 3;
        pointer-events: none;
    }

    .sd__duy-track-wrap::before {
        top: 0;
        background: linear-gradient(to bottom,#fff,transparent);
    }

    .sd__duy-track-wrap::after {
        bottom: 0;
        background: linear-gradient(to top,#fff,transparent);
    }

.sd__duy-track {
    display: flex;
    flex-direction: column;
    animation: sd__marqueeUp 22s linear infinite;
}

    .sd__duy-track:hover {
        animation-play-state: paused;
    }

@keyframes sd__marqueeUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.sd__duy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sd-border);
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}

    .sd__duy-item:hover {
        background: var(--sd-accent-soft);
    }

.sd__duy-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--sd-primary),var(--sd-text-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

    .sd__duy-icon svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        fill: none;
    }

.sd__duy-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sd-text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    font-family: 'Nunito',sans-serif;
}

.sd__duy-date {
    font-size: 12px;
    color: var(--sd-text-light);
    font-weight: 600;
    font-family: 'Nunito',sans-serif;
}

.sd__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    
    z-index: 1;
}
.sd__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.sd__slide-link {
    display: block;
    min-width: 100%;
    height: 100%;
}
.sd__slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 TÜM RESMİ GÖSTERİR */
}
/* ───────── TABLET ───────── */
@media (max-width: 1024px) {

    .sd__wrap {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .sd__slider-box {
        aspect-ratio: 16/9;
    }

    .sd__duyurular-box {
        margin-top: 10px;
    }

    .sd__slide-inner {
        padding: 30px;
    }

    .sd__slide-title {
        font-size: clamp(24px,4vw,36px);
    }

    .sd__slide-sub {
        font-size: 15px;
    }
}


/* ───────── MOBİL ───────── */
@media (max-width: 768px) {

    .sd__wrap {
        padding: 20px 12px;
    }

    .sd__slider-box {
        aspect-ratio: 16/10;
    }

    .sd__slide-inner {
        padding: 20px;
    }

    .sd__slide-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .sd__slide-sub {
        font-size: 14px;
    }

    .sd__slide-btn {
        font-size: 13px;
        padding: 8px 20px;
    }

    .sd__slider-btn {
        width: 36px;
        height: 36px;
    }

        .sd__slider-btn svg {
            width: 16px;
            height: 16px;
        }

    .sd__duy-header h2 {
        font-size: 15px;
    }

    .sd__duy-item {
        padding: 12px 14px;
    }

    .sd__duy-title {
        font-size: 13px;
    }
}


/* ───────── KÜÇÜK MOBİL ───────── */
@media (max-width: 480px) {

    .sd__slide-title {
        font-size: 20px;
    }

    .sd__slide-sub {
        display: none; /* mobilde kalabalığı azaltır */
    }

    .sd__slide-btn {
        padding: 7px 18px;
        font-size: 12px;
    }

    .sd__slider-dots {
        bottom: 8px;
    }

    .sd__duy-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .sd__duy-title {
        font-size: 12.5px;
    }

    .sd__duy-date {
        font-size: 11px;
    }
}
