/* Yalnız dinamik PHP davranışları. Ana görünüm html-site içindeki styles.css'ten gelir. */
:root{--theme-menu-shadow:0 24px 56px -28px oklch(25.1% .0592 285.5/.42)}
html{scroll-behavior:smooth}
body{overflow-x:hidden}
.theme-nav{display:none;align-items:center}
.theme-nav-item{position:relative}
.theme-nav-link{display:flex;align-items:center;gap:.25rem;padding:1.25rem .75rem;font-size:.86rem;font-weight:600;letter-spacing:-.01em;color:color-mix(in oklab,var(--primary-foreground) 85%,transparent);transition:color .2s ease;white-space:nowrap}
.theme-nav-link:hover,.theme-nav-link.is-active{color:var(--accent)}
.theme-nav-link svg{flex:none;width:.875rem;height:.875rem;opacity:.7;transition:transform .2s ease}
.theme-nav-item:hover>.theme-nav-link svg,.theme-nav-item.is-open>.theme-nav-link svg{transform:rotate(180deg)}
.theme-dropdown{visibility:hidden;opacity:0;pointer-events:none;position:absolute;top:calc(100% - 2px);left:50%;z-index:70;min-width:255px;transform:translate(-50%,10px);padding:.55rem;border:1px solid var(--border);border-top:3px solid var(--accent);border-radius:0 0 .75rem .75rem;background:var(--card);box-shadow:var(--theme-menu-shadow);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.theme-nav-item:hover>.theme-dropdown,.theme-nav-item.is-open>.theme-dropdown{visibility:visible;opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.theme-dropdown a{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem .78rem;border-radius:.45rem;color:var(--foreground);font-size:.82rem;font-weight:600;line-height:1.35;transition:background-color .18s ease,color .18s ease}
.theme-dropdown a:hover,.theme-dropdown a.is-active{background:var(--secondary);color:var(--primary)}
.theme-dropdown a svg{width:.8rem;height:.8rem;color:var(--accent)}
.theme-dropdown--right{left:auto;right:0;transform:translate(0,10px)}
.theme-nav-item:hover>.theme-dropdown--right,.theme-nav-item.is-open>.theme-dropdown--right{transform:translate(0,0)}
.theme-mobile-panel{display:none;border-top:1px solid rgb(255 255 255/.1);background:var(--primary-deep);max-height:calc(100vh - 76px);overflow-y:auto}
.theme-mobile-panel.is-open{display:block}
.theme-mobile-panel>a,.theme-mobile-group>button,.theme-mobile-group>a{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 0;border-bottom:1px solid rgb(255 255 255/.08);color:rgb(255 255 255/.86);font-size:.9rem;font-weight:700;text-align:left}
.theme-mobile-submenu{display:none;padding:.25rem 0 .55rem 1rem}
.theme-mobile-group.is-open .theme-mobile-submenu{display:block}
.theme-mobile-submenu a{display:block;padding:.65rem .75rem;border-left:2px solid rgb(255 255 255/.12);color:rgb(255 255 255/.7);font-size:.82rem}
.theme-mobile-submenu a:hover,.theme-mobile-submenu a.is-active{border-color:var(--accent);color:var(--accent)}
.theme-mobile-group.is-open>button svg{transform:rotate(180deg)}
.theme-mobile-group button svg{transition:transform .2s ease}
.theme-adbar{display:block;padding:.5rem 1rem;text-align:center;background:var(--accent);color:var(--accent-foreground);font-size:.75rem;font-weight:800;letter-spacing:.03em}
.theme-rich-content{color:color-mix(in oklab,var(--foreground) 86%,transparent);font-size:.96rem;line-height:1.85}
.theme-rich-content>*+*{margin-top:1.1rem}
.theme-rich-content h2{margin-top:2rem;font-family:Sora,sans-serif;font-size:1.45rem;font-weight:800;line-height:1.3;color:var(--primary)}
.theme-rich-content h3{margin-top:1.65rem;font-family:Sora,sans-serif;font-size:1.16rem;font-weight:800;color:var(--primary)}
.theme-rich-content ul,.theme-rich-content ol{padding-left:1.35rem}
.theme-rich-content ul{list-style:disc}.theme-rich-content ol{list-style:decimal}
.theme-rich-content li+li{margin-top:.45rem}
.theme-rich-content a{font-weight:700;color:var(--primary);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.theme-rich-content img{max-width:100%;height:auto;border-radius:.75rem;box-shadow:var(--shadow-card)}
.theme-rich-content blockquote{margin:1.75rem 0;padding:1.25rem 1.5rem;border-left:4px solid var(--accent);border-radius:0 .75rem .75rem 0;background:var(--secondary);font-family:Sora,sans-serif;font-size:1.05rem;font-weight:600;color:var(--primary)}
.theme-rich-content table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.9rem}
.theme-rich-content th,.theme-rich-content td{padding:.75rem;border:1px solid var(--border);text-align:left}.theme-rich-content th{background:var(--secondary);color:var(--primary);font-weight:800}
.theme-gallery-button{cursor:pointer}
.theme-lightbox{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:1.5rem;background:rgb(0 0 0/.9)}
.theme-lightbox.is-open{display:flex}.theme-lightbox img{max-width:min(1200px,96vw);max-height:90vh;border-radius:.75rem}.theme-lightbox button{position:absolute;right:1.5rem;top:1.25rem;color:#fff;padding:.5rem}
.theme-empty{grid-column:1/-1;padding:3rem 1.5rem;border:1px dashed var(--border);border-radius:1rem;text-align:center;color:var(--muted-foreground);background:var(--card)}
.theme-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:2.5rem}.theme-pagination a,.theme-pagination span{display:grid;min-width:2.5rem;height:2.5rem;place-items:center;border:1px solid var(--border);border-radius:.45rem;background:var(--card);font-size:.82rem;font-weight:700;color:var(--foreground)}.theme-pagination .is-current,.theme-pagination a:hover{border-color:var(--primary);background:var(--primary);color:var(--primary-foreground)}
@media (min-width:1024px){.theme-nav{display:flex}}
@media (min-width:1280px){.theme-nav-link{padding-left:1rem;padding-right:1rem}}
@media (max-width:1279px) and (min-width:1024px){.theme-nav-link{padding-left:.5rem;padding-right:.5rem;font-size:.76rem}.theme-nav-link svg{width:.75rem;height:.75rem}}
@media (max-width:1023.98px){.theme-dropdown{display:none}}
@media (max-width:639.98px){.theme-mobile-panel{padding-left:1rem;padding-right:1rem}.theme-rich-content{font-size:.92rem}}


/* Kurumsal detay sayfası ve Başkanın Mesajı kartı — sabit, tema uyumlu grid */
.tirmil-detail-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:2.5rem}
.tirmil-detail-main,.tirmil-detail-sidebar{min-width:0}
.tirmil-president-card{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;margin-bottom:2rem;padding:1.5rem;overflow:hidden;border:1px solid var(--border);border-radius:1rem;background:var(--card);box-shadow:var(--shadow-card)}
.tirmil-president-photo-wrap{width:100%;overflow:hidden;border-radius:.75rem;background:var(--secondary)}
.tirmil-president-photo{display:block;width:100%;height:360px;object-fit:cover;object-position:center top}
.tirmil-president-copy{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:.25rem}
.tirmil-president-name{margin-top:.75rem;font-family:var(--font-display);font-size:clamp(1.5rem,2.6vw,2rem);font-weight:800;line-height:1.2;color:var(--primary)}
.tirmil-president-title{margin-top:.4rem;font-size:.9rem;font-weight:600;line-height:1.6;color:var(--muted-foreground)}
.tirmil-president-quote{margin-top:1.75rem;padding:.15rem 0 .15rem 1.25rem;border-left:4px solid var(--accent);font-family:var(--font-display);font-size:1.05rem;font-weight:600;font-style:italic;line-height:1.85;color:var(--foreground)}
@media (min-width:768px){.tirmil-president-card{grid-template-columns:280px minmax(0,1fr);gap:2rem;padding:2rem}.tirmil-president-photo{height:360px}.tirmil-president-copy{padding:.5rem .5rem .5rem 0}}
@media (min-width:1024px){.tirmil-detail-layout{grid-template-columns:minmax(0,1fr) 300px}.tirmil-president-card{grid-template-columns:280px minmax(0,1fr)}}
@media (min-width:1280px){.tirmil-president-card{grid-template-columns:300px minmax(0,1fr);gap:2.25rem;padding:2.25rem}.tirmil-president-photo{height:390px}}
@media (max-width:767.98px){.tirmil-president-card{padding:1rem}.tirmil-president-photo{height:auto;max-height:420px;aspect-ratio:4/5}.tirmil-president-copy{padding:.5rem}.tirmil-president-quote{margin-top:1.25rem;font-size:1rem}}

/* =========================================================
   HEADER LOGO BÜYÜTME — mevcut tema ve detay sayfası CSS'i korunur
   ========================================================= */
.theme-brand-link{min-height:82px;padding:6px 0}
.theme-header-logo{display:block;width:70px!important;height:70px!important;min-width:70px!important;max-width:none!important;flex:0 0 70px!important;object-fit:contain;filter:drop-shadow(0 5px 10px rgba(8,12,54,.22))}
.theme-brand-copy{min-width:0}
.theme-brand-title{font-size:1.05rem;line-height:1.08;white-space:nowrap}
.theme-brand-tagline{margin-top:4px;font-size:.68rem;line-height:1.15;letter-spacing:.13em;white-space:nowrap}
@media (max-width:1279.98px){.theme-brand-link{min-height:76px}.theme-header-logo{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important}.theme-brand-title{font-size:.96rem}.theme-brand-tagline{font-size:.62rem;letter-spacing:.1em}}
@media (max-width:1023.98px){.theme-brand-link{min-height:68px;padding:5px 0}.theme-header-logo{width:58px!important;height:58px!important;min-width:58px!important;flex-basis:58px!important}}
@media (max-width:639.98px){.theme-brand-link{min-height:64px}.theme-header-logo{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important}}

/* =========================================================
   MOBİL MENÜ — tüm başlıklar görünür, menü kendi içinde kayar
   ========================================================= */
@media (max-width:1023.98px){
  body.theme-mobile-menu-open{overflow:hidden;overscroll-behavior:none}
  header{position:sticky}
  .theme-mobile-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:80;max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-top:1px solid rgb(255 255 255/.12);background:linear-gradient(180deg,rgba(24,22,69,.995),rgba(33,27,86,.995));box-shadow:0 24px 60px rgba(8,10,35,.34);padding:0}
  .theme-mobile-panel.is-open{display:block}
  .theme-mobile-menu-inner{padding-top:.35rem;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom))}
  .theme-mobile-link,.theme-mobile-group>button{display:flex;width:100%;min-height:56px;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 0;border-bottom:1px solid rgb(255 255 255/.1);color:rgb(255 255 255/.91);font-size:.94rem;font-weight:700;line-height:1.25;text-align:left;transition:color .2s ease,padding-left .2s ease}
  .theme-mobile-link:hover,.theme-mobile-link.is-active,.theme-mobile-group>button:hover{color:var(--accent);padding-left:.35rem}
  .theme-mobile-link>svg,.theme-mobile-group>button>svg{flex:none;opacity:.82}
  .theme-mobile-submenu{display:none;padding:.25rem 0 .65rem .65rem;background:rgb(255 255 255/.025);border-bottom:1px solid rgb(255 255 255/.08)}
  .theme-mobile-group.is-open .theme-mobile-submenu{display:block}
  .theme-mobile-submenu a{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:.75rem;padding:.68rem .8rem;border-left:2px solid rgb(255 255 255/.14);color:rgb(255 255 255/.72);font-size:.82rem;font-weight:600;line-height:1.35}
  .theme-mobile-submenu a:hover,.theme-mobile-submenu a.is-active{border-left-color:var(--accent);background:rgb(255 255 255/.035);color:var(--accent)}
  .theme-mobile-group>button svg{transition:transform .2s ease}
  .theme-mobile-group.is-open>button{color:var(--accent)}
  .theme-mobile-group.is-open>button svg{transform:rotate(180deg)}
}
@media (max-width:639.98px){.theme-mobile-menu-inner{padding-left:1.25rem;padding-right:1.25rem}}

