
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');


:root {
    /* UpLife Academy — mor: primary, koyu lacivert: secondary (navbar alt şerit, koyu bantlar) */
    --color-primary: #683F91;
    /* Koyu/açık mor — varsayılan olarak ana renkten türetilir; isterseniz sabit hex ile override edin */
    --color-primary-dark: color-mix(in srgb, var(--color-primary) 86%, #000000 14%);
    --color-primary-light: color-mix(in srgb, var(--color-primary) 72%, #ffffff 28%);

    --color-secondary: #1F3A5F;
    /* Secondary color shades for gradient edges */
    --color-secondary-shade-mid: color-mix(in srgb, var(--color-secondary) 78%, #000 22%);
    --color-secondary-shade-deep: color-mix(in srgb, var(--color-secondary) 62%, #000 38%);

    --primary-color: var(--color-primary);
    --primary-color-low: color-mix(in srgb, var(--color-primary) 45%, transparent);
    --primary-color-dark: var(--color-primary-dark);

    --gradient-hero: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);

    /* Nötr gri (metin / ikincil UI) — “secondary” adı geriye dönük uyumluluk */
    --neutral-500: #9CA3AF;
    --neutral-500-rgb: 156 163 175;
    --neutral-600: #6B7280;

    --secondary-color: var(--neutral-500);
    --secondary-color-low: rgb(var(--neutral-500-rgb) / 0.45);
    --secondary-color-dark: var(--neutral-600);

    --tertiary-color: #F5F5F7;
    --tertiary-color-low: rgba(245, 245, 247, 0.92);
    --tertiary-color-dark: #E8E8EC;

    --bg-color: #F5F5F7;
    --bg-color-low: rgba(255, 255, 255, 0.78);
    --bg-color-dark: #EBEBEF;

    --text-dark: #1A1A1A;
    --text-dark-low: rgba(107, 114, 128, 0.95);
    --text-dark-dark: #111827;

    --text-light: #FFFFFF;
    --text-light-low: rgba(255, 255, 255, 0.85);
    --text-light-dark: #E8E8ED;

    --button-color: var(--color-primary);
    --button-color-low: color-mix(in srgb, var(--color-primary) 50%, transparent);
    --button-color-dark: var(--color-primary-dark);

    --card-bg: #FFFFFF;
    --card-bg-low: #F5F5F7;

    --section-dark-bg: var(--color-secondary);
    --section-dark-text: #F8FAFC;
    --section-dark-text-muted: rgba(226, 232, 240, 0.88);

    --smoothline-color: var(--bg-color);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--text-dark);
}

i {
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
}

button:focus {
    outline: none;
}

button:active {
    outline: none;
}

button:hover {
    outline: none;
}

ul,
li {
    list-style: none;
    padding: 0;
}

img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}
h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}
h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}
h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}



body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* Navbar / footer ile aynı genişlik — index.css yüklenmeyen sayfalarda (ör. contact.html) şart */
.uplife-page-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    display: flex;
    position: relative;
    height: 100vh;
}



/* Slider Section */


.slider-sec {
    position: relative;
    height: calc(100vh - 170px);
    width: 100%;
    padding: 0 20px;
    margin-top: 160px;
}

.slider-sec .container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: visible;
}

.slider-sec .slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Tawk.to — sabit widget’ı köşeden içeri al (landing / WhatsApp alanı ile hizalı boşluk) */
#tawkchat-container,
#tawkchat-minimized,
#tawk-bubble-container,
#tawkchat-minified-wrapper {
    top: auto !important;
    bottom: 32px !important;
    /* Köşeden ~4px daha içeri (hafif sola) */
    right: 45px !important;
    left: auto !important;
}

@media (max-width: 767px) {
    html {
        overflow-x: clip;
    }

    /* Mobil iletişim barı (contact-rail) üstünde içerik kessin diye — değişken contact-rail.css’te */
    body:has([data-uplife-contact-rail]) {
        padding-bottom: var(--uplife-mobile-contact-bar-total, calc(72px + env(safe-area-inset-bottom, 0px)));
    }

    /*
     * Tawk baloncuğu: iletişim barının üstünde; sağa 15px.
     * (Tawk iframe’e sık sık inline !important yazar — main.js aynı değerleri zorlar.)
     */
    #tawkchat-container,
    #tawkchat-minimized,
    #tawk-bubble-container,
    #tawkchat-minified-wrapper {
        left: auto !important;
        right: 15px !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        bottom: max(
                80px,
                calc(10px + var(--uplife-mobile-contact-bar-total, calc(72px + env(safe-area-inset-bottom, 0px))))
            )
            !important;
    }

    #tawkchat-container iframe,
    #tawkchat-minimized iframe {
        left: auto !important;
        right: 15px !important;
        max-width: 100vw !important;
        bottom: max(
                80px,
                calc(10px + var(--uplife-mobile-contact-bar-total, calc(72px + env(safe-area-inset-bottom, 0px))))
            )
            !important;
    }
}

/* Mobil menü açıkken Tawk üstte kalmasın (API + !important yedek) */
html.uplife-nav-mobile-open #tawkchat-container,
html.uplife-nav-mobile-open #tawkchat-minimized,
html.uplife-nav-mobile-open #tawk-bubble-container,
html.uplife-nav-mobile-open #tawkchat-minified-wrapper,
html.uplife-nav-mobile-open #tawkchat-minified,
html.uplife-nav-mobile-open iframe[src*='tawk.to'],
html.uplife-nav-mobile-open iframe[src*='embed.tawk'] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

