﻿/* ============================================================
   yarismayla.css — Yarışmayla Muğla
   Temizlenmiş güncel sürüm
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #163a63;
    --accent: #ef9b49;
    --accent-dark: #df8630;
    --text: #16202f;
    --muted: #7b8592;
    --border: #e3e7ec;
    --light: #f3f5f7;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .06);
    --transition: .25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    /*display: block;*/
}

/* dış container etkisini kır */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100% !important;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.yarismayla-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
    position: relative;
    z-index: 20;
}

.ym-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 84px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.yarismayla-header .brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

    .yarismayla-header .brand a {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }

    .yarismayla-header .brand img {
        max-height: 70px;
        width: auto;
        height: auto;
    }

.yarismayla-header .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

    .yarismayla-header .menu a {
        font-size: 13px;
        font-weight: 800;
        color: var(--primary);
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 10px;
        white-space: nowrap;
        transition: background var(--transition), color var(--transition);
    }

        .yarismayla-header .menu a:hover {
            background: #f4f6f8;
        }

        .yarismayla-header .menu a.active {
            background: #fff3e6;
            color: #cf7e23;
            box-shadow: inset 0 0 0 1px rgba(239,155,73,.18);
        }

.yarismayla-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 56px;
    color: var(--text);
}

/* ============================================================
   HOME SLIDER
   ============================================================ */

.ym-slider-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 28px 0 78px;
}

.ym-slider {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
}

.ym-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
    align-items: center;
    gap: 56px;
    padding: 10px 0 0;
}

.ym-slide-left.home-clean {
    padding: 0;
    background: #fff;
}

.ym-slide-subtitle {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #96a0ab;
    margin-bottom: 16px;
}

.ym-slide-title.home-title {
    margin: 0 0 18px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: .96;
    font-weight: 900;
    color: #101820;
    text-transform: uppercase;
    letter-spacing: -.02em;
    max-width: 760px;
}

.ym-slide-desc.home-desc {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.55;
    color: #394150;
    max-width: 720px;
}

.ym-slide-cta.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 114px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background var(--transition), transform var(--transition);
}

    .ym-slide-cta.home-cta:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }

.ym-slide-right.home-clean {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ym-slide-right.home-clean img {
        width: 100%;
        max-width: 320px;
        max-height: 520px;
        height: auto;
        object-fit: contain;
        box-shadow: 0 12px 28px rgba(0,0,0,.08);
    }

/* slider controls */
.ym-slider-btn {
    position: absolute;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border: 1px solid #d8dde3;
    border-radius: 50%;
    background: #fff;
    color: #24364d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    z-index: 5;
    transition: background var(--transition);
}

    .ym-slider-btn:hover {
        background: #f7f9fb;
    }

    .ym-slider-btn.prev {
        left: 0;
    }

    .ym-slider-btn.next {
        left: 52px;
    }

.ym-slider-dots {
    position: absolute;
    left: 108px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ym-slider-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #cfd5dc;
        cursor: pointer;
        transition: transform var(--transition), background var(--transition);
    }

        .ym-slider-dots .dot.active {
            background: var(--accent);
            transform: scale(1.2);
        }

/* ============================================================
   HOME SECTION
   ============================================================ */

.ym-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

    .ym-section-head h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 800;
        color: #132238;
    }

.ym-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
}

    .ym-all-link:hover {
        background: var(--primary);
        color: #fff;
    }

.ym-grid.ym-grid-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ym-card.home-card {
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

    .ym-card.home-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 26px rgba(0,0,0,.08);
    }

.ym-card-poster {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 18px;
    background: #eef2f5;
    text-decoration: none;
}

    .ym-card-poster img {
        max-width: 100%;
        max-height: 220px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.ym-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2f5c8f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 4px;
}

.ym-card.home-card .ym-card-body {
    padding: 16px 16px 14px;
}

.ym-card.home-card .ym-card-date {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}

.ym-card.home-card .ym-card-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    min-height: 52px;
}

.ym-card.home-card .ym-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
}

.ym-card.home-card .ym-card-type {
    font-size: 12px;
    font-weight: 600;
    color: #687180;
}

