html {
    scroll-behavior: smooth
}

button#toggle-contents{
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Ust banner ve sayfa govdesi ------------------------------------------
   Events listesi sayfasiyla ayni kalip: banner beyaz kutu (alt koseler 40px),
   altinda gri sahne uzerinde 40px radius beyaz icerik karti. Eskiden sayfa
   dogrudan beyaz zemin uzerindeydi ve icerik 1200px'lik dar bir kolonda
   kaliyordu. */
.home-mid-stage {
    background: #F5F6F8;
    margin: 0;
    padding: 0 0 30px;
}

.home-mid-stage .middle-banner {
    background: #fff;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin: 0;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 10.5vw, 150px);
}

.home-mid-stage .middle-banner h1 {
    margin: 0;
    font-size: clamp(20px, 3.2vw, 28px);
    line-height: 1.35;
    font-weight: 300;
    color: #0B0B0F;
}

.home-mid-stage .middle-banner h1 b {
    font-weight: 600;
}

.home-mid-stage .middle-banner li {
    font-size: clamp(14px, 1.6vw, 15px);
    line-height: 1.7;
    color: #666D7C;
}

.events-detail-stage {
    background: #F5F6F8;
    padding-bottom: 30px;
}

.events-detail-stage > .main-container {
    max-width: none;
    background: #fff;
    margin: 0 20px;
    border-radius: 40px;
    padding: clamp(24px, 6vw, 64px) clamp(20px, 10.5vw, 150px);
}


.back-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.back-arrow {
    margin-right: 8px;
    cursor: pointer;
}

.webinar-tag {
    background-color: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
    margin-left: auto;
}

  .btn-position{
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
  }

    .edu-video-btn{
    background-color: #fff;
    color: black;
    border-radius: 30px;
    text-align: center;
    border: none;
    background-color: #fff;
    font-weight: 700;
  }

    .edu-video-btn {
    font-size: clamp(12px, 1.8vw, 14px);
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 20px);
  }

.content-wrapper {
    margin-top: 30px;
}

.back-to-events {
    display: inline-flex;
    align-items: center;
    color: #021838;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-to-events:hover {
    color: #033ea1;
}

.back-to-events i {
    margin-right: 8px;
    font-size: 12px;
}

.main-content {
    width: 100%;
}

/* 48px'ti; gorselde baslik govde metniyle ayni olcek ailesinden, ~28px.
   "text-align: left" acikca yaziliyor: bootstrap'in .text-center'i ve
   sayfadaki ortali baslik kurallari h2'ye de vurabiliyor. */
.event-title {
    margin: 0 0 18px;
    font-size: clamp(20px, 2.6vw, 24px);
    font-weight: 700;
    color: #1B1F29;
    line-height: 1.3;
    text-align: left;
}

/* Icerik sutununun tamami sola dayali: meta satiri, aciklama ve TOC dahil. */
.main-content,
.content-wrapper {
    text-align: left;
}

.event-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
}

/* "margin-left: calc(44px + 20px)" meta satirini basliga gore iceri
   kaydiriyordu; gorselde baslikla ayni hizada basliyor. Register butonu
   sagda, arada bosluk. */
.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 32px;
    flex-wrap: wrap;
}

.meta-items {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}

.event-meta .meta-item:not(:last-child)::after {
    content: '';
    display: block;
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 14px;
    background: #dcdcdc;
    margin: 0 8px 0 14px;
}

/* --- Meta ogeleri ---------------------------------------------------------
   Eskiden ayni secici bes kez tekrar ediyor, ikon renkleri tek tek
   veriliyordu (.meta-item.date i { color: #7a52ff } gibi). Ikonlar artik
   SVG <img>; renkleri dosyanin kendi icinde (#858C9C).

   Tarih ve saat yazilari gradyanli - liste sayfasindaki yaklasan kartla
   ayni dil. Konusmaci / dil / platform notr gri. */
/* Tum ogeler ayni yukseklikte bir kutuda ortalaniyor. Onceden yukseklik
   icerige birakiliyordu; tarih ve saat ogelerinde 13px'lik bir <img> var,
   digerlerinde yok, bu yuzden ikonlu olanlarin kutu yuksekligi farkli
   olusuyor ve satirda bir tik yukarida duruyorlardi.
   20px: 13px ikon ve 14px yazi icin rahat bir ortak taban. */
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    font-size: var(--cc-small, 14px);
    line-height: 1;
    font-weight: 500;
    color: #858C9C;
}

/* Ikon ve yazi ayni satirda ortalanir. "margin-top: -1px" vardi; gradyan
   span'ler (tarih/saat) farkli yukseklikte kutu olusturdugu icin tarih
   ogesi komsularindan bir tik yukarida kaliyordu. Hizalama artik tamamen
   flex'e birakiliyor. */
.meta-item img {
    display: block;
    flex: 0 0 auto;
}

/* Global span kurali (base-1.css) bunlari bloklastirip buyutuyor.
   "display: inline" yerine inline-flex + align-items: center: inline
   kutular flex satirinda baseline'a gore oturuyor ve gradyanli olanlar
   komsularindan kayiyordu. */
.meta-item span {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
    color: inherit;
}

/* Gradyan yalnizca YAKLASAN etkinlikte: gecmis etkinlikte tarih/saat de
   diger meta ogeleri gibi notr gri kaliyor (taban .meta-item rengi). */
