:root {
    --primary-color: #003366; /* Deep Blue - Trust and Professionalism */
    --secondary-color: #00509E; /* Lighter Blue */
    --accent-color: #FF9900; /* Orange - Innovation and Energy */
    --text-color: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding-top: 80px; /* Fixed header için boşluk */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* Sayfanın en üstüne sabitler */
    width: 100%;
    top: 0; /* En üste yapıştırır */
    left: 0; /* Soldan boşluk olmamasını sağlar */
    z-index: 1000;
    transition: transform 0.3s ease-in-out; /* Yumuşak geçiş efekti */
}

header.header-hidden {
    transform: translateY(-100%); /* Yukarı gizle */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    margin-right: 10px;
}

.brand-name {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1rem; /* Mobilde biraz küçült */
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #e68a00;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Services Section */
.section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Blog/Content Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-content {
    padding: 20px;
}

.blog-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: bold;
}

.blog-title {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 50px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .nav-links {
        display: none; /* Varsayılan olarak gizle */
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
        text-align: left;
    }

    .nav-links.active {
        display: flex; /* JS ile açıldığında göster */
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-left: 2px solid var(--accent-color);
        margin-left: 10px;
        display: none; /* Mobilde varsayılan kapalı */
    }
    
    .dropdown:hover .dropdown-content {
        display: block; /* Mobilde de hover/click ile aç */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-sm {
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-sm:hover {
    background-color: #e68a00;
}
/* --- ARAMA MODAL STİLLERİ --- */
.search-trigger {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 10px;
    transition: transform 0.2s;
}
.search-trigger:hover {
    transform: scale(1.1);
}

.search-modal {
    display: none; /* Varsayılan gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    backdrop-filter: blur(5px);
}

.search-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-search {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}
.close-search:hover { color: #333; }

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 1.1rem;
}

.search-box button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}
.search-result-item:hover { background-color: #f4f7f6; }
.search-result-item a { text-decoration: none; }
.search-result-item h4 { color: var(--primary-color); margin-bottom: 5px; }
.search-result-item p { color: #666; font-size: 0.9rem; margin: 0; }

.google-search-option {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.btn-google {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
}
.btn-google:hover { background-color: #357ae8; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Sağdan soldan boşluk */
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Ayarları */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}
.logo img {
    height: 45px; /* Logo boyutu */
    margin-right: 10px;
}

/* Masaüstü Menü Linkleri */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Boşluğu biraz artırdık */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap; /* Metinlerin alt satıra geçmesini engeller */
}

.nav-links li a:hover {
    color: #0056b3; /* Hover rengi (Mavi tonu) */
}

/* İletişim Butonu Görünümü */
.btn-iletisim {
    background-color: #0056b3;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn-iletisim:hover {
    background-color: #003d80;
}

/* Dropdown Menü (Açılır Menü) */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 999;
}
.dropdown-content a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown:hover .dropdown-content {
    display: block; /* Masaüstünde üzerine gelince aç */
}

/* --- MOBİL MENÜ (HAMBURGER) AYARLARI --- */
.menu-toggle {
    display: none; /* Masaüstünde GİZLE (Sorunun çözümü bu) */
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* --- RESPONSIVE (TELEFON VE TABLET) --- */
@media screen and (max-width: 768px) {
    
    /* Hamburger ikonunu göster */
    .menu-toggle {
        display: block; 
    }

    /* Menü linklerini varsayılan olarak gizle ve dikey yap */
    .nav-links {
        position: absolute;
        top: 100%; /* Header'ın hemen altına yapış */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        max-height: 0; /* Kapalıyken yükseklik 0 */
        overflow: hidden;
        transition: max-height 0.3s ease-out; /* Açılma animasyonu */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0;
    }

    /* JavaScript ile 'active' classı eklenince menüyü aç */
    .nav-links.active {
        max-height: 500px; /* Menü içeriğine yetecek kadar yükseklik */
        padding-bottom: 20px;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    /* Mobilde İletişim butonu normal link gibi görünsün */
    .btn-iletisim {
        background-color: transparent;
        color: #333 !important;
        border-radius: 0;
    }

    /* Mobilde Dropdown Ayarı */
    .dropdown-content {
        position: static; /* Alt alta dizersin */
        box-shadow: none;
        display: none; /* Mobilde tıklayınca açılsın istersen JS gerekir, şimdilik gizli */
        background-color: #f9f9f9;
        padding-left: 20px; /* Girintili yap */
    }
    
    /* Mobilde dropdown üstüne tıklayınca değil, her zaman açık olsun (Basit çözüm) */
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* --- BLOG DETAY SAYFASI GÖRSEL VE İÇERİK DÜZENLEMELERİ --- */

.blog-details-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Ana Görsel (Featured Image) */
.blog-details-content .blog-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.blog-details-content .blog-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-details-content .blog-image:hover img {
    transform: scale(1.03); /* Hafif yakınlaşma efekti */
}

/* İçerik İçindeki Görseller */
.blog-details-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto; /* Ortala ve boşluk bırak */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Metin Düzeni */
.blog-details-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-details-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.blog-details-content h4 {
    font-size: 1.2rem;
    color: #444;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-details-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify; /* Okunabilirliği artırır */
}

.blog-details-content ul, 
.blog-details-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-details-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Meta Bilgileri */
.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
}

.meta-info span i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* --- EKSTRA İÇERİK BİLEŞENLERİ --- */

/* Feature Box (Özellik Kutuları) */
.feature-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    border-color: var(--accent-color);
}

.feature-box i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.feature-box p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Mermaid Diyagramları */
.mermaid-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 30px 0;
    text-align: center;
    overflow-x: auto; /* Mobilde taşmayı engeller */
    border: 1px solid #eee;
}

.mermaid-container p {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Tablo Düzenlemeleri */
.table-responsive {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.table th, .table td {
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

/* Alert Kutuları (Bootstrap üzerine ek) */
.alert {
    border: none;
    border-left: 5px solid;
    border-radius: 4px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Sidebar Widget Düzenlemeleri */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.category-list, .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .service-list li {
    margin-bottom: 10px;
}

.category-list li a, .service-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #555;
    transition: all 0.3s;
    font-weight: 500;
}

.category-list li a:hover, .service-list li a:hover,
.category-list li a.active, .service-list li a.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.category-list li a i, .service-list li a i {
    font-size: 0.8rem;
}