/* ==========================================
   GLOBAL DEĞİŞKENLER VE GENEL AYARLAR
========================================== */
:root {
    --primary-red: #b31b1b;
    --primary-dark: #1a2a3a;
    --light-bg: #f8f9fa;
    --text-color: #444444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   TOPBAR
========================================== */
.topbar {
    background-color: var(--primary-dark);
    color: #cccccc;
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar a {
    color: #dddddd;
    text-decoration: none;
    margin-right: 18px;
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: #ffffff;
}

/* ==========================================
   TAŞAN LOGO YAPISI
========================================== */
.custom-navbar {
    overflow: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.custom-navbar .container {
    position: relative;
    overflow: visible !important;
}

.logo-container {
    position: relative;
    width: 140px;
    height: 50px;
}

.overflow-logo-img {
    position: absolute;
    top: -35px;
    left: 0;
    height: 155px;
    width: auto;
    z-index: 1050;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.overflow-logo-img:hover {
    transform: scale(1.03);
}

.brand-title-text {
    line-height: 1.15;
}

/* ==========================================
   NAVBAR & MİNİMALİST MENÜ STİLLERİ
========================================== */
.style-nav .nav-link {
    font-size: 0.92rem !important;
    letter-spacing: 0.3px;
    color: #2b2b2b !important;
    padding: 12px 14px !important;
    position: relative;
    transition: all 0.25s ease-in-out;
}

/* Hover Çizgi Efekti */
.style-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.style-nav .nav-link:hover::after,
.style-nav .nav-link.active::after {
    width: 65%;
}

.style-nav .nav-link.active {
    border-bottom: none !important;
    color: var(--primary-red) !important;
}

/* Dropdown Genel */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-top: 0;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-red);
    color: #ffffff !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-red);
}

/* Mega Menü */
.mega-menu {
    background: #ffffff;
    border-top: 3px solid var(--primary-red) !important;
}

.mega-card {
    transition: all 0.25s ease;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
}

.mega-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.bg-light-danger {
    background-color: rgba(179, 27, 27, 0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* ==========================================
   DROPDOWN & MEGA MENU HOVER KÖPRÜSÜ
========================================== */
@media (min-width: 992px) {
    .style-nav .nav-item.dropdown {
        position: relative;
    }

    .style-nav .nav-item.dropdown.position-static {
        position: static !important;
    }

    .style-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* KÖPRÜ BOŞLUĞU: Menü kapanmasını engeller */
    .style-nav .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 20px;
        background: transparent;
    }

    .style-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        margin-top: 0 !important;
    }

    .style-nav .mega-menu {
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* ==========================================
   CAROUSEL (HERO SLIDER)
========================================== */
.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 42, 58, 0.4) 0%, rgba(26, 42, 58, 0.85) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 50% !important;
    transform: translateY(50%);
    background: rgba(26, 42, 58, 0.85);
    padding: 30px 35px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   FOTOĞRAF GALERİSİ (YÜZ/ODAK DÜZELTMESİ)
========================================== */
.gallery-card { 
    min-height: 240px; 
    max-height: 260px; 
    cursor: pointer; 
}

/* Resimleri üstten hizalayarak kırpar (Kafa/Yüz kesilmelerini önler) */
.gallery-img { 
    object-fit: cover; 
    object-position: top center; 
    transition: transform 0.4s ease; 
}

.gallery-card:hover .gallery-img { 
    transform: scale(1.08); 
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay { 
    opacity: 1; 
}

.max-w-100 { 
    max-width: 100%; 
}

/* ==========================================
   MEDYA & DUYURU KARTLARI
========================================== */
.style-card-img { 
    object-fit: cover; 
    transition: transform 0.35s ease; 
}

.card-hover:hover .style-card-img { 
    transform: scale(1.05); 
}

.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* ==========================================
   BUTONLAR VE GENEL KARTLAR
========================================== */
.btn-red {
    background-color: var(--primary-red);
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.btn-red:hover {
    background-color: transparent;
    color: var(--primary-red);
}

.btn-outline-danger {
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.leading-relaxed {
    line-height: 1.7;
}

/* ==========================================
   TARİHÇE VE ZAMAN ÇİZELGESİ (TIMELINE)
========================================== */
.history-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 4px solid var(--primary-red);
}

.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    text-align: center;
    line-height: 46px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-red);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* ==========================================
   FOOTER & YUKARI ÇIK
========================================== */
.footer {
    background-color: var(--primary-dark);
    color: #cccccc;
    padding-top: 70px;
    padding-bottom: 30px;
}

.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red);
}

.social-icons a {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: var(--primary-red);
    border: none;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}

.btn-back-to-top:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================
   RESPONSIVE (MOBİL BİLEŞEN DÜZENLEMELERİ)
========================================== */
@media (max-width: 991px) {
    .logo-container {
        width: 85px;
        height: 40px;
    }

    .overflow-logo-img {
        top: -18px;
        height: 95px;
    }

    .brand-title-text h4 {
        font-size: 1.05rem !important;
    }

    .brand-title-text h5 {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 20px;
        max-width: 90% !important;
        left: 5% !important;
        right: 5% !important;
    }

    .carousel-caption h1 {
        font-size: 1.35rem !important;
        margin-bottom: 8px !important;
    }

    .carousel-caption p {
        font-size: 0.85rem !important;
        line-height: 1.3;
        margin-bottom: 12px !important;
    }

    .carousel-caption .btn-red {
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
    }
}