/* =====================================================================
 *   Addtional Updates or Changes
 * =================================================================== */

/* Why Choose Us Section Styling */
.why-choose-us-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-top: 40px;
}

.why-choose-us-col {
    margin-bottom: 30px;
}

.why-choose-us-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.why-choose-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(90, 95, 113, 0.2);
}

.why-choose-us-img-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fdfdfd;
    border-radius: 15px;
    overflow: hidden;
}

.why-choose-us-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.why-choose-us-img.circular {
    border-radius: 50%;
    object-fit: cover;
}

.why-choose-us-img.cover-img {
    object-fit: cover;
}

.why-choose-us-card:hover .why-choose-us-img {
    transform: scale(1.08);
}

.why-choose-us-wifi-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a5f71 0%, #3f4352 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    font-size: 40px;
}

.why-choose-us-content {
    flex-grow: 1;
}

.why-choose-us-content h4 {
    font-family: "Montserrat", "Droid Arabic Kufi", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    color: #333333;
    margin-top: 0;
    margin-bottom: 10px;
}

.why-choose-us-content p {
    font-family: "Lora", "Cairo", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #999999;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .why-choose-us-card {
        padding: 20px;
        gap: 15px;
    }
    
    .why-choose-us-img-wrap {
        width: 75px;
        height: 75px;
    }
    
    .why-choose-us-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .why-choose-us-content p {
        font-size: 13px;
    }
}

/* Scroll Animation System
   ÖNEMLİ: Bu kurallar yalnızca <html class="js"> varken uygulanır. JavaScript
   çalışmazsa (hata / engelleme) içerik gizli kalıp sayfa bembeyaz görünmesin diye
   emniyet ağı olarak "js" sınıfına bağlandı. Sınıfı her sayfanın <head> kısmındaki
   tek satırlık inline script ekler. */
.js .slide-in-left, .js .slide-in-right, .js .fade-in, .js .why-choose-us-card, .js .university-card {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
    animation: none !important; /* Disable default load animations */
}

.js .slide-in-left {
    transform: translateX(-50px);
}

.js .slide-in-right {
    transform: translateX(50px);
}

.js .fade-in, .js .why-choose-us-card, .js .university-card {
    transform: translateY(40px);
}

/* Staggered delay for why-choose-us grid and university cards */
.why-choose-us-col:nth-child(2) .why-choose-us-card,
.col-md-4:nth-child(2) .university-card {
    transition-delay: 0.1s !important;
}
.why-choose-us-col:nth-child(3) .why-choose-us-card,
.col-md-4:nth-child(3) .university-card {
    transition-delay: 0.2s !important;
}
.why-choose-us-col:nth-child(4) .why-choose-us-card {
    transition-delay: 0.3s !important;
}
.why-choose-us-col:nth-child(5) .why-choose-us-card {
    transition-delay: 0.4s !important;
}
.why-choose-us-col:nth-child(6) .why-choose-us-card {
    transition-delay: 0.5s !important;
}

/* Triggered State */
.slide-in-left.animated,
.slide-in-right.animated,
.fade-in.animated,
.why-choose-us-card.animated,
.university-card.animated {
    opacity: 1;
    transform: translate(0) !important;
}

