/* GÜNCELLEMELER - Ana styles.css'e eklenecek */

/* === ARAMA BUTONU === */
.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
  flex-shrink: 0;
}
/* Masaüstünde yalnızca desktop butonu görünsün */
.announcement-actions .search-toggle-btn {
  display: inline-flex;
}
.search-toggle-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}

/* === ARAMA MODALI === */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-modal.is-open {
  display: flex;
}
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}
.search-modal-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: search-pop 0.2s ease;
}
@keyframes search-pop {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
}
.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #111827;
  background: transparent;
  font-family: inherit;
}
.search-modal-input::placeholder { color: #9ca3af; }
.search-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.search-modal-close:hover { color: #111827; background: #f3f4f6; }
.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-results:empty { padding: 0; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.search-result-item:hover { background: #f9fafb; }
.search-result-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 2px;
}
.search-result-desc {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-title mark {
  background: #fef3c7;
  color: #92400e;
  border-radius: 2px;
  padding: 0 1px;
}
.search-no-result {
  padding: 24px 18px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}
.search-hint {
  padding: 20px 18px;
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
}

/* Announcement Bar Güncellemeleri */
.announcement-bar { 
  width: 100%; 
  max-width: 100vw;
  background: #7EB6E2; /* Logo mavi tonu (uyumlu) */
  color: #ffffff; 
  font-weight: 700; 
  letter-spacing: 0.6px; 
  padding: 12px 0; 
  overflow-x: hidden;
  box-sizing: border-box;
}

.announcement-inner { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 24px; 
}

.announcement-spacer { 
  width: 220px; 
}

.announcement-text { 
  margin: 0; 
  font-size: 14px; 
  text-align: center; 
  flex: 1; 
}

.announcement-text-short {
  display: none;
}

.announcement-actions { 
  display: flex; 
  align-items: center; 
  width: 220px; 
  justify-content: flex-end; 
}

.announcement-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: #ffffff; 
  font-weight: 600; 
  font-size: 13px; 
  text-decoration: none; 
  padding: 9px 20px; 
  border-radius: 12px; 
  background: rgba(255,255,255,0.24); 
  transition: all 300ms ease; 
  border: 1px solid rgba(255,255,255,0.45); 
}

.announcement-link:hover { 
  background: rgba(255,255,255,0.3); 
  transform: translateY(-2px); 
  border-color: rgba(255,255,255,0.6); 
  box-shadow: 0 6px 16px rgba(0,0,0,0.16); 
}

.login-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.login-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Header Güncellemeleri - Logo Taşma Sistemi */
.site-header { 
  position: sticky !important;
  top: 50px; 
  z-index: 50; 
  backdrop-filter: saturate(140%) blur(10px); 
  background: rgba(255,255,255,0.80); 
  background-image: url('../img/ataturk.jpg');
  background-size: cover;
  background-position: center 70%;
  /* background-attachment: fixed kaldırıldı - scroll performansı için */
  border-bottom: 1px solid rgba(212,175,55,0.15); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
  animation: fadeInDown 600ms ease-out; 
  transition: all 0.4s ease; 
  padding: 8px 0;
  overflow: visible;
  will-change: padding;
  margin: 0 auto;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.site-header.is-top { 
  background: rgba(255,255,255,0.95); 
  border-bottom-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02); 
  padding: 20px 0 12px 0;
}

.site-header.is-scrolled { 
  background: rgba(255,255,255,0.98); 
  border-bottom-color: rgba(212,175,55,0.2); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  padding: 8px 0;
}

@media (min-width: 901px) {
  .site-header.desktop-header-hidden {
    display: none !important;
  }
}

.nav-wrap { 
  /* Grid layout: left menu | center logo | right menu */
  position: relative; 
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; 
  gap: 8px; 
  padding: 0 24px;
  min-height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  margin: 0 auto;
  justify-items: center;
}

.mobile-menu-toggle {
  display: none;
}

.nav-left { 
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: start;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  position: relative;
  z-index: 50;
  grid-column: 1;
}

.nav-right { 
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  padding-right: 0;
  margin-left: 0;
  position: relative;
  z-index: 50;
  grid-column: 3;
}

.left-nav { flex-shrink: 0; }
.right-nav { flex-shrink: 0; }

.left-nav ul { display: flex; gap: 32px; justify-content: flex-start; flex-wrap: nowrap; align-items: center; }
.right-nav ul { display: flex; gap: 32px; justify-content: flex-end; flex-wrap: nowrap; align-items: center; }
.nav-home { 
  color: var(--color-primary); 
  font-weight: 700; 
  font-size: 14px; 
  text-decoration: none; 
  transition: all 300ms ease; 
  white-space: nowrap; 
  padding: 8px 12px; 
  border-radius: 6px; 
  border-bottom: 2px solid transparent; 
}

.nav-home:hover { 
  color: var(--color-primary); 
  border-bottom-color: #7EB6E2;
  background: rgba(126, 182, 226, 0.08); 
}

/* Logo Güncellemeleri - Scroll Animasyonlu */
.floating-brand { 
  position: relative; 
  left: auto;
  top: auto;
  transform: none;
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 0; 
  color: var(--color-primary); 
  font-weight: 700; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 1100;
  flex-shrink: 0;
  pointer-events: auto;
  grid-column: 2;
  justify-self: center;
}

.floating-brand a {
  pointer-events: auto;
  cursor: pointer;
}

.floating-brand:hover { 
  transform: translateY(-2px);
}

.site-header.is-top .floating-brand {
  top: auto;
  margin-bottom: 4px;
}

.site-header.is-top .brand-logo { 
  width: 120px !important; 
  height: 120px !important; 
  border-radius: 14px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  filter: drop-shadow(0 10px 28px rgba(30,64,175,0.28)); 
  transform: none;
}

.site-header.is-scrolled .floating-brand {
  top: auto;
}

.site-header.is-scrolled .brand-logo { 
  width: 50px !important; 
  height: 50px !important; 
  border-radius: 8px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  filter: drop-shadow(0 3px 10px rgba(30,64,175,0.18)); 
  transform: translateY(0);
}

.brand-logo { 
  width: 80px !important; 
  height: 80px !important; 
  border-radius: 8px; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  filter: drop-shadow(0 3px 10px rgba(30,64,175,0.18)); 
}

.floating-brand:hover .brand-logo { 
  filter: drop-shadow(0 10px 28px rgba(30,64,175,0.3)); 
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  padding: 8px;
  z-index: 100005;
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 12px;
  right: 12px;
  touch-action: manipulation;
}

.mobile-menu-toggle:active {
  transform: scale(0.92);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: var(--color-secondary);
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: var(--color-secondary);
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent !important;
  z-index: 9998;
  opacity: 0 !important;
  transition: none;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  pointer-events: auto !important;
  opacity: 0 !important;
}

/* Basit responsive düzenlemeler */
@media (max-width: 1024px) {
  /* Hamburger menü göster - Tablet için */
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100005;
    width: 48px;
    height: 48px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.93);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav-overlay {
    display: block;
  }

  .nav-left {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 100000;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 0 32px;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .nav-left.mobile-active {
    left: 0;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-nav a {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-dropdown > a {
    width: 100%;
    padding: 16px 24px;
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    background: #f9f9f9;
  }

  .nav-submenu.submenu-2col,
  .nav-submenu.submenu-1col {
    display: none;
    grid-template-columns: 1fr;
  }

  .nav-dropdown.open .nav-submenu {
    display: grid !important;
  }

  .nav-submenu a,
  .nav-submenu .submenu-card {
    padding: 14px 32px;
    font-size: 15px;
  }

  .nav-wrap {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  
  .nav-right {
    margin-left: auto;
    gap: 12px;
    padding-right: 60px;
  }

  .nav-donation {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .announcement-text { font-size: 12px; }

  /* Logo scaling için tablet */
  .site-header.is-top .brand-logo {
    width: 90px !important;
    height: 90px !important;
  }

  .site-header.is-scrolled .brand-logo {
    width: 45px !important;
    height: 45px !important;
  }

  .brand-logo {
    width: 65px !important;
    height: 65px !important;
  }
}

@media (max-width: 768px) {
  /* Ensure mobile menu sits above overlay and is fully clickable */
  .nav-left { z-index: 100000 !important; pointer-events: auto !important; }
  .mobile-nav-overlay { z-index: 9998 !important; }
  /* Mobile header padding */
  .site-header {
    padding: 8px 0 !important;
  }

  /* Mobile: remove white header block and logo, keep menu functional */
  .site-header {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  .site-header::before {
    display: none !important;
  }

  .nav-logo,
  .floating-brand,
  .brand-logo {
    display: none !important;
  }

  .nav-wrap {
    min-height: 0 !important;
    padding: 0 12px !important;
  }

  .site-header.is-top {
    padding: 12px 0 8px 0 !important;
  }

  .site-header.is-scrolled {
    padding: 6px 0 !important;
  }

  /* Announcement bar mobil düzeni */
  .announcement-bar {
    padding: 10px 0;
  }
  
  .announcement-spacer {
    display: none;
  }
  
  .announcement-text {
    display: none;
  }
  
  .announcement-text-short {
    display: block;
    font-size: 11px;
    letter-spacing: 0.3px;
  }
  
  .announcement-inner {
    gap: 12px;
    justify-content: space-between;
    flex-direction: row;
  }
  
  .announcement-actions {
    width: auto;
  }
  
  .login-text {
    display: none;
  }
  
  .announcement-link {
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .login-image {
    width: 24px;
    height: 24px;
  }

  /* Hamburger menüyü göster - UNIFIED WITH CLOSE */
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 100005 !important;
    width: 52px;
    height: 52px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.93);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu-toggle:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0.94);
  }

  .hamburger-line {
    background: var(--color-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-toggle.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-secondary);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1),
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    background: var(--color-secondary);
    box-shadow: 0 1px 3px rgba(212, 175, 55, 0.5);
  }


  /* Mobile header whitespace - daha geniş */
  .site-header {
    padding: 0 !important;
    min-height: 0 !important;
    will-change: transform;
  }

  .site-header.is-top {
    padding: 0 !important;
    min-height: 0 !important;
  }

  .site-header.is-scrolled {
    padding: 0 !important;
    min-height: 0 !important;
  }

  /* Logo mobilde daha görünür */
  .floating-brand {
    position: fixed !important;
    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100001 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    grid-column: auto !important;
  }

  /* Mobile logo sizing - daha belirgin */
  .brand-logo {
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 5px 15px rgba(30,64,175,0.3)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .site-header.is-top .brand-logo {
    width: 74px !important;
    height: 74px !important;
  }

  .site-header.is-scrolled .brand-logo {
    width: 52px !important;
    height: 52px !important;
  }

  .nav-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 12px;
    justify-content: space-between;
    grid-template-columns: none;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Mobile nav-left: tam ekran menu */
  .nav-left {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    flex-direction: column;
    padding: 70px 20px 30px 20px;
    gap: 0;
    z-index: 100001 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex !important;
    pointer-events: auto !important;
    box-sizing: border-box;
    will-change: left;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .nav-left.mobile-active {
    left: 0 !important;
  }

  /* Mobile nav-left linkler */
  .nav-left ul {
    width: 100%;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
  }

  .nav-left li {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    list-style: none;
  }

  .nav-left li a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    border-left: 4px solid transparent;
  }

  .nav-left li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }

  .nav-left li a:hover::before,
  .nav-left li a:active::before,
  .nav-left li a:focus::before {
    opacity: 1;
  }

  .nav-left li a:hover,
  .nav-left li a:active,
  .nav-left li a:focus {
    background-color: transparent;
    outline: none;
    border-left-color: var(--color-secondary);
    padding-left: 24px;
  }

  /* Dropdown mobile - modern minimal design - VERTICAL LAYOUT */
  .nav-left .nav-submenu {
    position: static !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 10px !important;
    display: none !important;
    padding: 8px 0;
    grid-template-columns: 1fr !important;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-sizing: border-box;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideDown {
    from {
      max-height: 0;
      opacity: 0;
    }
    to {
      max-height: 600px;
      opacity: 1;
    }
  }

  .nav-dropdown.open .nav-submenu {
    display: grid !important;
  }

  .nav-left .nav-submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px 10px 36px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto !important;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(255,255,255,0.15);
    border-left: 3px solid transparent;
  }

  .nav-left .nav-submenu a::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    font-size: 10px;
    flex-shrink: 0;
    width: 14px;
    text-align: left;
    opacity: 0.6;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-secondary);
  }

  .nav-left .nav-submenu a:hover::before,
  .nav-left .nav-submenu a:focus::before {
    opacity: 1;
    transform: translateX(2px);
  }

  .nav-left .nav-submenu a:hover,
  .nav-left .nav-submenu a:active,
  .nav-left .nav-submenu a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    border-left-color: var(--color-secondary);
    padding-left: 40px;
  }

  .nav-left .nav-submenu span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-left .nav-dropdown.open .nav-submenu {
    display: grid !important;
  }

  .nav-left .nav-submenu li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-left li.show-submenu .nav-submenu {
    display: flex !important;
  }

  .nav-left .nav-submenu li a {
    padding-left: 40px;
    font-size: 13px;
  }

  /* Mobile bağış butonları */
  .nav-left li.mobile-only {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-donation-mobile,
  .bank-info-btn-mobile,
  .nav-mobile-action {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: left;
    border-radius: 0;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
    color: #ffffff;
    border-left: 4px solid transparent;
  }

  .nav-mobile-action {
    background: none;
    color: #ffffff;
  }

  .nav-mobile-donation {
    background: none;
    color: #ffffff;
  }

  .nav-mobile-bank {
    background: none;
    color: #ffffff;
  }

  .nav-donation-mobile,
  .nav-mobile-donation {
    background: none;
    color: #ffffff;
    border: none;
  }

  .nav-donation-mobile:active,
  .nav-mobile-donation:active {
    transform: none;
  }

  .bank-info-btn-mobile,
  .nav-mobile-bank {
    background: none;
    color: #ffffff;
    border: none;
  }

  .bank-info-btn-mobile:active,
  .nav-mobile-bank:active {
    background: none;
    transform: none;
  }

  .nav-right {
    display: none !important;
  }

  /* Mobile menu close button wrapper */
  .mobile-menu-close-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-close {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
  }

  .mobile-menu-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  .mobile-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 0 24px 0;
    align-items: center;
    justify-content: center;
  }

  @media (min-width: 769px) {
    .nav-wrap {
      display: grid !important;
      grid-template-columns: 1fr auto 1fr !important;
      align-items: center !important;
      gap: 24px !important;
      padding: 0 24px !important;
      max-width: 1400px !important;
      margin: 0 auto !important;
    }

    .nav-left {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      width: auto !important;
      max-width: none !important;
      height: auto !important;
      background: transparent !important;
      flex-direction: row !important;
      padding: 0 !important;
      gap: 16px !important;
      z-index: 50 !important;
      transition: none !important;
      box-shadow: none !important;
      overflow: visible !important;
      display: flex !important;
      align-items: center;
      justify-content: flex-start;
      grid-column: 1;
    }

    .nav-left ul {
      display: flex !important;
      flex-direction: row !important;
      gap: 4px !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
    }

    .nav-left li {
      position: relative !important;
    }

    .nav-left li a {
      color: var(--color-text) !important;
      padding: 10px 14px !important;
      font-size: 15px !important;
      font-weight: 500 !important;
      background: transparent !important;
    }

    .nav-left li a:hover {
      background: rgba(30, 64, 175, 0.08) !important;
    }

    .floating-brand {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      transform: none !important;
      grid-column: 2 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      z-index: 100 !important;
      width: auto !important;
      height: auto !important;
    }

    /* Desktop logo scroll animasyonu - aktif */
    .brand-logo {
      width: 80px !important;
      height: 80px !important;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .site-header.is-top .brand-logo {
      width: 120px !important;
      height: 120px !important;
      transform: translateY(25%) !important;
      filter: drop-shadow(0 10px 28px rgba(30,64,175,0.28)) !important;
    }

    .site-header.is-scrolled .brand-logo {
      width: 50px !important;
      height: 50px !important;
      transform: translateY(0) !important;
      filter: drop-shadow(0 3px 10px rgba(30,64,175,0.18)) !important;
    }

    .site-header.is-top .floating-brand {
      top: auto !important;
    }

    .site-header.is-scrolled .floating-brand {
      top: auto !important;
    }

    .nav-right {
      display: flex !important;
      position: relative !important;
      top: auto !important;
      right: auto !important;
      width: auto !important;
      max-width: none !important;
      height: auto !important;
      background: transparent !important;
      flex-direction: row !important;
      padding: 0 !important;
      gap: 16px !important;
      z-index: 50 !important;
      transition: none !important;
      box-shadow: none !important;
      overflow: visible !important;
      align-items: center;
      justify-content: flex-end;
      grid-column: 3;
    }

    .nav-right .site-nav ul {
      display: flex !important;
      flex-direction: row !important;
      gap: 4px !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
    }

    .nav-right .site-nav li a {
      padding: 10px 14px !important;
      font-size: 15px !important;
      font-weight: 500 !important;
    }

    /* Desktop'ta mobil butonları gizle */
    .nav-donation-mobile,
    .bank-info-btn-mobile {
      display: none !important;
    }

    /* Hamburger menüyü desktop'ta gizle */
    .mobile-menu-toggle {
      display: none !important;
    }
  }

  .nav-left.mobile-active {
    left: 0;
  }

  .nav-right.mobile-active {
    right: 0;
  }

  .mobile-nav-overlay {
    display: none !important;
  }
  .mobile-nav-overlay.active {
    display: block !important;
  }

  .left-nav,
  .right-nav {
    width: 100%;
  }

  .left-nav ul,
  .right-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .left-nav ul li,
  .right-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(126, 182, 226, 0.15);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: none;
    min-height: 48px;
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(126, 182, 226, 0.2);
    cursor: pointer;
  }

  .site-nav {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: 0;
  }

  .site-nav a:active {
    background: rgba(126, 182, 226, 0.15);
  }

  .nav-dropdown > a::after {
    float: right;
  }

  .nav-submenu {
    position: static;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    background: rgba(126, 182, 226, 0.05);
    border-radius: 0;
    padding: 8px 0;
    min-width: 100%;
    display: none !important;
  }

  .nav-submenu.mega-menu {
    grid-template-columns: 1fr;
    display: none !important;
  }

  .nav-submenu a {
    padding: 12px 24px;
    font-size: 15px;
    display: flex !important;
    width: 100%;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .nav-dropdown.open .nav-submenu {
    display: grid !important;
  }

  .nav-donation-mobile {
    width: calc(100% - 40px);
    min-width: auto;
    padding: 14px 20px;
    justify-content: center;
    margin: 16px 20px 8px 20px;
    min-height: 52px;
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background: #153aa1;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .bank-info-btn-mobile {
    width: calc(100% - 40px);
    height: 52px;
    border-radius: 10px;
    border: none;
    justify-content: center;
    gap: 12px;
    margin: 8px 20px;
    min-height: 52px;
    background: #153aa1;
    color: white;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
    display: flex !important;
    align-items: center;
  }

  .bank-info-icon {
    width: 28px;
    height: 28px;
  }

  .bank-info-btn::after {
    content: 'Banka Bilgileri';
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
  }

  /* Logo mobilde header içinde responsive */
  .floating-brand {
    position: fixed !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100002 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    grid-column: auto !important;
  }

  /* Mobile logo sizing - no fixed positions, responsive to header state */
  .brand-logo {
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 4px 12px rgba(30,64,175,0.25)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .site-header.is-top .brand-logo {
    width: 70px !important;
    height: 70px !important;
  }

  .site-header.is-scrolled .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }

  /* Final override: keep mobile header area and logo hidden */
  .nav-logo,
  .floating-brand,
  .brand-logo {
    display: none !important;
  }
}


/* Site Nav Güncellemeleri */
.site-nav a { 
  display: inline-block; 
  padding: 10px 14px; 
  border-radius: 5px; 
  color: var(--color-text); 
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); 
  border-bottom: 2px solid transparent; 
  white-space: nowrap; 
  font-size: 17px; 
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: #7EB6E2;
  background: rgba(126, 182, 226, 0.06);
}

/* Dropdown Menü - Desktop */
.nav-dropdown { position: relative; }

.nav-submenu { 
  position: absolute; 
  top: calc(100% + 8px); 
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: max-content;
  min-width: 200px; 
  max-width: 600px; 
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%); 
  border: 1px solid rgba(126, 182, 226, 0.25); 
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.18); 
  padding: 12px; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 120; 
  pointer-events: none; 
  backdrop-filter: blur(4px);
}

