/* ==========================================================================
   IGSİAD & BAKSİFED ÇOKLU DİJİTAL DERGİ, BÜLTEN VE YÖNETİM PLATFORMU
   Referans Tasarım Dili: İSO SANAYİ • TÜYİDERGİ • TÜRKİYE'DE İŞ DÜNYASI • BMAG
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Oswald:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --brand-primary: #b91c1c;
  --brand-primary-dark: #7f1d1d;
  --brand-secondary: #0f172a;
  --brand-accent: #d97706;
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --page-width: 595px;
  --page-height: 842px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   1. ÜST SİMÜLASYON & ROL DEĞİŞTİRİCİ BAR (SIMULATION HEADER)
   ========================================================================== */
.sim-topbar {
  background: linear-gradient(90deg, #090d16 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--brand-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.sim-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-badge {
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sim-domain-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 12.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-role-Order {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-role-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-role-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sim-role-btn.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: #f87171;
  box-shadow: 0 0 12px rgba(185, 28, 28, 0.5);
}

.sim-role-btn.master-btn.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #fbbf24;
}

/* ==========================================================================
   2. KURUMSAL HEADER (PORTAL HEADER)
   ========================================================================== */
.portal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.portal-brand img {
  height: 54px;
  max-width: 195px;
  width: auto;
  object-fit: contain;
}

.portal-brand-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-secondary);
  line-height: 1.1;
}

.portal-brand-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  background: #f8fafc;
  color: var(--brand-primary);
}

.nav-tab.active {
  background: var(--brand-primary);
  color: #fff;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: #fff;
  color: var(--brand-secondary);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-dark {
  background: var(--brand-secondary);
  color: #fff;
}

.btn-dark:hover {
  background: #1e293b;
}

/* ==========================================================================
   3. BMAG TARZI DİJİTAL DERGİ KÜTÜPHANESİ & VİTRİN (LIBRARY VIEW)
   ========================================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.hero-showcase {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, var(--brand-primary-dark) 100%);
  border-radius: 16px;
  padding: 36px;
  color: #fff;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-cover-preview {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  transform: perspective(900px) rotateY(8deg);
  transition: transform 0.35s ease;
  cursor: pointer;
  color: #0f172a;
}

.hero-cover-preview:hover {
  transform: perspective(900px) rotateY(0deg) scale(1.02);
}

.hero-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  line-height: 1.15;
  margin: 10px 0 14px;
  letter-spacing: 0.4px;
}

.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 20px 0 26px;
}

.hero-hl-item {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--brand-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12.5px;
}

.hero-hl-item strong {
  color: #fca5a5;
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.shelf-section {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.shelf-card {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shelf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: var(--brand-primary);
}

.shelf-card-thumb {
  height: 360px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid #cbd5e1;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.shelf-card-thumb img {
  width: 100%;
  height: 255px;
  object-fit: contain;
  background: #f8fafc;
}

/* ==========================================================================
   4. DİJİTAL DERGİ OKUYUCU (FLIPBOOK & A4 SPREAD STAGE)
   ========================================================================== */
.reader-toolbar {
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
}

.reader-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.toolbar-btn.active {
  background: var(--brand-primary);
  border-color: #f87171;
}

.toolbar-btn.print-highlight {
  background: #059669;
  border-color: #34d399;
}

.toolbar-btn.print-highlight:hover {
  background: #047857;
}

.magazine-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0 28px;
  overflow-x: auto;
  perspective: 1800px;
}

.magazine-spread {
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.32);
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Spine shadow in double-page spread mode */
.magazine-spread.spread-double::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.14) 55%, rgba(0,0,0,0.01) 100%);
  pointer-events: none;
  z-index: 20;
}

/* ==========================================================================
   5. A4 GERÇEK DERGİ SAYFASI MİZANPAJ MOTORU (MAGAZINE A4 SHEET)
   ========================================================================== */
.mag-page {
  width: var(--page-width);
  height: var(--page-height);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  color: #0f172a;
  user-select: text;
}

/* Running Header & Footer (TÜYİDERGİ & İSO SANAYİ Standardı) */
.mag-running-header {
  padding: 14px 26px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #0f172a;
  margin: 0 22px;
  flex-shrink: 0;
}

.mag-running-header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mag-running-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: #0f172a;
}

.mag-running-script {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-primary);
}