/* Hareket azaltma tercihi olan kullanıcılarda animasyonu atla */
@media (prefers-reduced-motion: reduce) {
    .js .slide-in-left, .js .slide-in-right, .js .fade-in,
    .js .why-choose-us-card, .js .university-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Buton tıklama efekti */
.btn-clicked {
    transform: scale(0.96);
    transition: transform 0.15s ease;
}

/* --- Sağ alt köşedeki iki buton üst üste binmesin ---
   ".scroll-top-icon" en altta (bottom: 20px, 45px yükseklik) kalıyor;
   WhatsApp butonu onun üstüne alınıyor. Sayfaların kendi <style> bloklarındaki
   ".whatsapp-btn" kurallarını geçebilmek için "body" ile özgüllük artırıldı. */
body .whatsapp-btn {
    bottom: 90px;
}

@media (max-width: 768px) {
    body .whatsapp-btn {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    body .whatsapp-btn {
        bottom: 72px;
    }
}

/* ===========================================================
   Yukarı çık butonu — mobilde de görünsün
   style.css içinde "@media (max-width:992px){ .scroll-top-icon{display:none!important} }"
   kuralı butonu tablet ve telefonlarda tamamen gizliyordu.
   =========================================================== */
@media (max-width: 992px) {
    body .scroll-top-icon {
        display: block !important;
        /* style.css mobilde bu butonu bottom:70-80px'e sabitliyordu; orası WhatsApp
           butonunun yeri. Gizliyken ekran dışında, görünürken en altta dursun. */
        bottom: -60px !important;
        right: 20px !important;
    }
    body .scroll-top-icon.show {
        bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    body .scroll-top-icon,
    body .scroll-top-icon.show {
        right: 15px !important;
    }
    body .scroll-top-icon.show {
        bottom: 18px !important;
    }
}

/* ===========================================================
   Mobil menü
   =========================================================== */
@media (max-width: 768px) {
    /* Sayfa kaydırılınca menü ekranın üstünde sabit kalsın.
       Öncesinde "position: absolute" olduğu için menü yukarı kayıp kayboluyordu. */
    body .top-right-menu.scrolled {
        position: fixed !important;
        top: 10px !important;
    }

    /* Öğeler sıkışıp genişlikleri bozulmasın (dar ekranda flex-shrink
       her bağlantıyı farklı oranda eziyordu). */
    body .top-right-menu li {
        flex: 0 0 auto !important;
    }

    /* letter-spacing son harften sonra da boşluk bıraktığı için yazı
       kutusunun içinde hafif sola kayıyordu; sağ boşluk o kadar kısaldı. */
    body .top-right-menu a {
        padding: 6px 9.5px 6px 10px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Çok dar ekranlar: dört başlık tek satıra sığsın diye biraz küçült */
@media (max-width: 380px) {
    body .top-right-menu {
        width: 94% !important;
        padding: 6px 8px !important;
    }
    body .top-right-menu ul {
        gap: 2px !important;
    }
    body .top-right-menu a {
        padding: 6px 6.5px 6px 7px !important;
        font-size: 11px !important;
    }
}

/* ===========================================================
   Bölüm araları — ana sayfa çok boş görünmesin
   Varsayılan: .section-content 100px, #cta-title-1 160px,
   .universities-section 80px dikey iç boşluk. İki bölüm yan yana
   gelince bu 200-340px'lik boşluklara dönüşüyordu.
   =========================================================== */
/* NOT: "body" öneki, style.css'teki "#intro-features .section-content" gibi
   ID'li kuralları ve sayfaların kendi <style> bloklarını geçebilmek için. */
body .flat-section > .section-content,
body .parallax-section > .section-content,
body #intro-features > .section-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

body #cta-title-1 > .section-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

body .universities-section {
    padding-top: 45px;
    padding-bottom: 45px;
}

/* Kart satırları arası boşluk (bölüm aralarına da ekleniyordu) */
body .university-card,
body #intro-features .col-md-4 {
    margin-bottom: 18px;
}

@media (max-width: 992px) {
    body .flat-section > .section-content,
    body .parallax-section > .section-content,
    body #intro-features > .section-content {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    body #cta-title-1 > .section-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }
    body .universities-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    body .flat-section > .section-content,
    body .parallax-section > .section-content,
    body #intro-features > .section-content {
        padding-top: 38px;
        padding-bottom: 38px;
    }
    body #cta-title-1 > .section-content {
        padding-top: 55px;
        padding-bottom: 55px;
    }
    body .universities-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* Glassmorphism Header/Menu on scroll - Desktop/Tablet Only */
@media (min-width: 769px) {
    .top-right-menu {
        transition: all 0.4s ease;
        border-radius: 30px;
        padding: 5px 15px;
    }
    .top-right-menu.scrolled {
        background: rgba(90, 95, 113, 0.8) !important; /* Matches theme color #5a5f71 */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: fixed !important;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }
    .top-right-menu.scrolled a {
        color: #ffffff !important;
    }
}

/* Mobile Glassmorphic Pill Menu overrides */
@media (max-width: 768px) {
    header .top-right-menu,
    body .top-right-menu {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 auto !important;
        width: 90% !important;
        max-width: 380px !important;
        background: rgba(90, 95, 113, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 30px !important;
        padding: 6px 12px !important;
        z-index: 1000 !important;
        display: flex !important;
        justify-content: center !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    }

    header .top-right-menu ul,
    body .top-right-menu ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    header .top-right-menu li,
    body .top-right-menu li {
        margin: 0 !important;
        display: inline-block !important;
    }

    header .top-right-menu a,
    body .top-right-menu a {
        padding: 6px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        border-radius: 20px !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        background: transparent !important;
    }
    
    header .top-right-menu a:hover,
    body .top-right-menu a:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
}

@media (max-width: 360px) {
    header .top-right-menu a,
    body .top-right-menu a {
        padding: 5px 7px !important;
        font-size: 11px !important;
    }
}