.nav-dropdown.open .nav-submenu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateX(-50%) translateY(0); 
  pointer-events: auto; 
}

.nav-submenu.mega-menu { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.nav-submenu a { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  text-align: left; 
  padding: 12px 14px; 
  border-radius: 8px; 
  border: 1px solid rgba(126, 182, 226, 0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(126, 182, 226, 0.03) 100%);
  font-weight: 600; 
  font-size: 14px;
  color: var(--color-text); 
  transition: all 250ms ease;
}

.nav-submenu a:hover { 
  background: linear-gradient(135deg, rgba(126, 182, 226, 0.15) 0%, rgba(126, 182, 226, 0.08) 100%);
  color: var(--color-primary); 
  transform: translateX(4px);
  border-color: rgba(126, 182, 226, 0.35);
  box-shadow: 0 4px 12px rgba(126, 182, 226, 0.12);
}

.submenu-icon {
  color: #7EB6E2;
  font-size: 16px;
  transition: all 250ms ease;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-submenu a:hover .submenu-icon {
  transform: scale(1.15);
  color: var(--color-primary);
}

/* Dropdown Arrow Düzeltme */
.nav-dropdown > a::after { 
  content: ''; 
  width: 6px; 
  height: 6px; 
  border-right: 2px solid currentColor; 
  border-bottom: 2px solid currentColor; 
  transform: rotate(45deg); 
  display: inline-block; 
  transition: transform 200ms ease; 
  margin-left: 6px;
  flex-shrink: 0;
}

.nav-dropdown.open > a::after { 
  transform: rotate(225deg); 
}

/* Mobilde göritünen ek butonlar */
.mobile-only {
  display: flex !important;
}

.mobile-only-divider {
  display: flex !important;
}

.nav-mobile-action,
.nav-mobile-bank {
  display: block;
  width: 100%;
  padding: 14px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.nav-mobile-action:hover,
.nav-mobile-bank:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
  .mobile-only,
  .mobile-only-divider {
    display: none !important;
  }
}


/* Bank Modal Logo Küçültme */
.bank-modal-logo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  padding: 6px;
}

/* Nav Donation Button Yenileme - Yanına Geniş Layout */
.nav-donation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #7EB6E2;
  color: #0a223b;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #6da6d6;
  box-shadow: 0 4px 12px rgba(110, 166, 214, 0.35);
  text-shadow: none;
  transition: all 300ms ease;
  flex-direction: row;
  flex-wrap: nowrap;
  font-size: 13px;
  min-width: 120px;
}

