/********** Template CSS **********/
:root {
    --bs-tertiary: #797E88;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

h1 {
    color: #004071;
}

body {
    color: #004071;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 9999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar ***/
.top-bar {
    height: 50px;
    padding: 0 90px;
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/
.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #a9a9a9;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0px !important;
        transition: .5s;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

.mobile-dd .dropdown-menu {
    display: none;
    text-align: center;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .mobile-dd input:checked+label+.dropdown-menu {
        display: block;
    }
}

* {
    box-sizing: border-box;
}

.container-fluid.wow {
    transform: none !important;
}

.nav-bar {
    position: relative;
    z-index: 999;
}

.dropdown-menu {
    z-index: 999 !important;
    position: absolute;
}

/* SADECE MASAÜSTÜ */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: none;
        border: none;
        margin-top: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease;
    }

    /* Hover ile aç */
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Bootstrap click ile açarsa */
    .navbar .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-white);
    background: var(--bs-primary);
}

.page-header {
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
    color: var(--bs-white);
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-white);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-white);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-white);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
    display: inline-block;
    /* border görseli sarsın diye */
}

/* Dönen border */
.about-img::before {
    content: "";
    position: absolute;
    top: -12px;
    /* border mesafesi */
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid #004071;
    /* İnce border rengi */
    border-radius: 4px;
    /* kare köşesi */
    animation: spinBorder 20s linear infinite;
    transform-origin: center;
    z-index: 1;
}

.about-img img {
    position: relative;
    z-index: 2;
    /* border’in üstünde görünmesi için */
}

@keyframes spinBorder {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 500px;
    padding: 0 5px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 20px;
    margin-top: 50px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon .square {
    width: 300px;
    height: 300px;
    background: var(--bs-secondary);
    /* Tam ortasına oturt */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}


.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}



/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner {
    position: relative;
    overflow: hidden;
    background: url('../img/banner.jpg') center top no-repeat;
    background-size: cover;
    background-position: center top;
    /* başlangıç noktası */
    background-attachment: fixed;
}

/* Lacivert overlay (opacity'li) korunuyor */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 65, 112, 0.60);
    /* #004170 overlay */
    z-index: 1;
}

/* İçerik üstte kalıyor */
.banner-inner {
    position: relative;
    z-index: 2;
    background: none;
}

/* Yazı net ve beyaz */
.banner h1,
.banner p {
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    border: 3px solid #eef9ff;
}

.donate .donate-form {
    position: relative;
    border: 3px solid #eef9ff;
}

.donate .donate-form::before,
.donate .donate-form::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-form::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-form::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-primary);
    border-left: 150px solid transparent;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    bottom: 0;
    left: 0;
    border-bottom: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    top: 0;
    border-top: 150px solid var(--bs-primary);
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-primary);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
}



/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background-color: #004071;
    /* background: linear-gradient(rgba(0, 65, 112, 0.60), rgba(0, 65, 112, 0.60)), url(../img/bg.webp) center center no-repeat; */
    background-size: cover;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.btn-dark {
    color: #004071;
    background-color: #fff;
    border-color: #fff;
}

.btn-primary {
    color: #fff;
    background-color: #004071;
    border-color: #004071;
}

.btn-primary:hover {
    color: #004071;
    background-color: #f2f2f2;
    border-color: #f2f2f2;
}

.btn-secondary {
    color: #004071;
    background-color: #f2f2f2;
    border-color: #f2f2f2;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #004071;
    border-color: #004071;
}

.logo-wh {
    max-width: 120px;
}

.logo-wh-topbar {
    max-width: 80px;
}

.text-gray {
    color: #a9a9a9;
}

.text-logo {
    color: #004071;
}

/*banner */
.banner-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;

    /* Yoğun ve görünür gölge */
    filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 3));
}

.banner-img-tag {
    object-fit: contain;

    /* 4 kenarı boyunca eşit 12% fade */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 8%),
        linear-gradient(to bottom, transparent 0%, black 8%),
        linear-gradient(to left, transparent 0%, black 8%),
        linear-gradient(to right, transparent 0%, black 8%);

    mask-image: linear-gradient(to top, transparent 0%, black 8%),
        linear-gradient(to bottom, transparent 0%, black 8%),
        linear-gradient(to left, transparent 0%, black 8%),
        linear-gradient(to right, transparent 0%, black 8%);

    -webkit-mask-composite: intersect;
    mask-composite: intersect;
}

.bg-gray {
    background-color: #eef9ff;
}

.brand-slider {
    overflow: hidden;
    width: 100%;
    background: #f8f8f8;
    padding: 20px 0;
    display: flex;
    align-items: center;
    /* ✅ Tüm slider alanını dikeyde ortalar */
    justify-content: center;
}

.slider-track {
    display: flex;
    width: calc(200%);
    animation: scroll 20s linear infinite;
    align-items: center;
    /* ✅ Slide’ları dikeyde ortalar */
}

.slide {
    flex: 0 0 auto;
    width: 150px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    /* ✅ Görselleri slide içinde dikey ortalar */
    justify-content: center;
}

.slide img {
    width: 100%;
    max-height: 100px;
    /* Logoların dengesini bozmamak için yükseklik limiti (isteğe göre 60–120px arası) */
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
    /* ✅ beyaz logoyu keser gibi ayırır */
}

/* Kayma animasyonu */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.dropdown-item:hover {
    color: #004071 !important;
}

/* Checkbox masaüstünde etkisiz olsun, Bootstrap yönetsin */
@media (min-width: 992px) {
    #ddToggle {
        pointer-events: none;
    }
}

#mainHeader {
    position: sticky;
    top: 0;
    z-index: 99999;
}