/* =========================================================
   BOTLA AKTARILAN İÇERİK GÖRSELLERİ
   - Görseller arasına düzenli boşluk ekler.
   - İç içe eski HTML div yapısından etkilenmez.
   - Görsele tıklanabileceğini premium zoom görünümüyle belirtir.
   ========================================================= */
.theme-rich-content .theme-rich-media{
    display:block;
    width:100%;
    margin:1.75rem 0 !important;
    padding:0;
}

.theme-rich-content .theme-rich-media:first-child{
    margin-top:0 !important;
}

.theme-rich-content .theme-rich-media:last-child{
    margin-bottom:0 !important;
}

.theme-rich-content img.theme-rich-image{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    margin:0 auto !important;
    border:1px solid color-mix(in oklab,var(--border) 82%,transparent);
    border-radius:1rem;
    outline:none;
    cursor:zoom-in;
    box-shadow:0 16px 38px rgba(26,22,78,.13);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease,
        filter .24s ease;
}

.theme-rich-content img.theme-rich-image:hover,
.theme-rich-content img.theme-rich-image:focus-visible{
    transform:translateY(-3px);
    border-color:color-mix(in oklab,var(--accent) 55%,var(--border));
    box-shadow:0 24px 52px rgba(26,22,78,.21);
    filter:saturate(1.03);
}

