/* ==================================================
   ANA SAYFA SLIDER
   ================================================== */

.home-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-height: 500px;
    overflow: hidden;
    background-color: #111;
}

.home-hero .carousel,
.home-hero .carousel-inner,
.home-hero .carousel-item,
.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Slider geçişi */

.home-hero .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.home-hero .carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Slider okları */

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    z-index: 6;
    width: 8%;
    opacity: 1;
}

.home-hero .carousel-control-prev-icon,
.home-hero .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    background-size: 18px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.home-hero .carousel-control-prev:hover
.carousel-control-prev-icon,
.home-hero .carousel-control-next:hover
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.34);
    transform: scale(1.05);
}

/* Slider göstergeleri */

.home-hero .carousel-indicators {
    z-index: 7;
    bottom: 28px;
    margin-bottom: 0;
}

.home-hero .carousel-indicators button {
    width: 28px;
    height: 2px;
    margin: 0 5px;
    border: 0;
    background-color: #fff;
    opacity: 0.55;
}

.home-hero .carousel-indicators button.active {
    opacity: 1;
}

.home-page {
    width: 100%;
}

/* ==================================================
   ANA SAYFA SLIDER - TABLET VE MOBİL
   ================================================== */

@media (max-width: 1199.98px) {
    .home-hero {
        min-height: 450px;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        width: 12%;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 420px;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        width: 15%;
    }

    .home-hero .carousel-control-prev-icon,
    .home-hero .carousel-control-next-icon {
        width: 38px;
        height: 38px;
        background-size: 15px;
    }

    .home-hero .carousel-indicators {
        bottom: 18px;
    }

    .home-hero .carousel-indicators button {
        width: 21px;
    }
}

/* ==================================================
   ANA SAYFA HİZMET KARTLARI
   ================================================== */

.home-services {
    width: 100%;
    padding: 80px 0 95px;
    background-color: #fff;
}

.home-services .container {
    max-width: 1200px;
}

.service-card {
    position: relative;
    width: 100%;
}

.service-card-link {
    position: relative;
    display: block;
    width: 100%;
}

.service-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #eee;
    aspect-ratio: 275 / 206;
}

.service-card-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.35s ease;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    min-height: 122px;
    margin: -28px auto 0;
    padding: 25px 24px 20px;
    color: #fff;
    background-color: var(--mge-blue);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.service-card-content h2 {
    width: 100%;
    min-height: 42px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.service-card-detail {
    display: flex;
    max-height: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition:
        max-height 0.3s ease,
        margin-top 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.service-card-detail span {
    font-size: 20px;
    line-height: 1;
}

.service-card-link:hover .service-card-image img {
    transform: scale(1.06);
}

.service-card-link:hover .service-card-image::after {
    background-color: rgba(0, 0, 0, 0.12);
}

.service-card-link:hover .service-card-content {
    background-color: var(--mge-dark-blue);
    transform: translateY(-4px);
}

.service-card-link:hover .service-card-detail {
    max-height: 30px;
    margin-top: 13px;
    opacity: 1;
    transform: translateY(0);
}

.service-card-link:focus-visible {
    outline: 3px solid rgba(23, 71, 151, 0.35);
    outline-offset: 4px;
}

/* Tablet */

@media (max-width: 1199.98px) {
    .home-services {
        padding: 65px 0 75px;
    }

    .home-services .container {
        max-width: 900px;
    }
}

/* Telefon */

@media (max-width: 575.98px) {
    .home-services {
        padding: 45px 0 55px;
    }

    .home-services .container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .service-card-content {
        min-height: 108px;
    }

    .service-card-detail {
        max-height: 30px;
        margin-top: 12px;
        opacity: 1;
        transform: none;
    }
}

/* ==================================================
   ANA SAYFA ÜÇLÜ BİLGİ ŞERİDİ
   ================================================== */

.home-features {
    width: 100%;
    padding: 0 0 80px;
    background-color: #fff;
}

.home-features .container {
    max-width: 1200px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.feature-box {
    display: flex;
    min-height: 145px;
    align-items: center;
    padding: 30px 34px;
}

.feature-box-light {
    color: #262626;
    background-color: #f5f5f5;
}

.feature-box-blue {
    color: #fff;
    background-color: var(--mge-blue);
}

.feature-box-dark {
    color: #fff;
    background-color: #262626;
}

.feature-icon {
    display: flex;
    width: 66px;
    flex: 0 0 66px;
    align-items: center;
    justify-content: flex-start;
    margin-right: 20px;
}

.feature-icon i {
    font-size: 49px;
    line-height: 1;
}

.feature-box-light .feature-icon {
    color: #262626;
}

.feature-box-blue .feature-icon,
.feature-box-dark .feature-icon {
    color: #fff;
}

.feature-content {
    min-width: 0;
}

.feature-content h2 {
    margin: 0 0 13px;
    color: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.feature-content p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

/* Tablet */

@media (max-width: 991.98px) {
    .home-features {
        padding-bottom: 65px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        min-height: 130px;
    }
}

/* Telefon */

@media (max-width: 575.98px) {
    .home-features {
        padding-bottom: 50px;
    }

    .home-features .container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .feature-box {
        min-height: 125px;
        padding: 25px 24px;
    }

    .feature-icon {
        width: 55px;
        flex-basis: 55px;
        margin-right: 15px;
    }

    .feature-icon i {
        font-size: 41px;
    }

    .feature-content h2 {
        margin-bottom: 9px;
        font-size: 21px;
    }

    .feature-content p {
        font-size: 13px;
    }
}