.nav-donation:hover {
  transform: translateY(-2px) scale(1.02);
  background: #6da6d6;
  box-shadow: 0 8px 20px rgba(110, 166, 214, 0.5);
  color: #08233f;
  text-decoration: none;
}

.nav-donation:active {
  transform: translateY(-1px) scale(1);
}

.nav-donation-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  flex-shrink: 0;
  order: -1;
  align-self: center;
}

.nav-donation-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1.15;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
}

.donation-line {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.donation-ampersand {
  display: inline;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.95;
  margin: 0 2px;
  line-height: 1;
}

.mobile-nav-overlay.active {
  pointer-events: auto;
}

/* Bank Info Button */
.bank-info-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(126, 182, 226, 0.35);
  background: linear-gradient(135deg, rgba(126, 182, 226, 0.1) 0%, rgba(126, 182, 226, 0.05) 100%);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 300ms ease;
  z-index: 50;
  flex-shrink: 0;
  margin-left: 8px; /* sağda mesafe */
}

.bank-info-btn:hover {
  background: linear-gradient(135deg, rgba(126, 182, 226, 0.18) 0%, rgba(126, 182, 226, 0.12) 100%);
  border-color: #7EB6E2;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(126, 182, 226, 0.3);
}

.bank-info-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 64, 175, 0.97) 0%, rgba(30, 64, 175, 0.95) 100%);
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-text strong {
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-accept {
  background: #d4af37;
  color: #0a223b;
  border-color: #d4af37;
}

.cookie-btn-accept:hover {
  background: #e5c158;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 16px;
  }
  
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .cookie-consent-text {
    text-align: center;
    min-width: 0;
  }
  
  .cookie-consent-actions {
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* === HIDE ON SCROLL === */
.site-header.hide-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  /* Don't hide header on mobile */
  .site-header.hide-header {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: initial !important;
    border: initial !important;
    box-shadow: initial !important;
    overflow: visible !important;
  }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-up-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
  transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0;
  line-height: 1;
  pointer-events: none;
}

.scroll-up-btn:hover {
  background: linear-gradient(135deg, #e6c547 0%, #d4af37 100%);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  transform: scale(1.1) translateY(-5px);
}

.scroll-up-btn:active {
  transform: scale(0.95) translateY(-2px);
}

.scroll-up-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.scroll-up-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Mobile responsiveness for scroll-up button */
@media (max-width: 768px) {
  .scroll-up-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .scroll-up-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ==================== TARİHİ ANLAR / BAŞARI ANI KARTLARI ==================== */

/* History Grid - Mobile-First */
.history-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(212, 175, 55, 0.1);
  animation: fadeInUp 600ms ease-out forwards;
  opacity: 0;
}

.history-card:nth-child(1) {
  animation-delay: 100ms;
}

.history-card:nth-child(2) {
  animation-delay: 200ms;
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-secondary);
}

.history-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  transition: transform 300ms ease;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.history-card:hover .history-image {
  transform: scale(1.03);
}

.history-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.history-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  font-family: var(--font-serif);
}

