﻿.h-50px {
    height: 50px !important;
}

.h-60px {
    height: 60px !important;
}

.h-100px {
    height: 100px !important;
}

.h-200px {
    height: 200px !important;
}

.h-300px {
    height: 300px !important;
}

.h-400px {
    height: 400px !important;
}

.h-500px {
    height: 500px !important;
}

.h-600px {
    height: 600px !important;
}

.h-700px {
    height: 700px !important;
}

.h-800px {
    height: 800px !important;
}

.h-900px {
    height: 900px !important;
}

.h-1000px {
    height: 1000px !important;
}

.mh-100px {
    max-height: 100px !important;
}

.mh-200px {
    max-height: 200px !important;
}

.mh-300px {
    max-height: 300px !important;
}

.mh-400px {
    max-height: 400px !important;
}

.mh-500px {
    max-height: 500px !important;
}

.mh-600px {
    max-height: 600px !important;
}

.mh-700px {
    max-height: 700px !important;
}

.mh-800px {
    max-height: 800px !important;
}

.mh-900px {
    max-height: 900px !important;
}

.mh-1000px {
    max-height: 1000px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

.mt-6 {
    margin-top: 100px !important;
}

.mt-7 {
    margin-top: 150px !important;
}

.mt-8 {
    margin-top: 200px !important;
}

.mt-n5 {
    margin-top: -100px !important;
}

/* =============================================
   HERO CAROUSEL
   =============================================
   Strateji: CSS aspect-ratio ile tüm ekranlarda
   3.84:1 (1920/500) oranı korunur.
   max-height / min-height KULLANILMAZ — bunlar
   aspect-ratio'yu ezer ve oranı bozar.
   ============================================= */

/* Wrapper: sadece aspect-ratio, başka kısıtlama yok */
.h-md-500px {
    aspect-ratio: 1920 / 500;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}

/* carousel-inner ve carousel-item:
   h-100 (height:100%!important) yerine
   position:absolute ile tam doldurma — bu yöntem
   height inheritance sorununu köklü çözer */
.h-md-500px .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.h-md-500px .carousel-item {
    height: 100%;
}

/* Medya kapsayıcı */
.hero-slide-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Görsel ve video: alana tam otur, oran bozulmasın */
.hero-media-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Sol tarafta metin/logo olan görseller (piazza banner vb.) */
.hero-media-element.focal-left {
    object-position: left center;
}

/* Sağ tarafta logo/içerik olan görseller */
.hero-media-element.focal-right {
    object-position: right center;
}

/* Gösterge noktaları */
.h-md-500px .carousel-indicators {
    z-index: 10;
    margin-bottom: 12px;
}

.h-md-500px .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.h-md-500px .carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
}

/* İleri / Geri oklar */
.h-md-500px .carousel-control-prev,
.h-md-500px .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.85;
    z-index: 10;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.h-md-500px .carousel-control-prev { left: 16px; }
.h-md-500px .carousel-control-next { right: 16px; }

.h-md-500px .carousel-control-prev:hover,
.h-md-500px .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

/* Mobilde ok boyutunu küçült */
@media (max-width: 576px) {
    .h-md-500px .carousel-control-prev,
    .h-md-500px .carousel-control-next {
        width: 28px;
        height: 28px;
    }
}


/* Transay Akadami Infografik */
.st-infographic {
    width: 100%;
    max-width: 520px;
}

.st-infographic svg {
    width: 100%;
    height: auto;
    display: block;
}

.st-infographic g[id^="grup-"] {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: all 0.6s ease;
}

.st-infographic g.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Cookie Box */

/* =========================
   COOKIE BANNER FINAL
========================= */

.cookie-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    animation: cookieFadeIn 0.5s ease;
}