.mag-running-meta {
  font-size: 9.5px;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mag-running-footer {
  padding: 8px 26px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #cbd5e1;
  margin: 0 22px;
  font-size: 10px;
  color: #475569;
  font-weight: 600;
  flex-shrink: 0;
}

.mag-page-num-box {
  background: #0f172a;
  color: #fff;
  padding: 2px 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.mag-body {
  flex: 1;
  padding: 14px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Side section color strip (İSO SANAYİ Standardı) */
.mag-side-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--brand-primary);
  z-index: 10;
}

/* ==========================================================================
   KAPAK STİLLERİ (3 AI COVER VARIATIONS)
   ========================================================================== */

/* KAPAK 1: İSO SANAYİ TARZI KAPAK (iso_style) */
.cover-iso {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 26px 20px;
  position: relative;
  background: #ffffff;
}

.cover-corner-ribbon {
  position: absolute;
  top: 24px;
  left: -46px;
  width: 210px;
  background: linear-gradient(90deg, #991b1b, #dc2626);
  color: #fff;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 0;
  transform: rotate(-38deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 15;
  border-top: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.cover-iso-masthead {
  text-align: center;
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 8px;
  margin-top: 4px;
}

.cover-iso-giant-title {
  font-family: 'Oswald', sans-serif;
  font-size: 66px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 0.95;
  color: #0f172a;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cover-iso-giant-title .red-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--brand-primary);
  margin-bottom: 32px;
}

.cover-iso-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.8px;
  margin-top: 6px;
  text-transform: uppercase;
}

.cover-iso-frames {
  flex: 1;
  margin: 12px 0;
  border: 4px solid #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #94a3b8;
  overflow: hidden;
}

.cover-iso-photo-box {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 190px;
}

.cover-iso-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-iso-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.1) 45%, rgba(15,23,42,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  color: #fff;
}

.cover-iso-photo-overlay h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.cover-iso-bottom-grid {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: stretch;
  height: 155px;
}

.cover-iso-sayi-box {
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  border-top: 22px solid var(--brand-primary);
}

.cover-iso-sayi-box span.lbl {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 1px;
  margin-top: -22px;
  color: #fff;
}

.cover-iso-sayi-box span.num {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 300;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2px;
}

.cover-iso-toc-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px 14px;
}

.cover-iso-toc-cell {
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 3px;
}

.cover-iso-toc-cell .t-title {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  line-height: 1.2;
}

.cover-iso-toc-cell .t-sub {
  font-size: 8px;
  color: #334155;
  line-height: 1.15;
}

.cover-iso-toc-cell .t-page {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #0f172a;
  line-height: 1;
}

/* KAPAK 2: TÜYİDERGİ TARZI QR KODLU KAPAK (tuyider_style) */
.cover-tuyider {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.cover-tuyider-top {
  padding: 18px 22px 10px;
}

.cover-tuyider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cover-tuyider-title {
  font-family: 'Oswald', sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  line-height: 1;
}

.cover-tuyider-title span {
  font-weight: 300;
  color: var(--brand-primary);
}

.cover-tuyider-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 410px;
}

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

.cover-tuyider-qr {
  position: absolute;
  top: 12px;
  left: 16px;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  text-align: center;
}

.cover-tuyider-bottom {
  background: #fff;
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cover-tuyider-col {
  text-align: center;
  position: relative;
  padding-top: 26px;
}

.cover-tuyider-badge {
  width: 58px;
  height: 54px;
  background: var(--brand-primary);
  color: #fff;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -52px auto 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* KAPAK 3: EKRAN+ / BASKI EKİM 2026 TARZI KOYU GÖRSEL & KIRMIZI KUŞAK KAPAK (isdunyasi_style) */
.cover-ekran {
  height: 100%;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.cover-ekran-inner {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 22px 22px;
  color: #ffffff;
  background: #090d16;
}

.cover-ekran-inner img.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
  z-index: 1;
}

.cover-ekran-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,22,0.88) 0%, rgba(8,12,22,0.22) 32%, rgba(8,12,22,0.28) 62%, rgba(8,12,22,0.92) 100%),
    linear-gradient(90deg, rgba(8,12,22,0.75) 0%, rgba(8,12,22,0.05) 55%);
  z-index: 2;
}

.cover-ekran-top,
.cover-ekran-mid,
.cover-ekran-bottom {
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   İÇ SAYFA MİZANPAJ ŞABLONLARI (INTERIOR EDITORIAL LAYOUTS)
   ========================================================================== */

/* STİL 1: İSO "BAŞYAZI" BAŞKAN MESAJI (editorial_basyazi) */
.layout-basyazi-top {
  background: #18181b;
  color: #fff;
  padding: 22px 26px 28px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  margin: -14px -26px 14px -26px;
  overflow: hidden;
}

.layout-basyazi-watermark {
  font-family: 'Inter', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  position: absolute;
  bottom: -10px;
  left: 16px;
  letter-spacing: -2px;
  user-select: none;
}

.layout-basyazi-grid {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 20px;
  flex: 1;
}

.basyazi-portrait-card {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-align: center;
  align-self: start;
}

.basyazi-portrait-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top;
}

.basyazi-portrait-meta {
  padding: 10px 8px;
}

.basyazi-portrait-meta strong {
  color: var(--brand-primary);
  font-size: 12px;
  display: block;
}

.basyazi-portrait-meta span {
  font-size: 9.5px;
  color: #334155;
  display: block;
  margin-top: 2px;
}

.serif-editorial-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.2px;
  line-height: 1.62;
  color: #1e293b;
  text-align: justify;
}

.serif-editorial-text p {
  margin-bottom: 10px;
}

.drop-cap::first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  line-height: 0.82;
  padding-right: 8px;
  padding-top: 4px;
  font-weight: 800;
  color: var(--brand-primary);
}

/* STİL 2: TÜRKİYE'DE İŞ DÜNYASI "DEKUPELİ PORTRE + AÇILI KIRMIZI BLOK" RÖPORTAJ (interview_cutout) */
.layout-cutout-wrap {
  display: grid;
  grid-template-columns: 46% 54%;
  height: 100%;
  margin: -14px -26px;
  position: relative;
  overflow: hidden;
}

.layout-cutout-left {
  padding: 22px 16px 22px 26px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.layout-cutout-right {
  background: var(--brand-primary);
  color: #ffffff;
  padding: 24px 24px 70px 38px;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.cutout-quote-box {
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 12px;
  margin-bottom: 12px;
  position: relative;
}

.cutout-quote-box .giant-q {
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 0.6;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.cutout-person-photo {
  position: absolute;
  bottom: 0;
  left: 26%;
  transform: translateX(-50%);
  width: 215px;
  height: 255px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.cutout-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 100px 100px 0 0;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
}

.cutout-name-ribbon {
  position: absolute;
  bottom: 14px;
  right: 0;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 22px 8px 28px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 6;
  box-shadow: -4px 4px 15px rgba(0,0,0,0.2);
}

/* STİL 3: İSO SANAYİ "FOTOĞRAF ÜSTÜ YUVARLATILMIŞ BEYAZ KUTU" HABER (iso_rounded_news) */
.iso-news-photo-wrap {
  position: relative;
  height: 260px;
  margin: 0 -10px;
  border-radius: 4px;
  overflow: visible;
}

.iso-news-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.iso-news-overlap-card {
  background: #ffffff;
  width: 86%;
  margin: -58px auto 10px;
  padding: 14px 18px 10px;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 5;
  text-align: center;
  border-top: 3px dotted #94a3b8;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}

.iso-news-overlap-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
  color: #334155;
  text-transform: uppercase;
}

.iso-news-spot {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  padding: 0 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.two-col-body {
  column-count: 2;
  column-gap: 18px;
  column-rule: 1px double #cbd5e1;
  font-size: 10.6px;
  line-height: 1.58;
  text-align: justify;
  color: #1e293b;
}

/* STİL 4: MEVZUAT RADARI & TEKNİK TABLO SAYFASI (mevzuat_radar) */
.mevzuat-source-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.mevzuat-source-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid var(--brand-primary);
  padding: 4px 6px;
  font-size: 8.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mevzuat-radar-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--brand-primary);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 8px;
}

.mevzuat-radar-card h4 {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.mevzuat-grid-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  font-size: 9.3px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.mevzuat-grid-row strong {
  color: var(--brand-primary);
}

/* TÜYİDERGİ Tarzı Teknik Veri Tablosu */
.tuyider-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  margin-top: 6px;
}

.tuyider-table th {
  background: #0284c7;
  color: #fff;
  padding: 5px 8px;
  text-align: left;
  font-weight: 700;
}

.tuyider-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #cbd5e1;
  color: #1e293b;
}

.tuyider-table tr:nth-child(even) td {
  background: #f0f9ff;
}

/* ==========================================================================
   6. SEKRETARYA & MASTER YÖNETİM PANELİ (CMS DASHBOARD)
   ========================================================================== */
.cms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.cms-sidebar {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 70px;
}

.cms-menu-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.cms-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cms-menu-btn.active {
  background: var(--brand-primary);
  color: #fff;
}

.cms-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
}

.kpi-card .kpi-val {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
}

.kpi-card .kpi-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   7. A4 YAZDIRMA VE TAM DERGİ PDF ÇIKTI MOTORU (@media print)
   ========================================================================== */
#print-mount {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #app-root {
    display: none !important;
  }

  #print-mount {
    display: block !important;
    width: 100% !important;
  }

  #print-mount .mag-page {
    width: 210mm !important;
    height: 297mm !important;
    page-break-after: always !important;
    break-after: page !important;
    border: none !important;
    margin: 0 auto !important;
    box-shadow: none !important;
  }
}

@media (max-width: 960px) {
  .hero-showcase {
    grid-template-columns: 1fr;
  }
  .cms-layout {
    grid-template-columns: 1fr;
  }
}