.theme-rich-content img.theme-rich-image:focus-visible{
    box-shadow:
        0 0 0 4px color-mix(in oklab,var(--accent) 24%,transparent),
        0 24px 52px rgba(26,22,78,.21);
}

/* Eski siteden gelen gereksiz iç içe div'lerin görsel aralığını ezmesini önler. */
.theme-rich-content div:has(> .theme-rich-media:only-child),
.theme-rich-content p:has(> .theme-rich-media:only-child){
    margin-top:0;
    margin-bottom:0;
}

/* =========================================================
   PREMIUM LIGHTBOX
   ========================================================= */
body.theme-lightbox-open{
    overflow:hidden !important;
}

.theme-lightbox{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    visibility:hidden;
    align-items:center;
    justify-content:center;
    padding:clamp(1rem,3vw,2.25rem);
    opacity:0;
    pointer-events:none;
    background:rgba(7,8,24,.93);
    backdrop-filter:blur(13px);
    -webkit-backdrop-filter:blur(13px);
    transition:opacity .22s ease,visibility .22s ease;
}

.theme-lightbox::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 18% 18%,rgba(255,132,27,.10),transparent 25rem),
        radial-gradient(circle at 82% 82%,rgba(93,76,214,.18),transparent 30rem);
}

.theme-lightbox.is-open{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
}

