/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }
 html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }
/*** Spinner End ***/


/*** Common CSS Start ***/
:root {
    /* Yıldızlar Kreş Kurumsal Renkleri */
    --bs-primary: #633991;    /* Logodaki Ana Mor */
    --bs-secondary: #E91E63;  /* Logodaki Canlı Pembe */
    --bs-light: #FDF8FF;      /* Açık Mor Arkaplan */
    --bs-dark: #2C1E35;       /* Koyu Metin Rengi */
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
    background: var(--bs-secondary); /* Pembe vurgu */
    color: #ffffff;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
    font-weight: 200;
    font-family: 'Montserrat', sans-serif;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.display-4,
.display-5,
.display-6 {
    font-weight: 600;
}

.wow,
.animated {
    animation-duration: 2s !important;
}
/*** Common CSS End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: 0;
    background: var(--bs-primary); /* Mor buton */
    color: var(--bs-white);
}

.btn.btn-primary:hover {
    background: var(--bs-secondary); /* Hover'da pembe */
    color: #ffffff;
}

.btn-border-radius {
    border-radius: 50px;
}

.img-border-radius {
    border-radius: 50% 20% / 10% 40%;
}

.title-border-radius {
    border-radius: 10% 30%;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary);
}
/*** Button End ***/


/*** Topbar Start ***/
.topbar {
    background-color: var(--bs-primary) !important; /* Üst bant mor */
}

.topbar .top-info {
    font-size: medium;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

.topbar .top-link a:hover {
    background: var(--bs-secondary) !important;
}

.topbar .top-link a:hover i {
    color: #ffffff !important;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* LOGO ÖZEL AYARI: Navbar yüksekliğini bozmadan logoyu büyütür */
.logo-parent {
    position: relative;
    width: 150px; /* Logo için genişlik alanı */
    height: 60px;  /* Navbar içindeki sabit yükseklik */
}

.main-logo {
    height: 140px !important; /* Logonun gerçek boyutu */
    width: auto;
    position: absolute;
    top: -40px; /* Logoyu yukarı taşıyarak navbar dışına çıkarır */
    left: 0;
    z-index: 1050;
    transition: 0.3s ease;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    transition: .5s;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important; /* Menü hover rengi pembe */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        font-weight: 400;
        font-family: 'Fredoka', sans-serif;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-secondary);
    color: #ffffff;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .9);
}

/* Mobil için logo küçültme */
@media (max-width: 991px) {
    .main-logo {
        height: 100px !important;
        top: -17px;
    }
}
/*** Navbar End ***/ 


/*** Hero Header ***/
/*** Hero Header ***/
.hero-header {
    /* Resmin her zaman alanı kaplamasını ve merkezlenmesini sağlar */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh; /* Masaüstünde tam ekran boyu */
    display: flex;
    align-items: center;
}

/* Telefon Görünümü Ayarları */
@media (max-width: 991px) {
    .hero-header {
        /* Mobilde resmin sığması için yüksekliği otomatiğe alıp padding veriyoruz */
        max-height:50vh ;
        min-height: 70vh; 
        padding-top: 150px !important; /* Navbar'dan aşağı itmek için */
        padding-bottom: 60px !important;
    }

    .hero-header .display-1 {
        /* Yazılar güzel demiştin, sadece çok büyükse biraz küçülttük */
        font-size: 3rem; 
    }
}

@media (max-width: 576px) {
    .hero-header {
        /* Çok küçük ekranlarda resim daha iyi görünsün diye */
        background-position: 75% center !important; 
    }
}
/*** Hero Header ***/


/*** About Start ***/
/* Hakkımızda Genel Arkaplanı */
.about {
   
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 0; /* Üst ve alt boşluk */
}

/* Resmin içinde bulunduğu kapsayıcı */
.video {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent !important; /* Eski arka planı temizle */
}

/* Hakkımızda Resminin Özel Tasarımı */
.video img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Logonun kavisli yapısına uygunluk */
    border-radius: 50% 20% / 10% 40%; 
    /* Kurumsal Mor Çerçeve */
    border: 6px solid var(--bs-primary); 
    box-shadow: 0 15px 30px rgba(99, 57, 145, 0.2);
    transition: 0.5s;
}