.event-meta--upcoming .meta-item.date span,
.event-meta--upcoming .meta-item.time span {
    background: var(--cc-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- Register butonu: gradyan cerceve + gradyan yazi --------------------
   Eski hal koyu lacivert dolgu (#021838) ve 15px/30px dolguydu; gorselde
   ince cerceveli, seffaf zeminli kucuk bir buton. */
/* Taban hal notr: gecmis etkinlikte kayit butonu gri cerceveli ve gri
   yazili. Gradyan cerceve/yazi asagida yalnizca yaklasan etkinlige
   veriliyor. */
.register-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #E3E7EF;
    border-radius: 9px;
    background: none;
    color: #858C9C;
    font-size: var(--cc-small, 14px);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.register-btn:hover {
    transform: none;
    border-color: #C9CFDB;
    color: #4A5161;
    background: none;
}

/* --- Yaklasan etkinlik: gradyan cerceve + gradyan yazi --- */
.event-meta--upcoming .register-btn {
    border-color: #7640E8;
    background: var(--cc-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.event-meta--upcoming .register-btn:hover {
    border-color: #7640E8;
    background: var(--cc-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    box-shadow: 0 6px 18px rgba(118, 64, 232, .18);
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .event-meta--upcoming .register-btn {
        border-color: transparent;
    }

    .event-meta--upcoming .register-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: var(--cc-brand);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }
}

/* Ikonlar artik SVG: gradyan cerceveli daireyi kendileri tasiyor, bu
   yuzden eski gri daire zemini (#f1f0f0) ve sabit 40px kutu kaldirildi. */
.social-icon {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity .2s ease;
}

.social-icon:hover {
    opacity: .75;
}

.social-icon img {
    display: block;
    width: 31px;
    height: 31px;
}

.topics-section {
    margin-top: 50px;
}

/* Ikinci .social-icon tanimi buradaydi; yukaridaki SVG surumunu eziyordu
   (ayni ozgulluk, sonraki kaynak sirasi). */


.topics-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.topics-list {
    list-style: none;
}

.topics-list li {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.closing-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: 40px;
    max-width: 800px;
}

/* Eski koyu dolgulu .register-btn tanimi buradaydi; yukaridaki gradyan
   cerceveli surumu eziyordu (ayni ozgulluk, sonraki kaynak sirasi). */

/* Speakers Section */
.speakers-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 80px;
}

.speakers-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.speaker-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.speaker-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.speaker-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.speaker-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Academic CTA Section */
.academic-cta {
    background: #021838;
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.academic-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.academic-btn {
    background: linear-gradient(90deg, #00ffd1 0%, #1876ff 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Related Events */
.related-events {
    padding: 80px 0;
}

.article-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.article-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

/* Bu kurallar "Related Events" kartlari icin. Secici cipak yaziliydi:
   ".date" meta satirindaki .meta-item.date'e de vuruyor, oraya 12px font
   ve 10px alt bosluk bindirip tarih ogesini komsularindan yukari
   kaydiriyordu. Kart baglamina kilitlendi. */
.article-content .date {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-content .heading {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.gotoarticle-btn {
    color: #4285f4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Sosyal ikonlar metnin SAGINDA: Register butonunun altina denk geliyor.
   Onceden solda dikey bir serit halindeydi ve icerigi iceri itiyordu. */
.content-with-icons {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 28px;
}

.social-icons {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    width: 31px;
}

.article-content-area {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Sol sutun: geri linki + Icindekiler ---------------------------------
   .content-wrapper iki kolona ayriliyor; sol sutun sabit genislikte ve
   sayfa kaydirilirken basligin hizasinda kaliyor. */
.content-wrapper {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    margin-top: 0;
}

#contents-section {
    position: sticky;
    top: 110px;
    align-self: start;
}

.contents-header {
    margin-bottom: 14px;
    font-size: var(--cc-small, 14px);
    font-weight: 600;
    color: #1B1F29;
}

#contents ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

#contents li {
    counter-increment: toc;
    margin-bottom: 10px;
    line-height: 1.5;
}

#contents li a {
    display: block;
    font-size: var(--cc-small, 14px);
    color: #858C9C;
    text-decoration: none;
    transition: color .2s ease;
}

#contents li a::before {
    content: counter(toc) ". ";
}

#contents li a:hover {
    color: #7640E8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .events-navigation {
        padding: 0 10px;
    }
    
    /* Tek kolon: sol sutun (Icindekiler) icerigin ustune geciyor,
       sosyal ikonlar da metnin altina yatay serit oluyor. */
    .content-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    #contents-section {
        position: static;
    }

    .content-with-icons {
        flex-direction: column;
        gap: 20px;
    }

    .social-icons {
        order: 2;
        flex-direction: row;
        width: auto;
        align-items: center;
    }

    /* Meta satirinin eski sol girintisi kaldirildi (ikonlar artik solda
       degil); baslikla ayni hizada basliyor. */
    .event-meta {
        margin-left: 0;
    }
    
    .event-title {
        font-size: 32px;
    }
    
    /* "flex-wrap: nowrap" dar ekranda meta satirini tasiriyordu; ogeler
       sarmali. Ikon kurali kaldirildi - ikonlar artik <i> degil <img>. */
    .event-meta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .event-meta .register-btn {
        margin-top: 0;
    }

    .event-meta .meta-items {
        gap: 12px;
    }

    .meta-cta .register-btn { width: auto; }
    
    .speaker-card {
        flex-direction: column;
        text-align: center;
    }
}
