@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root{
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --shadow2: 0 8px 18px rgba(0,0,0,.10);
  --radius: 18px;
  --pink1: #ff5aa0;
  --pink2: #d94c86;
  --pill: rgba(255,255,255,.82);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------------- HEADER / NAV ---------------- */
header.siteHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, rgba(255, 255, 255, 0.85)); /* âœ… */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
body.is-home  {
  --header-bg: linear-gradient(
    180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,245,249,0.88) 100%
  );
}
body.is-inner{
  --header-bg: linear-gradient(
    180deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,245,249,0.88) 100%
  );
}


.headerRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 160px;
  height: 150px;
}

.brand img{
  height: 150px;
  width: auto;
  display:flex;
}

nav.siteNav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navItem{
  position: relative;
  display:flex;
  align-items:center;
}

.navBtn, .navLink{
  appearance:none;
  border:0;
  background: var(--pill);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 7px rgba(0,0,0,.08);
  white-space: nowrap;
  user-select:none;
}

.navBtn:focus, .navLink:focus{
  outline: 3px solid rgba(217, 76, 134, .25);
  outline-offset: 2px;
}

.navBtn .caret{
  margin-left: 10px;
  display:inline-block;
  transform: translateY(-1px);
  opacity:.7;
}

.dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 10px;
  display:none;
}
.dropdown.open{ display:block; }

.dropdown a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration:none;
}
.dropdown a:hover{
  background: rgba(0,0,0,.05);
  text-decoration:none;
}

/* ---------------- MAIN ---------------- */
main{
  padding: 28px 0 46px;
}

/* ---------------- HERO (INDEX) ---------------- */
.hero{
  position: relative;
  background: linear-gradient(180deg, var(--pink1), var(--pink2));
  color: white;
  padding: 44px 0 52px;
  overflow:hidden;
}

.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}

.hero h1{
  margin:0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: .5px;
  font-weight: 800;
}
.hero p{
  margin:0;
  font-size: 20px;
  line-height: 1.5;
  max-width: 48ch;
  opacity: .92;
}

.heroCard{
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}

/* âœ… changed: circle -> rounded rectangle */
.circleGallery{
  width: min(520px, 100%);
  aspect-ratio: 4 / 3;            /* was 1 / 1 */
  border-radius: 100px;            /* was 999px */
  background: rgba(255,255,255,.20);
  box-shadow: 0 9px 25px rgba(0,0,0,.25);
  overflow:hidden;
  position: relative;
}

.circleGallery img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity:0;
  transition: opacity .35s ease;
}
.circleGallery img.active{ opacity:1; }

.galControls{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.galArrow{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.85);
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
}
.galArrow.left{ left: 14px; }
.galArrow.right{ right: 14px; }

.galDots{
  pointer-events:auto;
  position:absolute;
  left:0; right:0;
  bottom: 14px;
  display:flex;
  justify-content:center;
  gap: 8px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
  cursor:pointer;
}
.dot.active{
  background: rgba(255,255,255,.95);
}

.adminChip{
  position:absolute;
  top: 12px;
  right: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #222;
  border: 1px solid var(--border);
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  font-weight: 650;
}


/* ---------------- SECTIONS / CARDS ---------------- */
.sectionTitle{
  font-size: 22px;
  margin: 22px 0 12px;
}
.muted{ color: var(--muted); }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card{
  background: var(--card);
  border: 0px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 12px rgba(0,0,0,.06);
  padding: 16px;
}


/* ---------------- HOME: Latest article card ---------------- */

.homeLatestCard{ padding: 16px; }

.homeLatestCard .cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.homeLatestCard .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.homeLatestTitle{
  margin: 8px 0 6px;
  font-size: 18px;
}

.homeLatestMeta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.homeLatestPreview{
  margin-top: 10px;
  color: #2a2a2a;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.homeLatestFooter{
  margin-top: 12px;
  display:flex;
  justify-content: flex-end;
}

/* SaÄŸ kolonda hasta hikayeleri stack + altta sabit buton */
.homeStoriesCol{
  display:flex;
  flex-direction: column;
  height: 100%;              /* sol kartla aynÄ± boya yaklaÅŸÄ±r */
}