/* Resme hafif bir hover efekti (İsteğe bağlı) */
.video img:hover {
    transform: scale(1.02);
    border-color: var(--bs-secondary); /* Üzerine gelince pembe olur */
}

/* Hakkımızda Başlık Altındaki İkonlu Liste */
.about h6 i {
    font-size: 1.2rem;
}

.about .btn-border-radius {
    border-radius: 50px !important;
}
/*** About End ***/


/*** service Start ***/
.service {
    background: linear-gradient(rgba(233, 30, 99, 0.05), rgba(99, 57, 145, 0.05));
}

.service .service-item {
    box-shadow: 0 0 45px rgba(99, 57, 145, .1);
    width: 100%;
    height: 100%;
    border-radius: 50% 20% / 10% 40%;
    transition: 0.5s;
    position: relative;
    background: #ffffff;
}

.service-content::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    border-radius: 50% 20% / 10% 40%;
    transition: .5s;
}

.service-item:hover {
    border: 1px solid var(--bs-secondary) !important;
}

.service-item:hover .service-content::after {
    background: var(--bs-primary);
    width: 100%;
    opacity: 1;
    z-index: 1;
}

.service-item .service-content .service-content-inner {
    position: relative;
    z-index: 2;
}

.service-item .service-content-inner i,
.service-item .service-content-inner p,
.service-item .service-content-inner a.h4 {
    transition: 0.5s;
}

.service-item:hover .service-content-inner i,
.service-item:hover .service-content-inner p {
    color: var(--bs-white) !important;
}

.service-item:hover .service-content-inner a.h4 {
    color: var(--bs-secondary);
}

.service-item:hover .service-content-inner a.btn-primary {
    background: var(--bs-white) !important;
    color: var(--bs-primary) !important;
}
.program-item img {
    height: 250px;
    object-fit: cover;
} 
/*** Service Slider Logic ***/

/* Masaüstünde normal davran, mobilde kaydır */
@media (max-width: 991px) {
    .service-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* iOS için akıcı kaydırma */
        scroll-snap-type: x mandatory; /* Kaydırınca kartın ortada durması için */
        padding-bottom: 20px;
    }

    .service-scroll-container .row {
        margin-right: 0;
        margin-left: 0;
    }

    /* Mobilde her kartın genişliği (Ekranda 1.5 kart görünür, kaydırma hissi verir) */
    .service-scroll-container .col-9 {
        scroll-snap-align: center;
        flex: 0 0 75%; /* Kart ekranın %75'ini kaplar */
        max-width: 75%;
    }
}

/* Kaydırma çubuğunu gizlemek istersen (daha temiz durur) */
.service-scroll-container::-webkit-scrollbar {
    display: none;
}
.service-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/*** Service End ***/


/*** Programs Start ***/ 
.events-img img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Resmi her zaman kare yapar, böylece yuvarlak tam çıkar */
    object-fit: cover;
}
.program {
   .program {
    background: linear-gradient(rgba(99, 57, 145, 0.1), rgba(233, 30, 99, 0.1)) !important;
}
}
.program {
    background-color: #FDF8FF !important; /* Çok açık mor/beyaz tonu */
    background-image: none !important; /* Gradiyenti tamamen iptal eder */
}
.program .program-item {
    background: #ffffff;
    border: 1px solid rgba(99, 57, 145, 0.1);
}

.program .program-item .program-img .program-rate {
    position: absolute;
    width: 100px; 
    top: -20px; 
    left: 50%; 
    margin-left: -50px; 
    border-radius: 10% / 50%;
    background: var(--bs-secondary) !important;
}

.program .program-item .program-text {
    padding-top: 150px; 
    margin-top: -125px;
}

.program .program-item:hover .program-text-inner a.h4 {
    color: var(--bs-primary) !important;
}

