/* ===== RESET & BASE ===== */
:root {
    --primary: #0d47a1;
    --primary-dark: #0a3577;
    --secondary: #1976d2;
    --accent: #ffc107;
    --text: #333;
    --light: #f5f7fa;
    --white: #fff;
    --border: #e0e0e0;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Roboto, -apple-system, sans-serif; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* ===== STICKY BUTTONS ===== */
.sticky-btns { position: fixed; bottom: 20px; left: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
.sticky-btns a { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .3s; }
.sticky-btns a:hover { transform: scale(1.1); }
.sticky-btns .wa { background: #25D366; }
.sticky-btns .ph { background: var(--secondary); }

/* ===== NAVBAR ===== */
.navbar { background: var(--white); padding: 12px 0; position: fixed; width: 100%; top: 0; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 5px; }
.nav-links a { color: var(--primary); font-weight: 600; padding: 8px 14px; border-radius: 6px; transition: .3s; font-size: .9rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: #fff; }
.hamburger { display: none; cursor: pointer; font-size: 24px; color: var(--primary); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.15); list-style: none; border-radius: 8px; padding: 8px 0; z-index: 10; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 18px; color: var(--primary); font-weight: 500; font-size: .9rem; }
.dropdown-menu a:hover { background: var(--light); }

/* ===== HERO ===== */
.hero { padding-top: 70px; height: 520px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; box-shadow: inset 0 0 120px 30px rgba(0,0,0,.6); animation: heroZoom 25s ease-out infinite; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-content { background: rgba(13,71,161,.75); padding: 2rem 3.5rem; border-radius: 12px; max-width: 90%; }
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: .5rem; text-shadow: 2px 2px 6px rgba(0,0,0,.4); }
.hero p { font-size: 1.3rem; color: var(--accent); font-weight: 700; }

/* ===== HERO ARTICLE (BELOW SLIDER) ===== */
.hero-article { padding: 70px 0; background: #fff; }
.hero-article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-article-text { text-align: left; }
.hero-article-text h2 { color: var(--primary); font-size: 2rem; text-align: left; margin-bottom: 20px; }
.hero-article-text p { font-size: 1.05rem; margin-bottom: 15px; text-align: left; }
.hero-article-img img { border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.12); width: 100%; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 15px 0; background: var(--light); margin-top: 70px; font-size: .9rem; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb span { color: #888; }

/* ===== SECTIONS ===== */
section { padding: 60px 0; }
.section-title { text-align: center; color: var(--primary); font-size: 2.2rem; margin-bottom: 40px; }
.section-light { background: var(--light); }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.06); transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.card-body p { font-size: .95rem; color: #555; margin-bottom: 12px; }
.btn { display: inline-block; background: var(--accent); color: var(--primary); padding: 8px 20px; border-radius: 6px; font-weight: 700; font-size: .9rem; transition: .3s; }
.btn:hover { background: #ffb300; color: var(--primary); }

/* ===== SERVICE CARDS ===== */
.service-card { background: #fff; padding: 30px; text-align: center; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.05); transition: .3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.service-card .icon { font-size: 3.5rem; color: var(--secondary); margin-bottom: 15px; }
.service-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 10px; }

/* ===== CONTENT PAGE (detail pages) ===== */
.content-page { padding-top: 30px; }
.content-page h1 { color: var(--primary); font-size: 2.2rem; margin-bottom: 20px; text-align: left; }
.content-page h2 { color: var(--primary); font-size: 1.6rem; margin: 30px 0 15px; text-align: left; }
.content-page p { margin-bottom: 15px; font-size: 1.05rem; }
.content-page img { border-radius: 10px; margin: 20px 0; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.content-page ul { padding-left: 25px; margin-bottom: 15px; }
.content-page li { margin-bottom: 8px; }
.content-sidebar { display: grid; grid-template-columns: 1fr 350px; gap: 40px; }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-box { background: var(--light); border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.sidebar-box h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 8px; }
.sidebar-box a { color: var(--text); font-size: .95rem; }
.sidebar-box a:hover { color: var(--secondary); }
.cta-box { background: var(--primary); color: #fff; border-radius: 12px; padding: 30px; text-align: center; margin-bottom: 20px; }
.cta-box h3 { color: #fff; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 15px; }
.cta-box .btn { background: var(--accent); color: var(--primary); padding: 12px 30px; border-radius: 8px; font-weight: 700; }

/* ===== PRICE TABLE ===== */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.price-table th, .price-table td { padding: 14px 18px; border: 1px solid var(--border); text-align: left; }
.price-table th { background: var(--secondary); color: #fff; }
.price-table tr:nth-child(even) { background: #f9f9f9; }
.price-table .price { text-align: right; font-weight: 700; color: var(--primary); }

/* ===== TAB ARTICLES ===== */
.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; justify-content: center; }
.tab-nav a { padding: 10px 20px; border-radius: 8px; background: var(--light); color: var(--primary); font-weight: 600; font-size: .95rem; transition: .3s; border: 2px solid transparent; }
.tab-nav a:hover, .tab-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== MARQUEE ===== */
.marquee { background: var(--primary); color: #fff; padding: 12px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
.marquee-inner span { margin: 0 50px; color: var(--accent); font-weight: 600; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: .3s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.04); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 700px; margin: 0 auto; background: var(--light); padding: 35px; border-radius: 12px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 1rem; font-family: inherit; }
.submit-btn { display: block; width: 100%; padding: 14px; border: none; background: var(--accent); color: var(--primary); font-size: 1.15rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: .3s; }
.submit-btn:hover { background: #ffb300; }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: #fff; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer h3 { color: var(--accent); margin-bottom: 15px; font-size: 1.1rem; }
.footer p { color: rgba(255,255,255,.8); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; font-size: .9rem; color: rgba(255,255,255,.6); }

/* ===== INTERNAL LINKS ===== */
.internal-links { background: var(--light); padding: 40px 0; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.links-grid a { display: block; padding: 12px 16px; background: #fff; border-radius: 8px; color: var(--primary); font-weight: 500; font-size: .9rem; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: .2s; }
.links-grid a:hover { background: var(--primary); color: #fff; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 20px; font-weight: 600; cursor: pointer; background: #fff; display: flex; justify-content: space-between; align-items: center; }
.faq-q:hover { background: var(--light); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; background: var(--light); }
.faq-a.open { max-height: 500px; padding: 18px 20px; }
.blog-meta { font-size: .85rem; color: #888; margin-bottom: 10px; }

/* ===== REVIEWS CAROUSEL ===== */
.reviews-section { padding: 60px 0; background: var(--light); }
.reviews-carousel { position: relative; display: flex; align-items: center; gap: 15px; }
.carousel-track-wrapper { overflow: hidden; flex: 1; }
.carousel-track { display: flex; transition: transform .5s ease; }
.review-slide { min-width: calc(33.333%); flex-shrink: 0; padding: 0 10px; }
.review-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 12px rgba(0,0,0,.06); height: 100%; }
.review-card .stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.review-card p { font-size: .95rem; color: #555; font-style: italic; margin-bottom: 12px; min-height: 60px; }
.review-card .reviewer { font-weight: 700; color: var(--primary); font-size: .9rem; }
.review-card .reviewer span { color: #888; font-weight: 400; }
.carousel-btn { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; color: var(--primary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .3s; flex-shrink: 0; }
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); cursor: pointer; transition: .3s; border: none; }
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .review-slide { min-width: 50%; }
    .hero-article-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-article-text { text-align: center; }
    .hero-article-text h2 { text-align: center; }
    .hero-article-text p { text-align: center; }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 56px;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        padding: 0;
        z-index: 998;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { padding: 14px 20px; display: block; border-bottom: 1px solid #eee; border-radius: 0; font-size: 1rem; }
    .hamburger { display: block; }
    .dropdown-menu { position: static; box-shadow: none; min-width: 100%; background: var(--light); display: none !important; border-radius: 0; }
    .dropdown-menu.show { display: block !important; }
    .dropdown-menu a { padding-left: 30px; font-size: .9rem; }

    /* Hero mobile */
    .hero { height: 380px; padding-top: 56px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-content { padding: 1.2rem 1.5rem; max-width: 95%; }

    /* Hero article mobile */
    .hero-article { padding: 40px 0; }
    .hero-article-grid { grid-template-columns: 1fr; gap: 25px; }
    .hero-article-text { text-align: center; }
    .hero-article-text h2 { text-align: center; font-size: 1.6rem; }
    .hero-article-text p { text-align: center; font-size: .95rem; }

    /* Sections */
    section { padding: 40px 0; }
    .section-title { font-size: 1.7rem; margin-bottom: 25px; }

    /* Cards */
    .cards-grid { grid-template-columns: 1fr; gap: 15px; }

    /* Content pages */
    .content-sidebar { grid-template-columns: 1fr; gap: 20px; }
    .sidebar { position: static; }
    .content-page h1 { font-size: 1.6rem; }
    .content-page h2 { font-size: 1.3rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery-grid img { height: 160px; }

    /* Reviews */
    .review-slide { min-width: 100%; }
    .carousel-btn { width: 35px; height: 35px; font-size: 14px; }
    .review-card p { min-height: auto; }

    /* Tab nav */
    .tab-nav { gap: 5px; }
    .tab-nav a { padding: 8px 12px; font-size: .8rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; }

    /* Price table */
    .price-table th, .price-table td { padding: 10px 12px; font-size: .9rem; }

    /* Contact form */
    .contact-form { padding: 20px; }

    /* Sticky buttons */
    .sticky-btns { left: 10px; bottom: 10px; }
    .sticky-btns a { width: 48px; height: 48px; font-size: 22px; }

    /* Links grid */
    .links-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .links-grid a { padding: 10px 12px; font-size: .85rem; }

    /* Iletisim 2 column fix */
    .contact-2col { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }
    .navbar .logo { font-size: 1.1rem; }
    .hero h1 { font-size: 1.5rem; }
}
/* 1. TÜM RESİMLERİ MOBİL UYUMLU YAP (TAB İÇİ DAHİL) */
.tab-content img, 
.hero-article-img img, 
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 2. TABLO TAŞMASINI ÖNLE (EN KRİTİK YER) */
/* Tabloların mobilde siteyi itmemesi için bir kapsayıcı gerekir. 
   Eğer HTML'de tabloyu bir div içine almadıysan bile bu kod tabloyu korur. */
.price-table {
    display: block; /* Mobilde tabloyu blok yapar */
    width: 100% !important;
    overflow-x: auto; /* Tablo geniş gelirse kendi içinde kayar, siteyi bozmaz */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Yazıların çok fazla büzülüp çirkin durmasını önler */
}

/* 3. TAB NAVİGASYONU (SEKMELER) MOBİL AYARI */
.tab-nav {
    display: flex;
    flex-wrap: nowrap; /* Mobilde alt alta binmesinler */
    overflow-x: auto;  /* Sağa doğru kaydırılabilir sekme menüsü yapar */
    justify-content: flex-start;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
}

.tab-nav a {
    white-space: nowrap; /* Buton metinlerini tek satırda tutar */
    flex-shrink: 0;      /* Butonların sıkışmasını engeller */
}

/* 4. GENEL SİTE KAYMASINI KESEN EMNİYET KODU */
html, body {
    overflow-x: hidden !important; /* Dışarı sarkan her şeyi gizler */
    width: 100% !important;
    position: relative;
}

/* 5. MOBİL ÖZEL DÜZENLEME */
@media (max-width: 768px) {
    .price-table th, .price-table td {
        padding: 10px 12px;
        font-size: 0.85rem; /* Mobilde yazıları biraz küçültür */
    }
    
    .tab-content {
        width: 100%;
        padding: 0 10px;
    }
}