.homeStoriesList{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.storyItem{
  padding: 12px;
  cursor: pointer;
  transform-origin: center;
  transition: transform 180ms ease;
}

.storyItem:hover{
  transform: translateY(-1px);
}

.storyItem .cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(0,0,0,.04);
}

.storyItem .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.homeStoriesFooter{
  margin-top: auto;          /* butonu kolunun en altÄ±na iter */
  padding-top: 10px;
  display:flex;
  justify-content: flex-end;
}

/* --- Optional tinted cards (home modules) --- */
.card.tintPink{
  background: rgba(255, 97, 71, .10);
  border-color: rgba(255, 97, 71, .22);
}
.card.tintTurq{
  background: rgba(46, 198, 208, .10);
  border-color: rgba(46, 198, 208, .22);
}
.card.tintLilac{
  background: rgba(125, 107, 255, .10);
  border-color: rgba(125, 107, 255, .22);
}

/* ---------------- HOME: Flash section wrapper ---------------- */

.flashSection{
  display: flex;
  flex-direction: column;
  justify-content: center;

  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: calc(var(--radius) + 8px);
  padding: 18px;
  margin-top: 10px;
  min-height: 220px;

  box-shadow: 0 8px 12px rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.8);
}

/* Flash hint tamamen kapalÄ± */
.flashSection .flashHint{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Grid alanÄ± */
.flashSection .flashGrid{
  margin: 0;
}

/* Kart renkleri */
.flashSection .flashCard{
  border-color: rgba(255,255,255,.12);
  color: #14151a;
}

.flashSection .flashCard.tintPink{
  background: rgba(255, 82, 161, .4);
  border-color: rgba(255, 82, 161, .40);
}

.flashSection .flashCard.tintTurq{
  background: rgba(64, 216, 214, .4);
  border-color: rgba(64, 216, 214, .40);
}

.flashSection .flashCard.tintLilac{
  background: rgba(196, 166, 255, .4);
  border-color: rgba(196, 166, 255, .40);
}

/* ---------------- Flash: clickable cue ---------------- */

.flashCard{
  position: relative;
  cursor: pointer;
  user-select: none;
  transform-origin: center;
  transition: transform 180ms ease;
  height: 100%; /* â­ grid satÄ±r yÃ¼ksekliÄŸini doldur */
}

.flashCard:active{ transform: scale(.99); }

.flashCue{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.10);
  font-size: 14px;
  line-height: 1;

  opacity: .9;
  transition: transform 180ms ease, opacity 180ms ease;
}

.flashCard:hover .flashCue{
  transform: translateY(-1px);
  opacity: 1;
}

.flashCard.isFlipping .flashCue{
  opacity: 0;
}

/* ---------------- HOME: Flash cards ---------------- */

.flashWrap{ margin-bottom: 18px; }

.flashGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  
  height: 160px; /* â† BURASI SABÄ°T */
}

.flashHint{
  margin-top: 10px;
  font-size: 13px;
}

.flashCard .q{
  font-weight: 800;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  letter-spacing: .2px;
  height: var(--flashCardH, 35px);
}

.flashCard .a{
  margin: 0;
  margin-left: 10px;
  margin-right: 10px;
  color: #2a2a2a;
  line-height: 1.45;
}
.flashCard{
  position: relative;
  cursor: pointer;
  user-select: none;
  transform-origin: center;
  transition: transform 180ms ease;

  height: 160px;   /* grid yÃ¼ksekliÄŸini doldurur */
}


/* Flip animasyonu */
.flashCard.isFlipping{
  transform: scaleY(0);
}

/* Responsive (dokunulmadÄ±) */
@media (max-width: 900px){
  .homeLatestHead{ grid-template-columns: 1fr; }
  .homeRightTitle{ display:none; }
  .homeLatestRow{ grid-template-columns: 1fr; }
  .flashGrid{ grid-template-columns: 1fr; }
}




/* ---------------- LISTS (ARTICLES / TEAM) ---------------- */
.toolbarRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 600;
  box-shadow: 0 5px 8px rgba(0,0,0,.04);
}
.btn.primary{
  border-color: rgba(0,0,0,.05);
}
.btn.danger{
  border-color: rgba(255,0,0,.15);
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

/* ---------------- SIMPLE TABS ---------------- */
.tabBar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 0 0 14px;
}
.tabBtn{
  appearance:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor:pointer;
  font-weight: 700;
  box-shadow: none
}
.tabBtn.is-active{
  background: var(--pill);
}
.tabPanel[hidden]{
  display:none !important;
}