.theme-lightbox img{
    position:relative;
    z-index:2;
    display:block;
    width:auto;
    max-width:min(1380px,94vw);
    height:auto;
    max-height:88vh;
    object-fit:contain;
    border:1px solid rgba(255,255,255,.13);
    border-radius:1rem;
    background:#111326;
    box-shadow:0 32px 100px rgba(0,0,0,.62);
    transform:scale(.975);
    transition:transform .24s ease;
}

.theme-lightbox.is-open img{
    transform:scale(1);
}

.theme-lightbox button[data-lightbox-close]{
    position:fixed;
    z-index:4;
    top:max(1rem,env(safe-area-inset-top));
    right:max(1rem,env(safe-area-inset-right));
    display:grid;
    width:48px;
    height:48px;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.20);
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.10);
    box-shadow:0 12px 34px rgba(0,0,0,.28);
    transition:background .2s ease,transform .2s ease,border-color .2s ease;
}

.theme-lightbox button[data-lightbox-close]:hover{
    transform:rotate(4deg) scale(1.04);
    border-color:rgba(255,255,255,.34);
    background:rgba(255,255,255,.18);
}

@media (max-width:639.98px){
    .theme-rich-content .theme-rich-media{
        margin:1.15rem 0 !important;
    }

    .theme-rich-content img.theme-rich-image{
        width:100%;
        border-radius:.75rem;
    }

    .theme-lightbox{
        padding:.75rem;
    }

    .theme-lightbox img{
        max-width:calc(100vw - 1.5rem);
        max-height:84vh;
        border-radius:.75rem;
    }

    .theme-lightbox button[data-lightbox-close]{
        width:44px;
        height:44px;
    }
}