.ym-card.home-card .ym-card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.ym-page-hero {
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    margin: 24px 0 0;
}

    .ym-page-hero h1 {
        margin: 0 0 8px;
        font-size: 34px;
        font-weight: 900;
    }

    .ym-page-hero p {
        margin: 0;
        color: rgba(255,255,255,.76);
        font-size: 15px;
    }

/* ============================================================
   DETAIL PAGE
   ============================================================ */

.yd-top {
    background: var(--primary);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 24px 0 0;
    color: #fff;
}

    .yd-top h1 {
        margin: 0 0 8px;
        font-size: clamp(22px, 3vw, 30px);
        line-height: 1.25;
        font-weight: 800;
        color: #fff;
        max-width: 860px;
    }

.yd-date {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .yd-date::before {
        content: "📅";
        font-size: 12px;
    }

.yd-layout {
    display: grid;
    grid-template-columns: 280px 210px 1fr;
    align-items: start;
    gap: 0;
    margin-top: 24px;
}

.yd-cover {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 16px;
    background: rgba(22,58,99,.06);
    border: 1px solid var(--border);
    border-right: 0;
    min-height: 500px;
}

    .yd-cover img {
        width: 100%;
        height: 100%;
        min-height: 500px;
        object-fit: contain;
        padding: 16px;
        background: #0d2139;
    }

.yd-menu {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 16px;
    padding: 18px 0;
    border: 1px solid var(--border);
    border-left: 0;
    border-right: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.yd-tab {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-right: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

    .yd-tab:hover {
        background: rgba(22,58,99,.05);
        color: var(--primary);
    }

    .yd-tab.active {
        background: rgba(22,58,99,.06);
        color: var(--primary);
        font-weight: 700;
        border-right-color: var(--accent);
    }

.yd-content {
    grid-column: 3;
    grid-row: 1;
    padding: 8px 0 0 32px;
    min-width: 0;
}

    .yd-content h2 {
        margin: 0 0 24px;
        padding-bottom: 12px;
        font-size: 24px;
        font-weight: 800;
        color: var(--primary);
        border-bottom: 2px solid var(--border);
    }

    .yd-content h3 {
        margin: 24px 0 12px;
        font-size: 16px;
        font-weight: 700;
        color: var(--primary);
    }

    .yd-kunye p,
    .yd-content .yd-sss p {
        margin: 0 0 16px;
        font-size: 14.5px;
        line-height: 1.75;
        color: var(--text);
    }

        .yd-kunye p strong,
        .yd-content .yd-sss p strong {
            display: block;
            margin-bottom: 4px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--primary);
        }

.yd-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

    .yd-table .row {
        display: flex;
        border-bottom: 1px solid var(--border);
        margin: 0;
    }

        .yd-table .row:last-child {
            border-bottom: 0;
        }

        .yd-table .row:nth-child(even) {
            background: var(--light);
        }

    .yd-table .cell {
        padding: 14px 18px;
        font-size: 14px;
    }

        .yd-table .cell.title {
            flex: 1;
        }

        .yd-table .cell.date {
            width: 450px;
            border-left: 1px solid var(--border);
            font-weight: 700;
            color: var(--primary);
        }

.yd-juri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.yd-juri-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-align: center;
    padding: 0 16px 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .yd-juri-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,.08);
    }

    .yd-juri-card img {
        width: 160px;
        height: 160px;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 50%;
        background: #f4f6f8;
        padding: 6px;
        margin: 20px auto 0;
        filter: grayscale(100%);
        transition: filter .35s ease, transform .35s ease;
    }
    .yd-juri-card:hover img {
        filter: grayscale(0%);
        transform: scale(1.04);
    }

    .yd-juri-card .body {
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }

    .yd-juri-card .name {
        font-size: 15px;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 6px;
    }

    .yd-juri-card .meta {
        font-size: 12px;
        color: var(--muted);
    }

.yd-odul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.yd-odul {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    text-align: center;
}

    .yd-odul .t {
        font-size: 13px;
        opacity: .85;
        margin-bottom: 10px;
    }

    .yd-odul .p {
        font-size: 22px;
        font-weight: 800;
        color: var(--accent);
    }

