/* Ortak site çerçevesi — index ile aynı görünüm; Bootstrap .nav/.container ile çakışmaması için askf- önekleri */

:root {
  --navy: #062b55;
  --navy-2: #041f42;
  --blue: #2041a5;
  --blue-dark: #082f63;
  --blue-2: #1688ff;
  --sky: #0b7df0;
  --soft: #f5f9ff;
  --line: #e6edf6;
  --text: #07264b;
  --muted: #64748b;
  --white: #ffffff;
  --green: #12a150;
  --red: #ef4444;
  --orange: #ff6b35;
  --shadow: 0 16px 40px rgba(11, 47, 89, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #f4f7fb;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.askf-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* ——— Kamu site üst alanı (header v2) ——— */
.site-header {
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 40;
}

.top-strip {
  background: linear-gradient(90deg, var(--navy-2), var(--blue-dark));
  color: #fff;
  min-height: 48px;
}

.top-strip-inner {
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.contact-item i {
  color: #f35d89;
  font-size: 15px;
}

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

.quick-btn {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s ease;
}

.quick-btn:hover {
  background: #fff;
  color: var(--blue-dark);
}

.brand-area {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-inner {
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 28px;
  padding: 20px 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #eef5ff);
  border: 1px solid #dbe7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(32, 65, 165, 0.13);
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-logo--placeholder {
  background: linear-gradient(135deg, #082f63, #2041a5);
}

.brand-logo-fallback {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-title {
  margin: 0;
  color: var(--blue-dark);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  margin: 8px 0 0;
  color: #0874df;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1px;
}

.search-box {
  display: flex;
  align-items: center;
  height: 60px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid #dbe5f2;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.search-box i {
  color: #94a3b8;
  font-size: 18px;
  margin-left: 20px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 18px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
}

.search-box input::placeholder {
  color: #7b8798;
  font-weight: 600;
}

.search-btn {
  width: 78px;
  height: 100%;
  border: 0;
  background: linear-gradient(135deg, #0d6df5, #0b55df);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.search-btn:hover {
  filter: brightness(0.95);
}

.main-nav {
  background: linear-gradient(90deg, #06315f, #083f7c);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  list-style: none;
}

.nav-link-item {
  min-height: 70px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #eaf4ff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  position: relative;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-link-item::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.2s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
  background: var(--sky);
  color: #fff;
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  transform: scaleX(1);
}

.nav-link-item i {
  font-size: 18px;
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.nav-cta {
  min-height: 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 107, 53, 0.22);
  white-space: nowrap;
}

.nav-cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

.askf-mobile-menu-btn.mobile-toggle {
  margin-left: 0;
  font-weight: 400;
}

.askf-mobile-menu {
  display: none;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.askf-mobile-menu.active {
  display: block;
}

.askf-mobile-menu a {
  display: block;
  padding: 14px 20px;
  font-weight: 800;
  color: #153a61;
  border-bottom: 1px solid #eef4fb;
  text-decoration: none;
  box-sizing: border-box;
}

.askf-mobile-menu a:last-child {
  border-bottom: none;
}

.askf-mobile-menu a:hover {
  background: #f8fbff;
  color: #0d6efd;
}

@media (max-width: 1100px) {
  .brand-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-box {
    max-width: 100%;
  }

  .nav-link-item {
    padding: 0 18px;
    font-size: 15px;
  }
}

@media (max-width: 850px) {
  .top-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .quick-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-title {
    font-size: 30px;
  }

  .brand-subtitle {
    font-size: 15px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand-logo img {
    width: 60px;
    height: 60px;
  }

  .nav-inner {
    min-height: 64px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-strip-inner,
  .brand-inner,
  .nav-inner {
    width: min(430px, calc(100% - 24px));
  }

  .contact-list {
    gap: 10px;
    font-size: 13px;
  }

  .quick-btn {
    padding: 0 14px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-title {
    font-size: 26px;
    line-height: 1.08;
  }

  .brand-subtitle {
    font-size: 14px;
  }

  .search-box {
    height: 54px;
    border-radius: 16px;
  }
}

/* Bootstrap 5 (header.php) ile site-header çakışmaları — reboot / link / liste */
body.askf-with-bootstrap .site-header,
body.askf-with-bootstrap .site-header * {
  box-sizing: border-box;
}

body.askf-with-bootstrap .site-header h1.brand-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(22px, 2vw + 14px, 38px);
  line-height: 1.08;
  font-weight: 900;
  color: var(--blue-dark);
}

body.askf-with-bootstrap .site-header p.brand-subtitle {
  margin-top: 8px;
  margin-bottom: 0;
}

body.askf-with-bootstrap .site-header .nav-list,
body.askf-with-bootstrap .site-header .nav-list li {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}

body.askf-with-bootstrap .site-header a.nav-link-item,
body.askf-with-bootstrap .site-header a.contact-item,
body.askf-with-bootstrap .site-header a.quick-btn,
body.askf-with-bootstrap .site-header a.nav-cta {
  text-decoration: none;
}

body.askf-with-bootstrap .site-header a.nav-link-item:focus-visible,
body.askf-with-bootstrap .site-header a.quick-btn:focus-visible,
body.askf-with-bootstrap .site-header button.mobile-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

body.askf-with-bootstrap .site-header button.search-btn,
body.askf-with-bootstrap .site-header button.mobile-toggle {
  margin: 0;
  font: inherit;
  line-height: 1;
  box-shadow: none;
}

body.askf-with-bootstrap .site-header .search-box input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  border-radius: 0;
}

/* Geniş ekranda menü taşarsa yatay kaydır (7+ link) */
@media (min-width: 851px) {
  body.askf-with-bootstrap .main-nav .nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: space-between;
    scrollbar-width: thin;
  }
  body.askf-with-bootstrap .main-nav .nav-list {
    flex: 1 1 auto;
    min-width: min-content;
  }
  body.askf-with-bootstrap .main-nav .nav-cta {
    flex: 0 0 auto;
  }
}

.main {
  padding: 26px 0 42px;
}

footer {
  background: linear-gradient(135deg, #04274d, #064780);
  color: #dbeafe;
  margin-top: 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding: 42px 0;
}
.footer-grid h4 {
  color: white;
  margin: 0 0 16px;
  font-size: 18px;
}
.footer-grid p,
.footer-grid li {
  font-size: 14px;
  line-height: 1.75;
  color: #dbeafe;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin: 6px 0;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
  font-size: 13px;
  color: #cfe4ff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

/* ——— Ana sayfa duyuru modalı (viewport ortası, altta yalnızca Kapat) ——— */
html.duyuru-modal-open {
  overflow: hidden;
}

.duyuru-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.duyuru-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.duyuru-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.duyuru-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 920px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.duyuru-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.duyuru-modal-head {
  padding: 22px 22px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.duyuru-modal-head .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 10px;
}

.duyuru-modal-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
}

.duyuru-modal-date {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.duyuru-modal-body {
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.duyuru-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.duyuru-modal-files {
  padding: 0 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duyuru-modal-files a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
}

.duyuru-modal-gallery {
  padding: 0 22px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.duyuru-modal-gallery a {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.duyuru-modal-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.duyuru-modal-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.duyuru-modal-kapat-btn {
  min-width: 160px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 10px 24px rgba(32, 65, 165, 0.28);
}

.duyuru-modal-kapat-btn:hover {
  filter: brightness(1.05);
}

.duyuru-modal-kapat-btn:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
}
