/* --- IngilizceSinavi.com Evrensel Header Stilleri (v2.3.0) --- */

html {
    overflow-x: hidden;
}

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #e9f5ff;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --white-text: #FFFFFF;
    --border-color: #dee2e6;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --border-radius: 0.75rem;
}

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header */
.lp-hero.is-nav-only {
    background: #E9F6FF;
    padding: 20px 0;
    color: var(--dark-text);
    position: relative;
    margin-bottom: -1px;
}

/* Navigasyon Barı */
.lp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
}

.lp-logo img {
    max-height: 100px;
    width: auto;
    vertical-align: middle;
    transition: max-height 0.3s ease;
}

/* Masaüstü Menü */
.lp-nav-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lp-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.lp-nav-menu li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.lp-nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
}

.lp-nav-menu a:hover {
    color: var(--primary-color);
}

/* Butonlar */
.lp-nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buton Grupları (Giriş/Kayıt yan yana) */
.lp-auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    outline: none !important;
    vertical-align: middle;
}

.lp-button-primary {
    background-color: var(--primary-color);
    color: var(--white-text) !important;
    border-color: var(--primary-color);
}

.lp-button-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
}

.lp-button-secondary {
    background-color: var(--white-text);
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.lp-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-text) !important;
    transform: translateY(-3px);
}

.lp-button-outline {
    background-color: #ffffff;
    color: var(--dark-text) !important;
    border: 2px solid var(--dark-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.lp-button-outline:hover {
    background-color: var(--dark-text);
    color: var(--white-text) !important;
    transform: translateY(-3px);
}

/* Icon-Only Button (Logout) */
.lp-button-icon-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid #777 !important;
    color: #555 !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.lp-button-icon-only:hover {
    background: #f0f7ff !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.lp-button-icon-only .is-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    display: block !important;
    stroke-width: 2.5px;
    /* Slightly thicker for better visibility */
}

/* Mobile: Icon-only button in drawer */
@media (max-width: 992px) {
    .lp-nav-drawer .lp-button-icon-only {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        border-radius: 50px !important;
        padding: 12px 20px !important;
        background: transparent !important;
        border: 2px solid #555 !important;
        color: #555 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .lp-nav-drawer .lp-button-icon-only:hover {
        background: #f0f7ff !important;
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
    }

    .lp-nav-drawer .lp-button-icon-only::after {
        content: "Çıkış Yap";
        font-weight: 600;
    }

    .lp-nav-drawer .lp-button-icon-only .is-icon {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }
}

/* --- YENİ SVG İKON STİLLERİ --- */

/* Genel SVG ayarı */
.is-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    /* Metinle hizalama */
}

/* Buton içindeki ikonlar */
.lp-button .is-icon {
    margin-right: 8px;
    /* Metin ile ikon arası boşluk */
    width: 1.1em;
    height: 1.1em;
}

/* Mobil Hamburger Menü Tetikleyici */
/* Mobil Hamburger Menü Tetikleyici */
.lp-menu-toggle {
    display: none;
    /* Arkaplan ve Kenarlık Temizliği */
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    /* Boyut ve Konumlandırma */
    padding: 10px !important;
    /* Tıklama alanı genişliği */
    margin: 0;
    cursor: pointer;
    z-index: 1001;

    /* --- KIRMIZI KUTU / ÇERÇEVE ENGELLEME (Gelişmiş) --- */
    outline: none !important;
    outline-width: 0 !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    /* Mobilde dokunma rengini şeffaf yap */
    -webkit-focus-ring-color: rgba(0, 0, 0, 0) !important;
    /* Odak halkasını şeffaf yap */
    user-select: none;
}

/* Tıklanma, Odaklanma ve Ziyaret Durumları */
.lp-menu-toggle:hover,
.lp-menu-toggle:active,
.lp-menu-toggle:focus,
.lp-menu-toggle:visited,
.lp-menu-toggle:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Firefox/Android İçin Ekstra Çerçeve Temizliği */
.lp-menu-toggle::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
}

/* İkonun Kendisi (SVG) */
.lp-menu-toggle .is-icon {
    /* 1. RENK: Doğrudan Siyah */
    fill: #000000 !important;
    color: #000000 !important;

    /* 2. BOYUT: Büyütüldü */
    width: 33px !important;
    height: 33px !important;

    display: block;
    pointer-events: none;
    /* Tıklamayı direkt butona yönlendirir, ikona takılmaz */
}

/* Basılma Efekti (Sadece küçülme) */
.lp-menu-toggle:active {
    transform: scale(0.9);
}

/* --- MOBİL / RESPONSIVE (OFF-CANVAS) --- */
.lp-nav-close {
    display: none;
}

.lp-nav-drawer {
    display: none;
}

.lp-nav-overlay {
    display: none;
}