.yd-odul-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.yd-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .yd-links li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--light);
        color: var(--primary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
    }

        .yd-links li a::before {
            content: "↓";
            color: var(--accent);
            font-size: 16px;
        }

.yd-video {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
}

    .yd-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

.yd-sonuc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yd-sonuc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--light);
}

    .yd-sonuc-item .cat {
        min-width: 180px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--primary);
    }

    .yd-sonuc-item .desc {
        flex: 1;
        font-size: 14px;
    }

    .yd-sonuc-item .lnk a {
        color: var(--primary);
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

.yd-empty {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--light);
    text-align: center;
    color: var(--muted);
    font-style: italic;
}

/* detail buttons */
.yd-content .btn,
.yd-content a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.yd-content .btn-primary,
.yd-content a.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: 0 !important;
}

/* ============================================================
   ANNOUNCEMENTS / ABOUT
   ============================================================ */

.ym-duyuru-list {
    display: flex;
    flex-direction: column;
}

.ym-duyuru-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.ym-duyuru-date {
    min-width: 90px;
    text-align: center;
}

    .ym-duyuru-date .day {
        font-size: 32px;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
    }

    .ym-duyuru-date .month-year {
        font-size: 12px;
        color: var(--muted);
    }

.ym-duyuru-sep {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

.ym-duyuru-body {
    flex: 1;
}

    .ym-duyuru-body h3 {
        margin: 0 0 6px;
        font-size: 18px;
        color: var(--primary);
    }

    .ym-duyuru-body p {
        margin: 0;
        font-size: 14px;
        color: var(--muted);
        line-height: 1.6;
    }

.ym-hakkimizda {
    max-width: 780px;
    padding-top: 32px;
}

    .ym-hakkimizda h2 {
        margin: 36px 0 16px;
        font-size: 26px;
        color: var(--primary);
        font-weight: 800;
    }

    .ym-hakkimizda p {
        margin: 0 0 16px;
        font-size: 15px;
        line-height: 1.8;
        color: var(--text);
    }

/* ============================================================
   DETAIL IMAGE LIGHTBOX
   ============================================================ */

.yd-cover-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

    .yd-cover-trigger img {
        width: 100%;
        height: 100%;
        min-height: 500px;
        object-fit: contain;
        padding: 16px;
        background: rgba(22,58,99,.06);
    }

.yd-cover-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.yd-cover-trigger:hover .yd-cover-zoom {
    opacity: 1;
}

.yd-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

    .yd-lightbox.open {
        display: flex;
    }

.yd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
}

.yd-lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: min(1100px, 92vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .yd-lightbox-dialog img {
        max-width: 100%;
        max-height: calc(92vh - 56px);
        width: auto;
        height: auto;
        object-fit: contain;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,.35);
    }

.yd-lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.yd-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

body.yd-modal-open {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .ym-grid.ym-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ym-slide {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }

    .ym-slide-title.home-title {
        font-size: clamp(34px, 4.6vw, 56px);
    }

    .ym-slide-desc.home-desc {
        font-size: 17px;
    }

    .yd-layout {
        grid-template-columns: 220px 1fr;
    }

    .yd-cover {
        grid-column: 1 / -1;
        grid-row: 1;
        position: static;
        min-height: 340px;
        border-right: 1px solid var(--border);
        border-bottom: 0;
    }

        .yd-cover img,
        .yd-cover-trigger img {
            min-height: 340px;
        }

    .yd-menu {
        grid-column: 1;
        grid-row: 2;
        position: static;
        border-left: 1px solid var(--border);
    }

    .yd-content {
        grid-column: 2;
        grid-row: 2;
        padding-left: 24px;
    }
}

