/* ===== Ana Sayfa (Home Index) - Modern & Responsive ===== */

/* Hero / Banner */
.home-hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.home-hero .banner-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.home-hero #branchCarousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.home-hero .carousel-inner {
    border-radius: 0;
    width: 100%;
    margin: 0 auto;
}
.home-hero .carousel-item {
    position: relative;
    text-align: center;
}
.home-hero .carousel-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}
@media (min-width: 768px) {
    .home-hero .carousel-item img {
        max-height: 75vh;
        object-fit: cover;
    }
}
@media (max-width: 991px) {
    .home-hero { margin-top: 0; }
}
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5) !important;
    border: 2px solid rgba(255,255,255,0.8);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}
.home-hero .carousel-control-prev { left: 12px; }
.home-hero .carousel-control-next { right: 12px; }
@media (min-width: 768px) {
    .home-hero .carousel-control-prev { left: 24px; }
    .home-hero .carousel-control-next { right: 24px; }
    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next { width: 56px; height: 56px; }
}
.home-hero .carousel-control-prev:hover,
.home-hero .carousel-control-next:hover {
    background: rgba(0,0,0,0.75) !important;
    transform: translateY(-50%) scale(1.05);
}
.home-hero .carousel-control-prev-icon,
.home-hero .carousel-control-next-icon { width: 24px; height: 24px; }
.home-hero .carousel-indicators {
    bottom: 16px;
    gap: 8px;
}
.home-hero .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.home-hero .carousel-indicators button.active {
    background: #fff;
    transform: scale(1.2);
}

/* Bölüm ortak */
.home-section {
    padding: 3rem 0;
}
@media (min-width: 768px) {
    .home-section { padding: 4rem 0; }
}
@media (min-width: 992px) {
    .home-section { padding: 5rem 0; }
}
.home-section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .home-section-title { font-size: 1.75rem; }
}

/* Özellik kartları - 4'lü */
.home-features .icon-bx-wraper {
    height: 100%;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-features .icon-bx-wraper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.home-features .icon-cell { margin-bottom: 0.75rem; }
.home-features .dz-title { font-size: 1.125rem; }
.home-features p { font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0; }

/* About - AksiyonAL */
.home-about {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.home-about .dz-content { padding: 1rem 0; }
.home-about .pr-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 480px) {
    .home-about .pr-list { grid-template-columns: 1fr 1fr; }
}
.home-about .dz-media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.home-about .tag {
    border-radius: 12px;
}

/* 3 adım kartları */
.home-steps .icon-bx-wraper {
    padding: 1.5rem;
    border-radius: 12px;
    height: 100%;
}
.home-steps .icon-bx-wraper svg {
    display: none;
}
@media (min-width: 992px) {
    .home-steps .icon-bx-wraper svg { display: block; }
}

/* BMI bölümü */
.home-bmi {
    background-size: cover;
    background-position: center;
}
.home-bmi .form-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.home-bmi .form-control {
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}
.home-bmi .btn-skew {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}
.home-bmi .calculate-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.home-bmi .calculate-table table {
    width: 100%;
    min-width: 260px;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.home-bmi .calculate-table th,
.home-bmi .calculate-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}
.home-bmi .calculate-table tr._hesaplama {
    transition: background 0.2s ease;
}
.home-bmi .calculate-table tr.selection {
    background: rgba(255, 255, 0, 0.25) !important;
    color: #000;
    font-weight: 600;
}
.home-bmi .weight-info {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Portfolio slider - oran korunur, kesik görünüm önlenir */
.home-portfolio .swiper-slide {
    height: auto;
}
.home-portfolio .dz-box {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.home-portfolio .dz-box .dz-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}
.home-portfolio .dz-box .dz-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (min-width: 768px) {
    .home-portfolio .dz-box .dz-media {
        aspect-ratio: 5 / 4;
    }
}
.home-portfolio .dz-info {
    padding: 1rem;
    flex-shrink: 0;
}
.home-portfolio .btn-prev,
.home-portfolio .btn-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.home-portfolio .btn-prev:hover,
.home-portfolio .btn-next:hover {
    background: rgba(0,0,0,0.85);
}

/* Testimonials */
.home-testimonials {
    background-size: cover;
    background-position: center;
}
.home-testimonials .testimonial-2 {
    padding: 1.5rem 0;
}
.home-testimonials .testimonial-pic img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}
.home-testimonials .testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
}
@media (min-width: 992px) {
    .home-testimonials .testimonial-text { font-size: 1.0625rem; }
}
.home-testimonials .dz-swiper-prev3,
.home-testimonials .dz-swiper-next3 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.home-testimonials .dz-swiper-prev3:hover,
.home-testimonials .dz-swiper-next3:hover {
    background: rgba(0,0,0,0.8);
}

/* Scroll to top - erişilebilir */
.scroltop.icon-up {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.scroltop:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next,
    .home-features .icon-bx-wraper,
    .home-bmi .calculate-table tr { transition: none; }
}