.program .program-item .program-teacher {
    border-top: 1px solid rgba(99, 57, 145, 0.1) !important;
}
/*** Programs End ***/


/*** Events Start ***/
/* =========================================
   ETKİNLİKLER (ŞUBELİ VE DÜZELTİLMİŞ YAPI)
   ========================================= */

/* Kartın Genel Çerçevesi */
.custom-event-card {
    border-radius: 15px;
    overflow: hidden; /* Resmin köşelerden taşmasını engeller */
    display: flex;
    flex-direction: column; /* İçeriği alt alta dizer */
    height: 100%; /* Kutuyu uzatır */
    background-color: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    margin: 5px; /* Slider içinde kenarlardan boşluk */
}

/* Hover Efekti (Kartın üzerine gelince) */
.custom-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Resim Alanı */
.custom-event-img {
    height: 250px; /* Sabit yükseklik */
    width: 100%;
    position: relative;
    flex-shrink: 0; /* Küçülmeyi engeller */
    overflow: hidden;
}

.custom-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdırır ve ortalar */
    display: block;
    transition: transform 0.5s ease;
}

/* Resim Zoom Efekti */
.custom-event-card:hover .custom-event-img img {
    transform: scale(1.1);
}

/* Tarih Rozeti (Badge) */
.custom-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bs-primary); /* Tema rengini kullanır */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: auto;
    display: inline-block;
}

/* İçerik Alanı (Başlık, Açıklama, Saat) */
.custom-event-content {
    padding: 25px;
    flex-grow: 1; /* Kutunun kalanını doldurur */
    background: #fff;
    width: 100%;
    /* Eski temadaki negatif margin'i (yukarı kaymayı) iptal eder: */
    margin-top: 0 !important; 
    position: relative !important;
    z-index: 2;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .custom-event-img {
        height: 200px; /* Mobilde resim biraz daha kısa olsun */
    }
    .custom-event-content {
        padding: 15px; /* Mobilde iç boşluk daha az olsun */
    }
}

/*** Events End ***/


/*** Blog Start ***/
/*** Blog Jilet Gibi Mobil Uyumlu CSS ***/

/* Kart Genel Kutusu */
.blog-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #eee;
}

/* Resim Alanı: Mobilde ve masaüstünde boyu sabit tutar */
.blog-img {
    width: 100%;
    height: 200px; /* Resim boyunu kısalttık ki kart küçülsün */
    min-height: 200px;
    overflow: hidden;
}

.blog-img img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Resim ne gelirse gelsin kutuyu tam doldurur */
}

/* BAŞLIK: Uzunsa 2 satır yapar ve sonuna "..." koyar */
.blog-text-inner a.h4 {
    display: -webkit-box !important;
   
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    
    height: 60px; /* Hizayı korumak için şart */
    margin-top: 15px;
    line-height: 1.3;
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 1.15rem;
}

/* AÇIKLAMA: Uzunsa 2 satır yapar ve sonuna "..." koyar */
.blog-text-inner p {
    display: -webkit-box !important;
    
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;

    height: 44px; /* Hizayı korumak için şart */
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Hover Renk: Canlı Pembe */
.blog-item:hover .blog-text-inner a.h4 {
    color: var(--bs-secondary) !important;
}

/* Esnek İçerik Alanı: Butonları en alta sabitler */
.flex-grow-1 {
    padding: 15px 20px 20px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TELEFON (MOBİL) AYARI: Resimlerin patlamasını önler */
@media (max-width: 767px) {
    .blog-img {
        height: 180px; /* Mobilde resmi biraz daha küçültüyoruz */
        min-height: 180px;
    }
    .blog-item {
        margin-bottom: 30px; /* Alt alta gelen kartların arasına boşluk */
    }
    .blog-text-inner a.h4 {
        font-size: 1.1rem; /* Mobilde başlık biraz daha kibar dursun */
    }
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 57, 145, 0.1) !important;
}
/*** Blog End ***/


/*** Team Start ***/
.team-item {
    transition: 0.5s;
    position: relative;
    /* Logondaki kavisli yapı */
    border-radius: 50% 20% / 10% 40% !important; 
    height: 100%;
}

/* Tüm öğretmen resimlerini aynı boyuta sabitler */
.teacher-img {
    height: 300px;
    object-fit: cover;
    border-bottom: 5px solid var(--bs-primary);
}

.team-item .team-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.5s;
    z-index: 2;
}