.history-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.history-content p em {
  font-style: italic;
  color: var(--color-text);
  font-weight: 500;
}

.history-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(30, 64, 175, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 8px;
  width: fit-content;
  letter-spacing: 0.3px;
}

/* ==================== MODERNİZE EDİLMİŞ DROPDOWN MENÜ - FÜTÜRİSTİK STİL ==================== */

/* Desktop Dropdown - Modern Futuristic Style */
@media (min-width: 769px) {
  .nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    right: auto;
    left: 0;
    transform: translateY(-16px);
    min-width: 700px;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--color-secondary) 0%, #7EB6E2 100%) 1;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25), 
                0 0 60px rgba(126, 182, 226, 0.15), 
                0 20px 60px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    pointer-events: none;
  }

  .nav-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    clip-path: polygon(0% 100%, 100% 100%, 50% 0%);
    border-top: 2px solid;
    border-image: linear-gradient(135deg, var(--color-secondary) 0%, #7EB6E2 100%) 1;
  }

  .nav-submenu.mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
  }

  .nav-dropdown.open .nav-submenu,
  .nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown:hover > a,
  .nav-dropdown.open > a {
    pointer-events: auto;
  }

  .nav-dropdown .nav-submenu {
    pointer-events: none;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown.open .nav-submenu {
    pointer-events: auto;
  }

  /* Submenu Card - Enhanced Modern Style */
  .submenu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 10px;
    border: 2px solid rgba(30, 64, 175, 0.08);
    background: #ffffff;
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text);
    transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .submenu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(212, 175, 55, 0.3) 100%);
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: -1;
  }

  .submenu-card:hover {
    background: #f8f9fa;
    border-color: var(--color-secondary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
    color: var(--color-primary);
  }

  .submenu-card:hover::before {
    opacity: 0.06;
  }

  .submenu-icon {
    font-size: 28px;
    line-height: 1;
    transition: all 200ms ease;
    display: block;
  }

  .submenu-card:hover .submenu-icon {
    transform: scale(1.15) rotate(8deg);
  }

  .submenu-card span:last-child {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.2px;
  }
}

  /* ==================== TARIHI ANLAR SHOWCASE ==================== */
  .history-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: start;
  }

  .history-main-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
  }

  .history-main-media {
    position: relative;
    overflow: hidden;
    background: #0f172a;
  }

  .history-main-media img {
    width: 100%;
    height: clamp(260px, 38vw, 420px);
    object-fit: cover;
    display: block;
  }

  .history-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(6px);
  }

  .history-main-body {
    padding: 20px 22px 24px;
  }

  .history-main-body h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 24px);
    color: var(--color-primary);
  }

  .history-main-body p {
    margin: 0 0 14px;
    color: #475569;
  }

  .history-main-body time {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .history-side-list {
    display: grid;
    gap: 16px;
  }

  .history-side-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
    text-decoration: none;
    color: inherit;
  }

  .history-side-card img {
    width: 96px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
  }

  .history-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  }

  .history-side-body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #0f172a;
  }

  .history-side-body time {
    display: inline-block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
  }

  .history-side-body p {
    margin: 0;
    font-size: 13px;
    color: #475569;
  }

  @media (max-width: 980px) {
    .history-showcase {
      grid-template-columns: 1fr;
    }

    .history-side-card {
      grid-template-columns: 110px 1fr;
    }
  }

  @media (max-width: 640px) {
    .history-main-media img {
      height: 240px;
    }

    .history-side-card {
      grid-template-columns: 1fr;
    }

    .history-side-card img {
      width: 100%;
      height: 160px;
    }
  }