@media (max-width: 900px) {
    .ym-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 20px;
    }

    .yarismayla-header .brand {
        justify-content: flex-start;
    }

    .yarismayla-header .menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

        .yarismayla-header .menu a {
            text-align: center;
            padding: 12px 10px;
            font-size: 12px;
        }

    .ym-slide {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 8px 0 0;
    }

    .ym-slide-right.home-clean {
        order: 1;
        justify-content: center;
    }

        .ym-slide-right.home-clean img {
            max-width: 280px;
            max-height: none;
            width: auto;
            height: auto;
            margin: 0 auto;
        }

    .ym-slide-left.home-clean {
        order: 2;
    }

    .ym-slide-title.home-title {
        font-size: clamp(28px, 8.6vw, 46px);
        line-height: 1.02;
    }

    .ym-slide-desc.home-desc {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .ym-grid.ym-grid-home {
        grid-template-columns: 1fr;
    }

    .ym-card-poster {
        height: 230px;
    }

        .ym-card-poster img {
            max-height: 190px;
        }

    .yd-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .yd-menu {
        grid-column: 1;
        grid-row: 1;
        border: 1px solid var(--border);
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-height: none;
        overflow: visible;
    }

    .yd-tab {
        border-right: 0;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        padding: 10px 12px;
        background: #f8fafb;
    }

        .yd-tab.active {
            border-bottom-color: var(--accent);
        }

    .yd-cover {
        grid-column: 1;
        grid-row: 2;
        min-height: 280px;
    }

        .yd-cover img,
        .yd-cover-trigger img {
            min-height: 280px;
        }

    .yd-content {
        grid-column: 1;
        grid-row: 3;
        padding: 0;
    }

    .yd-lightbox {
        padding: 16px;
    }

    .yd-lightbox-close {
        top: -10px;
        right: -6px;
    }
}

