﻿/*
Theme Name: Hosteva
Theme URI: https://www.hosteva.com/
Author: Hosteva Ekibi
Author URI: https://www.hosteva.com/
Description: Firmaların tüm bilgilerini hizmetlerini detaylı bir şekilde verebileceği yeni nesil tasarım.
Version: 1.0
Text Domain: hosteva
*/
.logged-in #header {top: 32px;}
img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.instagram-section {
    padding: 100px 0;
    background: #fff9f5;
}

.instagram-inner {
    max-width: 1320px;
    padding: 0 20px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.instagram-title span {
    font-size: 13px;
    letter-spacing: 4px;
    color: #888;
}

.instagram-title h2,
.instagram-title h3 {
    font-family: Arial, sans-serif;
    font-weight: 900;
    line-height: 1;
    margin: 15px 0;
}

.instagram-title h2 {
    font-size: clamp(45px, 6vw, 85px);
    background: linear-gradient(
        90deg,
        #ff4040,
        #ff9b32,
        #f5d13d,
        #39bd83,
        #398bea,
        #a34cce
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instagram-title h3 {
    font-size: clamp(32px, 4vw, 55px);
    color: #262626;
}

.instagram-title a {
    display: inline-block;
    margin-top: 20px;
    color: #d94691;
    font-weight: 700;
    text-decoration: none;
}

.instagram-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.instagram-gallery a {
    overflow: hidden;
    display: block;
}

.instagram-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: .5s;
}

.instagram-gallery a:hover img {
    transform: scale(1.07);
}

@media(max-width:767px) {
    .instagram-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .instagram-title {
        text-align: center;
    }
}


/* =====================================
   ÖNCESİ - SONRASI ALANI
===================================== */

.before-after-section {
    padding: 90px 0;
    background-color: #fff;
}

/* Başlık alanı */

.before-after-subtitle {
    display: inline-block;
    color: #b58b65;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.before-after-heading {
    font-size: 42px;
    font-weight: 600;
    color: #222;
    margin: 10px 0 15px;
}

.before-after-description {
    color: #777;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Görsel kutularının grid yapısı */

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

/* Her bir karşılaştırma kutusu */

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 6px;
    user-select: none;
    -webkit-user-select: none;
    background-color: #eee;
}

/* Sonrası görseli */

.before-after-wrapper .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Öncesi görselinin bulunduğu alan */

.before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Öncesi görseli */

.before-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    display: block;
}

/* Öncesi - Sonrası etiketleri */

.image-label {
    position: absolute;
    top: 15px;
    z-index: 4;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 3px;
    pointer-events: none;
}

.before-label {
    left: 12px;
}

.after-label {
    right: 12px;
}

/* Ortadaki ayırıcı çizgi */

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Sürükleme butonu */

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Sürükleme alanı */

.comparison-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    z-index: 5;
    cursor: ew-resize;
    touch-action: pan-y;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 991px) {

    .before-after-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .before-after-wrapper {
        height: 380px;
    }

    .before-after-heading {
        font-size: 36px;
    }

}

/* =====================================
   MOBİL
===================================== */

@media (max-width: 575px) {

    .before-after-section {
        padding: 60px 0;
    }

    .before-after-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .before-after-wrapper {
        height: 260px;
    }

    .before-after-heading {
        font-size: 29px;
    }

    .before-after-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .image-label {
        top: 10px;
        padding: 6px 7px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .before-label {
        left: 7px;
    }

    .after-label {
        right: 7px;
    }

    .slider-button {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

}