.list{
  display:grid;
  gap: 14px;
}

.articleItem{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}
.cover{
  width: 140px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
}
.cover img{ width:100%; height:100%; object-fit: cover; display:block; }

.itemMeta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.itemTitle{
  margin: 0 0 6px;
  font-size: 18px;
}

.itemActions{
  display:flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.teamGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.teamCard{
  padding: 14px;
}
.teamPhoto{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(0,0,0,.04);
  margin-bottom: 10px;
}
.teamPhoto img{ width:100%; height:100%; object-fit: cover; display:block; }
.teamName{ margin: 0 0 4px; font-size: 17px; }
.teamRole{ margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.teamBio{ margin: 0; color: #2a2a2a; font-size: 14px; line-height: 1.35; }

/* ---------------- MODAL ---------------- */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display:none;
  z-index: 100;
}
.modalOverlay.open{ display:block; }

.modal{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 26px));
  max-height: min(86vh, 900px);
  overflow:auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.modalHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modalHeader h3{ margin:0; font-size: 16px; }
.modalBody{ padding: 14px 16px 18px; }

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
label{ font-size: 13px; color: #3a3a3a; }
input[type="text"], input[type="date"], textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
textarea{ min-height: 120px; resize: vertical; }

.editorBar{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.iconBtn{
  border: 1px solid var(--border);
  background:#fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 700;
}
.wysiwyg{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  min-height: 220px;
  outline: none;
}
.helpTiny{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------------- GALLERY PANEL ---------------- */
.galleryGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.thumbList{
  display:grid;
  gap: 10px;
}
.thumb{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: grab;
}
.thumb img{
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
}
.thumb .thumbMeta{
  flex:1;
  min-width: 0;
}
.thumb small{
  color: var(--muted);
  display: block;
  line-height: 1.3em;
  max-height: calc(1.3em * 2); /* 2 satÄ±r */
  overflow: hidden;
  word-break: break-word;
}


.thumbActions{ display:flex; gap: 8px; }
.thumb.dragging{ opacity: .55; }

/* ---------------- FOOTER ---------------- */
footer.siteFooter{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}
.footerRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px){
  .heroGrid{ grid-template-columns: 1fr; }
  .hero{ padding: 34px 0 40px; }
  .teamGrid{ grid-template-columns: repeat(2, 1fr); }
  .articleItem{ grid-template-columns: 1fr; }
  .cover{ width: 100%; }
}


/* ---------------- MOBILE HEADER FIX (prevents overlap in narrow screens) ---------------- */
@media (max-width: 720px){
  header.siteHeader{
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .headerRow{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .brand{
    justify-content: center;
    min-width: 0;
    height: auto;            /* stop forcing 150px */
  }

  .brand img{
    height: 88px;            /* was 150px */
  }

  nav.siteNav{
    justify-content: center;
  }

  nav.siteNav .navBtn,
  nav.siteNav .navLink{
    font-size: 14px;
    padding: 11px 16px;
  }

  .dropdown{
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 560px){
  nav.siteNav{ justify-content: flex-start; }
  .navBtn, .navLink{ width: 100%; }
  .navItem{ width: 100%; }
  .dropdown{ position: static; margin-top: 10px; width: 100%; }
  .teamGrid{ grid-template-columns: 1fr; }
  .formGrid{ grid-template-columns: 1fr; }
  .galleryGrid{ grid-template-columns: 1fr; }
}

/* ---------------- ARTICLE PREVIEW (click to open) ---------------- */
.articlePreview{
  cursor: pointer;
}
.articlePreview:focus{
  outline: 3px solid rgba(217, 76, 134, .25);
  outline-offset: 2px;
}

.readerTop{
  display:flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.readerCover{
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.04);
}
.readerCover img{ width:100%; height:100%; object-fit: cover; display:block; }
.readerContent{
  margin-top: 14px;
  line-height: 1.6;
  color: #222;
}
.readerContent img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}


/* ---------------- THUMB META ELLIPSIS ---------------- */
.thumb .thumbMeta{
  min-width: 0; /* allows ellipsis */
}
.thumb .thumbMeta small{
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ---------------- TOAST ---------------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.82);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.articleBody img,
.modalBody img,
.wysiwyg img{
  max-width: 100%;
  height: auto;
  display: block;
}

.articleBody figure,
.wysiwyg figure{
  margin: 12px 0;
}

.articleBody img{
  max-height: 520px;   /* istersen limit */
  object-fit: contain;
}

/* =========================================================
   HOME (MERGED)
   - Wide left (2fr) + narrow right (1fr)
   - Equal heights
   - Left button pinned bottom
   - Right column: single container + list + footer pinned bottom
   ========================================================= */

/* Column titles row */
.homeLatestHead{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: end;
  margin-top: 6px;
}
.homeRightTitle{
  text-align: left;
}

/* Grid layout */
.homeLatestRow{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Grid itemâ€™lar satÄ±r yÃ¼ksekliÄŸini doldursun */
.homeLatestRow > *{
  height: 100%;
}

/* ---------------- Left: Expert card ---------------- */
.homeLatestCard{
  height: 100%;
  display:flex;
  flex-direction: column;
  padding: 16px; /* senin mevcut â€œhomeLatestCard { padding:16px }â€ kuralÄ±nÄ± buraya aldÄ±m */
}

.homeLatestCard .cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.04);
}
.homeLatestCard .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.homeLatestTitle{
  margin: 8px 0 6px;
  font-size: 18px;
}

.homeLatestMeta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.homeLatestPreview{
  margin-top: 10px;
  color: #2a2a2a;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Button pinned bottom (left) */
.homeLatestFooter{
  margin-top: auto;
  padding-top: 12px;
  display:flex;
  justify-content: flex-end;
}

/* ---------------- Right: Stories column container ---------------- */
/* SaÄŸ kolon wrapper (JSâ€™de ister homeStoriesCol ister direkt homeStoriesCard kullanabilirsin) */
.homeStoriesCol{
  height: 100%;
  display:flex;
  flex-direction: column;
}

/* SaÄŸ kolonun â€œtek pembe kartÄ±â€ */
.homeStoriesCard{
  height: 100%;
  display:flex;
  flex-direction: column;
  padding: 16px; /* saÄŸ kartÄ±n da iÃ§ paddingâ€™i olsun */
}

/* SaÄŸ kart iÃ§ list */
.homeStoriesList{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* SaÄŸ kart iÃ§i satÄ±rlar (tek kart iÃ§inde ayrÄ± ama bÃ¼tÃ¼n) */
.storyRow{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;

  padding: 10px;
  border-radius: 14px;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  cursor: pointer;

  transition: transform 180ms ease, box-shadow 180ms ease;
}
.storyRow:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.storyRowMedia{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}
.storyRowMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.storyRowBody .storyLabel{
  font-size: 12px;
  margin-bottom: 4px;
}
.storyRowBody .storyTitle{
  margin: 0 0 6px;
  font-size: 16px;
}
.storyRowBody .storyPreview{
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* SaÄŸ kart footer: buton en altta */
.homeStoriesFooter{
  margin-top: auto;
  padding-top: 12px;
  display:flex;
  justify-content: flex-end;
}

/* ---------------- Legacy storyItem (kullanÄ±yorsan bozulmasÄ±n) ---------------- */
.storyItem{
  padding: 12px;
  cursor: pointer;
  transform-origin: center;
  transition: transform 180ms ease;
}
.storyItem:hover{
  transform: translateY(-1px);
}
.storyItem .cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(0,0,0,.04);
}
.storyItem .cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Responsive */
@media (max-width: 900px){
  .homeLatestHead{ grid-template-columns: 1fr; }
  .homeRightTitle{ display:none; }
  .homeLatestRow{ grid-template-columns: 1fr; }
  .storyRow{ grid-template-columns: 84px 1fr; }
}

/* =========================================================
   GLASS PANEL (shared)
   - Flash + Home cards aynÄ± panel hissi
   ========================================================= */
.glassPanel{
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 8px 12px rgba(0,0,0,.10);
}

/* ---------------- GLASS PANEL (shared) ---------------- */
.glassPanel{
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 8px 12px rgba(0,0,0,.10);
}

/* Glass panel + tint beraberken: tint opak boyamasÄ±n */
.glassPanel.tintPink{
  background: linear-gradient(
    0deg,
    rgba(255, 97, 71, .10),
    rgba(255, 97, 71, .10)
  ), rgba(255,255,255,.6);
  border-color: rgba(255, 97, 71, .0);
}
.glassPanel.tintTurq{
  background: linear-gradient(
    0deg,
    rgba(46, 198, 208, .10),
    rgba(46, 198, 208, .10)
  ), rgba(255,255,255,.6);
  border-color: rgba(46, 198, 208, .0);
}
.glassPanel.tintLilac{
  background: linear-gradient(
    0deg,
    rgba(125, 107, 255, .10),
    rgba(125, 107, 255, .10)
  ), rgba(255,255,255,.6);
  border-color: rgba(125, 107, 255, .0);
}

/* ---------------- NAV: Bigger hero navigation ---------------- */
nav.siteNav .navBtn,
nav.siteNav .navLink{
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------------- HOME: Remove duplicated label in expert card ---------------- */
/* Hides the first muted label inside the left expert card ("Uzman Ä°Ã§erikleri") */
.homeLatestCard > .muted:first-of-type{
  display: none;
}

/* ---------------- HOME: Remove duplicated labels inside story rows ---------------- */
/* If you use .storyLabel, hide it. Also hide any first muted line inside story row body. */
.storyRow .storyLabel,
.storyRow .muted:first-child{
  display: none;
}

/* ---------------- HOME: Balance visual weight of the two top glass panels ---------------- */
.homeLatestCard,
.homeStoriesCard{
  padding: 20px;
}

/* Slightly nicer spacing in story list */
.homeStoriesList{
  gap: 14px;
}

/* Optional: subtle structure so the right panel doesn't feel "empty" */
.homeStoriesCard{
  background-clip: padding-box;
}

/* (Super subtle divider-ish feel; doesn't affect layout) */
.homeStoriesCard::after{
  content: "";
  display: block;
  height: 1px;
  opacity: .12;
}

/* Modal kÃ¶ÅŸelerini iÃ§eride de koru (scrollbar + iÃ§erik clip) */
.modal{
  overflow: hidden;            /* kÃ¶ÅŸeleri kÄ±rp */
}

/* Scroll'u modal gÃ¶vdesine taÅŸÄ± */
.modalBody{
  overflow: auto;
  max-height: calc(86vh - 64px); /* header yÃ¼ksekliÄŸine gÃ¶re (gerekirse 64'Ã¼ ayarla) */
  -webkit-overflow-scrolling: touch;
}

/* Extra: bazÄ± tarayÄ±cÄ±larda kÃ¶ÅŸe kÄ±rpma iÃ§in */
.modalBody{
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Modal iÃ§indeki alt kapat butonunu kaldÄ±r */
.modalBody [data-action="close-modal"]{
  display: none !important;
}

/* SaÄŸ kart Ã¼st boÅŸluk fix */
.homeStoriesCard{
  padding-top: 20px; /* 16 ise 12 yap, gerekirse 8 */
}

/* Liste Ã¼stten boÅŸluk yapmasÄ±n */
.homeStoriesList{
  margin-top: 0;
}

/* TAB BAR */
.tabBar{
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e6e6e6; /* genel ayÄ±rÄ±cÄ± */
  margin: 24px 0;
}

/* TAB BUTTON */
.tabBtn{
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: #8a8a8a;
  cursor: pointer;
  position: relative;
}

/* hover */
.tabBtn:hover{
  color: var(--pink2); /* ya da mevcut accent */
}

/* active tab */
.tabBtn.active{
  color: var(--pink2); /* aktif olanÄ±n rengi */
  font-weight: 600;
}

/* active underline */
.tabBtn.active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--pink2);
}

/* Article modal header */
.articleHeader{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
  padding-left: 20px;
}

.articleCoverSmall{
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.articleCoverSmall img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articleHeaderText h2{
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

/* Mobile */
@media (max-width: 640px){
  .articleHeader{
    grid-template-columns: 1fr;
  }

  .articleCoverSmall{
    width: 100%;
    max-width: 260px;
  }
}
/* Readability upgrades for long articles */
.articleBody.wysiwyg{
  color: #2a2a2a;
  line-height: 1.7;
  font-size: 16px;
}

/* Keep paragraphs airy */
.articleBody.wysiwyg p{
  margin: 0 0 12px;
}

/* Headings: more rhythm, less "shout" */
.articleBody.wysiwyg h2,
.articleBody.wysiwyg h3{
  margin: 18px 0 10px;
  line-height: 1.25;
}

/* Optional: make content feel less like a wall */
.articleBody.wysiwyg{
  max-width: 72ch;
}

/* Secondary text (meta already exists) */
.itemMeta{
  color: #6f6f6f;
}
.articleBody.wysiwyg h2{
  padding-top: 14px;
  border-top: 1px solid #ededed;
}
.articleBody.wysiwyg h2:first-child{
  border-top: none;
  padding-top: 0;
}
/* Remove card look from article body */
.articleBody.wysiwyg{
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  max-width: none;     /* artÄ±k serbest */
  padding-left: 20px;
  padding-right: 20px;
}

.videoGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px){
  .videoGrid{ grid-template-columns: 1fr; }
}

.videoThumb{
  border: none;
  background: #fff;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  cursor: pointer;
}

.videoThumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.videoMeta{ padding: 12px 14px 14px; }
.videoTitle{ font-weight: 700; 
font-size: 12pt;
}

.playBadge{
  position: absolute;
  width: 64px;
  height: 44px;
  border-radius: 14px;
  background: rgba(60, 60, 60, 0.92);
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
}
.videoThumb{ position: relative; }
.playBadge::after{
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  border-left: 14px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* YouTube modal frame: always fill */
.ytModalFrame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.ytModalFrame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================
   TEAM GRID (HakkÄ±mÄ±zda)
   ========================= */

.teamGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 820px){
  .teamGrid{ grid-template-columns: 1fr; }
}

.teamCard{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

.teamMedia{
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}

.teamMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teamBody{
  min-width: 0;              /* overlap fix */
}

.teamName{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  word-break: break-word;    /* uzun isimler taÅŸmasÄ±n */
}

.teamTitle{
  margin-top: 6px;
  opacity: .75;
}

.teamBio{
  margin-top: 10px;
  border: none;
}

.teamActions{
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================
   FONT SYSTEM: Inter
   - Titles: 500 (Medium)
   - Body:   300 (Light)
   - UI:     400 (Regular)
   ========================= */


/* Global base */
html, body{
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;          /* body default */
  line-height: 1.6;
  color: #1f1f1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6{
  font-weight: 500;          /* titles */
  letter-spacing: -0.01em;
}

/* Title-like classes used across the site */
.homeLatestTitle,
.itemTitle,
.storyTitle,
.teamName{
  font-weight: 500;
}

/* Body / long text blocks */
p,
.homeLatestPreview,
.storyPreview,
.articlePreviewText,
.wysiwyg,
.muted{
  font-weight: 300;
  line-height: 1.4;
}

/* UI & controls â€” slightly stronger for clarity */
.btn{
  font-weight: 400;
}

.itemMeta,
.homeLatestMeta,
.nav a,
.dropdown a,
.dropdown button{
  font-weight: 400;
}

/* Improve readability on small screens */
@media (max-width: 640px){
  body{ font-weight: 400; }

  p,
  .homeLatestPreview,
  .storyPreview,
  .articlePreviewText,
  .wysiwyg,
  .muted{
    font-weight: 400;
  }
}

/* =========================
   HOME â€“ Story preview layout
   ========================= */

.storyRowGrid{
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "media head"
    "preview preview";
  gap: 12px 14px;
}

.storyRowGrid .storyRowMedia{
  grid-area: media;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}

.storyRowGrid .storyRowMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storyRowGrid .storyRowHead{
  grid-area: head;
  min-width: 0; /* overlap fix */
}

.storyRowGrid .storyTitle{
  margin: 0;
  line-height: 1.2;
}

.storyRowGrid .storyMeta{
  margin-top: 6px;
  font-size: 14px;
  opacity: .75;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.storyRowGrid .storyPreviewFull{
  grid-area: preview;
  line-height: 1.5;
  font-size: 14px;
}

.teamGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 860px){
  .teamGrid{ grid-template-columns: 1fr; }
}

.teamCard{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}

.teamCard.noPhoto{
  grid-template-columns: 1fr; /* foto yoksa tek kolon */
}

.teamMedia{
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
}

.teamMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   About â€“ Biz Kimiz? panel
   (home story preview style)
   ========================= */

.aboutPanelPink{
  background: linear-gradient(
    180deg,
    rgba(236, 243, 255, 0.95),
    rgba(244, 251, 255, 0.95)
  );
  border: none;
  box-shadow: 0 3px 6px rgba(0,0,0,.06);
}

/* Metin daha rahat okunsun */
.aboutPanelPink .wysiwyg{
  line-height: 1.75;
  color: #2a2a2a;
  border: none;
}

/* Paragraflar arasÄ± nefes */
.aboutPanelPink .wysiwyg p{
  margin-bottom: 1em;
}

/* BaÅŸlÄ±k karttan hafif ayrÄ±ÅŸsÄ±n */
.aboutPanelPink h2{
  margin-bottom: 12px;
}

/* =========================================================
   Turkish-friendly justified body text
   ========================================================= */

/* Base: justify only long-form text */
p,
.wysiwyg p,
.articleBody p,
.page p,
.card p,
.teamBio,
.teamBio p{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;

  overflow-wrap: normal;
  word-break: normal;
}

/* Ensure Turkish hyphenation context */
html[lang="tr"] p,
html[lang="tr"] .wysiwyg p,
html[lang="tr"] .articleBody p,
html[lang="tr"] .teamBio,
html[lang="tr"] .page p{
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Opt-out utility for UI text */
.noJustify{
  text-align: left !important;
  hyphens: none !important;
}


.booksGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bookCard{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
}

.bookCover{
  width: 96px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

.bookTitle{
  margin: 0 0 6px;
  font-size: 16px;
}

.bookAuthor{
  opacity: .75;
  font-size: 13px;
  margin-bottom: 12px;
}

.bookBtn{
  width: fit-content;
}


html, body{
  overflow-x: hidden;
}

.bookViewerWrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  overflow: hidden;
}

.spread{
  overflow: hidden;
}

.pageCanvas{
  max-width: 100%;
  height: auto;
  display: block;
}


/* =========================================================
   MOBILE FIX (<=720px)
   - Flashcards: remove fixed heights
   - Nav: 2-col grid + dropdown anchored to its button (no sideways drift)
   ========================================================= */
@media (max-width: 720px){

  /* ---------- Flash cards ---------- */
  .flashWrap{ margin-bottom: 12px; }

  .flashGrid{
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;              /* remove fixed 160px */
    align-items: stretch;
  }

  .flashCard{
    height: auto;              /* remove fixed 160px */
    min-height: 140px;
  }

  .flashCard .q{
    height: auto;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.25;
  }

  .flashCard .a{
    font-size: 14px;
    line-height: 1.45;
  }

  .flashCue{
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  /* ---------- Nav grid ---------- */
  nav.siteNav{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    justify-items: stretch;
    position: relative;     /* dropdown stacking context */
    z-index: 50;
  }

  .navItem{
    width: 100%;
    position: relative !important; /* dropdown anchor */
    overflow: visible !important;  /* allow overlay */
  }

  /* buttons/links: stop "blue link" vibe */
  .navBtn, .navLink{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text) !important;
    font-weight: 650;
    padding: 14px 14px;
    font-size: 16px;
    text-decoration: none;
  }

  /* ---------- Dropdown: force it under its own button ---------- */
  .dropdown{
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;

    width: auto !important;
    min-width: 0 !important;

    transform: none !important;     /* kills translateX(-50%) etc */
    margin: 0 !important;

    z-index: 9999 !important;       /* sit on top of other pills */
  }

  /* dropdown items */
  .dropdown a{
    display: block;
    font-size: 16px;
    padding: 12px 12px;
    color: var(--text) !important;
    text-decoration: none;
  }

  /* optional: wider last item (Bize Ulaşın) */
  nav.siteNav .navItem:last-child{
    grid-column: 1 / -1;
  }
}
