/* 29 Ekim Cumhuriyet Bayramı */
:root {
    --rd-red: #E30A17;
    --rd-red-deep: #8f0710;
    --rd-gold: #E8C56B;
    --rd-cream: #fff6ef;
}

.rd-ribbon {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .48rem .75rem;
    background: linear-gradient(90deg, #6d050c, var(--rd-red) 22%, var(--rd-red) 78%, #6d050c);
    color: #fff; font-weight: 800; font-size: .84rem; line-height: 1.25; text-align: center; z-index: 40;
}
.rd-ribbon__star {
    width: 13px; height: 13px; flex-shrink: 0; background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rd-card, .rd-admin {
    display: flex; align-items: center; gap: .9rem;
    padding: .8rem 1rem; margin-bottom: 1rem; color: #fff;
    background: linear-gradient(135deg, #7a0610, var(--rd-red));
    border-radius: 16px; box-shadow: 0 8px 22px rgba(227, 10, 23, .22);
}
.rd-admin { border-radius: 8px; margin-bottom: 16px; }
.rd-card img, .rd-admin img {
    width: 54px; height: 54px; object-fit: cover; object-position: 50% 12%;
    border-radius: 50%; border: 2px solid var(--rd-gold); flex-shrink: 0;
}
.rd-card strong, .rd-admin strong { display: block; font-size: 1.02rem; }
.rd-card span, .rd-admin span { display: block; font-size: .82rem; opacity: .93; margin-top: .12rem; }

.rd-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.rd-spark {
    position: absolute; top: -8%; left: var(--x, 50%);
    width: 8px; height: 8px; background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: rd-fall var(--t, 12s) linear var(--d, 0s) infinite;
}
.rd-spark--gold { background: var(--rd-gold); }
@keyframes rd-fall {
    0% { transform: translateY(0) rotate(0); opacity: .85; }
    100% { transform: translateY(110vh) rotate(240deg); opacity: .1; }
}

/* —— Açılış —— */
.rd-splash {
    position: fixed; inset: 0; z-index: 10050;
    background: #1a0508;
    overflow: hidden;
}
.rd-splash[hidden] { display: none !important; }
.rd-splash__photo,
.rd-splash__photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.rd-splash__photo img {
    object-fit: cover;
    object-position: 52% 42%;
}
.rd-bar {
    position: absolute; left: 8%; right: 8%; bottom: 28px; z-index: 8;
    height: 10px;
    background: rgba(255,255,255,.35);
    border-radius: 99px;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(0,0,0,.18);
}
.rd-bar__fill {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, #c9a227, #ffe58a 50%, #e8c56b);
    border-radius: 99px;
}
.rd-splash.is-out { animation: rd-out .5s ease forwards; }
@keyframes rd-out { to { opacity: 0; visibility: hidden; } }

/* —— Ana sayfa sahnesi —— */
.rd-home {
    position: relative; overflow: hidden;
    min-height: 760px;
    padding: calc(var(--nav-h, 72px) + env(safe-area-inset-top, 0px) + 36px) 0 48px;
    background:
        radial-gradient(ellipse at 88% 0%, rgba(232, 197, 107, .28), transparent 46%),
        linear-gradient(165deg, #fff8f2 0%, #ffe4df 38%, #fff 100%);
}
.rd-home__grid {
    position: relative; z-index: 3;
    display: grid; gap: 2rem; align-items: center;
}
.rd-home__copy { max-width: 36rem; }
.rd-home__kicker {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: .75rem; padding: .28rem .75rem;
    border-radius: 999px; background: var(--rd-red); color: #fff;
    font-size: .78rem; font-weight: 800;
}
.rd-home h1 {
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    font-weight: 900; line-height: 1.08; color: #1c2748; margin: 0 0 .7rem;
}
.rd-home h1 em {
    font-style: normal; color: var(--rd-red);
}
.rd-home__lead {
    font-size: 1.12rem; color: #3d4560; margin: 0 0 .85rem; max-width: 32rem;
}
.rd-home__quote {
    margin: .35rem 0 1rem; padding-left: .85rem;
    border-left: 3px solid var(--rd-gold);
    color: #5a3140; font-size: 1rem; font-weight: 700;
}
.kg-banner--rd .kg-float-chip--left { display: none; }
.rd-banner-ata {
    position: absolute; left: 0; top: 10%; z-index: 5;
    width: min(36%, 158px); text-align: center;
}
.rd-banner-ata img {
    width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 8%;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--rd-gold), 0 12px 24px rgba(28, 39, 72, .22);
    background: #111;
}
.rd-banner-ata span {
    display: inline-block; margin-top: .35rem;
    padding: .12rem .5rem; border-radius: 999px;
    background: var(--rd-red); color: #fff;
    font-size: .68rem; font-weight: 800;
}
.rd-home__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.rd-home .kg-btn:not(.kg-btn--outline) { background: var(--rd-red); border-color: var(--rd-red); }
.rd-home .kg-btn--outline { background: #fff; color: var(--rd-red); border: 2px solid var(--rd-red); }

.rd-home__visual { position: relative; min-height: 420px; }
.rd-home__frame {
    position: relative; width: min(100%, 420px); margin-inline: auto;
}
.rd-home__ataturk {
    width: 78%; margin-left: 4%;
    aspect-ratio: 4 / 5; border-radius: 46% 46% 42% 42%;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 0 0 5px var(--rd-gold), 0 24px 48px rgba(90, 10, 18, .22);
    background: #111;
}
.rd-home__ataturk img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%;
}
.rd-home__kids {
    position: absolute; right: 0; bottom: 2%;
    width: 48%; aspect-ratio: 1;
    border-radius: 50%; overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 14px 30px rgba(28, 39, 72, .22);
    background: #fff;
}
.rd-home__kids img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
}
.rd-home__caption {
    position: absolute; left: 8%; bottom: -8px;
    background: #fff; color: #1c2748;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    padding: .28rem .65rem; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.rd-home__badge {
    position: absolute; left: -6px; top: 18%;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--rd-red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(227, 10, 23, .3);
}
.rd-home__badge .rd-crescent {
    position: absolute; inset: 18% 30% 18% 16%;
    background: #fff; border-radius: 50%;
}
.rd-home__badge .rd-crescent:after {
    content: ""; position: absolute; inset: 8% -10% 8% 30%;
    background: var(--rd-red); border-radius: 50%;
}
.rd-home__badge .rd-star {
    position: absolute; top: 34%; right: 18%;
    width: 18%; height: 18%; background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ph-hero.rd-hero {
    padding: 0 0 1.1rem;
    background: linear-gradient(180deg, #6d050c 0%, var(--rd-red) 58%, #c40d18 100%);
}
.ph-hero.rd-hero .ph-hero__sub { max-width: 36rem; }
.rd-hero-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 0 .85rem;
}
.rd-hero-photo picture,
.rd-hero-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.rd-hero-photo img {
    object-fit: cover;
    object-position: 50% 18%;
}
.ph-hero.rd-hero .ph-hero__date,
.ph-hero.rd-hero .ph-hero__title,
.ph-hero.rd-hero .ph-hero__sub,
.ph-hero.rd-hero .ph-kids,
.ph-hero.rd-hero .ph-stats {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
}
.rd-hero-ata { display: none; }

@media (min-width: 992px) {
    .rd-home__grid { grid-template-columns: 1.05fr .95fr; gap: 1.5rem; }
    .rd-home { display: flex; align-items: center; }
}

@media (max-width: 767px) {
    .rd-home { min-height: auto; padding-bottom: 36px; }
    .rd-home__visual { min-height: 340px; }
    .rd-home h1 { font-size: 2rem; }
    .rd-splash__photo img { object-position: 46% 38%; }
    .rd-ribbon { font-size: .76rem; gap: .3rem; padding: .42rem .55rem; }
    .rd-ribbon__star { width: 11px; height: 11px; }
    .rd-hero-photo { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
    .rd-spark, .rd-bar > i, .rd-splash.is-out { animation: none; }
}

@media print {
    .rd-splash, .rd-ribbon, .rd-sparkles { display: none !important; }
}
