﻿

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

#foundersMessage,
#gmMessage,
#ourHistory,
#ethicPolicy {
    scroll-margin-top: 90px; /* adjust to your header height */
}

.open-sans {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.inter-font{
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}


.header-font-inter {
    font-family: 'Inter', sans-serif;
    font-size: medium;
    color: white;
    font-weight: 300;
}

.ibm-plex-sans-index{
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



.hero-img {
    height: 240px;
    object-fit: cover;
}


.text-bg-purple {
    color: #7c59cd !important;
    background-color: #fff !important;
}

.feature-box {
    background: #fff;
    border-radius: .75rem;
    padding: 1.25rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

    .feature-box h3 {
        margin-top: .5rem
    }

    .feature-box p {
        margin: 0;
        color: #6c757d
    }

.policy {
    line-height: 1.7;
}

.news-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

    .news-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.text-navy {
    color: #191f6c !important; /* Lacivert */
}

.liste li::marker {
    color: #001f54 !important; /* Lacivert */
}

.custom-gutter {
    gap: 9rem; /* İstediğiniz değeri buraya yazabilirsiniz */
}

.custom-overlay {
    background-color: rgba(0,0,0,0.5);
}
index-carousel-overlay {
    box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -50px inset;
    z-index: 4;
}

.vem-item-image {
    background-color: #f8f8f8;
}

    .vem-item-image img {
        object-fit: cover;
        max-width: 100%;
        height: auto;
    }


.vem-item-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.btn {
    padding: 0.4rem 1rem;
    border-radius: 9999px; /* Tam yuvarlak köşe */
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #191f6c !important;
    color: white;
    border: none !important;
    outline: none;
}


/* Overlay */
/* Stronger selectors that win against Bootstrap's defaults */
:root .modal { /* was .modal */
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1055;
    padding: 1rem;
    /* ensure Bootstrap's overflow rules don't force full-height */
    overflow: visible !important;
}

    :root .modal.is-open { /* was .modal.is-open */
        display: flex !important;
    }

    :root .modal .modal-content { /* was .modal-content */
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        width: 300px;
        max-width: 90%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* hard cap vertical size — content scrolls INSIDE the box */
        max-height: 85vh !important;
        overflow: auto !important;
        box-sizing: border-box;
    }

        :root .modal .modal-content * {
            overflow-wrap: anywhere;
        }

        :root .modal .modal-content img {
            max-width: 100%;
            height: auto;
        }

        :root .modal .modal-content button {
            width: auto;
            padding: 0.25rem 0.5rem;
            font-size: 0.85rem;
            margin-top: 10px;
        }

    :root .modal .modal-close {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 0.3rem;
        background-color: #001F54;
        color: #fff;
        border: none;
        cursor: pointer;
    }

        :root .modal .modal-close:hover {
            background-color: #003080;
        }

.bg-career-header1 {
    background-color: #e7f2ff;
}

.bg-career-header2 {
    background-color: #f1f7e8;
}

.bg-career-header3 {
    background-color: #eff2f5;
}

.bg-career-header4 {
    background-color: #ffeeed;
}

.flag-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

/*Header Style*/
:root {
    --bs-primary: var(--vem-primary);
    --vem-primary: #191f6c;
    --vem-primary-90: rgba(25, 31, 108, 0.90);
    --vem-primary-70: rgba(25, 31, 108, 0.70);
    --vem-primary-0: rgba(25, 31, 108, 0);
}


/* Üstte yumuşak gradient */
.header-gradient {
    background: linear-gradient(180deg, rgba(25,31,108,.45) 0%, rgba(25,31,108,.20) 70%, rgba(25,31,108,0) 100%);
    transition: background-color .2s ease, background .2s ease;
}

/* Scroll sonrası: katı (#191f6c) %30 opak */
.header-gradient.scrolled {
    background: none;
    background-color: #1d2254;
    opacity: .90;
}

    /* Ensure links/icons are bright on dark bg */
    .header-gradient .navbar,
    .header-gradient .nav-link,
    .header-gradient .navbar-brand,
    .header-gradient .navbar-toggler {
        color: #fff;
    }


        .header-gradient .nav-link:hover,
        .header-gradient .nav-link:focus,
        .header-gradient .nav-link.active {
            opacity: .8;
            text-underline-offset: .25rem;
        }

.header-logo {
    height: 44px;
    width: auto;
}

/* Toggler icon sizing and contrast */
.navbar-toggler .bi {
    line-height: 1;
}

/* Mobile: keep a solid-ish backdrop when menu is opened */
@media (max-width: 991.98px) {
    .header-gradient .navbar-collapse.show {
        background: linear-gradient( 180deg, rgba(25,31,108,.55) 0%, rgba(25,31,108,.25) 70%, rgba(25,31,108,0) 100% );
        padding: .75rem 0;
    }
}


/* === Header Dropdowns (match VEM style) =============================== */
/* Base menu look */
.header-gradient .dropdown-menu {
    font-family: 'Inter', sans-serif; /* keep header font */
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    background: #fff;
    padding: .5rem;
    min-width: 16rem; /* comfortable width */
    z-index: 1060; /* above fixed header */
}

/* Space menu slightly under the toggle on desktop */
@media (min-width: 992px) {
    .navbar-nav > .dropdown > .dropdown-menu {
        margin-top: .6rem;
    }
}

/* Items */
.header-gradient .dropdown-item {
    color: #191f6c; /* VEM navy */
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-weight: 400;
}

    /* Hover / focus tint (primary with low alpha) */
    .header-gradient .dropdown-item:hover,
    .header-gradient .dropdown-item:focus {
        background: rgba(var(--vem-primary-rgb), .08);
        color: #191f6c;
    }

    /* Active/selected state */
    .header-gradient .dropdown-item.active,
    .header-gradient .dropdown-item.active:focus,
    .header-gradient .dropdown-item.active:hover {
        background: #191f6c;
        color: #fff;
    }

/* Section header and divider inside menus */
.header-gradient .dropdown-header {
    font-size: .8rem;
    color: #6c757d;
    padding: .25rem .75rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.header-gradient .dropdown-divider {
    margin: .4rem .5rem;
    opacity: .15;
}

/* Caret visibility over dark header (keeps white) */
.header-gradient .nav-link.dropdown-toggle {
    color: #fff;
}

    .header-gradient .nav-link.dropdown-toggle:after {
        border-top-color: currentColor; /* stays white because link is white */
    }

/* Mobile: ensure dropdown is readable over gradient */
@media (max-width: 991.98px) {
    .header-gradient .dropdown-menu {
        margin: .25rem 0 .75rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }
}

/* Optional: wider menu for multi-line labels (e.g., Politikalarımız) */
.header-gradient .dropdown-menu.wide {
    min-width: 20rem;
}

/* Keep your existing hover-open behavior on ≥ lg */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-toggle:focus {
        outline: none;
    }
}
/* Desktop: hover'da kapanma sorununu düzelt */
@media (min-width: 992px) {
    /* 1) Aradaki boşluğu kaldır */
    .navbar-nav > .dropdown > .dropdown-menu {
        margin-top: 0 !important; /* önce .6rem vermiştik: kaldırıyoruz */
    }

    /* 2) Menü veya ebeveyn hover iken açık kalsın */
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown .dropdown-menu:hover {
        display: block;
    }

    /* 3) Hover "köprüsü": toggle ile menü arasında görünmez bir alan */
    .navbar .dropdown {
        position: relative;
    }

        .navbar .dropdown::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 100%; /* toggle'ın hemen altı */
            height: 10px; /* mouse düşmesin diye 10px köprü */
        }

    /* 4) Menünün üstte kalması için z-index */
    .header-gradient .dropdown-menu {
        z-index: 1060;
    }
}




.carousel-shadow {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

/*CAROUSEL STYLE*/
/* Orta koyu kutu + gradient kenar */
.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    padding: 2rem;
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

    /* Apply subtle shadow directly behind text */
    .hero-caption h1,
    .hero-caption h3 {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    }


    /* Optional: soften button appearance */
    .hero-caption .btn {
        background-color: rgba(255, 255, 255, 0.95);
        color: black;
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
        font-weight: 500;
    }

/*INDEX FACILITIES CONFIG*/
:root {
    --vem-primary-rgb: 25,31,108;
}
.facility-tile {
    position: relative;
    overflow: hidden;
}

    /* Görsel kesin kaplasın ve altta kalsın */
    .facility-tile > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

/* Alt kısım koyu gradient overlay */
.facility-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(to top, rgba(var(--vem-primary-rgb), .90) 0%, rgba(var(--vem-primary-rgb), 0) 40%);
    z-index: 2;
    pointer-events: none;
}

.object-fit-cover {
    object-fit: cover;
}

@media (min-width: 768px) {
    .ratio-16x9 {
        --bs-aspect-ratio: 62%;
    }
    /* 16:9 yerine biraz daha yüksek */
}


/*ABOUT US STATS*/
.stats-container{
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 50px auto;
    padding-inline: 20px;
}
.stats-container .stat{
    padding: 24px;
    text-align: center;
    color: #edf2f4
}

.stats-container .stat .odometer
{
    font-size: 50px;
    font-weight: bold;
}
.stats-container .stat .type{
    font-size: 30px; 
}


@media(max-width: 700px)
{
    .stats-container{
        grid-template-columns: 1fr;
    }
}


.about-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 250px;
    background-color: #191f6c
}

/* make the card a positioning/clip context */
.about-bg {
    position: relative;
    overflow: hidden; /* trims video to card (incl. rounded corners) */
    border-radius: inherit; /* ensures clipping matches .rounded-2 */
}

    /* video fills the card 1:1 with the background image box */
    .about-bg > .bg-video {
        position: absolute;
        inset: 0; /* top/right/bottom/left: 0 */
        width: 100%;
        height: 100%;
        object-fit: cover; /* same as background-size: cover */
        z-index: 0;
        opacity: .22; /* subtle; tweak as you like */
        pointer-events: none; /* clicks go to content */
    }

    /* keep content above the video */
    .about-bg > :not(.bg-video) {
        position: relative;
        z-index: 1;
    }

.site-bg-video {
    position: relative;
    min-height: 100dvh; /* full viewport baseline */
}

    /* The video sits behind all content */
    .site-bg-video > .bg-video {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        z-index: -1; /* behind everything */
        pointer-events: none; /* clicks go to page */
        opacity: 0.40; /* full strength */
    }

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .9s ease;
    will-change: opacity, transform;
}

    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }


