:root {
  --bg: #ffffff;
  --elev: #ffffff;
  --elev-2: #f8fafc;
  --text: #111827;
  --muted: #4b5563;
  --primary: #E30A17; /* Türk bayrağı kırmızısı */
  --shadow: 0 15px 45px rgba(17, 24, 39, 0.18);
  --radius: 16px;
  --container: 1120px;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--primary); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo { height: 56px; width: auto; }
.main-nav { margin-left: auto; position: relative; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); padding: 8px 12px; border-radius: 10px; }
.nav-list { display: flex; list-style: none; gap: 16px; margin: 0; padding: 0; }
.nav-list a { display: inline-block; padding: 10px 12px; border-radius: 10px; color: #fff; }
.nav-list a:hover { background: rgba(255,255,255,0.14); }

/* Dropdown menus */
.has-sub { position: relative; }
.has-sub > .sub-toggle {
  background: transparent;
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.has-sub > .sub-toggle:hover { background: rgba(255,255,255,0.14); }
.sub-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  margin: 0;
  display: none;
  min-width: 220px;
  z-index: 20;
}
.sub-list li a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  border-radius: 8px;
}
.sub-list li a:hover { background: rgba(255,255,255,0.14); }
.has-sub.open > .sub-list { display: block; }

/* Sections */
.section { padding: 28px 0; }
.section-title { margin: 0 0 16px; font-size: 22px; }

/* Grids */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Cards & radios */
.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.square { aspect-ratio: 1 / 1; }
.radio-card { height: 140px; width: 100%; }
.card .logo-only { max-width: 70%; max-height: 70%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }

/* News cards */
.news-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-media { display: block; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 12px; }
.news-title { margin: 0 0 8px; font-size: 18px; color: #111827; }
.news-summary { color: var(--muted); margin: 0; font-size: 14px; }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding-top: 28px; padding-bottom: 28px; }
.footer-columns { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; }
.footer-col h4 { margin: 0 0 10px; color: #fff; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { width: 48px; height: 48px; }
.socials { display: inline-flex; gap: 10px; margin-top: 6px; }
.social-link { width: 36px; height: 36px; display: inline-grid; place-items: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.38); border-radius: 12px; }
.social-link svg { width: 18px; height: 18px; fill: #ffffff; }
.contact-list, .link-list { list-style: none; padding: 0; margin: 0; }
.contact-list li, .link-list li { margin-bottom: 6px; color: #fff; }
.link-list li a { color: #fff; opacity: 0.95; }
.link-list li a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.25); color: #fff; gap: 12px; }
.footer-bottom .host-link { margin-left: auto; }
.footer-bottom .host-link a { color: #fff; text-decoration: underline; }

/* Board grid */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.board-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-body { padding: 12px; text-align: center; }
.board-name { font-weight: 700; color: #111827; }
.board-role { color: var(--muted); font-size: 14px; }

/* Contact forms base */
.contact-form { background: #ffffff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-form label span { color: #111827; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #111827;
  background: #fff;
}
.btn-primary { background: var(--primary); color: #fff; border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.05); }
.form-status { margin-left: 10px; font-size: 14px; color: #111827; }

/* Membership forms three-column layout */
.membership-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}
.membership-form .full {
  grid-column: 1 / -1;
}
.membership-form .form-subtitle {
  grid-column: 1 / -1;
}
.membership-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contact form grid layout on home */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.g-recaptcha { grid-column: 1 / -1; }

/* Contact page two-column layout */
.contact-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.contact-info .info-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.contact-info .info-card h3 { margin: 0 0 10px; color: #111827; }
.contact-info .info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info .info-card li { margin-bottom: 8px; color: #111827; }
.contact-form-wrap .contact-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-form-wrap .contact-form .full { grid-column: 1 / -1; }
.contact-form-wrap .g-recaptcha { grid-column: 1 / -1; }

/* Pagination */
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pagination .page-link { background: #ffffff; border: 1px solid #e5e7eb; color: #111827; padding: 8px 12px; border-radius: 10px; }
.pagination .page-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-link.disabled { opacity: 0.5; pointer-events: none; }

/* Radyolar sayfası grid */
.radios-page-grid { grid-template-columns: repeat(4, 1fr); }

/* Alerts */
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.alert-success { background: #dcfce7; border: 1px solid #22c55e; color: #14532d; }
.alert-error { background: #fee2e2; border: 1px solid #ef4444; color: #7f1d1d; }
.form-subtitle { margin: 16px 0 8px; font-size: 16px; font-weight: 600; color: #111827; }

/* Responsive */
@media (max-width: 1024px) {
  .radios-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .radio-card { height: 120px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .radios-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    width: 220px;
  }
  .nav-list.open { display: flex; }
  .card-grid, .news-grid { grid-template-columns: 1fr; }
  .radio-card { height: 110px; }
  .header-inner { min-height: 84px; }
  .brand-logo { height: 52px; }
  .footer-columns { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .radios-page-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .membership-form {
    grid-template-columns: 1fr;
  }
}
