/* ============================================================
   SAYFA İÇERİK LAYOUT — content.css
   UIkit grid tabanlı, tüm ekran boyutlarında responsive
   ============================================================ */

:root {
  --page-accent:        #ffed00;
  --page-accent-dark:   #000;
  --page-accent-light:  #ededed;
  --page-hero-bg:       #ffed00;
  --page-hero-text:     #000000;
  --page-border:        #e6e6e6;
  --page-text:          #000000;
  --page-muted:         #666;
  --page-section-pad:   72px;
}

/* ============================================================
   1. HERO BANNER
   ============================================================ */
.page-hero {
  background-color: var(--page-hero-bg);
  padding: 48px 0 54px;
  position: relative;
  overflow: hidden;
}

.page-hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}

.page-hero > .uk-container {
  position: relative;
  z-index: 1;
}

.page-hero__grid {
  align-items: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 12.5px;
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: rgba(26, 26, 26, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--page-text); }

.breadcrumb__sep { opacity: 0.4; }

/* Arka plan görseli varsa breadcrumb + başlık beyaz */
.page-hero--bg .breadcrumb        { color: rgba(255, 255, 255, 0.65); }
.page-hero--bg .breadcrumb a      { color: rgba(255, 255, 255, 0.8); }
.page-hero--bg .breadcrumb a:hover{ color: #fff; }
.page-hero--bg .page-hero__title  { color: #fff; }
.page-hero--bg .page-hero__desc   { color: rgba(255, 255, 255, 0.85); }

/* Hero başlık */
.page-hero__title {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--page-hero-text);
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero açıklama */
.page-hero__desc {
  font-size: 0.975rem;
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.68;
  margin: 0 0 20px;
}

/* Hero buton */
.blue-btn {
  display: inline-block;
  padding: 10px 26px;
  background: var(--page-text);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.blue-btn:hover { background: var(--page-accent-dark); }

/* ============================================================
   2. PAGE LAYOUT (Sidebar + Content Grid)
   ============================================================ */

/* Bölüm başlığı — sarı etiket + alt ayraç çizgisi */
.page-section-header {
  padding: 100px 0 0;
}

.page-section-header__inner {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--page-border);
}

.page-section-header__title {
  font-family: 'Barlow', sans-serif;
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #1a1a1a;
  background: var(--page-accent);
  padding: 20px 25px 5px 25px;
  line-height: 1.2;
}

.page-layout-section {
  padding: var(--page-section-pad) 0;
}

/* Section header hemen üstündeyse layout üst boşluğunu azalt */
.page-section-header + .page-layout-section {
  padding-top: 40px;
}

/* ============================================================
   3. SIDEBAR
   ============================================================ */

/* Desktop: kutusuz, dikey ayraçlı sidebar */
.page-sidebar {
  border-right: 1px solid var(--page-border);
  padding-right: 0 !important;
}

.page-sidebar__sticky {
  position: sticky;
  top: 120px;
  padding-right: 28px;
}

.page-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.page-sidebar__link {
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 15px;
  font-size: 1.12rem;
  font-weight: 500;
  color: #989898;
  text-decoration: none;
  border-left: 7px solid transparent;
  text-transform: uppercase;
  line-height: 1.25;
  transition: color 0.18s, border-color 0.18s;
}

.page-sidebar__link:hover {
  background: transparent;
  color: #1a1a1a;
  border-left-color: transparent;
}

.page-sidebar__link.is-active {
  background: transparent;
  border-left-color: var(--page-accent);
  color: #1a1a1a;
  font-weight: 700;
}

/* Mobile: accordion toggle — varsayılan gizli */
.page-sidebar__mobile { display: none; }

.page-sidebar__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--page-accent);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  gap: 8px;
}

.page-sidebar__toggle-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.22s;
}

.page-sidebar__toggle[aria-expanded="true"] .page-sidebar__toggle-arrow {
  transform: rotate(180deg);
}

.page-sidebar__dropdown {
  display: none;
  flex-direction: column;
  border: 1px solid var(--page-border);
  border-top: none;
  border-radius: 0 0 3px 3px;
  overflow: hidden;
  background: #fff;
}

.page-sidebar__dropdown.is-open { display: flex; }

.page-sidebar__dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--page-border);
  transition: color 0.15s, background 0.15s;
}

.page-sidebar__dropdown-item:last-child { border-bottom: none; }

.page-sidebar__dropdown-item:hover {
  background: var(--page-accent-light);
  color: #1a1a1a;
}

.page-sidebar__dropdown-item.is-active {
  background: transparent;
  color: #1a1a1a;
  font-weight: 700;
}

/* ============================================================
   4. ANA İÇERİK
   ============================================================ */
.page-main { min-width: 0; }

.page-main__title {
  font-size: clamp(1.2rem, 2.2vw, 1.12rem);
  font-weight: 700;
  color: var(--page-text);
  margin: 0 0 24px;
  position: relative;
  font-family: 'Barlow', sans-serif;
}



/* İçerik typography */
.page-content,
.content {
  font-size: 18px;
  line-height: 1.78;
  color: #000; font-weight: 400;
}

