:root {
    --main-bg: #f5f7fa;
    --accent-blue: #819aa5;
    --link-blue: #1e5b8f;
    --dark-navy: #0c2a44;
    --contrast-orange: #f39c12;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #333; 
    background-color: var(--main-bg);
    margin: 0;
}

/* Hero Alanı */
.hero-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../img/header.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
    color: white;
    padding-top: 100px;
    margin-bottom: 50px;
}

.header-top {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 1050;
    padding: 20px 0;
}

/* Üst Bölüm: Sadece Logo ve Menü */
.inner-header {
    background-color: var(--dark-navy);
    padding: 15px 0;
}

/* Menü Butonları */
.nav-item {
    background-color: var(--accent-blue);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin: 5px;
    transition: 0.3s;
}

.nav-link { 
    color: white !important; 
    padding: 8px 18px !important;
    font-size: 0.9rem;
}

.nav-item:hover { 
    background-color: #6d848f; 
}

/* Menü Altındaki Boşluk */
.spacer-line {
    height: 5px;
    background-color: var(--main-bg);
}

/* Ana Şerit */
.accent-divider {
    height: 5px;
    background-color: var(--accent-blue);
    width: 100%;
}

/* Ortak Kart Stili (Sol Üst & Sağ Alt Yuvarlak) */
.custom-card {
    background: white;
    border: none;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Yazı Alanı Konumlandırma */
.main-content {
    padding: 60px 0;
}

.content-container {
    background: white;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    min-height: 400px;
}

.content-text h2 {
    color: var(--dark-navy);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.content-text h3 {
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.content-text p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 20px;
}

/* Standartlar Bölümü */
.standard-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.circle-icon {
    width: 40px;
    height: 40px;
    background: var(--main-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.standard-card h4 { 
    color: var(--link-blue); 
    font-weight: 700; 
    margin: 0;
    text-align: left;
}

.standard-card p {
    font-size: 0.85rem;
    text-align: left;
    color: #666;
}

.btn-learn-more {
    background: transparent;
    color: var(--link-blue);
    border: 1px solid var(--link-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 20px;
    transition: 0.3s;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.btn-learn-more:hover {
    background: var(--link-blue);
    color: white;
}

/* Duyurular Bölümü (3'lü Yan Yana) */
.news-card {
    padding: 20px;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

/* Şerit Genel Yapısı */
.action-bar {
    margin-top: 60px;
    margin-bottom: 0;
}

/* Koyu Mavi Taraf */
.bg-dark-blue {
    background-color: var(--dark-navy);
}

/* KONTRAST TARAF (Göze Çarpan Renk) */
.bg-contrast {
    background-color: var(--contrast-orange);
}

.letter-spacing-1 { 
    letter-spacing: 1px; 
}

/* Sosyal Medya İkonları */
.social-icon-link {
    color: white;
    font-size: 1.1rem;
    margin-right: 20px;
    transition: 0.3s;
    opacity: 0.8;
}

.social-icon-link:hover {
    opacity: 1;
    color: var(--contrast-orange);
    transform: scale(1.2);
}

/* İletişim Butonu */
.btn-contact-now {
    background-color: var(--dark-navy);
    color: white;
    padding: 10px 30px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
}

.btn-contact-now:hover {
    background-color: white;
    color: var(--dark-navy);
    border-color: var(--dark-navy);
}

/* Kayan Logo Sistemi */
.indexing-carousel {
    background: white;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.logo-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 30s linear infinite;
}

.logo-slide {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.logo-slide img {
    max-height: 35px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* Footer */
footer { 
    background: var(--dark-navy); 
    color: #fff;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer h6 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

footer ul li {
    margin-bottom: 8px;
}

/* Responsive Tasarım */
@media (max-width: 991px) {
    .navbar-collapse { 
        background: rgba(255,255,255,0.98); 
        padding: 20px; 
        border-radius: 15px; 
        margin-top: 15px; 
    }
    .nav-link { 
        color: #333 !important; 
    }
    .nav-item { 
        background: #f0f0f0; 
    }
}

@media (max-width: 768px) {
    .action-strip { 
        text-align: center; 
        justify-content: center !important; 
        gap: 15px; 
    }
}

@media (max-width: 767px) {
    .bg-dark-blue, .bg-contrast {
        padding: 15px !important;
    }
}

/* MODERN ALT MENÜ SİSTEMİ */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 750px;
    max-width: 85vw;  /* Ekran genişliğinin max %85'i */
    border: none;
    border-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px 35px;
    margin-top: 5px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    
    /* Otomatik 3 sütun grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 25px;
}

/* Sağdaki menüler - ekrandan taşmasın */
.navbar-nav .nav-item.dropdown:nth-last-child(-n+3) .dropdown-menu.mega-menu {
    left: auto;
    right: 0;
}

.nav-item.dropdown:hover .dropdown-menu.mega-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
}

/* Dropdown linkler */
.dropdown-item {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;  /* Satır yüksekliği */
    transition: all 0.2s;
    border-left: 3px solid transparent;
    background: transparent;
    white-space: normal;  /* BURASI ÖNEMLİ - 2 satıra geçebilir */
    word-wrap: break-word;  /* Uzun kelimeler kırılsın */
}

.dropdown-item:hover {
    background: rgba(129, 154, 165, 0.08);
    color: var(--link-blue);
    border-left-color: var(--accent-blue);
    padding-left: 20px;
}

.dropdown-item i {
    margin-right: 10px;
    color: var(--accent-blue);
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;  /* İkon küçülmesin */
}

/* Az item varsa (1-3) tek sütun */
.dropdown-menu.mega-menu:has(.dropdown-item:nth-child(-n+3):last-child) {
    grid-template-columns: 1fr;
    min-width: 280px;
}

/* 4-6 item varsa 2 sütun */
.dropdown-menu.mega-menu:has(.dropdown-item:nth-child(4)):has(.dropdown-item:nth-child(-n+6):last-child) {
    grid-template-columns: repeat(2, 1fr);
    min-width: 500px;
}

/* Mobil */
@media (max-width: 991px) {
    .dropdown-menu.mega-menu {
        position: static !important;
        left: 0 !important;
        right: auto !important;
        min-width: 100%;
        max-width: 100%;
        margin-top: 10px;
        box-shadow: none;
        background: #f8f9fa;
        grid-template-columns: 1fr !important;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item.dropdown:hover .dropdown-menu.mega-menu {
        display: grid;
    }
}

/* =========================
   NEWS – COMPACT MODE
========================= */

.news-card.compact {
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card.compact:hover {
    transform: translateY(-2px); /* eskisi -6px idi */
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

/* Görsel */
.news-image {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 14px;
}

.news-image img {
    transition: transform .3s ease;
}

.news-card.compact:hover .news-image img {
    transform: scale(1.03); /* çok hafif zoom */
}

/* Tarih */
.news-card .news-date {
    font-size: 0.7rem;
    margin-bottom: 6px;
    letter-spacing: .5px;
}

/* Başlık */
.news-card .news-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 700;
}

.news-card .news-title a {
    color: var(--dark-navy);
}

.news-card .news-title a:hover {
    color: var(--link-blue);
}

/* Özet */
.news-summary {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

/* Grid boşluklarını azalt */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* =========================
   NEWS DETAIL PAGE
========================= */

.news-detail {
    max-width: 880px;
    margin: 0 auto;
}

/* Başlık */
.news-detail-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Tarih */
.news-detail-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--accent-blue);
    margin-bottom: 35px;
}

/* İçerik */
.news-detail-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
}

/* İçerik elemanları */
.news-detail-content p {
    margin-bottom: 22px;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin: 40px 0 15px;
    color: var(--dark-navy);
    font-weight: 700;
}

.news-detail-content ul,
.news-detail-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

/* Görseller */
.news-detail-content img {
    max-width: 100%;
    border-radius: 18px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Geri dön linki */
.news-back {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-back a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--link-blue);
    text-decoration: none;
    transition: .2s;
}

.news-back a:hover {
    color: var(--dark-navy);
}

/* Genel link stili */
a {
    color: #0d6efd; /* Bootstrap primary uyumlu */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Buton gibi olan linklere dokunma */
a.btn {
    text-decoration: none;
}


footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer ul li {
    margin-bottom: 6px;
}

footer .label {
    font-weight: 600;
    opacity: 0.85;
    margin-top: 8px;
}

footer .value {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-bottom: 8px;
}

.page-header h1 {
    color: #2f2f2f;          /* koyu gri */
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    color: #1e5bb8;          /* modern kurumsal mavi */
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: #174a94;          /* hover'da biraz koyulaşır */
    text-decoration: underline;
}