.cookie-content {
    width: 340px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.cookie-icon {
    width: 64px;
    height: 64px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.cookie-content h3 {
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0b132a;
}

.cookie-content p {
    text-align: left;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-content a {
    color: #1e4ed8;
    font-weight: 500;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-content button {
    width: auto;
    margin-top: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e4ed8, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.cookie-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}

.cookie-close:hover {
    color: #333;
}

.hidden {
    display: none !important;
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cookie-content {
        width: 90vw;
    }
}


/* =========================================================
   Buton Stilleri
   2 tip: primary / secondary
    tx-btn tx-btn--primary
    tx-btn tx-btn--secondary

    Koyu zemin üstüne secondary: 
    tx-btn tx-btn--secondary tx-btn--on-dark
   ========================================================= */

:root {
    --tx-btn-font: 'Poppins', sans-serif;
    --tx-btn-radius: 999px;
    --tx-btn-height: 60px;
    --tx-btn-height-sm: 40px;
    --tx-btn-px: 24px;
    --tx-btn-gap: 8px;
    --tx-btn-text: #ffffff;
    --tx-btn-text-dark: #0b2239;
    --tx-btn-primary-bg: linear-gradient(135deg, #04415f 0%, #0d5c84 100%);
    --tx-btn-primary-bg-hover: linear-gradient(135deg, #055678 0%, #126f9d 100%);
    --tx-btn-primary-shadow: 0 18px 36px rgba(4, 65, 95, 0.22);
    --tx-btn-primary-shadow-hover: 0 22px 44px rgba(4, 65, 95, 0.30);
    --tx-btn-secondary-bg: rgba(255, 255, 255, 0.10);
    --tx-btn-secondary-bg-hover: rgba(255, 255, 255, 0.18);
    --tx-btn-secondary-text: #04415f;
    --tx-btn-secondary-border: rgba(4, 65, 95, 0.16);
    --tx-btn-secondary-border-hover: rgba(4, 65, 95, 0.28);
    --tx-btn-outline-bg: #ffffff;
    --tx-btn-outline-bg-hover: #f1f5f7;
    --tx-btn-outline-text: #04415f;
    --tx-btn-outline-border: rgba(4, 65, 95, 0.18);
    --tx-btn-outline-border-hover: rgba(4, 65, 95, 0.32);
}

/* Base */
.tx-btn,
.thp-btn,
.pta-exp-btn-main,
.pta-exp-btn-ghost,
.pta-exp-btn-ghost-dark,
.tnv-cta,
.tnv-login,
.cookie-content button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tx-btn-gap);
    min-height: var(--tx-btn-height);
    padding: 0 var(--tx-btn-px);
    border-radius: var(--tx-btn-radius);
    border: 1px solid transparent;
    font-family: var(--tx-btn-font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease, opacity 0.24s ease;
    -webkit-tap-highlight-color: transparent;
}

    .tx-btn:hover,
    .thp-btn:hover,
    .pta-exp-btn-main:hover,
    .pta-exp-btn-ghost:hover,
    .pta-exp-btn-ghost-dark:hover,
    .tnv-cta:hover,
    .tnv-login:hover,
    .cookie-content button:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }

    .tx-btn:focus-visible,
    .thp-btn:focus-visible,
    .pta-exp-btn-main:focus-visible,
    .pta-exp-btn-ghost:focus-visible,
    .pta-exp-btn-ghost-dark:focus-visible,
    .tnv-cta:focus-visible,
    .tnv-login:focus-visible,
    .cookie-content button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.75), 0 0 0 6px rgba(4, 65, 95, 0.22);
    }

    .tx-btn[disabled],
    .tx-btn.is-disabled {
        opacity: 0.56;
        pointer-events: none;
    }

/* Primary */
.tx-btn--primary,
.thp-btn-primary,
.pta-exp-btn-main,
.tnv-cta,
.cookie-content button {
    color: var(--tx-btn-text);
    background: var(--tx-btn-primary-bg);
    border-color: transparent;
    box-shadow: var(--tx-btn-primary-shadow);
}

    .tx-btn--primary:hover,
    .thp-btn-primary:hover,
    .pta-exp-btn-main:hover,
    .tnv-cta:hover,
    .cookie-content button:hover {
        color: var(--tx-btn-text);
        background: var(--tx-btn-primary-bg-hover);
        box-shadow: var(--tx-btn-primary-shadow-hover);
    }

/* Secondary / ghost / outline */
.tx-btn--secondary,
.thp-btn-secondary,
.thp-btn-ghost,
.thp-btn-ghost-light,
.pta-exp-btn-ghost,
.pta-exp-btn-ghost-dark,
.tnv-login {
    color: var(--tx-btn-outline-text);
    background: var(--tx-btn-outline-bg);
    border-color: var(--tx-btn-outline-border);
    box-shadow: none;
    backdrop-filter: none;
}

    .tx-btn--secondary:hover,
    .thp-btn-secondary:hover,
    .thp-btn-ghost:hover,
    .thp-btn-ghost-light:hover,
    .pta-exp-btn-ghost:hover,
    .pta-exp-btn-ghost-dark:hover,
    .tnv-login:hover {
        color: var(--tx-btn-outline-text);
        background: var(--tx-btn-outline-bg-hover);
        border-color: var(--tx-btn-outline-border-hover);
        box-shadow: 0 10px 26px rgba(4, 65, 95, 0.10);
    }

/* Small variant */
.tx-btn--sm,
.tnv-cta,
.tnv-login,
.cookie-content button {
    min-height: var(--tx-btn-height-sm);
    padding: 0 18px;
    font-size: 0.86rem;
}

/* Full width helper */
.tx-btn--block {
    width: 100%;
}

/* Dark surface usage */
.tx-btn--on-dark.tx-btn--secondary {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border-color: rgba(255,255,255,0.20);
}

    .tx-btn--on-dark.tx-btn--secondary:hover {
        background: rgba(255,255,255,0.18);
        color: #ffffff;
        border-color: rgba(255,255,255,0.30);
    }

@media (max-width: 767.98px) {
    .tx-btn,
    .thp-btn,
    .pta-exp-btn-main,
    .pta-exp-btn-ghost,
    .pta-exp-btn-ghost-dark,
    .tnv-cta,
    .tnv-login,
    .cookie-content button {
        width: 100%;
    }
}