html { overflow-x: clip; overflow-y: visible; }
body {
    font-family: 'Inter', sans-serif;
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100%;
}
main { overflow-x: clip; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2, h3, .font-serif { font-family: 'Cormorant Garamond', serif; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline-white {
    display: inline-flex;
    padding: 0.75rem 1.75rem;
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}
.btn-outline-white:hover { background: #fff; color: var(--color-primary); }

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.prose h2 { font-family: 'Cormorant Garamond', serif; color: var(--color-primary); }
.prose a { color: var(--color-secondary); }

.pb-embed { position: relative; margin: 1.25rem 0; border-radius: 12px; overflow: hidden; background: #0f172a; }
.pb-embed iframe { display: block; width: 100%; border: 0; min-height: 200px; }
.pb-embed-youtube { aspect-ratio: 16 / 9; }
.pb-embed-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }

#site-header { width: 100%; max-width: 100vw; }
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.site-header .max-w-7xl { max-width: min(80rem, 100%); }
.site-header .site-nav { flex: 1 1 auto; min-width: 0; }
.site-header .site-nav-link { display: inline-block; color: var(--header-text, #fff); }
.site-header .site-nav-link:hover { opacity: 0.9; }

/* Alt menü dropdown */
.nav-dropdown-menu { pointer-events: none; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { pointer-events: auto; }
.nav-dropdown-btn { background: none; border: none; cursor: pointer; }

/* Sayfa düzenleyici — gradyan / renkli metin (önizleme = canlı site) */
.pb-el [style*="-webkit-background-clip"],
.pb-el [style*="background-clip: text"],
.pb-word-chunk[style*="-webkit-background-clip"],
.pb-word-chunk[style*="background-clip: text"] {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.pb-tx-plain {
    display: inline;
}

/* Element Studio stilleri — Tailwind tema sınıflarının üzerine */
.module .pb-el[data-pb-el] {
    /* inline + moduleScopedCss birlikte uygulanır */
}
.module .pb-el[data-pb-el] a {
    color: inherit;
}

/**
 * overflow-x-hidden (Tailwind) yalnızca X ekseninde uygulandığında CSS spec gereği
 * overflow-y otomatik "auto" olur → dar kutularda sahte dikey scrollbar.
 * clip: yatay taşmayı keser, scroll container oluşturmaz.
 */
.overflow-x-hidden {
    overflow-x: clip;
    overflow-y: visible;
}
@supports not (overflow-x: clip) {
    .overflow-x-hidden {
        overflow-x: hidden;
        overflow-y: hidden;
    }
}
section.module {
    overflow-x: clip;
    overflow-y: visible;
}
@supports not (overflow-x: clip) {
    section.module {
        overflow: hidden;
    }
}
.layout-row.overflow-x-hidden,
.layout-row .overflow-x-hidden {
    overflow-x: clip;
    overflow-y: visible;
}
@supports not (overflow-x: clip) {
    .layout-row.overflow-x-hidden,
    .layout-row .overflow-x-hidden {
        overflow: hidden;
    }
}

/* Modül tam genişlik — viewport kaydırması yok (düzeni bozmaz) */
.module--full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: auto;
    right: auto;
}
.module-image_captions.module--full-width .pb-ic-inner {
    width: 100%;
    max-width: none;
}

/* Görsel + metin — sütun oranı */
.pb-ic-item {
    --pb-ic-img-pct: 40%;
}
@media (min-width: 640px) {
    .pb-ic-item {
        flex-direction: row !important;
    }
    .pb-ic-media {
        flex: 0 0 var(--pb-ic-img-pct, 40%);
        max-width: 70%;
        min-width: 20%;
        width: auto !important;
    }
    .pb-ic-body {
        flex: 1 1 0;
        min-width: 0;
    }
}
.pb-ic-media--empty {
    min-height: 10rem;
    background: #f3f4f6;
}

/* Landing modülleri — cam kart & koyu şerit uyumu */
.pb-glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.module--bg-dark .pb-glass-card,
.bg-\[var\(--color-dark\)\] .pb-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Popup kampanya modülü */
.pb-popup-module .pb-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pb-popup-module .pb-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.pb-popup-module .pb-popup-box {
    position: relative;
    width: min(100%, 32rem);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}
.pb-popup-module .pb-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.pb-popup-module .pb-popup-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
body.pb-popup-open {
    overflow: hidden;
}
