﻿.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-section {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 12px #9a0101;
    background-color: white;
    margin-top: -125px;
    text-align: center;
    position: relative;
    z-index: 10;
}


    .search-section h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .search-section p {
        font-size: 16px;
        color: #9a0101;
        margin-bottom: 20px;
    }

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

    .search-box input {
        flex: 1;
        padding: 12px 18px;
        border: 1px solid #ccc;
        border-radius: 50px;
        font-size: 14px;
        width: 300px;
        transition: all 0.3s ease;
    }

        .search-box input:focus {
            border-color: #e2001a;
            outline: none;
            box-shadow: 0 0 5px rgba(226, 0, 26, 0.2);
        }

    .search-box button {
        background: #e2001a;
        border: none;
        padding: 12px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

        .search-box button:hover {
            background: #c40016;
        }


/* Swiper alanını belirli bir genişlikte tutalım */
.swiper-container {
    position: relative;
    max-width: 90%;
    overflow: hidden;
}

/* Özel navigasyon butonları */
.custom-prev,
.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6); /* Buton arka planı */
    color: white; /* Buton içindeki ok */
    font-size: 24px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .custom-prev:hover,
    .custom-next:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* Buton konumları */
.custom-prev {
    left: 10px;
}

.custom-next {
    right: 10px;
}


.activities-solutions-section {
    background-color: #f9f9f9;
}

.custom-card {
    border-radius: 16px;
    transition: 0.3s;
    height: 500px; /* kart yüksekliği artırıldı */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

    .custom-card:hover {
        transform: translateY(-5px);
    }

    .custom-card h2 {
        font-size: 28px;
        color: black;
    }

.card-image {
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}

.custom-card a.btn {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    border-radius: 10px;
    background-color: #9a0101;
}
/* Hover durumunda ilk butonun rengini değiştir */
.custom-card:first-child:hover a.btn {
    background-color: #fff;
    color: #9a0101;
    border: 2px solid #9a0101;
}


/*;Banner*/
.animated-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

/* Arka plan resmi tüm alanı kaplar */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Ön plan resim artık üst kısma yaslı */
.foreground-image {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 0px; /* Eskiden 80px idi, şimdi daha yukarı */
    z-index: 2;
}

    .foreground-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1s ease-out;
    }

/* Yazı içeriği artık resmin altında olacak şekilde konumlandı */
.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: -100px; /* Eskiden -20px idi, şimdi daha da yukarı */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.3s;
    color: #000;
}

/* Başlık stilleri */
.sliderbaslik {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
    white-space: normal;
}

/* İlk satır */
.text-welcome {
    font-size: 3.5rem;
    font-weight: normal;
    color: #000;
    display: block;
}

/* WORLD OF ve FILTER'ı aynı satıra almak için inline-block ve spacing */
.text-world-filter {
    display: inline-block;
    margin-top: 10px;
}

/* WORLD OF */
.text-world {
    font-size: 4.5rem; /* veya 4rem */
    font-weight: bold;
    color: #000;
    margin-right: 10px; /* araya boşluk koyar */
}

/* FILTER */
.text-filter {
    font-size: 4.5rem; /* veya 5rem */
    font-weight: bold;
    color: #dd2b1c;
}

.text-line {
    display: inline-block;
    white-space: nowrap;
}

/* İki sütunlu düzen */
.two-column-layout {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.image-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
}

    .image-column img {
        max-width: 100%;
        height: auto;
        max-height: 800px;
        object-fit: contain;
        transform: translateX(-20%);
        opacity: 0;
        transition: transform 1s ease-out, opacity 1s ease-out;
    }

.text-column {
    flex: 1;
    padding-left: 50px;
}

/* Animasyon aktif olduğunda */
.animated-banner.active .image-column img {
    transform: translateX(0);
    opacity: 1;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        padding-top: 100px;
    }

    .image-column, .text-column {
        padding: 20px;
        justify-content: center;
        text-align: center;
    }

    .image-column {
        padding-bottom: 0;
    }

    .text-column {
        padding-top: 0;
    }
}
.vertical-divider {
    width: 5px;
    height: 250px; /* Çizginin yüksekliği */
    background-color: #dd2b1c; /* Kırmızı renk (text-filter ile aynı) */
    margin: 0 40px; /* Resim ve yazıdan boşluk */
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s ease-out 0.5s, opacity 0.6s ease-out 0.5s;
}

/* Animasyon aktif olduğunda çizgiyi göster */
.animated-banner.active .vertical-divider {
    opacity: 1;
    transform: scaleY(1);
}

/* Mobil görünümde çizgiyi gizle */
@media (max-width: 768px) {
    .vertical-divider {
        display: none;
    }
}

/* Animasyon aktif olduğunda görseller ve içerikler görünür hale gelir */
.animated-banner.active .foreground-image img {
    transform: translateY(0);
    opacity: 1;
}

.animated-banner.active .banner-content {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .page-container {
        padding: 40px 15px;
    }

    .search-section {
        padding: 30px 20px;
        margin-top: -80px;
    }

        .search-section h2 {
            font-size: 24px;
        }

        .search-section p {
            font-size: 14px;
        }

    .search-box {
        flex-direction: column;
        gap: 15px;
    }

        .search-box input {
            width: 100%;
            font-size: 16px;
        }

        .search-box button {
            width: 100%;
            border-radius: 25px;
            padding: 12px 0;
        }

    .swiper-container {
        max-width: 100%;
    }

    .custom-prev,
    .custom-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .custom-card {
        height: auto;
        padding: 20px;
    }

        .custom-card h2 {
            font-size: 22px;
        }

    .card-image {
        max-height: 200px;
    }

    .custom-card a.btn {
        font-size: 16px;
        padding: 12px 0;
    }

    .animated-banner {
        min-height: 600px;
        height: auto;
    }

    .foreground-image {
        max-width: 600px;
        padding-top: 40px;
    }

    .banner-content {
        margin-top: -40px;
    }

    .text-welcome {
        font-size: 2rem;
    }

    .text-world,
    .text-filter {
        font-size: 2.5rem;
    }

    .two-column-layout {
        flex-direction: column;
        padding: 20px;
    }

    .image-column,
    .text-column {
        padding: 10px;
        text-align: center;
        justify-content: center;
    }

        .image-column img {
            max-height: 300px;
            transform: translateX(0); /* Animasyona gerek yok */
        }

    .vertical-divider {
        display: none;
    }
}