.team-item:hover .team-icon {
    opacity: 1;
}

/* Sosyal medya ikonlarının pembe olması için (isteğe bağlı) */
.team-item .share-link:hover {
    background: var(--bs-secondary) !important;
}

.team-item:hover {
    box-shadow: 0 10px 30px rgba(99, 57, 145, 0.2);
    transform: translateY(-10px);
}

/* Mobilde resim boyu ayarı */
@media (max-width: 768px) {
    .teacher-img {
        height: 250px;
    }
}
/*** Team end ***/


/*** testimonial Start ***/
.testimonial .testimonial-carousel .owl-dot {
    background: var(--bs-primary);
}

.testimonial .testimonial-carousel .owl-dot.active {
    background: var(--bs-secondary);
}
/*** testimonial End ***/


/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(44, 30, 53, 0.95), rgba(44, 30, 53, 0.95)), url(../img/background.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
}

.footer .footer-item h2, .footer .footer-item h4 {
    color: #ffffff !important;
}

.footer .footer-galary-img img {
    border-color: var(--bs-secondary);
}

.footer-item a.text-body:hover {
    color: var(--bs-secondary) !important;
}

.copyright {
    background: #1a1121 !important;
}
/*** Footer End ***/ 
/*** Programs Start ***/
.program {
    background: linear-gradient(rgba(99, 57, 145, 0.05), rgba(233, 30, 99, 0.05));
}

.program-item {
    position: relative;
    padding-bottom: 40px;
}

.program-img-box {
    height: 300px; /* PC'de resim yüksekliği */
    position: relative;
    z-index: 1;
}

.program-content {
    background: #ffffff;
    width: 90%;
    margin: -60px auto 0 auto; /* Resmi 60px yukarıdan keser */
    padding: 25px;
    border-radius: 20px;
    position: relative;
    z-index: 10; /* Yazıyı resmin önüne çıkarır */
    text-align: center;
    border: 1px solid rgba(99, 57, 145, 0.1);
}