@media (max-width: 992px) {
    .lp-logo img {
        max-height: 80px;
    }

    /* Masaüstü menüsünü gizle */
    .lp-nav-desktop {
        display: none;
    }

    /* Hamburger butonu göster */
    .lp-menu-toggle {
        display: block;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Arkaplan Overlay */
    .lp-nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Kayan Menü (Drawer) */
    .lp-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
    }

    /* Kapat Butonu */
    .lp-nav-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .lp-nav-close .is-icon {
        width: 20px;
        height: 20px;
        fill: var(--dark-text);
    }

    /* Kayan Menü İçeriği */
    .lp-nav-drawer-content {
        padding: 60px 30px 30px;
    }

    /* Menü linkleri (Dikey) */
    .lp-nav-drawer .lp-nav-menu {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
    }

    .lp-nav-drawer .lp-nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .lp-nav-drawer .lp-nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    /* Butonlar (Dikey) */
    .lp-nav-drawer .lp-nav-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 25px;
    }

    .lp-nav-drawer .lp-auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .lp-nav-drawer .lp-button {
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }

    /* --- JS Classları --- */
    body.nav-is-open {
        overflow: hidden;
    }

    body.nav-is-open .lp-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.nav-is-open .lp-nav-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    body.nav-is-open .lp-menu-toggle {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- ASTRA NÜKLEER GİZLEME (v2 - Header Builder Destekli) --- */

/* 1. Ana Header Kapsayıcıları (Genel) */
header.site-header,
#masthead,
.ast-main-header-wrap,
.main-header-bar {
    display: none !important;
}

/* 2. Astra Mobil Özel (Eski Sistem) */
.ast-mobile-header-wrap,
.ast-mobile-header-content,
#ast-mobile-header {
    display: none !important;
}

/* 3. Astra Header Builder (Yeni Sistem - Muhtemel Suçlu Bu) */
.ast-builder-grid-row-container-mobile,
.ast-builder-menu-mobile,
.ast-header-break-point .site-header,
.ast-header-break-point .main-header-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 4. Mobil Menü Tetikleyicileri (Astra Hamburger Butonu) */
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-buttons,
.ast-button-wrap {
    display: none !important;
}

/* --- FONT VE DÜZEN SABİTLEME (FIX JUMPING & FONTS) --- */

