/* Sayfa: anasayfa */

/*
 * Görsel tam hero genişliğine cover edilirse (kısa × geniş kutu) aşırı yakınlaşır.
 * Sadece sağdaki görünür bölgeye yerleştiriyoruz — orijinale daha yakın kadraj.
 */
.hero-slide .hero-bg-picture {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 62%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero-slide .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide .hero-bg {
    left: auto;
    right: 0;
    width: 62%;
}

.hero-slide {
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-slide .hero-bg-picture,
    .hero-slide .hero-bg {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-slide .hero-overlay {
        display: none;
    }

}

/* =========================================================
   WHY SECTION - "Neden Biogen Farma?"
   ========================================================= */
.why-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #F8FAFC 100%);
    overflow: hidden;
}

.why-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.why-bg-shape--top {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
}

.why-bg-shape--bottom {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.why-section > .container {
    position: relative;
    z-index: 1;
}

.why-section-head {
    max-width: 720px;
    margin: 0 auto 4rem;
}

.why-intro {
    color: var(--gray, #64748B);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* Kartlar eşit yükseklikte ve hizalı */
.why-cards-row {
    align-items: stretch;
    margin-bottom: 4rem;
}

.why-cards-row > [class*="col-"] {
    display: flex;
}

.why-card {
    background: var(--white, #fff);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    height: 100%;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #0E7490) 0%, var(--primary-light, #22D3EE) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.why-card:hover {
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1), 0 0 40px rgba(14, 116, 144, 0.1);
    border-color: rgba(14, 116, 144, 0.2);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary, #0E7490) 0%, var(--primary-dark, #155E75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
}

.why-card:hover .why-card-icon {
    background: linear-gradient(135deg, var(--primary, #0E7490) 0%, var(--primary-dark, #155E75) 100%);
    color: #fff;
    transform: none;
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
}

.why-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark, #0F172A);
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.why-card p {
    color: var(--gray, #64748B);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* CTA Box */
.why-cta {
    background: linear-gradient(135deg, var(--dark, #0F172A) 0%, #1E293B 100%);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.why-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-cta-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.why-cta-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.why-cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
}

.why-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary, #0E7490) 0%, var(--primary-dark, #155E75) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.35);
}

.btn-cta-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 116, 144, 0.45);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Anasayfa ürün/hizmet kartları — yatay kaydırma (CSS scroll-snap) */
.home-catalog-scroll-wrap {
    position: relative;
}

.home-catalog-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-catalog-scroll::-webkit-scrollbar {
    display: none;
}

.home-catalog-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
    scroll-snap-align: start;
}

.home-catalog-item .service-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-catalog-item .service-image {
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

.home-catalog-item .service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-catalog-item .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-catalog-item .service-content p {
    flex: 1;
}

.home-catalog-item .service-content .service-link {
    margin-top: auto;
}

.home-catalog-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.home-catalog-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: 1px solid var(--border, #e2e8f0);
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-catalog-dot.is-active {
    background: var(--primary, #0e7490);
    border-color: var(--primary, #0e7490);
    transform: scale(1.2);
}

@media (max-width: 1199.98px) {
    .home-catalog-item {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 991.98px) {
    .home-catalog-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 575.98px) {
    .home-catalog-scroll-wrap {
        padding: 0 2.25rem;
    }

    .home-catalog-item {
        flex: 0 0 85%;
    }

    .home-catalog-nav {
        width: 2.125rem;
        height: 2.125rem;
        font-size: 0.75rem;
    }
}

/* =========================================================
   Anasayfa kartları — üst çizgi hover (Faaliyet + Haberler)
   ========================================================= */
.services-section .service-card,
.news-section .news-card {
    position: relative;
    overflow: hidden;
}

.catalog-card-clickable.position-relative {
    cursor: pointer;
}

.catalog-card-clickable .service-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-card-clickable:hover .service-link {
    color: var(--primary-dark);
}

.services-section .service-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.services-section .service-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-section .news-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.news-section .news-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-section .service-card::before,
.news-section .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #0E7490) 0%, var(--primary-light, #22D3EE) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.services-section .service-card:hover::before,
.news-section .news-card:hover::before {
    transform: scaleX(1);
}

.news-section .news-excerpt {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0.75rem 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .why-cta {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }

    .why-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .why-section {
        padding: 4rem 0;
    }

    .why-section-head {
        margin-bottom: 2.5rem;
    }

    .why-intro {
        font-size: 1rem;
    }

    .why-card {
        padding: 1.75rem 1.25rem;
    }

    .why-cta {
        padding: 2rem 1.5rem;
    }

    .why-cta-title {
        font-size: 1.375rem;
    }
}
