/* ============================================================
   Evrensel Anaokulu — özel eklemeler
   (tema/Elementor dosyalarına dokunulmadan, en son yüklenir)
   ============================================================ */

/* ---------- Header logosu: yuvarlak rozet + okul adı ---------- */
.ev-logo { display: inline-flex !important; align-items: center; gap: 12px; text-decoration: none !important; }
.elementor-widget-theme-site-logo img,
.elementor-element-eea7b01 img {
  width: 68px !important;
  max-width: none !important;
  height: 68px !important;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(27, 42, 82, .18));
}
.ev-logo-yazi { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.ev-logo-yazi strong {
  font-family: "Catamaran", sans-serif; font-weight: 800; font-size: 23px;
  color: var(--ky-primary, #C1122F); letter-spacing: -.2px;
}
.ev-logo-yazi small {
  font-family: "Catamaran", sans-serif; font-weight: 700; font-size: 12.5px;
  color: var(--ky-secondary, #263E79); margin-top: 4px; letter-spacing: .2px;
}

/* Logo ile menü arasına nefes payı (ekran daraldıkça azalır) */
.elementor-element-2e2c99c { margin-left: 34px !important; }

@media (max-width: 1399px) {
  .elementor-element-2e2c99c { margin-left: 18px !important; }
  .ev-logo-yazi small { display: none; }
}
@media (max-width: 1279px) {
  .elementor-element-2e2c99c { margin-left: 12px !important; }
  .elementor-widget-theme-site-logo img,
  .elementor-element-eea7b01 img { width: 58px !important; height: 58px !important; }
  .ev-logo-yazi strong { font-size: 20px; }
  .elementor-nav-menu--main > li > a.elementor-item { padding-left: 9px !important; padding-right: 9px !important; }
}
@media (max-width: 1024px) {
  .elementor-widget-theme-site-logo img,
  .elementor-element-eea7b01 img { width: 60px !important; height: 60px !important; }
  .elementor-element-2e2c99c { margin-left: 0 !important; }
  .ev-logo-yazi small { display: block; }
}
@media (max-width: 767px) {
  .elementor-widget-theme-site-logo img,
  .elementor-element-eea7b01 img { width: 50px !important; height: 50px !important; }
  .ev-logo { gap: 8px; }
  .ev-logo-yazi strong { font-size: 18px; }
  .ev-logo-yazi small { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .ev-logo-yazi small { display: none; }
}

/* Alt bilgi logosu — kare rozet */
.elementor-element-e07f9d9 img { width: 130px !important; height: 130px !important; object-fit: contain; }

/* ---------- Sağ alt WhatsApp butonu ---------- */
.ky-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .75), 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ky-whatsapp:hover,
.ky-whatsapp:focus {
  background: #1EBE5B;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, .85), 0 2px 8px rgba(0, 0, 0, .2);
}
.ky-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  display: block;
}

/* Hafif dikkat çekme nabzı */
.ky-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: ky-nabiz 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ky-nabiz {
  0%   { transform: scale(1);    opacity: .85; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 767px) {
  .ky-whatsapp { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .ky-whatsapp svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ky-whatsapp::after { animation: none; }
  .ky-whatsapp:hover { transform: none; }
}

@media print {
  .ky-whatsapp { display: none; }
}

/* ---------- Mobil menü paneli: tam genişlik, başlığın altında ---------- */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--ky-menu-top, 96px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 99980;
    max-height: calc(100vh - var(--ky-menu-top, 96px));
    overflow-y: auto;
    background: #fff;
    border-top: 3px solid var(--ky-primary, #C1122F);
    box-shadow: 0 22px 44px -18px rgba(27, 42, 82, .45);
  }
  .elementor-nav-menu--dropdown .elementor-item {
    padding: 16px 24px !important;
    font-size: 17px !important;
    font-weight: 700;
    border-bottom: 1px solid #EDEDED;
  }
  .elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
  .elementor-nav-menu--dropdown .elementor-item:hover,
  .elementor-nav-menu--dropdown .elementor-item:focus {
    background: #FBF4EE !important;
    color: #C1122F !important;
  }
  /* Menü açıkken arka planı karart */
  .ky-menu-perde {
    position: fixed;
    inset: 0;
    background: rgba(27, 42, 82, .45);
    z-index: 99970;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .ky-menu-perde.acik { opacity: 1; pointer-events: auto; }

  /* Hamburger butonu belirgin olsun */
  .elementor-menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #FBF4EE !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Galeri lightbox okları: ikonu tam ortala ---------- */
#demoLb .lb-btn,
#demoLb .lb-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}
#demoLb .lb-btn { font-size: 24px; }
#demoLb .lb-close { font-size: 26px; }

/* ---------- Giriş animasyonu emniyeti ----------
   Elementor'ın animasyon betiği çalışmazsa içerik gizli kalmasın. */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---------- Mobilde yatay kayma emniyeti ---------- */
html, body { max-width: 100%; }

/* Geç yüklenen görseller sayfayı aşağı itmesin */
body { overflow-anchor: none; }
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
}


/* ============================================================
   Evrensel Anaokulu — ana sayfa ve içerik eklemeleri
   ============================================================ */

/* Hero başlığı SEO için h1; temanın h6 görünümü korunur */
@media (min-width: 1025px) {
  .elementor-2 .elementor-element.elementor-element-fcca182 h1.elementor-heading-title { font-size: 62px; line-height: 1.08em; }
}
.elementor-element-fcca182 h1.elementor-heading-title {
  font-family: "Catamaran", sans-serif; font-weight: 800; margin: 0;
  color: var(--ky-dark, #1B2A52);
}

/* Üst menü açılır alt menü */
@media (min-width: 1025px) {
  .elementor-element-2e2c99c .elementor-nav-menu--main .sub-menu {
    min-width: 270px; border-radius: 0 0 14px 14px; overflow: hidden;
    border-top: 3px solid var(--ky-primary, #C1122F);
    box-shadow: 0 22px 44px -18px rgba(27, 42, 82, .45);
  }
  .elementor-element-2e2c99c .elementor-nav-menu--main .sub-menu a.elementor-sub-item {
    padding: 12px 20px !important; font-weight: 700; font-size: 15px;
  }
}

/* İçerik kartları (değerler, projeler) */
.ky-sayfa .ev-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 22px 0 30px; }
.ky-sayfa .ev-kart {
  background: #fff; border-radius: 20px; padding: 22px 24px;
  border-top: 5px solid var(--ky-primary, #C1122F);
  box-shadow: 0 18px 40px -26px rgba(27, 42, 82, .55);
}
.ky-sayfa .ev-kart:nth-child(4n+2) { border-top-color: var(--ky-secondary, #263E79); }
.ky-sayfa .ev-kart:nth-child(4n+3) { border-top-color: #E0A100; }
.ky-sayfa .ev-kart:nth-child(4n+4) { border-top-color: #3A77BD; }
.ky-sayfa .ev-kart h4 { margin: 0 0 8px; font-size: 18.5px; font-weight: 800; color: var(--ky-dark, #1B2A52); }
.ky-sayfa .ev-kart p { margin: 0; font-size: 15.5px; line-height: 1.7; }

/* Kurucu fotoğrafı */
.ky-sayfa .ev-kurucu {
  float: right; width: 300px; margin: 6px 0 24px 36px; text-align: center;
}
.ky-sayfa .ev-kurucu img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  border-radius: 24px; box-shadow: 0 24px 50px -26px rgba(27, 42, 82, .6);
  border: 6px solid #fff;
}
.ky-sayfa .ev-kurucu figcaption { margin-top: 12px; }
.ky-sayfa .ev-kurucu figcaption strong { display: block; font-size: 19px; color: var(--ky-dark, #1B2A52); }
.ky-sayfa .ev-kurucu figcaption span { font-size: 14px; font-weight: 700; color: var(--ky-primary, #C1122F); }
.ky-sayfa .ev-imza { margin-top: 26px; color: var(--ky-dark, #1B2A52); }
@media (max-width: 767px) {
  .ky-sayfa .ev-kurucu { float: none; width: 100%; max-width: 320px; margin: 0 auto 26px; }
}

/* Alıntı */
.ky-sayfa .ev-alinti {
  clear: both; margin: 36px 0 8px; padding: 28px 32px; border-radius: 22px;
  background: var(--ky-cream, #FBF4EE); border-left: 6px solid var(--ky-primary, #C1122F);
  font-size: 19px; line-height: 1.7; font-weight: 700; color: var(--ky-secondary, #263E79);
}
.ky-sayfa .ev-alinti cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; color: var(--ky-primary, #C1122F); }

/* Bilgi kutusu ve adımlar */
.ky-sayfa .ev-bilgi {
  padding: 20px 24px; border-radius: 18px; margin: 0 0 24px;
  background: rgba(193, 18, 47, .07); color: var(--ky-dark, #1B2A52); font-size: 17px;
}
.ky-sayfa .ev-adimlar { counter-reset: adim; list-style: none; padding: 0; margin: 20px 0 28px; }
.ky-sayfa .ev-adimlar li {
  counter-increment: adim; position: relative; padding: 4px 0 18px 62px; margin: 0;
}
.ky-sayfa .ev-adimlar li::before {
  content: counter(adim); position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: var(--ky-primary, #C1122F);
}
.ky-sayfa .ev-adimlar li:nth-child(2)::before { background: var(--ky-secondary, #263E79); }
.ky-sayfa .ev-adimlar li:nth-child(3)::before { background: #E0A100; }

/* Logo + okul adı sığsın: logo sütunu içeriği kadar, menü sütunu kalan alan */
@media (min-width: 1025px) {
  .elementor-67 .elementor-element.elementor-element-77bb08e { width: auto !important; flex: 0 0 auto; }
  .elementor-67 .elementor-element.elementor-element-1c836f5 { width: auto !important; flex: 1 1 auto; }
  .elementor-67 .elementor-element.elementor-element-d00ed29 { width: auto !important; flex: 0 0 auto; }
}

/* Mobilde hero dairesine sığsın */
@media (max-width: 767px) {
  .elementor-2 .elementor-element.elementor-element-8b7ca5c .elementor-heading-title { font-size: 5.4vw; }
  .elementor-2 .elementor-element.elementor-element-fcca182 .elementor-heading-title { font-size: 6vw; line-height: 1.45em; }
}

/* Mobil başlık tek satır: telefon ve Ön Kayıt butonu başlıkta gizlenir.
   Arama ve ön kayıt için hero butonu, menüdeki "Online Ön Kayıt" ve WhatsApp butonu kullanılır. */
@media (max-width: 767px) {
  .elementor-67 .elementor-element.elementor-element-d00ed29 { display: none !important; }
  .elementor-67 .elementor-element.elementor-element-77bb08e { width: auto !important; flex: 1 1 auto; }
  .elementor-67 .elementor-element.elementor-element-1c836f5 { width: auto !important; flex: 0 0 auto; }
}

/* Form alanları kutu genişliğini aşmasın, hepsi aynı hizada dursun */
.ky-form input, .ky-form textarea, .ky-form select { box-sizing: border-box; max-width: 100%; }