/* 1. Fontu Temadan Miras Al (Astra ne kullanıyorsa o olsun) */
.lp-hero,
.lp-nav-menu a,
.lp-button,
.lp-nav-drawer-content {
    font-family: inherit !important;
    /* Temanın fontunu zorla */
    -webkit-font-smoothing: antialiased;
    /* Yazıları pürüzsüzleştir */
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Buton Kaymasını Önleme */
.lp-button {
    white-space: nowrap;
    /* Yazının alt satıra düşmesini engelle */
    flex-shrink: 0;
    /* Butonun sıkışmasını engelle */
    min-height: 48px;
    /* Buton yüksekliğini sabitle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* 3. İkonların Yerini Önceden Ayır (Zıplamayı keser) */
.lp-button .is-icon {
    flex-shrink: 0;
    /* İkon büzülmesin */
    min-width: 1.1em;
    /* İkonun kaplayacağı yer önceden belli olsun */
}

/* 4. Header Yüksekliğini Garantiye Al */
/* Sayfa yüklenirken header 0px olup sonra açılmasın diye */
.lp-nav {
    min-height: 80px;
    /* Logonun yüksekliğiyle uyumlu olmalı */
    align-items: center;
}

/* 5. Flexbox Hizalama Sorunlarını Gider */
.lp-nav-buttons,
.lp-auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    /* Kapsayıcı yüksekliğini doldur */
}

/* FIX: Astra Container Overflow Fix */
.ast-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* =================================================================
   LANGUAGE SWITCHER STYLES (Header Integration Overlay)
   ================================================================= */
.ielts-lang-switcher {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 1001 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.ielts-lang-switcher .ielts-lang-switcher-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: unset !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    width: auto !important;
}

.ielts-lang-switcher .ielts-lang-switcher-btn:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.ielts-lang-switcher.open .ielts-lang-switcher-btn {
    border-color: #2563eb !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.ielts-lang-flag {
    font-size: 15px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.ielts-lang-label {
    letter-spacing: normal !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.ielts-lang-chevron {
    transition: transform 0.2s ease !important;
    opacity: 0.6 !important;
    stroke-width: 2.5 !important;
    margin-left: 2px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.ielts-lang-switcher.open .ielts-lang-chevron {
    transform: rotate(180deg) !important;
}

.ielts-lang-switcher .ielts-lang-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    display: none;
    flex-direction: column !important;
    min-width: 140px !important;
    padding: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    animation: ieltsLangDropIn 0.15s ease-out !important;
    z-index: 9999 !important;
}

.ielts-lang-switcher .ielts-lang-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.15s ease !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

.ielts-lang-switcher .ielts-lang-option:hover {
    background: rgba(37, 99, 235, 0.06) !important;
    color: #2563eb !important;
}

.ielts-lang-switcher .ielts-lang-option.active {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
    font-weight: 600 !important;
}

.ielts-lang-option-flag {
    font-size: 18px !important;
    line-height: 1 !important;
}

.ielts-lang-option-name {
    flex: 1 !important;
}

@keyframes ieltsLangDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsiveness for desktop screens between 992px and 1200px to accommodate both IELTS and TOEFL panel buttons */
@media (min-width: 993px) and (max-width: 1200px) {
    .lp-button {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }
    .lp-nav-menu {
        gap: 15px !important;
    }
    .lp-nav-desktop {
        gap: 10px !important;
    }
    .lp-auth-buttons {
        gap: 10px !important;
    }
}

/* =================================================================
   FOOTER STYLES (Cathoven Premium Style)
   ================================================================= */
/* Sidebar Offset for Footer */
.isidebar-nav ~ .is-footer,
body:has(.isidebar-nav) .is-footer {
    margin-left: 280px;
    width: calc(100% - 280px);
    box-sizing: border-box;
}
body.sidebar-collapsed .is-footer,
.isidebar-nav.collapsed ~ .is-footer {
    margin-left: 80px;
    width: calc(100% - 80px);
}
@media (max-width: 992px) {
    .isidebar-nav ~ .is-footer,
    body:has(.isidebar-nav) .is-footer,
    body.sidebar-collapsed .is-footer,
    .isidebar-nav.collapsed ~ .is-footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.is-footer {
    background-color: #0f172a; /* Slate 900 - Premium dark background */
    color: #e2e8f0; /* Slate 200 */
    padding: 60px 0 30px 0;
    font-family: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.is-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.is-footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 2fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.is-footer-col {
    display: flex;
    flex-direction: column;
}

.is-footer-brand-col {
    gap: 20px;
}

.is-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.is-footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.is-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.is-footer-socials a:hover {
    background-color: #06b6d4;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.is-social-icon {
    width: 15px;
    height: 15px;
    display: block;
    fill: #ffffff !important;
    color: #ffffff !important;
}

.is-footer-logo img {
    max-height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.is-footer-logo img:hover {
    opacity: 0.8;
}

.is-footer-desc {
    color: #94a3b8; /* Slate 400 */
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.is-footer-contact {
    font-size: 0.9rem;
    color: #94a3b8;
}

.is-footer-contact span {
    font-weight: 600;
    color: #cbd5e1;
}

.is-footer-contact a {
    color: #06b6d4; /* Premium cyan hover */
    text-decoration: none;
    transition: color 0.2s ease;
}

.is-footer-contact a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.is-footer-title {
    color: #06b6d4; /* Cyan/Teal title matching screenshot */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.is-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.is-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.is-footer-links a:hover {
    color: #06b6d4;
    transform: translateX(4px);
}

.is-footer-action-col {
    gap: 15px;
}

.is-footer-trustpilot {
    margin-top: 15px;
}

.is-footer-tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background-color: #00b67a; /* Trustpilot green */
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 4px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.62rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 182, 122, 0.15);
    border: none;
    cursor: pointer;
}

.is-footer-tp-btn:hover {
    background-color: #00a06b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 182, 122, 0.25);
}

.is-footer-tp-star {
    fill: #ffffff;
    width: 8px !important;
    height: 8px !important;
}

.is-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.toefl-dark .is-footer-bottom,
body.toefl-dark .is-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-footer-copyright {
    color: #64748b; /* Slate 500 */
    font-size: 0.85rem;
    margin: 0;
}

.is-footer-bottom-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
}

.is-footer-bottom-info a {
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.is-footer-bottom-info a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .is-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .is-footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .is-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .is-footer-brand-col {
        grid-column: span 1;
    }
    
    .is-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .is-footer-bottom-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }
    
    .is-footer-links a:hover {
        transform: none; /* Disable shift on mobile hover */
    }
}

/* --- PayTR iFrame & WooCommerce Ödeme Ekranı Sabitleme Stilleri --- */
/* PayTR iframe'inin form doldurulurken veya hata uyarıları çıkarken zıplamasını engeller */
#paytr_checkout_form,
#paytriframe,
.paytr_iframe_container,
iframe[src*="paytr.com"],
iframe[id*="paytr"] {
    min-height: 600px !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    display: block !important;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

/* WooCommerce Order-Pay (Ödeme Tamamlama) Sayfası Düzeni */
.woocommerce-order-pay #order_review,
.woocommerce-page.woocommerce-order-pay #order_review {
    max-width: 680px !important;
    margin: 30px auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
}

.woocommerce-order-pay,
.woocommerce-page.woocommerce-order-pay {
    min-height: 85vh;
}

/* ==========================================================================
   AI EXAM COPILOT / ASSISTANT WIDGET STİLLERİ (MODERN UI UPGRADE)
   ========================================================================== */

/* 1. Floating Action Button (FAB) */
#iaw-copilot-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px 11px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(124, 58, 237, 0.25);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

#iaw-copilot-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.5), 0 6px 16px rgba(37, 99, 235, 0.3);
}

.copilot-fab-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.8) translateY(10px) !important;
    pointer-events: none !important;
}