/* Mobile Dropdown Menu - Modern Stack */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .nav-submenu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    min-width: 100%;
    max-width: none;
    padding: 12px 0;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 8px;
    display: none;
  }

  .nav-submenu.mega-menu {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nav-dropdown.open .nav-submenu {
    display: grid;
  }

  .submenu-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(30, 64, 175, 0.08);
    background: rgba(30, 64, 175, 0.03);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    transition: all 180ms ease;
    position: relative;
  }

  .submenu-card::before {
    display: none;
  }

  .submenu-card:active {
    background: rgba(30, 64, 175, 0.08);
    transform: scale(0.98);
  }

  .submenu-icon {
    font-size: 24px;
    line-height: 1;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .submenu-card span:last-child {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
  }

  .submenu-card:hover {
    background: rgba(30, 64, 175, 0.06);
    border-color: var(--color-primary);
    transform: translateX(4px);
  }
}

/* ==================== TARİHİ ANLAR MOBILE OPTİMİZASYONU ==================== */

@media (max-width: 768px) {
  .history-grid {
    gap: 20px;
  }

  .history-card {
    flex-direction: column;
    border-radius: 12px;
  }

  .history-image {
    height: 240px;
  }

  .history-content {
    padding: 20px 16px;
  }

  .history-content h3 {
    font-size: 16px;
  }

  .history-content p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .history-grid {
    gap: 16px;
  }

  .history-card {
    border-radius: 10px;
  }

  .history-image {
    height: 200px;
  }

  .history-content {
    padding: 16px 14px;
    gap: 10px;
  }

  .history-content h3 {
    font-size: 15px;
  }

  .history-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  .history-year {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ==================== MOBİL MENÜ DROPDOWN İLERİ OPTİMİZASYON ==================== */

/* Mobile Menu - Hamburger Menü Açıktığında Dropdown'lar */
@media (max-width: 768px) {
  .left-nav .nav-dropdown {
    width: 100%;
  }

  .left-nav .nav-submenu {
    margin-top: 4px;
    padding: 8px 0;
  }

  .left-nav .submenu-card {
    margin: 0 8px;
    padding: 12px 12px;
    border-radius: 8px;
  }

  .left-nav .submenu-card:active {
    background: rgba(30, 64, 175, 0.1);
  }

  /* Alt dropdown animasyonu */
  .nav-dropdown.open .nav-submenu {
    animation: slideDown 200ms ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== HERO SLIDER RESPONSIVE ENHANCEMENTS ==================== */

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }

  .hero-slider {
    height: 100%;
  }

  .hero-slide {
    height: 100%;
  }

  .hero-slide img {
    height: 100%;
  }

  .hero-inner {
    padding: 40px 0;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-text .lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text .lead {
    font-size: 14px;
  }
}

/* ==================== SECTION RESPONSIVE IMPROVEMENTS ==================== */

@media (max-width: 768px) {
  .section {
    padding: 32px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 14px;
  }

  .grid.two,
  .grid.three {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 24px 0;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 13px;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

/* ==================== FUTURISTIC DROPDOWN (DESKTOP) ==================== */

@media (min-width: 769px) {
  :root {
    --nav-glow: rgba(56, 189, 248, 0.35);
    --nav-core: rgba(14, 116, 144, 0.9);
    --nav-edge: rgba(125, 211, 252, 0.55);
  }

  .nav-dropdown > a {
    position: relative;
    isolation: isolate;
  }

  .nav-dropdown > a::before {
    content: '';
    position: absolute;
    inset: -6px -10px;
    border-radius: 10px;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.12), transparent 55%),
                linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(30, 64, 175, 0.08));
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: -1;
  }

  .nav-dropdown > a:hover::before,
  .nav-dropdown.open > a::before {
    opacity: 1;
  }

  .nav-dropdown > a::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(56, 189, 248, 0.9);
    border-bottom: 2px solid rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 12px var(--nav-glow);
  }

  .nav-submenu {
    background: linear-gradient(135deg, rgba(8, 21, 44, 0.96), rgba(10, 35, 74, 0.98));
    border: 1px solid rgba(125, 211, 252, 0.55);
    box-shadow: 0 18px 50px rgba(5, 15, 35, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.25), 0 0 24px var(--nav-glow);
    backdrop-filter: blur(12px) saturate(140%);
    padding: 18px;
  }

  .nav-submenu::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.22), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.16), transparent 50%);
    pointer-events: none;
    opacity: 0.85;
  }

  .nav-submenu.mega-menu {
    gap: 14px;
  }

  .nav-submenu.submenu-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 380px;
    max-width: 460px;
  }

  .nav-submenu.submenu-1col {
    grid-template-columns: 1fr;
    min-width: 220px;
    max-width: 260px;
  }

  .nav-submenu .submenu-card {
    background: linear-gradient(145deg, rgba(10, 23, 45, 0.92), rgba(14, 40, 82, 0.9));
    border: 1px solid rgba(125, 211, 252, 0.4);
    color: #e6f4ff;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.15);
    position: relative;
    overflow: hidden;
  }

  .nav-submenu .submenu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(56, 189, 248, 0.18), transparent);
    transform: translateX(-120%);
    transition: transform 300ms ease;
  }

  .nav-submenu .submenu-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--nav-edge);
    box-shadow: 0 10px 24px rgba(2, 12, 26, 0.45), 0 0 20px var(--nav-glow);
    background: linear-gradient(145deg, rgba(10, 23, 45, 0.96), rgba(14, 40, 82, 0.96));
    color: #e6f4ff;
  }

  .nav-submenu .submenu-card:hover::after {
    transform: translateX(120%);
  }

  .nav-submenu .submenu-card .submenu-icon {
    color: #a5f3fc;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  }

  .nav-submenu .submenu-card span:last-child {
    letter-spacing: 0.3px;
  }
}