@media (prefers-reduced-motion:reduce){
    .theme-rich-content img.theme-rich-image,
    .theme-lightbox,
    .theme-lightbox img,
    .theme-lightbox button[data-lightbox-close]{
        transition:none;
    }
}

/* =========================================================
   KURUMSAL AÇILIR MENÜ + WHATSAPP / YUKARI ÇIK
   ========================================================= */
@media (min-width:1024px){
    .theme-dropdown{
        max-height:min(72vh,620px);
        overflow-y:auto;
        overscroll-behavior:contain;
        scrollbar-width:thin;
        scrollbar-color:color-mix(in oklab,var(--accent) 65%,transparent) transparent;
    }
}

.tirmil-floating-actions{
    position:fixed;
    z-index:70;
    right:22px;
    bottom:22px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
    pointer-events:none;
}

.tirmil-floating-action{
    pointer-events:auto;
    display:inline-flex;
    min-width:52px;
    height:52px;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:0 17px;
    border:1px solid rgb(255 255 255/.16);
    border-radius:999px;
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 16px 38px rgb(8 10 35/.25);
    transition:transform .22s ease,opacity .22s ease,visibility .22s ease,box-shadow .22s ease,background .22s ease;
}

.tirmil-floating-action:hover{
    transform:translateY(-3px);
    color:#fff!important;
    box-shadow:0 20px 44px rgb(8 10 35/.33);
}

.tirmil-floating-action svg{
    display:block;
    width:21px;
    height:21px;
    flex:0 0 auto;
}

.tirmil-floating-action__label{
    font-size:.78rem;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
}

.tirmil-floating-action--whatsapp{
    min-width:138px;
    background:#16a864;
}

.tirmil-floating-action--whatsapp:hover{
    background:#0d9254;
}

.tirmil-floating-action--top{
    width:52px;
    min-width:52px;
    padding:0;
    border-color:rgb(255 255 255/.18);
    background:var(--primary-deep);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(10px);
}

.tirmil-floating-action--top.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

@media (max-width:1023.98px){
    .theme-mobile-panel.is-open~*,
    body.theme-mobile-menu-open .tirmil-floating-actions{
        visibility:hidden;
        pointer-events:none;
    }
}

@media (max-width:639.98px){
    .tirmil-floating-actions{
        right:max(14px,env(safe-area-inset-right));
        bottom:max(14px,env(safe-area-inset-bottom));
        gap:9px;
    }

    .tirmil-floating-action{
        width:50px;
        min-width:50px;
        height:50px;
        padding:0;
    }

    .tirmil-floating-action--whatsapp{
        min-width:50px;
    }

    .tirmil-floating-action__label{
        display:none;
    }
}

@media (prefers-reduced-motion:reduce){
    .tirmil-floating-action{
        transition:none;
    }
}