.copilot-fab-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.copilot-pulse-badge {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 3px;
    border: 2px solid #ffffff;
    animation: copilotPulse 2s infinite;
}

@keyframes copilotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 2. Glassmorphism Slide Drawer */
#iaw-copilot-drawer {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 110px);
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.copilot-drawer-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.copilot-drawer-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.copilot-drawer-header {
    background: #ffffff;
    color: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #cbd5e1;
    gap: 10px;
}

.copilot-header-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.copilot-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.copilot-context-badge {
    display: inline-block;
    font-size: 0.68rem;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.copilot-header-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copilot-header-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

#iaw-copilot-close {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#iaw-copilot-close:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

#iaw-copilot-close svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #64748b !important;
    fill: none !important;
    display: block !important;
    stroke-width: 2.2px !important;
}

/* Messages Area */
.copilot-messages-area {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
}

.copilot-msg {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.copilot-msg-user {
    align-items: flex-end;
}

.copilot-msg-ai {
    align-items: flex-start;
}

.copilot-avatar-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.copilot-mini-avatar {
    width: 22px;
    height: 22px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.copilot-bot-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.copilot-msg-bubble {
    max-width: 92%;
    font-size: 0.89rem;
    line-height: 1.6;
    color: #1e293b;
}

.copilot-msg-user .copilot-msg-bubble {
    background: #2563eb;
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 14px 14px 2px 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.copilot-msg-ai .copilot-msg-bubble {
    background: #ffffff;
    color: #1e293b;
    padding: 0;
}

.copilot-msg-ai .copilot-msg-bubble ul {
    margin: 6px 0;
    padding-left: 18px;
}

.copilot-msg-ai .copilot-msg-bubble li {
    margin-bottom: 4px;
}

.copilot-inline-code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}

/* Typewriter Streaming Cursor */
.copilot-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #2563eb;
    margin-left: 2px;
    vertical-align: middle;
    animation: copilotBlink 0.8s infinite;
}

@keyframes copilotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Typing Dots */
.copilot-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}

.copilot-typing-dots span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: copilotTyping 1.4s infinite ease-in-out;
}

.copilot-typing-dots span:nth-child(1) { animation-delay: 0s; }
.copilot-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.copilot-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes copilotTyping {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Bottom Wrapper */
.copilot-bottom-wrapper {
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Action Chips at Bottom */
.copilot-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 130px;
    overflow-y: auto;
    padding: 4px 2px;
}

.copilot-chip {
    padding: 7px 13px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.copilot-chip:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.copilot-chip-highlight {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    border: 1px solid #93c5fd !important;
}

/* Input Area */
.copilot-input-area {
    width: 100%;
}

.copilot-input-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 3px 6px 3px 12px;
    transition: all 0.2s ease;
}

.copilot-input-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#iaw-copilot-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    color: #0f172a;
    resize: none;
    font-family: inherit;
    max-height: 80px;
    padding: 6px 0;
}

#iaw-copilot-send {
    width: 34px !important;
    height: 34px !important;
    background: transparent !important;
    color: #4f46e5 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

#iaw-copilot-send:hover {
    background: #f1f5f9 !important;
    color: #3730a3 !important;
    transform: scale(1.08) !important;
}

#iaw-copilot-send svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #4f46e5 !important;
    fill: none !important;
    display: block !important;
    stroke-width: 2.2px !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    #iaw-copilot-fab {
        bottom: 18px;
        right: 18px;
        padding: 9px 16px;
        font-size: 0.86rem;
    }

    #iaw-copilot-drawer {
        bottom: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        height: calc(100vh - 90px);
    }
}

/* Copilot Highlight Chip */
.copilot-chip-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    font-weight: 600 !important;
}

.copilot-chip-highlight:hover {
    background: #bfdbfe !important;
}


/* Copilot Context Divider & Clear Chat */
.copilot-context-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 8px 0;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
}

.copilot-clear-chat-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
}

.copilot-clear-chat-btn:hover {
    text-decoration: underline;
}

/* Copilot Proactive Nudge Tooltip Box */
.copilot-nudge-box {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #1e293b;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: copilotNudgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999999;
}

.copilot-nudge-box::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 24px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

#copilot-nudge-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}

#copilot-nudge-close:hover {
    color: #ffffff;
}

@keyframes copilotNudgeBounce {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}