/* ==================== MODERN SCROLL EFFECTS ==================== */

/* Smooth scroll behavior for all sections */
section {
  scroll-margin-top: 80px;
}

/* Card entrance animation */
.card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

/* Reveal animations */
.reveal {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.reveal[data-reveal-order="1"] { animation-delay: 0.1s; }
.reveal[data-reveal-order="2"] { animation-delay: 0.2s; }
.reveal[data-reveal-order="3"] { animation-delay: 0.3s; }

/* Smooth section transitions */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

/* Hover effects for interactive elements */
button, a[href*="#"], a[data-link] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content fade-in for images */
img {
  transition: opacity 0.4s ease;
}

img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Card hover effects */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
}

/* Text selection styling */
::selection {
  background-color: var(--color-secondary);
  color: #0a1420;
}

/* Smooth transitions for all state changes */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Disable transitions for animations */
.reveal,
.card,
.fadeInUp,
.slideInLeft,
.slideInRight,
.scaleIn {
  transition-duration: 0ms;
}

/* Modern scrollbar styling (Webkit browsers) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Firefox scrollbar */
* {
  scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#scrollToTop.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

#scrollToTop:hover {
  background: linear-gradient(135deg, #e6c547 0%, #d4af37 100%);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ========================================================
   LIVE TICKER PULSE ANIMATION
   ======================================================== */
@keyframes ticker-pulse {
  0%, 100% { box-shadow: 0 0 4px #4ade80; transform: scale(1); }
  50%       { box-shadow: 0 0 10px #4ade80; transform: scale(1.25); }
}

/* ========================================================
   ETKİNLİK TAKVİMİ  — TSGL Calendar
   ======================================================== */

/* Wrapper */
/* Takvim bölümü — daha az dikey boşluk */
#takvim.section {
  padding-top: 32px;
  padding-bottom: 32px;
}
#takvim .section-header {
  margin-bottom: 16px;
}
#takvim .section-header h2 {
  font-size: clamp(16px, 2.5vw, 22px);
}
#takvim .section-header p {
  font-size: 13px;
  margin-top: 4px;
}

