/* ========================================
   CUSTOM SLIDER - Vanilla JS
   ======================================== */

/* Slider Container */
.custom-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-slider:active {
    cursor: grabbing;
}

/* Slider Wrapper */
.custom-slider-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 31.58%; /* 1900x600 aspect ratio */
    height: 0;
}

/* Slides Container */
.custom-slider-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.custom-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.custom-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.custom-slide.prev {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* Slide Image */
.custom-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Slide Link */
.custom-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-slide-link img {
    transition: transform 0.3s ease;
}

.custom-slide-link:hover img {
    transform: scale(1.02);
}

/* Slide Content Overlay */
.custom-slide-content {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    text-align: right;
    z-index: 3;
    max-width: 600px;
}

.custom-slide-title {
    color: #1c3683;
    font-family: 'Gotham-Book';
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.custom-slide-desc {
    color: #000;
    font-family: 'Gotham-Book';
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Navigation Arrows */
.custom-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    background: #1c3683 no-repeat scroll center center;
    width: 70px;
    height: 60px;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-slider-arrow-left {
    left: 0;
    background-image: url(../images/arrow-thin-left.png);
}

.custom-slider-arrow-right {
    right: 0;
    background-image: url(../images/arrow-thin-right.png);
}

/* Navigation Bullets */
.custom-slider-bullets {
    z-index: 1000;
    position: absolute;
    bottom: 30px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    filter: alpha(opacity=100);
    -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)';
    -moz-opacity: 1;
    -khtml-opacity: 1;
    opacity: 1;
    -webkit-transition: opacity 0.2s ease-out;
    -moz-transition: opacity 0.2s ease-out;
    -o-transition: opacity 0.2s ease-out;
    -ms-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    -webkit-transform: translateZ(5px) translateX(-50%);
    transform: translateZ(5px) translateX(-50%);
}

.custom-slider-bullet {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
    width: 18px;
    height: 18px;
    border-radius: 10px;
    border: 3px solid #ffffff;
    transition: background-color 0.3s ease;
}

.custom-slider-bullet.active {
    background-color: #1c3683;
}

.custom-slider-bullet:hover {
    background-color: rgba(28, 54, 131, 0.7);
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .custom-slider-wrapper {
        padding-bottom: 0;
        height: auto;
        position: relative;
    }

    .custom-slide {
        position: absolute;
        height: auto;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Aktif slide relative olmalı ki yer kaplasın */
    .custom-slide.active {
        position: relative !important;
        z-index: 2;
    }

    /* Prev ve diğerleri absolute */
    .custom-slide.prev {
        position: absolute !important;
        z-index: 1;
    }

    .custom-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    .custom-slide-content {
        right: 20px;
        left: 20px;
        max-width: 100%;
    }

    .custom-slide-title {
        font-size: 28px;
    }

    .custom-slide-desc {
        font-size: 14px;
    }

    /* Mobilde arrowları gizle */
    .custom-slider-arrow {
        display: none;
    }

    .custom-slider-bullets {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        justify-content: center;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .custom-slider-wrapper {
        padding-bottom: 40%;
    }

    .custom-slide-title {
        font-size: 36px;
    }
}

.service-box h3 {
    font-family: GothamLight;
    font-weight: 400 !important;
    font-size: 20px;
    color: #fff;
}
.blog-title {
    font-size: 18px;
}
.home-title {
    font-size: x-large;
    color: #1c3683;
}