.page-content p,
.content p { margin: 0 0 1.1em; }

.page-content p:last-child,
.content p:last-child { margin-bottom: 0; }

.page-content h2, .content h2 { font-size: 1.28rem; font-weight: 700; margin: 1.6em 0 0.6em; color: var(--page-text); }
.page-content h3, .content h3 { font-size: 1.08rem; font-weight: 700; margin: 1.4em 0 0.5em; color: var(--page-text); }
.page-content h4, .content h4 { font-size:  .96rem; font-weight: 600; margin: 1.2em 0 0.4em; color: var(--page-text); }

.page-content ul, .content ul,
.page-content ol,  .content ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

.page-content li, .content li { margin-bottom: 0.35em; }

.page-content a, .content a       { color: var(--page-accent-dark); }
.page-content a:hover, .content a:hover { text-decoration: underline; }

.page-content img, .content img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.page-content table, .content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 0.875rem;
}

.page-content table th,
.page-content table td,
.content table th,
.content table td {
  padding: 8px 12px;
  border: 1px solid var(--page-border);
  text-align: left;
  vertical-align: top;
}

.page-content table th, .content table th {
  background: #fafafa;
  font-weight: 600;
}

/* Lead metin (baslik3) */
.page-content__lead {
  font-size: 1.02rem;
  font-weight: 500;
  color: #555;
  line-height: 1.72;
  margin-bottom: 1.4em;
  padding-left: 16px;
  border-left: 3px solid var(--page-accent);
}

/* Öne çıkan görsel */
.page-content__lead-image {
  margin: 0 0 28px;
  display: block;
}

.page-content__lead-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.page-content__secondary-image {
  margin: 28px 0 0;
  display: block;
}

.page-content__secondary-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Görsel altyazı */
.ic-gallery-slide__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  padding: 28px 16px 14px;
  pointer-events: none;
}

.ic-gallery-slide__caption {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   5. GALERİ
   ============================================================ */
.ic-gallery-section {
  padding-bottom: var(--page-section-pad);
}

/* Grid galeri — 16:8 (2:1) kutu düzeni */
.ic-gallery-grid__item {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.ic-gallery-grid__ratio {
  position: relative;
  padding-bottom: 50%; /* 16:8 = 2:1 oranı */
  overflow: hidden;
  background: #f0f0f0;
}

.ic-gallery-grid__ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ic-gallery-grid__item:hover .ic-gallery-grid__ratio img { transform: scale(1.05); }

.ic-gallery-grid__ratio .ic-gallery-slide__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ============================================================
   6. VİDEOLAR
   ============================================================ */
.ic-video-section {
  padding-bottom: var(--page-section-pad);
}

.ic-video-block__wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.ic-video-block__wrap iframe,
.ic-video-block__wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ic-video-block__body { padding: 10px 0 0; }

.ic-video-block__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--page-text);
  margin-bottom: 4px;
}

.ic-video-block__desc {
  font-size: 0.82rem;
  color: var(--page-muted);
}

/* ============================================================
   7. DOSYALAR
   ============================================================ */
.ic-files-section {
  padding-bottom: var(--page-section-pad);
}

.ic-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--page-border);
  border-radius: 0px;
  text-decoration: none !important;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ic-file-card:hover {
  border-color: var(--page-accent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.ic-file-card__icon {
  position: relative;
  flex-shrink: 0;
  color: var(--page-accent-dark);
}

.ic-file-card__ext {
  position: absolute;
  bottom: -4px;
  right: -6px;
  font-size: 8px;
  font-weight: 700;
  background: var(--page-accent);
  color: #1a1a1a;
  padding: 1px 3px;
  border-radius: 2px;
  line-height: 1.4;
}

.ic-file-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ic-file-card__name,
.ic-file-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--page-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-file-card__meta {
  font-size: 0.78rem;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ic-file-card__arrow { flex-shrink: 0; color: #bbb; transition: color 0.15s; }
.ic-file-card:hover .ic-file-card__arrow { color: var(--page-accent-dark); }

/* ============================================================
   8. AKORDIYON / ÖZELLİKLER
   ============================================================ */
.ic-faq-section {
  padding-bottom: var(--page-section-pad);
}

/* page-main içinde: bölümler arası top boşluk, bottom sıfır */
.page-main .ic-gallery-section,
.page-main .ic-video-section,
.page-main .ic-files-section,
.page-main .ic-faq-section {
  margin-top: 36px;
  padding-bottom: 0;
}

.ic-faq {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--page-border);
  border-radius: 0;
  overflow: hidden;
}

/* UIkit'in accordion başlığına eklediği sol ikon ::before kaldır */
.ic-faq__content strong { font-weight: 600 !important; }
.ic-faq__content b { font-weight: 600 !important; }
.uk-accordion-content {margin-top: 0 !important; }
.ic-faq__trigger.uk-accordion-title::before { display: none; }

.uk-accordion-title { font-size: 18px !important; font-weight: 600; }

.ic-faq > * + * { margin-top: 0 !important; }

.ic-faq__item { border-bottom: 1px solid var(--page-border); }
.ic-faq__item:last-child { border-bottom: none; }

.ic-faq__trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none !important;
  color: var(--page-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.ic-faq__trigger:hover,
.ic-faq__item.uk-open > .ic-faq__trigger {
  background: var(--page-accent-light);
  color: var(--page-accent-dark);
}

.ic-faq__item-title {
  flex: 1;
  min-width: 0;
}

.ic-faq__toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--page-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.ic-faq__toggle::before,
.ic-faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--page-muted);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s, background 0.15s;
}

.ic-faq__toggle::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
.ic-faq__toggle::after  { width: 2px;  height: 10px; transform: translate(-50%, -50%); }

.ic-faq__item.uk-open > .ic-faq__trigger .ic-faq__toggle {
  background: var(--page-accent);
  border-color: var(--page-accent);
}

.ic-faq__item.uk-open > .ic-faq__trigger .ic-faq__toggle::before,
.ic-faq__item.uk-open > .ic-faq__trigger .ic-faq__toggle::after {
  background: #1a1a1a;
}

.ic-faq__item.uk-open > .ic-faq__trigger .ic-faq__toggle::after {
  opacity: 0;
}

.ic-faq__content {
  padding: 16px 18px 20px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: #000;
}

.ic-faq__hero { margin-bottom: 14px; border-radius: 4px; overflow: hidden; }
.ic-faq__hero img { width: 100%; height: auto; display: block; }

.ic-faq__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

/* ============================================================
   9. TEKİL MEDYA (sayfa_tekil_medya.php)
   ============================================================ */
.sp-tekil-medya {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}

/* Video öğesi */
.sp-tekil-medya__item--video {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--page-border);
}

.sp-tekil-medya__item--video:first-child { padding-top: 0; }
.sp-tekil-medya__item--video:last-child  { border-bottom: none; padding-bottom: 0; }

.sp-tekil-medya__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--page-text);
  margin: 0;
}