.cal-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--font-sans);
}

/* Header (nav + month label) */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.cal-month-label {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
  color: var(--color-primary);
  flex: 1;
  text-align: center;
}

.cal-nav-btn {
  background: none;
  border: 1.5px solid var(--color-secondary);
  border-radius: 6px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}
.cal-nav-btn:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Add / Login row */
.cal-add-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cal-add-event-btn {
  font-size: 12px;
  padding: 6px 14px;
}
.cal-login-hint {
  font-size: 12px;
  color: var(--color-muted);
  justify-content: flex-end;
}
.cal-login-hint a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: underline;
}

/* Day-name header row */
.cal-grid-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}
.cal-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 0;
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 16px;
}

/* Cell */
.cal-cell {
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all 180ms ease;
  padding: 3px;
  position: relative;
  min-height: 36px;
}
.cal-cell.cal-empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.cal-has-events {
  cursor: pointer;
  background: rgba(21, 58, 161, 0.04);
  border-color: rgba(21, 58, 161, 0.18);
}
.cal-cell.cal-has-events:hover {
  background: rgba(21, 58, 161, 0.10);
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(21,58,161,0.15);
  z-index: 1;
}
.cal-cell.cal-today {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.cal-cell.cal-today .cal-day-num { color: #fff; font-weight: 800; }
.cal-cell.cal-today .cal-dot { background: var(--color-secondary) !important; }

.cal-day-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.cal-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* Event list for this month */
.cal-event-list {
  border-top: 1.5px solid var(--color-secondary);
  padding-top: 12px;
}
.cal-event-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.cal-events-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-event-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 200ms ease;
}
.cal-event-item:hover { box-shadow: 0 4px 16px rgba(21,58,161,0.10); }
.cal-event-poster {
  width: 100%;
  max-height: 130px;
  overflow: hidden;
  flex-shrink: 0;
}
.cal-event-poster img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.cal-event-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  flex: 1;
}
.cal-event-date-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
  text-align: center;
}
.cal-event-info { flex: 1; }
.cal-event-info strong { font-size: 13px; color: var(--color-text); display: block; margin-bottom: 2px; }
.cal-event-info p { margin: 0 0 2px; font-size: 12px; color: var(--color-muted); line-height: 1.4; }
.cal-event-info small { font-size: 11px; color: var(--color-muted); }
.cal-delete-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(220,38,38,0.3);
  color: #dc2626;
  border-radius: 5px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 10px;
  transition: all 180ms ease;
  align-self: flex-start;
}
.cal-delete-btn:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

.cal-no-events {
  text-align: center;
  color: var(--color-muted);
  font-size: 12px;
  padding: 10px 0;
}

/* Modal */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  backdrop-filter: blur(4px);
}
.cal-modal-overlay[hidden] { display: none; }
.cal-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 380px;
  width: 100%;
  max-height: calc(100vh - 48px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
}
.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.cal-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--color-primary);
  margin: 0;
}
.cal-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
  line-height: 1;
  transition: color 180ms;
}
.cal-modal-close:hover { color: var(--color-text); }
.cal-modal-body {
  padding: 14px 20px 20px;
  flex: 1;
  overflow-y: auto;
}

/* Form */
.cal-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  margin: 10px 0 4px;
}
.cal-form label:first-of-type { margin-top: 0; }
.cal-form input, .cal-form textarea, .cal-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  transition: border-color 180ms;
  outline: none;
  display: block;
}
.cal-form input:focus, .cal-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21,58,161,0.10);
}
.cal-form textarea { resize: vertical; min-height: 60px; }
.cal-form-msg {
  margin: 8px 0 0;
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 10px;
}
.cal-form-msg[hidden] { display: none; }
.cal-form-msg--error   { background: #fff5f5; color: #dc2626; border: 1px solid #fecaca; }
.cal-form-msg--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.cal-form-msg--info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cal-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-end;
}

/* Poster drop zone */
.cal-poster-drop {
  border: 2px dashed rgba(0,0,0,0.18);
  border-radius: 8px;
  transition: border-color 200ms, background 200ms;
  overflow: hidden;
}
.cal-poster-drop:hover, .cal-poster-drop.cal-poster-dragover {
  border-color: var(--color-primary);
  background: rgba(21,58,161,0.04);
}
.cal-poster-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--color-muted);
  user-select: none;
}
.cal-poster-label:hover { color: var(--color-primary); }

/* Day popup */
.cal-popup {
  position: absolute;
  z-index: 500;
  background: #fff;
  border: 1.5px solid var(--color-secondary);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 260px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.cal-popup[hidden] { display: none; }
.cal-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-muted);
  padding: 2px;
  line-height: 1;
}
.cal-popup-date {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding-right: 20px;
}
.cal-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-popup-title { font-weight: 600; font-size: 13px; display: block; }
.cal-popup-desc { margin: 2px 0 0; font-size: 12px; color: var(--color-muted); }
.cal-popup-list small { font-size: 11px; color: var(--color-muted); }

/* Mobile tweaks */
@media (max-width: 600px) {
  .cal-cell { min-height: 30px; border-radius: 5px; }
  .cal-day-num { font-size: 10px; }
  .cal-dot { width: 3px; height: 3px; }
  .cal-nav-btn { width: 28px; height: 28px; font-size: 14px; }
}

.cal-poster-thumb {
  cursor: zoom-in;
  transition: opacity 150ms;
}
.cal-poster-thumb:hover { opacity: 0.88; }

/* ── Lightbox (görsel + RSVP paneli) ────────────────────────── */
.cal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cal-lightbox.is-open   { opacity: 1; pointer-events: auto; }
.cal-lightbox[hidden]   { display: none !important; }

