/*
 * Bileşenler: bölüm başlığı, duyuru/etkinlik kutuları, hızlı erişim kartları,
 * menü öğesi görünüm seçenekleri, üst menü ve sosyal medya ikonları.
 */

/* ------------------------------------------------------------------ bölüm başlığı */
.deu-section-head { margin: 0 0 clamp(1.25rem, 3vw, 2rem); }
.deu-section-head__title { margin: 0; color: var(--deu-heading, #0f172a); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.deu-section-head__subtitle { margin: .5rem 0 0; color: #475569; font-size: 1rem; }
.entry-content .deu-section-head__title { margin-top: 0; }
:is(.deu-layout--no-sidebar, .deu-layout--full-width) .deu-row--w-full > .deu-row__head {
  width: min(var(--deu-container, 1320px), calc(100% - 48px));
  margin-inline: auto;
}
:is(.deu-layout--no-sidebar, .deu-layout--full-width) .deu-row--w-full-bleed > .deu-row__head { padding-inline: clamp(16px, 3vw, 32px); }
.deu-row--text-light .deu-section-head__title,
.deu-row--text-light .deu-section-head__subtitle { color: #fff; }

/* ------------------------------------------------------------------ duyuru / etkinlik kutusu (gorunum="kutu") */
.deu-news-box {
  --deu-box: #3f51a8;
  --deu-box-soft: #e6e9f8;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.75rem 1.75rem;
  border: 1px solid #e5e7eb;
  border-top: 4px solid var(--deu-box);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.entry-content .deu-news-box__heading,
.deu-news-box__heading {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--deu-box);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}
.deu-news-box__heading i { font-size: 1.05em; }
.deu-news-box__list { flex: 1; margin: 0; padding: 0; list-style: none; }
.deu-news-box__item { display: flex; align-items: center; gap: 1rem; margin: 0; padding: .6rem 0; border-bottom: 1px solid #eef0f3; }
.deu-news-box__item:last-child { border-bottom: 0; }
.deu-news-box__date {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  min-height: 3.2rem;
  border-radius: 10px;
  background: var(--deu-box-soft);
  color: var(--deu-box);
  line-height: 1;
}
.deu-news-box__date b { font-size: 1.35rem; font-weight: 700; }
.deu-news-box__date small { margin-top: .2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.deu-news-box__title { color: #111827; font-size: .98rem; font-weight: 600; line-height: 1.6; }
.entry-content .deu-news-box__title a,
.deu-news-box__title a { color: inherit; text-decoration: none; }
.deu-news-box__title a:hover,
.deu-news-box__title a:focus-visible { color: var(--deu-box); text-decoration: underline; }
.deu-news-box__title .deu-announcement-title { color: inherit !important; }
.deu-news-box__empty { flex: 1; color: #64748b; }
.entry-content a.deu-news-box__button,
.deu-news-box__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.4rem;
  padding: .65rem 1.4rem;
  border: 1px solid var(--deu-box);
  border-radius: 999px;
  color: var(--deu-box);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s, color .18s;
}
.deu-news-box__button:hover,
.deu-news-box__button:focus-visible { background: var(--deu-box); color: #fff; }

/* ------------------------------------------------------------------ hızlı erişim kartları */
.deu-quick-cards__grid {
  display: grid;
  grid-template-columns: repeat(var(--deu-quick-cols, 4), minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deu-quick-cards__item { margin: 0; }
.entry-content a.deu-quick-card,
.deu-quick-card {
  --deu-quick-accent: var(--deu-blue, #1d5fa8);
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.deu-quick-cards__item[style] .deu-quick-card { --deu-quick-accent: inherit; }
.deu-quick-card:hover,
.deu-quick-card:focus-visible { border-color: color-mix(in srgb, var(--deu-quick-accent) 45%, #e5e7eb); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.deu-quick-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--deu-quick-accent) 12%, #fff);
  color: var(--deu-quick-accent);
  font-size: 1.25rem;
}
.deu-quick-card__text { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.deu-quick-card__title { color: #0f172a; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.deu-quick-card__desc { color: #475569; font-size: .9rem; line-height: 1.35; }
.deu-quick-card:hover .deu-quick-card__title { color: var(--deu-quick-accent); }
@media (max-width: 1024px) { .deu-quick-cards__grid { grid-template-columns: repeat(min(var(--deu-quick-cols, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) { .deu-quick-cards__grid { grid-template-columns: minmax(0, 1fr); } .deu-quick-card { padding: 1.2rem; } }
.deu-col:not(.deu-col--span-12) .deu-quick-cards__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ------------------------------------------------------------------ menü öğesi görünüm seçenekleri */
.deu-menu-bold > a,
a.deu-menu-bold { font-weight: 800 !important; }
.deu-menu-colored > a,
a.deu-menu-colored { color: var(--deu-menu-color) !important; }
.deu-menu-icon { margin-right: .3rem; }
/* Ana menü 1100 px'te mobil menüye geçer; gizleme seçenekleri aynı kırılma noktasını kullanır. */
@media (min-width: 1101px) { .deu-hide-desktop { display: none !important; } }
@media (max-width: 1100px) { .deu-hide-mobile { display: none !important; } }

/* Üst menü (üst çubuk) hap düğmeleri: sade ve özel renkli varyantlar */
.topbar-link--plain { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; }
.topbar-link--plain i { color: #bae6fd; }
.topbar-link--plain:hover,
.topbar-link--plain:focus-visible { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .16); color: #fff; }
.topbar-link--custom { border: 1px solid var(--deu-menu-color); background: var(--deu-menu-color); color: #fff; }
.topbar-link--custom i { color: #fff; }
.topbar-link--custom:hover,
.topbar-link--custom:focus-visible { filter: brightness(1.12); color: #fff; }
.utility-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }

/* Sosyal medya: üst çubukta solda; üzerine gelince platform rengi */
.social-links { flex-wrap: wrap; }
.social-link:hover,
.social-link:focus-visible { background: var(--deu-social-brand, rgba(255, 255, 255, .16)); color: #fff; }
.deu-social-shortcode { display: flex; gap: .35rem; }
.deu-social-shortcode .social-link { color: var(--deu-navy, #002b49); background: #f1f5f9; }
.deu-social-shortcode .social-link:hover,
.deu-social-shortcode .social-link:focus-visible { color: #fff; }
@media (max-width: 760px) {
  .utility-layout { grid-template-columns: auto minmax(0, 1fr) !important; }
  .utility-actions .topbar-pill-link span { display: none; }
  .utility-actions .topbar-pill-link { padding: .3rem .45rem; }
}

/* Koyu mod */
html.dark .deu-news-box, body.deu-a11y-dark-mode .deu-news-box,
html.dark .deu-quick-card, body.deu-a11y-dark-mode .deu-quick-card { background: #172033 !important; border-color: #334e68 !important; }
html.dark .deu-news-box__title, body.deu-a11y-dark-mode .deu-news-box__title,
html.dark .deu-quick-card__title, body.deu-a11y-dark-mode .deu-quick-card__title,
html.dark .deu-section-head__title, body.deu-a11y-dark-mode .deu-section-head__title { color: #f8fafc !important; }
html.dark .deu-quick-card__desc, body.deu-a11y-dark-mode .deu-quick-card__desc,
html.dark .deu-section-head__subtitle, body.deu-a11y-dark-mode .deu-section-head__subtitle { color: #cbd5e1 !important; }


/* ------------------------------------------------------------------ açık mod kontrast düzeltmeleri (WCAG AA) */
#masthead .header-tools .quick-access-trigger { border-color: #0369a1; background: #0369a1; }
#masthead .header-tools .quick-access-trigger:hover,
#masthead .header-tools .quick-access-trigger:focus-visible { border-color: #075985; background: #075985; }
#masthead .header-tools .quick-access-trigger i { color: #fff; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: #00609a; }
.entry-content a.sidebar-view-all { color: #002b49; }
.search-live-chevron,
.search-live-external-icon { color: #64748b; }
#cookie-floating-btn.cookie-floating-btn { background: linear-gradient(135deg, #334155 0%, #1e3fae 100%); }
#cookie-consent-modal .cookie-fa { color: #1e3fae; }


/* ------------------------------------------------------------------ mega menü ve mobil menü düzeltmeleri */
/* Mega menü paneli öğeye göre ortalanır; ekran kenarına taşmasın diye --deu-mega-shift (js/script.js) ile kaydırılır. */
.primary-nav .menu > li.deu-mega-menu > .sub-menu { transform: translate(calc(-50% + var(--deu-mega-shift, 0px)), -5px); }
.primary-nav .menu > li.deu-mega-menu:hover > .sub-menu,
.primary-nav .menu > li.deu-mega-menu:focus-within > .sub-menu { transform: translateX(calc(-50% + var(--deu-mega-shift, 0px))); }
/* Gizli paneller yatay kaydırma çubuğu oluşturmasın (yalnız yatay kırpma; açılır menüler aşağı taşabilir). */
#masthead { overflow-x: clip; }
/* Mobil menüde liste işaretleri gösterilmez; alt menüler girintiyle ayrılır. */
.drawer .menu,
.drawer .menu ul { margin: 0; padding: 0; list-style: none; }
.drawer .menu .sub-menu { padding-left: 1rem; }
.drawer .menu .sub-menu a { font-weight: 600; }


/* ------------------------------------------------------------------ mobil başlık */
/* Menü, arama ve Hızlı Erişim düğmeleri her ekranda görünür; yer yetmezse logo daralır. */
@media (max-width: 1100px) {
  #masthead .header-main { gap: .75rem; min-width: 0; }
  #masthead .brand { flex: 1 1 auto; min-width: 0; }
  #masthead .header-tools { flex: 0 0 auto; gap: .4rem; }
  #masthead .brand .brand-logo--image {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(var(--deu-logo-height, 68px), 56px);
    object-fit: contain;
    object-position: left center;
  }
  #masthead .brand > span { min-width: 0; }
  #masthead .brand .brand-logo--placeholder { flex-shrink: 0; }
  #masthead .brand-name,
  #masthead .brand-meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  #masthead .header-main { min-height: 64px; gap: .5rem; }
  #masthead .brand { gap: .5rem; }
  #masthead .brand .brand-logo--image { max-height: min(var(--deu-logo-height, 68px), 44px); }
  #masthead .brand .brand-logo--placeholder { flex: 0 0 40px; width: 40px; height: 40px; }
  #masthead .brand .brand-logo--placeholder i { font-size: 1.6rem; }
  #masthead .brand-meta { display: none; }
  #masthead .header-tools .quick-access-trigger { padding: .55rem .7rem; }
  #masthead .header-tools .quick-access-trigger span { display: none; }
  #masthead .header-tools .icon-button { flex: 0 0 auto; width: 40px; height: 40px; }
}
/* Logo görseli varken dar ekranda site adı gizlenir (ad çoğunlukla logoda yazılıdır). */
@media (max-width: 600px) {
  #masthead .brand:has(.brand-logo--image) > span { display: none; }
}