@media (max-width: 600px) {
    .yarismayla-content {
        padding: 0 16px 40px;
    }

    .ym-inner {
        padding: 14px 16px;
    }

    .yarismayla-header .brand img {
        max-height: 46px;
    }

    .yarismayla-header .menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ym-slider-wrap {
        padding: 16px 0 82px;
    }

    .ym-slide-right.home-clean img {
        max-width: 255px;
    }

    .ym-slide-title.home-title {
        font-size: clamp(24px, 9vw, 38px);
    }

    .ym-slide-desc.home-desc {
        font-size: 15px;
    }

    .ym-slider-btn {
        bottom: 6px;
        width: 38px;
        height: 38px;
    }

        .ym-slider-btn.prev {
            left: 0;
        }

        .ym-slider-btn.next {
            left: 48px;
        }

    .ym-slider-dots {
        left: 100px;
        bottom: 21px;
    }

    .ym-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ym-card.home-card .ym-card-title {
        font-size: 20px;
        min-height: auto;
    }

    .ym-duyuru-item {
        flex-direction: column;
        gap: 12px;
    }

    .ym-duyuru-sep {
        display: none;
    }

    .yd-top {
        padding: 24px 20px;
    }

    .yd-odul-grid,
    .yd-juri-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yd-table .row {
        flex-direction: column;
    }

    .yd-table .cell.date {
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .yd-sonuc-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ym-grid.ym-grid-all {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ym-card.all-card .ym-card-body {
    display: flex;
    flex-direction: column;
}

.ym-card-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #5f6977;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67px;
}

@media (max-width: 1100px) {
    .ym-grid.ym-grid-all {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ym-grid.ym-grid-all {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ym-count {
        font-size: 12px;
    }
}

.ym-duyuru-ozet {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    padding: 18px 20px;
    background: #f8fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ym-duyuru-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
}

    .ym-duyuru-content p {
        margin: 0 0 18px;
    }

    .ym-duyuru-content h2,
    .ym-duyuru-content h3,
    .ym-duyuru-links-wrap h2,
    .ym-duyuru-gallery-wrap h2 {
        margin: 36px 0 16px;
        font-size: 24px;
        font-weight: 800;
        color: var(--primary);
    }

    .ym-duyuru-content a {
        color: var(--primary);
        font-weight: 700;
        text-decoration: none;
    }

        .ym-duyuru-content a:hover {
            text-decoration: underline;
        }

.ym-duyuru-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ym-duyuru-gallery-item {
    border: 0;
    background: #eef2f5;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

    .ym-duyuru-gallery-item img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.ym-duyuru-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

    .ym-duyuru-lightbox.open {
        display: flex;
    }

.ym-duyuru-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
}

.ym-duyuru-lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: min(1100px, 92vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .ym-duyuru-lightbox-dialog img {
        max-width: 100%;
        max-height: calc(92vh - 56px);
        width: auto;
        height: auto;
        object-fit: contain;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 12px 40px rgba(0,0,0,.35);
    }

.ym-duyuru-lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.ym-duyuru-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

@media (max-width: 900px) {
    .ym-duyuru-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


    @media (max-width: 600px) {

        .ym-duyuru-ozet {
            font-size: 16px;
            padding: 16px;
        }

        .ym-duyuru-gallery {
            grid-template-columns: 1fr;
        }

        .ym-duyuru-gallery-item img {
            height: 210px;
        }

        .ym-duyuru-lightbox {
            padding: 16px;
        }

        .ym-duyuru-lightbox-close {
            top: -10px;
            right: -6px;
        }
    }


    /* ============================================================
   DUYURULAR SAYFASI
   ============================================================ */

    .ym-section-head-page {
        margin-top: 32px;
    }

    .ym-count {
        font-size: 13px;
        color: var(--muted);
        font-weight: 600;
        white-space: nowrap;
    }

    .ym-duyuru-list-page {
        border-top: 0;
    }

    .ym-duyuru-title-link {
        color: var(--primary);
        text-decoration: none;
        transition: color var(--transition);
    }

        .ym-duyuru-title-link:hover {
            color: var(--accent);
        }

    .ym-duyuru-actions {
        margin-top: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    @media (max-width: 600px) {
        .ym-duyuru-actions {
            margin-top: 10px;
        }
    }


    /* ============================================================
   DUYURU DETAY LAYOUT (YENİ)
   ============================================================ */

    .ym-duyuru-detay-layout {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 32px;
        align-items: start;
        margin-top: 24px;
    }

    /* SOL KAPAK */
    .ym-duyuru-cover-side {
        position: sticky;
        top: 16px;
        width: fit-content;
    }

    .ym-duyuru-cover-trigger {
        display: inline-block;
        border: 0;
        background: rgba(22,58,99,.06);
        padding: 12px;
        cursor: zoom-in;
        border-radius: 12px;
    }

        .ym-duyuru-cover-trigger img {
            display: block;
            width: auto;
            height: auto;
            max-width: 200px;
            max-height: 300px;
            object-fit: contain;
        }

    /* SAĞ İÇERİK */
    .ym-duyuru-content-side {
        min-width: 0;
    }

    /* ÖZET */
    .ym-duyuru-ozet {
        margin-bottom: 20px;
        font-size: 18px;
        line-height: 1.7;
        color: #4b5563;
        padding: 18px 20px;
        background: #f8fafb;
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    /* HTML içerik */
    .ym-duyuru-content {
        font-size: 15px;
        line-height: 1.85;
    }

        .ym-duyuru-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            margin: 16px 0;
        }

    /* ============================================================
   RESPONSIVE
   ============================================================ */

    @media (max-width: 900px) {

        .ym-duyuru-detay-layout {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .ym-duyuru-cover-side {
            position: static;
            width: auto;
        }

        .ym-duyuru-cover-trigger {
            display: block;
            width: 100%;
        }

            .ym-duyuru-cover-trigger img {
                max-width: 100%;
                max-height: 360px;
                width: auto;
                margin: 0 auto;
            }
    }

/* ============================================================
   DARK MODE
   ============================================================ */
.dark-mode .yarismayla-header .brand img {
    filter: brightness(0) invert(1) contrast(1.05);
}
.dark-mode .yarismayla-header {
    background: #1f1f1f !important;
    border-color: #3a3a3a !important;
    box-shadow: none !important;
}

.dark-mode .yarismayla-content,
.dark-mode .ym-slider-wrap,
.dark-mode .ym-slide-left.home-clean,
.dark-mode body {
    background: #181818 !important;
    color: #f1f1f1 !important;
}

/* MENU */

.dark-mode .yarismayla-header .menu a {
    color: #f1f1f1 !important;
}

    .dark-mode .yarismayla-header .menu a:hover {
        background: #2c2c2c !important;
    }

    .dark-mode .yarismayla-header .menu a.active {
        background: rgba(239,155,73,.15) !important;
        color: #ef9b49 !important;
    }

/* HOME */

.dark-mode .ym-slide-title.home-title,
.dark-mode .ym-section-head h2,
.dark-mode .ym-card.home-card .ym-card-title,
.dark-mode .ym-page-hero h1 {
    color: #fff !important;
}

.dark-mode .ym-slide-desc.home-desc,
.dark-mode .ym-card-desc,
.dark-mode .ym-card.home-card .ym-card-type,
.dark-mode .ym-duyuru-body p,
.dark-mode .ym-hakkimizda p {
    color: #b9c0c9 !important;
}

/* CARDS */

.dark-mode .ym-card.home-card,
.dark-mode .yd-juri-card,
.dark-mode .yd-table,
.dark-mode .yd-empty,
.dark-mode .ym-duyuru-gallery-item {
    background: #232323 !important;
    border-color: #3a3a3a !important;
    box-shadow: none !important;
}

    .dark-mode .ym-card-poster,
    .dark-mode .yd-juri-card img,
    .dark-mode .ym-duyuru-gallery-item,
    .dark-mode .ym-duyuru-cover-trigger,
    .dark-mode .yd-cover {
        background: #2b2b2b !important;
    }

/* DETAIL */

.dark-mode .yd-menu {
    border-color: #3a3a3a !important;
    background: #1f1f1f !important;
}

.dark-mode .yd-tab {
    color: #d7d7d7 !important;
}

    .dark-mode .yd-tab:hover {
        background: #2c2c2c !important;
        color: #fff !important;
    }

    .dark-mode .yd-tab.active {
        background: rgba(239,155,73,.12) !important;
        color: #ef9b49 !important;
    }

.dark-mode .yd-content h2,
.dark-mode .yd-content h3,
.dark-mode .yd-juri-card .name,
.dark-mode .yd-sonuc-item .cat,
.dark-mode .ym-duyuru-body h3 {
    color: #fff !important;
}

.dark-mode .yd-kunye p,
.dark-mode .yd-content .yd-sss p,
.dark-mode .yd-juri-card .meta,
.dark-mode .yd-sonuc-item .desc,
.dark-mode .yd-links li a,
.dark-mode .ym-duyuru-content,
.dark-mode .ym-duyuru-ozet {
    color: #c8c8c8 !important;
}

/* TABLE */

.dark-mode .yd-table .row {
    border-color: #3a3a3a !important;
}

    .dark-mode .yd-table .row:nth-child(even) {
        background: #262626 !important;
    }

.dark-mode .yd-table .cell.date {
    border-color: #3a3a3a !important;
    color: #ef9b49 !important;
}

/* LINKS */

.dark-mode .yd-links li a {
    background: #232323 !important;
    border-color: #3a3a3a !important;
}

    .dark-mode .yd-links li a:hover {
        background: #2c2c2c !important;
    }

/* ODULLER */

.dark-mode .yd-odul {
    background: #202c3d !important;
}

.dark-mode .yd-odul-note,
.dark-mode .ym-duyuru-ozet {
    background: #232323 !important;
    border-color: #3a3a3a !important;
    color: #d5d5d5 !important;
}

/* SONUCLAR */

.dark-mode .yd-sonuc-item {
    background: #232323 !important;
    border-color: #3a3a3a !important;
}

/* LIGHTBOX */

.dark-mode .yd-lightbox-dialog img,
.dark-mode .ym-duyuru-lightbox-dialog img {
    background: #1f1f1f !important;
}

.dark-mode .yd-lightbox-close,
.dark-mode .ym-duyuru-lightbox-close {
    background: #2b2b2b !important;
    color: #fff !important;
}

/* BUTTONS */

.dark-mode .ym-all-link {
    background: #232323 !important;
    border-color: #4a4a4a !important;
    color: #fff !important;
}

    .dark-mode .ym-all-link:hover {
        background: var(--primary) !important;
    }

/* SCROLLBAR */

.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

    .dark-mode ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }