:root {
  --brand: #8b001d;
  --brand-dark: #680016;
  --brand-soft: #fff3f5;
  --yellow: #ffc837;
  --text: #161616;
  --muted: #747474;
  --line: #eeeeee;
  --card: #ffffff;
  --page: #f7f7f8;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--page);
  color: var(--text);
  min-height: 100vh;
}

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

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

.svg-sprite {
  display: none;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(139, 0, 29, .06), transparent 32rem),
    linear-gradient(180deg, #fff 0%, #f8f8f8 55%, #fff 100%);
  z-index: -1;
}

.app-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  padding-bottom: calc(100px + var(--safe-bottom));
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 20px 70px rgba(0,0,0,.08);
}

.topbar {
  height: 88px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #131313;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button svg {
  width: 30px;
  height: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  letter-spacing: .02em;
  font-weight: 800;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

main {
  display: block;
}

.hero {
  margin: 0 20px 18px;
  height: clamp(265px, 60vw, 300px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #222;
  box-shadow: var(--shadow);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: opacity .28s ease, transform .55s ease;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.42) 55%, rgba(0,0,0,.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 30px 22px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.76);
}

.hero h1 {
  font-size: clamp(27px, 7vw, 38px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 14px;
  max-width: 370px;
}

.hero p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.45;
  max-width: 380px;
  color: rgba(255,255,255,.92);
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn {
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-yellow {
  background: var(--yellow);
  color: #493400;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12.5px;
  letter-spacing: .01em;
  box-shadow: 0 8px 18px rgba(255, 200, 55, .22);
}

.btn-red {
  background: var(--brand);
  color: #fff;
  min-height: 52px;
  padding: 0 18px;
  box-shadow: 0 10px 22px rgba(139,0,29,.20);
}

.btn-outline {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(139,0,29,.18);
  color: var(--brand);
  background: #fff;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 74px;
  justify-content: flex-end;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--yellow);
  width: 13px;
  height: 13px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 12px 20px 16px;
}

.quick-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: 0 8px 18px rgba(20,20,20,.035);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 10px 6px;
  gap: 7px;
}

.quick-card svg {
  width: 35px;
  height: 35px;
  color: var(--brand);
  stroke-width: 1.7;
}

.quick-card strong {
  font-size: 15px;
  line-height: 1.1;
}

.quick-card span {
  font-size: 11.5px;
  line-height: 1.22;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.social-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, .68fr));
  gap: 12px;
  padding: 2px 20px 22px;
}

.language-button,
.social-button {
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(20,20,20,.035);
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-button {
  padding: 0 13px;
  gap: 12px;
  cursor: pointer;
}

.flag {
  min-width: 48px;
  min-height: 34px;
  border-radius: 7px;
  background: #e30a17;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.language-button strong {
  font-size: 18px;
}

.chevron {
  margin-left: auto;
  color: #333;
}

.social-button {
  color: #111;
  font-weight: 900;
  font-size: 26px;
}

.president-card {
  margin: 0 20px 26px;
  min-height: 220px;
  display: grid;
  grid-template-columns: 47% 53%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.president-photo {
  background: #ddd;
  min-height: 220px;
}

.president-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.president-info {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.president-info span {
  color: var(--brand);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 9px;
}

.president-info h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 6.4vw, 31px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.president-info p {
  margin: 0 0 21px;
  color: var(--muted);
  line-height: 1.45;
  font-size: clamp(14px, 3.9vw, 17px);
}

.section-heading {
  padding: 0 20px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  letter-spacing: -.04em;
}

.section-heading a {
  color: var(--brand);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

.section-heading svg {
  width: 20px;
  height: 20px;
}

.news-list {
  padding: 0 20px 20px;
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-height: 94px;
  box-shadow: 0 8px 18px rgba(20,20,20,.035);
}

.news-card > img {
  width: 128px;
  height: 100%;
  min-height: 94px;
  display: block;
  object-fit: cover;
}

.news-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.26;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card time {
  color: var(--muted);
  font-size: 12.5px;
}

.news-card > svg {
  color: #333;
  margin-right: 10px;
}

.event-panel {
  margin: 4px 20px 16px;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.event-panel span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-panel h3 {
  margin: 0 0 8px;
  line-height: 1.15;
  font-size: 22px;
  letter-spacing: -.03em;
}

.event-panel p {
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.45;
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  right: max(20px, calc((100vw - 480px) / 2 + 20px));
  bottom: calc(94px + var(--safe-bottom));
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(36, 195, 94, .34);
  z-index: 25;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  min-height: calc(78px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(0,0,0,.06);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.bottom-nav a,
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #565656;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav svg {
  width: 27px;
  height: 27px;
}

.bottom-nav .active {
  color: var(--brand);
}

.drawer,
.sheet {
  position: fixed;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
}

.drawer.open,
.sheet.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop,
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.34);
  opacity: 0;
  transition: opacity .2s ease;
  border: 0;
  width: 100%;
  height: 100%;
}

.drawer.open .drawer-backdrop,
.sheet.open .sheet-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 24px;
  transform: translateX(-104%);
  transition: transform .22s ease;
  box-shadow: 18px 0 50px rgba(0,0,0,.18);
  overflow-y: auto;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 23px;
}

.drawer-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.drawer-panel > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.drawer-contact {
  margin-top: 22px;
  padding: 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  display: grid;
  gap: 9px;
  color: var(--brand);
  font-weight: 800;
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  transform: translate(-50%, 104%);
  transition: transform .22s ease;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 22px calc(24px + var(--safe-bottom));
  box-shadow: 0 -14px 40px rgba(0,0,0,.18);
}

.sheet.open .sheet-panel {
  transform: translate(-50%, 0);
}

.sheet-handle {
  display: block;
  width: 48px;
  height: 5px;
  background: #d8d8d8;
  border-radius: 99px;
  margin: 0 auto 16px;
}

.sheet-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.sheet-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  font-weight: 760;
}



/* Normal site görüntüleme sayfası */
.viewer-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(78px + var(--safe-bottom));
}
.viewer-toolbar {
  height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 88px;
  z-index: 18;
}
.viewer-toolbar a,
.viewer-toolbar button {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}
.viewer-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555;
  font-weight: 750;
  font-size: 13px;
}
.viewer-frame-wrap {
  flex: 1;
  min-height: calc(100vh - 220px);
  background: #fff;
  position: relative;
}
.viewer-frame {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 620px;
  border: 0;
  display: block;
  background: #fff;
}
.viewer-note {
  margin: 12px 14px 0;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(139,0,29,.12);
  background: var(--brand-soft);
  color: #6d0016;
  font-size: 12px;
  line-height: 1.35;
}
.viewer-note a {
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 390px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 30px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .hero,
  .president-card,
  .event-panel {
    margin-left: 16px;
    margin-right: 16px;
  }

  .quick-grid,
  .social-row,
  .section-heading,
  .news-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-grid {
    gap: 9px;
  }

  .quick-card {
    min-height: 104px;
  }

  .quick-card strong {
    font-size: 13px;
  }

  .quick-card span {
    font-size: 10.5px;
  }

  .president-info {
    padding: 22px 16px;
  }

  .news-card {
    grid-template-columns: 112px minmax(0, 1fr) 24px;
    gap: 11px;
  }

  .news-card > img {
    width: 112px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 26px 0;
  }

  .app-shell {
    border-radius: 36px;
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 0 0 36px 36px;
  }
}


.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
}


/* Dinamik mobil sayfalar */
.hero-slide[hidden] { display: none; }
.page-title-card {
  margin: 0 20px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.page-title-card span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  margin-bottom: 8px;
}
.page-title-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.page-title-card p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.45;
  font-size: 13.5px;
}
.page-list { padding-bottom: 26px; }
.content-page { padding: 0 20px 24px; }
.article-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.article-card-compact { margin-top: 18px; }
.article-card h1 {
  margin: 12px 0 18px;
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.back-link,
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 850;
}
.source-link { margin-top: 18px; }
.article-content {
  color: #222;
  font-size: 15.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px;
}
.article-content iframe { min-height: 260px; }
.article-content table {
  width: 100% !important;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-content td,
.article-content th {
  border: 1px solid #eee;
  padding: 8px;
}
.article-content a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
}
.article-content h1,
.article-content h2,
.article-content h3 {
  line-height: 1.2;
  letter-spacing: -.02em;
}
.member-grid {
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.member-card {
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20,20,20,.035);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.member-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 16px;
}
.member-card strong {
  font-size: 14px;
  line-height: 1.25;
}
.menu-list,
.contact-cards {
  padding: 0 20px 24px;
  display: grid;
  gap: 12px;
}
.menu-list a,
.contact-card {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20,20,20,.035);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  font-weight: 850;
}
.contact-card {
  grid-template-columns: 40px minmax(0, 1fr);
}
.contact-card svg,
.menu-list a svg:first-child {
  color: var(--brand);
}
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
@media (max-width: 390px) {
  .page-title-card,
  .content-page,
  .member-grid,
  .menu-list,
  .contact-cards { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
  .content-page { padding-left: 16px; padding-right: 16px; }
  .member-grid { grid-template-columns: 1fr; }
}
