/* ===========================================================
   Özel Renkli Dünyam Anaokulu - markaya özel ek stiller
   (ana tema dosyalarına dokunulmadan eklenmiştir)
   =========================================================== */

/* --- Genel: görseller asla taşmasın --- */
img { max-width: 100%; height: auto; }

/* WOW animasyonu içerik gizli kalmasına yol açmasın (hız + güvenlik) */
.wow { visibility: visible !important; }

/* --- Üst bar --- */
.header-top-section-4 { padding: 8px 0; }
.header-top-section-4 .contact-list { flex-wrap: wrap; }
.header-top-section-4 .contact-list li { white-space: nowrap; }
@media (max-width: 1300px) { .header-top-section-4 .contact-list li:nth-child(3) { display: none; } }
@media (max-width: 991px)  { .header-top-section-4 .contact-list li:nth-child(2) a { word-break: break-all; } }
@media (max-width: 767px)  { .header-top-section-4 .social-icon span { display: none; } }

/* --- Menü tek satıra sığsın (8 menü öğesi) --- */
.header-4 .header-main { gap: 18px; align-items: center; }
.header-4 { padding: 0; }
.header-4 .logo img { max-height: 50px; width: auto; }
@media (max-width: 575px) { .header-4 .logo img { max-height: 44px; } }
.header-4 .main-menu nav > ul > li { margin: 0 8px; }
.header-4 .main-menu nav > ul > li > a { font-size: 15px; padding: 14px 0; }
/* "Bilgi Al" butonu küçült */
.header-4 .header-button .theme-btn { padding: 9px 18px; font-size: 14px; }
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-4 .main-menu nav > ul > li { margin: 0 6px; }
    .header-4 .main-menu nav > ul > li > a { font-size: 14px; }
    .header-4 .header-button .theme-btn { padding: 9px 16px; font-size: 13.5px; }
}
.header-4 .login-icon { font-size: 19px; color: #303030; margin-right: 16px; transition: .3s; }
.header-4 .login-icon:hover { color: #F39F5F; }

/* --- Footer --- */
.footer-section .contact-info-area { gap: 24px; flex-wrap: wrap; }
.footer-section .contact-info-items .icon i { font-size: 26px; color: #F39F5F; }
.footer-section .contact-info-items { display: flex; align-items: center; gap: 16px; }
@media (max-width: 575px) {
    .footer-section .contact-info-area { flex-direction: column; align-items: flex-start; }
}

/* --- Blog kartları (anasayfa + blog listesi) --- */
.rd-card {
    background: #fff; border-radius: 18px; overflow: hidden; height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,.06); display: flex; flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
}
.rd-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.rd-card-thumb { display: block; overflow: hidden; }
.rd-card-thumb img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s ease; }
.rd-card:hover .rd-card-thumb img { transform: scale(1.07); }
.rd-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.rd-card-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; font-size: 14px; color: #8a8a8a; }
.rd-card-meta .cat { background: #fff1e6; color: #F39F5F; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.rd-card-meta i { color: #F39F5F; margin-right: 5px; }
.rd-card-body h3 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; }
.rd-card-body h3 a { color: #1c1c1c; transition: .3s; }
.rd-card-body h3 a:hover { color: #F39F5F; }
.rd-card-body p { color: #6f6f6f; margin-bottom: 18px; }
.rd-readmore { margin-top: auto; font-weight: 700; color: #F39F5F; }
.rd-readmore i { margin-left: 6px; transition: .3s; }
.rd-readmore:hover { color: #e0823c; }
.rd-readmore:hover i { margin-left: 10px; }

/* Şablon kartlarında görsel taşmasını engelle */
.clases-image img, .event-image img, .news-thumb img, .recent-thumb img,
.post-featured-thumb, .feature-value-image img { max-width: 100%; }
.event-image img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px 14px 0 0; }
.post-featured-thumb { min-height: 380px; border-radius: 16px; background-size: cover; background-position: center; }

/* Yorum (testimonial) - veli rolü */
.testimonial-content .rd-role { display: block; margin-top: 4px; color: #F39F5F; font-weight: 600; font-size: 14px; }

/* --- Galeri --- */
.gallery-section { padding: 100px 0; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
    background: linear-gradient(180deg, rgba(243,159,95,0) 40%, rgba(243,159,95,.88) 100%);
    display: flex; align-items: flex-end; padding: 22px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay span { color: #fff; font-weight: 700; font-size: 18px; }
.gallery-item .gallery-overlay .zoom {
    position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: #F39F5F; display: flex; align-items: center; justify-content: center;
}

/* --- Blog yazı içeriği tipografisi --- */
.post-content h2 { font-size: 30px; margin: 28px 0 14px; }
.post-content h3 { font-size: 23px; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; line-height: 1.85; }
.post-content ul, .post-content ol { margin: 0 0 18px 20px; }
.post-content ul li { list-style: disc; margin-bottom: 8px; }
.post-content ol li { list-style: decimal; margin-bottom: 8px; }
.post-content blockquote {
    border-left: 4px solid #F39F5F; background: #fff7f0; padding: 18px 24px;
    margin: 22px 0; border-radius: 8px; font-style: italic; color: #555;
}

/* --- WhatsApp sabit buton --- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff !important; display: flex; align-items: center; justify-content: center;
    font-size: 28px; z-index: 9999; box-shadow: 0 6px 20px rgba(37,211,102,.5); animation: wa-pulse 2.2s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Form mesajı --- */
.form-message { margin-top: 18px; font-weight: 600; }
.form-message.success { color: #2e7d32; }
.form-message.error { color: #c62828; }

/* --- Harita: daha küçük, kapsayıcı içinde, yuvarlatılmış --- */
.map-section { padding: 0 0 70px; }
.map-section .map-items { max-width: 1296px; margin: 0 auto; padding: 0 12px; }
.map-section .googpemap { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.map-section iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (max-width: 575px) { .map-section iframe { height: 260px; } }

/* --- İletişim ikonları --- */
.contact-info-items .icon i { color: #fff; }
.contact-info-area-2 .contact-info-items .icon { display: flex; align-items: center; justify-content: center; }

/* --- 404 --- */
.error-section { padding: 110px 0; }

/* --- E-posta / telefon görünümü: tema 'capitalize' uyguluyor; düzelt --- */
a[href^="mailto:"], a[href^="tel:"] { text-transform: none !important; }
.offcanvas__contact-text a[href^="mailto:"],
.contact-info-items a[href^="mailto:"],
.header-top-wrapper .link { text-transform: none !important; }

/* --- Bilgi etiketi anchor'ları (program/etkinlik kenar çubuğu) imleç --- */
.news-widget-categories ul li a:not([href]) { cursor: default; }
.blog-single-comment .con h5 a:not([href]),
.blog-single-comment .reply:not([href]) { cursor: default; }

/* --- Görseller yüklenirken arka plan (layout zıplamasını yumuşat) --- */
.gallery-item img, .rd-card-thumb img { background: #efe7df; }

/* --- Erişilebilirlik: klavye ile gezinmede odak halkası --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(243,159,95,.55); outline-offset: 2px;
}

/* --- Mobil menü (hamburger) düğmesi: tema stil vermemiş, görünür yap --- */
@media (max-width: 1199px) {
    .header-4 .header__hamburger { display: block !important; }
    .header-4 .sidebar__toggle {
        color: #303030; font-size: 24px; line-height: 1;
        width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
        border: 1px solid rgba(243,159,95,.40); border-radius: 10px; transition: .25s;
    }
    .header-4 .sidebar__toggle:hover,
    .header-4 .sidebar__toggle:active { color: #F39F5F; border-color: #F39F5F; background: #fff6ef; }
    .header-4 .header-main .header-right { gap: 14px; }
}

/* Offcanvas (açılan mobil panel) düzgün görünsün */
.offcanvas__info { z-index: 1041; }
.offcanvas__overlay.overlay-open { z-index: 1040; }

/* =====================================================================
   v2 düzeltmeleri (kullanıcı geri bildirimi)
   ===================================================================== */

/* --- Üst iletişim barı: KOYU zemin + beyaz yazı, ÇOK İNCE --- */
.header-top-section-4 {
    background: #243042; padding: 5px 0;          /* koyu lacivert, ince şerit */
    margin-bottom: 0 !important;                  /* tema 20px margin'i kaldır (header dengesi) */
    line-height: 1;
}
.header-top-section-4 .header-top-wrapper {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 18px;
    min-height: 0; padding: 0;
}
.header-top-section-4 .contact-list {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; margin: 0;
}
.header-top-section-4 .contact-list li {
    display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; line-height: 1.3;
}
.header-top-section-4 .contact-list li i { color: #F39F5F; }
.header-top-section-4 .contact-list a { color: #fff; }
.header-top-section-4 .contact-list a:hover { color: #F39F5F; }
.header-top-section-4 .social-icon { gap: 6px; }
.header-top-section-4 .social-icon span { color: #fff; font-size: 13px; }
.header-top-section-4 .social-icon a {
    width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; transition: .25s;
}
.header-top-section-4 .social-icon a:hover { background: #F39F5F; color: #fff; }
@media (max-width: 991px) {
    .header-top-section-4 .contact-list li:nth-child(3) { display: none; }      /* saat: gizle */
    .header-top-section-4 { font-size: 13px; }
}
@media (max-width: 767px) {
    .header-top-section-4 { display: none; }   /* mobilde sadeleştir (bilgiler footer/iletişimde) */
}

/* --- Özellik ikonları: hizayı düzelt, glyph net görünsün (renk/zemin temadan) --- */
.icon-items .icon, .value-icon-items .icon {
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-items .icon i, .value-icon-items .icon i { line-height: 1; }

/* --- İç sayfa meta (tarih/kategori/yazar) üst üste binmesin --- */
.post-content .post-list,
.news-details .post-list {
    display: flex !important; flex-wrap: wrap; align-items: center;
    gap: 8px 24px; margin: 0 0 14px; padding: 0; list-style: none;
}
.post-content .post-list li,
.news-details .post-list li {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    color: #6f6f6f; font-size: 15px; margin: 0 !important;
}
.post-content .post-list li i,
.news-details .post-list li i { color: #F39F5F; }
.post-featured-thumb { margin-bottom: 26px; }

/* --- Form inputları (iletişim + yorum): net, dolu, hizalı --- */
.contact-form-items .form-clt, .comment-form-items .form-clt { margin-bottom: 4px; }
.contact-form-items .form-clt span, .comment-form-items .form-clt span {
    display: block; font-size: 14px; font-weight: 600; color: #44525f; margin-bottom: 8px;
}
.contact-form-items input, .contact-form-items textarea,
.comment-form-items input, .comment-form-items textarea {
    width: 100%; border: 1px solid #e4e4e4; border-radius: 12px; background: #fafafa;
    padding: 14px 18px; font-size: 15px; color: #243042; transition: border-color .25s, box-shadow .25s;
}
.contact-form-items textarea, .comment-form-items textarea { min-height: 140px; resize: vertical; }
.contact-form-items input:focus, .contact-form-items textarea:focus,
.comment-form-items input:focus, .comment-form-items textarea:focus {
    border-color: #F39F5F; background: #fff; box-shadow: 0 0 0 3px rgba(243,159,95,.15); outline: none;
}
.contact-form-items input::placeholder, .comment-form-items input::placeholder,
.contact-form-items textarea::placeholder, .comment-form-items textarea::placeholder { color: #9aa3ab; }

/* --- Spam tuzağı (honeypot) gizli --- */
.rd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* --- "Biz Sizi Arayalım" geri arama formu (CTA) --- */
.rd-callback {
    background: #fff; border-radius: 20px; padding: 30px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,.16);
}
.rd-callback h3 { font-size: 23px; margin-bottom: 18px; color: #243042; }
.rd-callback .rd-field { margin-bottom: 14px; }
.rd-callback input {
    width: 100%; border: 1px solid #e7e7e7; border-radius: 12px; background: #fafafa;
    padding: 14px 18px; font-size: 15px; color: #243042; transition: .25s;
}
.rd-callback input:focus { border-color: #F39F5F; background: #fff; box-shadow: 0 0 0 3px rgba(243,159,95,.15); outline: none; }
.rd-callback .theme-btn { justify-content: center; border: none; cursor: pointer; }
.rd-callback-note { font-size: 12px; color: #9aa3ab; margin-top: 12px; line-height: 1.5; }

/* --- Google yorumları (testimonial) --- */
.rd-reviews-badge {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #fff; border: 1px solid #eee; border-radius: 999px; padding: 10px 22px;
    width: max-content; max-width: 100%; margin: 0 auto 40px; box-shadow: 0 8px 24px rgba(0,0,0,.05);
    font-size: 15px; color: #44525f; flex-wrap: wrap; text-align: center;
}
.rd-reviews-badge .rd-mini-stars { color: #FBBC05; letter-spacing: 2px; }
.rd-reviews-badge .rd-mini-stars .half { opacity: .4; }
.rd-review {
    background: #fff; border-radius: 18px; padding: 28px 26px; height: 100%;
    box-shadow: 0 12px 34px rgba(0,0,0,.07); display: flex; flex-direction: column;
}
.rd-review-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rd-avatar {
    width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 20px;
}
.rd-review-id { flex: 1; min-width: 0; }
.rd-review-id h6 { font-size: 17px; margin: 0; color: #243042; }
.rd-review-id span { font-size: 13px; color: #8a8a8a; }
.rd-review .rd-google { flex: 0 0 auto; }
.rd-stars { color: #FBBC05; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.rd-review p { color: #5b6676; line-height: 1.75; margin: 0 0 16px; flex: 1; }
.rd-review-src { font-size: 13px; color: #8a8a8a; display: inline-flex; align-items: center; gap: 6px; }
.rd-review-src i { color: #F39F5F; }

/* --- SAVUNMA: Swiper başlamadan/başlayamazsa slaytlar üst üste binmesin --- */
/* (JS gecikse ya da bir asset anlık hata verse bile sadece ilk slayt görünür) */
.swiper:not(.swiper-initialized) > .swiper-wrapper { display: block; }
.swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child) { display: none !important; }
.hero-slider:not(.swiper-initialized) .swiper-slide [data-animation] { opacity: 1 !important; }
/* Hero metni HER ZAMAN görünür: tema animasyon bitince 'animated' sınıfını
   kaldırdığı için ilk slaytta yazılar kaybolabiliyordu. Bu kuralla giriş
   hareketi korunur ama metin asla görünmez kalmaz. */
.hero-content [data-animation] { opacity: 1 !important; }

/* --- Hero: ilk slayt h1, diğerleri h2 ama görsel aynı --- */
.hero-content h1, .hero-content h2 {
    font-size: clamp(34px, 5vw, 64px); line-height: 1.1; font-weight: 800; color: #243042; margin: 0 0 18px;
}
.hero-content h1 span, .hero-content h2 span { color: #F39F5F; }

/* --- Banner: ilk slayt gerçek okul binası fotoğrafı (eski site gibi temiz) --- */
.rd-hero-photo { position: relative; background-position: center 32%; }
.rd-hero-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(18,26,42,.82) 0%, rgba(18,26,42,.62) 36%, rgba(18,26,42,.22) 68%, rgba(18,26,42,0) 100%);
}
.rd-hero-photo .container { position: relative; z-index: 2; }
.rd-hero-photo .hero-content h1,
.rd-hero-photo .hero-content h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.rd-hero-photo .hero-content h5 { color: #FFD9B8; }
.rd-hero-photo .hero-content p { color: rgba(255,255,255,.94); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 991px) {
    .rd-hero-photo::before {
        background: linear-gradient(180deg, rgba(18,26,42,.55) 0%, rgba(18,26,42,.7) 100%);
    }
}

/* --- Etkinlik: 'Tamamlandı' rozeti + tamamlandı notu --- */
.event-image { position: relative; }
.event-done-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: rgba(46,125,50,.95); color: #fff; font-size: 12px; font-weight: 700;
    padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.event-completed-note {
    margin-top: 24px; background: #eef8e8; border: 1px solid #cfe9c2; color: #2e6b32;
    border-radius: 12px; padding: 14px 18px; font-size: 15px;
}
.event-completed-note i { margin-right: 8px; }
.event-completed-note a { color: #2e6b32; font-weight: 700; text-decoration: underline; }

/* --- Etkinlik intro alt başlık (tema değişkeni yoksa) --- */
.subtitle-2 {
    display: inline-block; color: #F39F5F; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 10px; font-size: 15px;
}

/* === İLETİŞİM / FOOTER bilgi kutuları: ikon HER ZAMAN metnin yanında === */
/* (tema seçicileri yüksek özgüllükte olduğu için tam seçiciyle override) */
.contact-info-area .contact-info-items,
.contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items {
    flex-wrap: nowrap !important;
    align-items: center;
}
.contact-info-area .contact-info-items .icon,
.contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon { flex: 0 0 auto; }
.contact-info-area .contact-info-items .content,
.contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content { min-width: 0; }
.contact-info-area .contact-info-items .content h3,
.contact-info-area .contact-info-items .content h3 a,
.contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h3,
.contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h3 a {
    word-break: break-word; overflow-wrap: anywhere; white-space: normal;
}
@media (max-width: 991px) {
    .contact-info-area { flex-wrap: wrap; gap: 16px; }
    .contact-info-area .contact-info-items { padding-bottom: 0; width: 100%; }
}
@media (max-width: 575px) {
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 { padding: 20px 18px; }
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items { gap: 12px; }
    .contact-info-area .contact-info-items { gap: 14px; }
    .contact-info-area .contact-info-items .icon,
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon {
        width: 48px; height: 48px; line-height: 48px; }
    .contact-info-area .contact-info-items .icon i,
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .icon i { font-size: 19px; }
    .contact-info-area .contact-info-items .content h3,
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h3 { font-size: 16px; line-height: 1.4; }
    .contact-info-area .contact-info-items .content h3 a,
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items .content h3 a { font-size: 16px; }
}

/* === Footer "Son Yazılar" küçük görseller bozulmasın === */
.recent-post-area .recent-post-items .thumb,
.recent-post-area .recent-items .recent-thumb { overflow: hidden; border-radius: 10px; flex: 0 0 auto; }
.recent-post-area .recent-post-items .thumb img,
.recent-post-area .recent-items .recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-sidebar .recent-items .recent-thumb { width: 80px; height: 70px; }

/* === Genel mobil taşma koruması (UI kayması) === */
@media (max-width: 575px) {
    .container { overflow-x: clip; }
    .section-title h2 { word-break: break-word; }
}
html, body { overflow-x: hidden; }