/* MOBİL ÖZEL AYARLAR: Slider Logic */
@media (max-width: 991px) {
    .program-scroll-container {
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: none;
    }

    .program-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .program-scroll-container .row {
        margin: 0 !important;
    }

    /* Mobilde her kartın genişliği (%85 sonraki kartın ucunu gösterir) */
    .program-scroll-container .col-10 {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center;
    }

    .program-img-box {
        height: 240px; /* Mobilde resim boyu kısalır */
    }

    .program-content {
        padding: 15px;
        margin-top: -40px; /* Mobilde bindirme miktarını azalttık */
    }
}
/*** Programs End ***/
/* PROGRAMLAR İÇİN SABİTLEME */
.program-content {
  
    width: 90%;
    margin: -60px auto 0 auto;
    padding: 25px;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    text-align: center;
    border: 1px solid rgba(99, 57, 145, 0.1);
    
    /* YÜKSEKLİĞİ SABİTLEME */
    min-height: 180px; /* Kartın yazı alanını bu yükseklikte sabitler */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-content p {
    /* ÇOK UZUN YAZILARI 3 SATIRDA KESER */
    display: -webkit-box;
   
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* ETKİNLİKLER İÇİN SABİTLEME */
.events-content {
    
    width: 90%;
    margin: -70px auto 0 auto;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(99, 57, 145, 0.1);
    
    /* YÜKSEKLİĞİ SABİTLEME */
    min-height: 190px;
    display: flex;
    flex-direction: column;
}

.events-content p {
    /* ETKİNLİK AÇIKLAMASINI 2 SATIRDA KESER */
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
} 
/* Sadece Mobil Cihazlar İçin (768px altı) */
/* --- SADECE TELEFON GÖRÜNÜMÜ (PC BOZULMAZ) --- */
@media screen and (max-width: 767px) {
    
    /* 1. Ana Başlık Düzenlemesi (Yıldızlar'dan Güncel Paylaşımlar) */
    .blog .display-3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2rem !important;
    }

    /* 2. Yatay Kaydırma Alanı (Row) */
    .blog .row.g-5 {
        display: flex !important;
        flex-wrap: nowrap !important; /* Alt alta geçmeyi engeller */
        overflow-x: auto !important; /* Yana kaydırmayı açar */
        justify-content: flex-start !important; /* Kartları soldan başlatır */
        
        padding-left: 15px !important; /* İlk kart kenara yapışmasın */
        padding-right: 15px !important; 
        padding-bottom: 30px !important;
        
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    /* 3. Kartların Genişliği ve Mesafesi */
    .blog .col-md-6.col-lg-6.col-xl-4 {
        flex: 0 0 85% !important; /* Kart genişliği */
        max-width: 85% !important;
        margin-right: 15px; /* Kartlar arası boşluk */
        padding: 0 !important;
        scroll-snap-align: center; /* Kaydırınca kartı ortalar */
    }

    /* 4. UZUN BAŞLIK ÇÖZÜMÜ (Ortadaki kart için kritik) */
    .blog-item .h4 {
        font-size: 1.15rem !important; /* Başlığı mobilde küçülttük */
        line-height: 1.2 !important; /* Satır aralığını açtık */
        min-height: 3.5em; /* İki satırlık yer ayır ki kutular eşit dursun */
        display: -webkit-box !important;
        /* Maksimum 2 satır göster (fazlası için) */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* 5. Alt Metin (Açıklama) Boyutu */
    .blog-text-inner p {
        font-size: 0.9rem !important;
        line-height: 1.5;
        margin-bottom: 15px !important;
    }

    /* 6. Gereksiz padding'leri daralt */
    .blog.py-5, .blog .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }

    /* 7. Kaydırma çubuğunu gizle (temiz görünüm) */
    .blog .row.g-5::-webkit-scrollbar {
        display: none;
    }
    .blog .row.g-5 {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}
/* --- EKİP (TEAM) BÖLÜMÜ TELEFON GÖRÜNÜMÜ --- */
@media screen and (max-width: 767px) {
    
    /* 1. Başlık Boyutunu Ayarla */
    .team .display-3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2rem !important;
    }

    /* 2. Satırı Yana Kaydırılabilir Yap */
    .team .row.g-5 {
        display: flex !important;
        flex-wrap: nowrap !important; /* Kartları yan yana tutar */
        overflow-x: auto !important; /* Yana kaydırmayı açar */
        justify-content: flex-start !important; /* Soldan başlatır */
        
        padding-left: 20px !important; /* İlk kartın kenara yapışmasını engeller */
        padding-right: 20px !important;
        padding-bottom: 30px !important;
        
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        -webkit-overflow-scrolling: touch; /* iOS pürüzsüz kaydırma */
        scroll-snap-type: x mandatory; /* Kaydırınca karta odaklanır */
    }

    /* 3. Kart Genişlikleri (Ekranın %80'ini kaplar, diğeri görünür) */
    .team .col-md-6.col-lg-4.col-xl-3 {
        flex: 0 0 80% !important;
        max-width: 80% !important;
        margin-right: 15px; /* Kartlar arası boşluk */
        padding: 0 !important;
        scroll-snap-align: center; /* Kartı ortalar */
    }

    /* 4. Resimlerin Mobildeki Boyutu */
    .team .teacher-img {
        height: 300px; /* Mobilde fotoğrafların çok uzamasını engeller */
        object-fit: cover; /* Fotoğrafı bozmadan sığdırır */
    }

    /* 5. Kaydırma Çubuğunu Gizle */
    .team .row.g-5::-webkit-scrollbar {
        display: none;
    }
    .team .row.g-5 {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* 6. Bölümün genel boşluğunu daralt */
    .team.py-2, .team .py-2 {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }
} 
/* --- GALERİ TASARIMI --- */
/* --- GALERİ TASARIMI --- */
.galeri-item {
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    overflow: hidden; /* Resim büyüyünce taşmasın diye */
    border-radius: 15px; /* Köşeleri yuvarlatmak istersen */
    border: 1px solid #ddd; /* İnce bir çerçeve şık durur */
}

.galeri-img {
    transition: 0.5s;
    height: 300px; /* PC yüksekliği */
    width: 100%;   /* Genişliği kutuya tam yayar */
    
    /* İŞTE SİHİRLİ KODLAR BURADA: */
    object-fit: cover;      /* Kutuyu boşluk bırakmadan doldur */
    object-position: center center; /* Resmi daima TAM ORTALA */
}

.galeri-item:hover .galeri-img {
    transform: scale(1.1); /* Hover olunca hafif büyüme efekti */
}

.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Resim üzerine hafif koyu perde */
    opacity: 0;
    transition: 0.5s;
    border-radius: 15px; /* Overlay de yuvarlak olsun */
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

/* --- MOBİL UYUMLULUK --- */
@media screen and (max-width: 767px) {
    .galeri .display-3 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .galeri .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Mobilde resimlerin çok uzun durmaması için */
    .galeri-img {
        height: 250px; /* Mobilde biraz daha kısa olsun */
    }

    .galeri .row.g-4 {
        padding: 0 10px;
    }
}
/* --- Anket Sayfası Gelişmiş Tasarım --- */
.survey-section {
    background: #fff;
    padding: 10px 0;
}

.custom-checkbox {
    transition: 0.3s;
    cursor: pointer;
}

.custom-checkbox:hover {
    background-color: #f8f9fa !important;
    border-color: #fe5d37 !important;
}

.table thead th {
    font-size: 0.9rem;
    color: #666;
}

.form-check-input:checked {
    background-color: #fe5d37;
    border-color: #fe5d37;
}

/* --- MOBİL UYUM --- */
@media screen and (max-width: 767px) {
    .survey-section h5 {
        font-size: 1.1rem;
    }

    .form-check-inline {
        margin-bottom: 10px;
        width: 45%; /* Yan yana iki seçenek sığsın */
    }

    .table td, .table th {
        font-size: 0.85rem;
        padding: 10px 5px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 15px !important;
    }
}
/* --- BLOG LİSTELEME VE DETAY CSS --- */

/* Blog Kart Efektleri */
.blog-item {
    transition: all 0.5s ease;
    border-radius: 15px !important;
    overflow: hidden;
}

.blog-item:hover {
    transform: translateY(-10px); /* Üzerine gelince yukarı kalsın */
   
}

.blog-img img {
    transition: 0.5s;
    height: 200px;
    object-fit: cover;
}

.blog-item:hover .blog-img img {
    transform: scale(1.1);
}

/* Tarih ve Yorum Çubuğu */
.blog-date-comments {
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- BLOG DETAY SAYFASI ÖZEL --- */

.blog-detail {
    border-radius: 20px;
    overflow: hidden;
    line-height: 1.8;
}

.blog-detail h2 {
    font-weight: 700;
    color: #fe5d37; /* Kreş Ana Rengi */
}

.blog-detail p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Alıntı (Blockquote) Stili */
.blog-detail blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    background: #fff;
    border-left: 5px solid #fe5d37 !important;
    border-radius: 5px;
}

/* Sidebar (Yan Menü) Widgetları */
.col-lg-4 .bg-light {
    border: 1px solid #eee;
    border-radius: 15px;
}

.col-lg-4 h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.col-lg-4 a {
    transition: 0.3s;
    text-decoration: none;
}

.col-lg-4 a:hover {
    color: #fe5d37 !important;
    padding-left: 5px;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */

@media screen and (max-width: 767px) {
    .blog .display-3 {
        font-size: 2rem !important;
    }

    .blog-detail {
        padding: 20px !important;
    }

    .blog-detail h2 {
        font-size: 1.5rem !important;
    }

    /* Mobilde resimlerin boyutunu optimize et */
    .blog-img img {
        height: 200px;
    }

    /* Sidebar mobilde çok aşağıda kalmasın diye boşluğu azalt */
    .col-lg-4 {
        margin-top: 30px;
    }
}
/* --- İletişim Sayfası Özel Stilleri --- */

/* Üst Bilgi Kartları */
.contact-card {
    background: #fff;
    border-radius: 20px;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
}

.contact-card.card-purple {
    border-top-color: var(--bs-primary);
}

.contact-card.card-pink {
    border-top-color: var(--bs-secondary);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(99, 57, 145, 0.15) !important;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50% 20% / 10% 40%; /* Logodaki kavis yapısı */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.contact-card:hover .contact-icon {
    transform: rotateY(360deg);
}

/* Form Tasarımı */
.form-floating .form-control:focus {
    background-color: #fff !important;
    border: 1px solid var(--bs-primary) !important;
    box-shadow: none;
}

.form-floating label {
    color: #666;
}

/* Harita Çerçevesi */
.contact iframe {
    transition: 0.5s;
}

/* Mobilde harita ve formun alt alta gelmesi */
@media (max-width: 991px) {
    .contact .p-5 {
        padding: 30px !important;
    }
    .contact-card {
        margin-bottom: 20px;
    }
}
/* Link içindeki kartın yazı renklerini koru */
.contact-page-wrapper a.text-decoration-none {
    display: block; /* Linkin tüm alanı kaplamasını sağlar */
    color: inherit;
}

/* Telefon kartına özel hover (isteğe bağlı) */
.contact-card:active {
    transform: scale(0.95); /* Tıklandığında hafifçe içeri çökme efekti verir */
}
/* 1. Slider Alanı Referansı */
    .blog-carousel {
        position: relative;
        z-index: 1;
    }

    /* 2. Okların Kapsayıcısı (Resmin üzerine seriyoruz) */
    .blog-carousel .owl-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between; /* Biri sağa biri sola */
        align-items: center; /* Dikey ortala */
        pointer-events: none; /* Aradaki boşluğa tıklayınca resme gitmesini sağlar */
    }

    /* 3. Ok Butonlarının Genel Tasarımı */
    .blog-carousel .owl-nav .owl-prev,
    .blog-carousel .owl-nav .owl-next {
        pointer-events: auto; /* Butonlar tıklanabilir olsun */
        width: 50px;
        height: 50px;
        background: var(--bs-primary) !important;
        color: #ffffff !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: 0.3s;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        opacity: 0.9;
    }

    /* 4. Bilgisayar Görünümü (Hafif dışarı taşsın) */
    @media (min-width: 769px) {
        .blog-carousel .owl-nav .owl-prev { margin-left: -25px; }
        .blog-carousel .owl-nav .owl-next { margin-right: -25px; }
    }

    /* 5. MOBİL GÖRÜNÜM (Telefonda kenarlara yapışsın) */
    @media (max-width: 768px) {
        .blog-carousel .owl-nav .owl-prev,
        .blog-carousel .owl-nav .owl-next {
            width: 35px;  /* Mobilde buton biraz küçülsün */
            height: 35px;
            font-size: 14px;
            margin: 0 !important; /* Dışarı taşmayı iptal et */
        }

        /* Sol Oku Sola Yapıştır */
        .blog-carousel .owl-nav .owl-prev {
            border-radius: 0 5px 5px 0; /* Yarım daire görünümü */
            left: 0;
        }

        /* Sağ Oku Sağa Yapıştır */
        .blog-carousel .owl-nav .owl-next {
            border-radius: 5px 0 0 5px; /* Yarım daire görünümü */
            right: 0;
        }
    }

    /* Hover Efekti */
    .blog-carousel .owl-nav button:hover {
        background: var(--bs-secondary) !important;
        opacity: 1;
    }