.sp-tekil-medya__video {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  background: #000;
  display: block;
}

.sp-tekil-medya__link {
  font-size: 0.875rem;
  color: var(--page-accent-dark);
  text-decoration: underline;
  word-break: break-all;
}

/* Dosya öğesi — ic-file-card ile uyumlu */
.sp-tekil-medya__file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--page-border);
  margin-top: 10px;
  background: #fff;
  text-decoration: none !important;
  color: var(--page-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-tekil-medya__file:first-child { margin-top: 0; }

.sp-tekil-medya__file:hover {
  border-color: var(--page-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.sp-tekil-medya__file-icon {
  flex-shrink: 0;
  color: var(--page-accent-dark);
}

.sp-tekil-medya__file-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-tekil-medya__file-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--page-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-tekil-medya__file-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-tekil-medya__file-action {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #bbb;
  transition: color 0.15s;
}

.sp-tekil-medya__file:hover .sp-tekil-medya__file-action {
  color: var(--page-accent-dark);
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */

/* ≥ 1400px */
@media (min-width: 1400px) {
  :root { --page-section-pad: 88px; }
}

/* ≥ 960px: desktop — sidebar nav göster, mobile toggle gizle */
@media (min-width: 960px) {
  .page-sidebar__sticky { display: block; }
  .page-sidebar__mobile { display: none; }
}

/* < 960px: tablet + mobil — mobile toggle göster, desktop nav gizle */
@media (max-width: 959px) {
  .page-sidebar { border-right: none; padding-right: 0 !important; order: 2; }
  .page-main    { order: 1; }
  .page-sidebar__sticky { display: none; }
  .page-sidebar__mobile { display: block; margin-top: 28px; margin-bottom: 0; }

  :root { --page-section-pad: 56px; }

  .page-hero { padding: 36px 0 42px; }

  .page-main__title { font-size: 1.3rem; }

  .page-section-header { padding-top: 28px; }
  .page-section-header__inner { padding-bottom: 20px; }
  .page-section-header + .page-layout-section { padding-top: 28px; }
}

/* < 640px: mobil */
@media (max-width: 639px) {
  :root { --page-section-pad: 40px; }

  .page-hero { padding: 28px 0 32px; }

  .page-hero__title { letter-spacing: 0.02em; }

  .page-hero__grid { row-gap: 12px; }

  /* Bölüm başlığı */
  .page-section-header { padding-top: 32px; }
  .page-section-header__title { font-size: 1.3rem; padding: 10px 16px 4px; }

  /* İçerik başlığı */
  .page-main__title {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  /* İçerik typography */
  .page-content,
  .content { font-size: 15px; line-height: 1.68; }

  .page-content h2, .content h2 { font-size: 1.05rem; }
  .page-content h3, .content h3 { font-size: 0.95rem; }

  
  /* Accordion başlık */
  .uk-accordion-title { font-size: 16px !important; }

  /* Sidebar menü linkleri */
  .page-sidebar__link { font-size: 0.9rem; padding: 9px 10px 9px 13px; }

  .page-sidebar__mobile { margin-top: 20px; }

  .ic-file-card__name,
  .ic-file-card__title { white-space: normal; }
}

/* < 320px: çok küçük ekranlar */
@media (max-width: 319px) {
  .page-hero__title { font-size: 1.4rem; }
}