.reveal-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity .6s ease, transform .9s ease;
    will-change: opacity, transform;
}

    .reveal-down.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-left {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .6s ease, transform .9s ease;
    will-change: opacity, transform;
}

    .reveal-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

.reveal-right {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .6s ease, transform .9s ease;
    will-change: opacity, transform;
}

    .reveal-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }



/* Splide pagination: use Bootstrap primary */
#sustainability .splide__pagination__page {
    background-color: #191f6c !important;
    opacity: 0.35; /* subtle default */
    border: none;
}

    #sustainability .splide__pagination__page.is-active {
        background-color: var(--bs-primary);
        opacity: 1;
        transform: scale(1.15);
    }

#sustainability .splide__pagination {
    gap: .5rem; /* optional: nicer spacing */
}


/* smaller, responsive map embeds */
.map-embed {
    height: 260px;
    width: 100%;
}

@media (min-width: 992px) {
    .map-embed {
        height: 300px;
    }
}

.map-wrapper {
    border-radius: .5rem;
    overflow: hidden;
    background: #f8f9fa;
}

.contact-card h3 {
    font-weight: 600;
}

.contact-card .small a {
    text-decoration: none;
}

/* Tunables (optional) */
:root{
  --card-raise: -4px;
  --card-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12);
  --card-outline: 3px solid var(--bs-primary);
}

/* Generic hover for cards / clickable blocks */
.card-hover{
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform;
}
.card-hover:hover,
.card-hover:focus-visible{
  transform: translateY(var(--card-raise));
  box-shadow: var(--card-shadow);
}
.card-hover:active{ transform: translateY(calc(var(--card-raise) / 4)); }

/* Improve focus for keyboard users */
.card-hover:focus-visible{
  outline: var(--card-outline);
  outline-offset: 2px;
}

/* (Optional) slight zoom for images inside cards */
.card-hover .card-img, 
.card-hover .card-img-top, 
.card-hover img{
  transition: transform .35s ease, filter .35s ease;
}
.card-hover:hover .card-img,
.card-hover:hover .card-img-top,
.card-hover:hover img{
  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.02);
}

/* Respect users who prefer no hover or motion */
@media (hover:none){
  .card-hover:hover,
  .card-hover:focus-visible{ transform:none; box-shadow:none; }
  .card-hover:hover img{ transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .card-hover, .card-hover *{ transition:none !important; }
}