.cal-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ana kutu — iki sütun */
.cal-lightbox-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: min(96vw, 1060px);
  max-height: 92vh;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #16181f;
  box-shadow: 0 28px 90px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.07);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.26,0.64,1), opacity 0.25s ease;
}
.cal-lightbox.is-open .cal-lightbox-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Kapat butonu */
.cal-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 17px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.cal-lightbox-close:hover { background: rgba(210,30,30,0.72); transform: scale(1.1); }

/* İç düzen: görsel sol + panel sağ */
.cal-lightbox-inner {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
}

/* Görsel alanı */
.cal-lightbox-media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0e13;
  overflow: hidden;
}

.cal-lightbox-loader {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: #fff;
  border-radius: 50%;
  animation: calLbSpin 0.7s linear infinite;
  position: absolute;
}
.cal-lightbox-loader[hidden] { display: none; }
@keyframes calLbSpin { to { transform: rotate(360deg); } }

.cal-lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-height: calc(92vh - 56px);
}
.cal-lightbox-img.is-loaded { opacity: 1; }

/* Altyazı */
.cal-lightbox-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  pointer-events: none;
}
.cal-lightbox-caption[hidden] { display: none; }
.cal-lightbox-caption-title { font-size: 0.88rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-lightbox-caption-date  { font-size: 0.78rem; color: rgba(255,255,255,0.6); white-space: nowrap; flex-shrink: 0; }

/* RSVP Paneli */
.cal-lightbox-panel {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #1e2030;
  border-left: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.cal-lightbox-panel[hidden] { display: none; }

.lb-panel-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lb-panel-title      { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7c8aff; margin-bottom: 6px; }
.lb-panel-event-name { font-size: 1rem; font-weight: 700; color: #f0f2ff; line-height: 1.3; margin-bottom: 4px; }
.lb-panel-event-date { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.lb-panel-counts {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lb-panel-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.75);
}
.lb-panel-yes-label strong { color: #4ade80; }
.lb-panel-no-label  strong { color: #f87171; }
.lb-panel-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(248,113,113,0.35);
  overflow: hidden;
}
.lb-panel-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #4ade80;
  transition: width 0.4s ease;
  min-width: 4px;
}

.lb-panel-chips-row {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lb-chip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 6px;
}
.lb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lb-chip {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
}
.lb-chip--yes { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.lb-chip--no  { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }

/* Form bölümü */
.lb-rsvp-section {
  padding: 16px 18px 20px;
  margin-top: auto;
}
.lb-rsvp-prompt {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.lb-rsvp-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.lb-rsvp-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.lb-rsvp-yes {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}
.lb-rsvp-yes:hover, .lb-rsvp-yes.active {
  background: rgba(74,222,128,0.22);
  border-color: #4ade80;
  transform: translateY(-1px);
}
.lb-rsvp-no {
  background: rgba(248,113,113,0.1);
  color: #f87171;
  border-color: rgba(248,113,113,0.25);
}
.lb-rsvp-no:hover, .lb-rsvp-no.active {
  background: rgba(248,113,113,0.22);
  border-color: #f87171;
  transform: translateY(-1px);
}
.lb-rsvp-form { display: flex; flex-direction: column; gap: 8px; }
.lb-rsvp-name {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #f0f2ff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.lb-rsvp-name:focus     { border-color: #7c8aff; }
.lb-rsvp-name::placeholder { color: rgba(255,255,255,0.3); }
.lb-rsvp-form-actions   { display: flex; gap: 8px; }
.lb-rsvp-submit {
  flex: 1;
  padding: 9px;
  background: #7c8aff;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-rsvp-submit:hover    { background: #5a6aee; }
.lb-rsvp-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.lb-rsvp-cancel {
  padding: 9px 14px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  border: none;
  border-radius: 9px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-rsvp-cancel:hover { background: rgba(255,255,255,0.12); }
.lb-rsvp-msg { font-size: 0.78rem; text-align: center; color: #f87171; margin: 0; }
.lb-rsvp-msg--ok { color: #4ade80; }

/* Mobil: dikey düzen */
@media (max-width: 640px) {
  .cal-lightbox { padding: 0; align-items: flex-end; }
  .cal-lightbox-box {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 18px 18px 0 0;
  }
  .cal-lightbox-inner { flex-direction: column; }
  .cal-lightbox-media {
    min-height: 220px;
    max-height: 40vh;
  }
  .cal-lightbox-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    max-height: 55vh;
  }
}

/* ── RSVP ──────────────────────────────────────────────────── */
.cal-rsvp {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 10px 16px 12px;
  background: #fafbff;
  border-radius: 0 0 12px 12px;
}
.cal-rsvp-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.cal-rsvp-sep { color: rgba(0,0,0,0.25); }
.cal-rsvp-yes-count { color: #16a34a; font-weight: 600; }
.cal-rsvp-no-count  { color: #dc2626; font-weight: 600; }
.cal-rsvp-names-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--color-muted);
}
.cal-rsvp-names-label { font-weight: 600; margin-right: 2px; }
.cal-rsvp-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.cal-rsvp-chip--yes { background: #dcfce7; color: #15803d; }
.cal-rsvp-chip--no  { background: #fee2e2; color: #b91c1c; }
.cal-rsvp-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cal-rsvp-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--color-text);
  transition: all 160ms ease;
}
.cal-rsvp-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cal-rsvp-yes-btn.active { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.cal-rsvp-no-btn.active  { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.cal-rsvp-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-rsvp-form[hidden] { display: none; }
.cal-rsvp-name-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 150ms;
}
.cal-rsvp-name-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(21,58,161,0.10); }
.cal-rsvp-form-actions { display: flex; gap: 6px; }
.cal-rsvp-submit {
  padding: 5px 16px;
  border-radius: 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms;
}
.cal-rsvp-submit:hover { opacity: 0.85; }
.cal-rsvp-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.cal-rsvp-cancel {
  padding: 5px 14px;
  border-radius: 20px;
  background: none;
  border: 1.5px solid rgba(0,0,0,0.15);
  font-size: 12px;
  cursor: pointer;
  color: var(--color-muted);
}
.cal-rsvp-msg {
  font-size: 11px;
  color: #dc2626;
  margin: 0;
}
.cal-rsvp-msg[hidden] { display: none; }
