/* =========================================
   1. GENEL AYARLAR
   ========================================= */
:root {
    --primary: #0f4c81;       /* Lacivert */
    --accent: #f97316;        /* Turuncu */
    --accent-light: #fff7ed;  /* Açık Turuncu */
    --text-main: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    background: #fff; 
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. HEADER & MENU (BOZUKLUĞU GİDEREN KISIM)
   ========================================= */
.topbar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img { height: 60px; width: auto; }

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}

.nav-item:hover { color: var(--accent); }

/* =========================================
   3. KART VE GRID SİSTEMİ
   ========================================= */
.cards-grid, .news-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.solution-card, .campaign-card, .news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover, .campaign-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

/* --- RESİM KAPLAYICILAR --- */
/* Kampanya ve Çözüm Resimleri (Doldur) */
.card-img-cover {
    width: 100%; height: 220px !important;
    overflow: hidden; position: relative;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.card-img-cover img { width: 100%; height: 100%; object-fit: cover !important; transition: 0.5s; }

/* Haber Logoları (Sığdır) */
.news-img-box {
    width: 100%; height: 200px !important;
    overflow: hidden; position: relative;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.news-img-box img { width: 100%; height: 100%; object-fit: contain !important; padding: 15px; transition: 0.5s; }

.campaign-card:hover img, .news-card:hover img { transform: scale(1.05); }

/* --- İÇERİK --- */
.card-body, .news-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.card-body h3, .news-card h4 {
    font-size: 1.15rem; font-weight: 700; color: var(--primary);
    margin-bottom: 10px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}

.card-text-clamp {
    font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* KART ALTI (Footer) */
.card-footer-custom {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid #f8fafc;
    display: flex; justify-content: space-between; align-items: center;
}

.read-more-btn { font-size: 0.85rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.read-more-btn:hover { color: var(--primary); gap: 8px; }

.date-badge { font-size: 0.75rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 5px; background: #f1f5f9; padding: 4px 8px; border-radius: 4px; }

/* PDF Butonu */
.btn-pdf {
    background-color: #ef4444; color: white; padding: 6px 12px; border-radius: 6px; 
    font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s;
}
.btn-pdf:hover { background-color: #dc2626; color: white; }

/* =========================================
   4. BÖLÜMLER
   ========================================= */
.solutions-section { padding: 60px 0; }
.campaigns-section { background-color: var(--accent-light); padding: 60px 0; border-top: 1px solid #fed7aa; border-bottom: 1px solid #fed7aa; }
.products-section { padding: 60px 0; background: var(--bg-light); }

.product-card { background: #fff; padding: 30px; text-align: center; border-radius: 12px; border: 1px solid var(--border-color); transition: 0.3s; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.product-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.prod-img { font-size: 3rem; margin-bottom: 15px; display: block; }
.prod-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-top: auto; border: 1px solid var(--accent); padding: 5px 15px; border-radius: 20px; }
.prod-link:hover { background: var(--accent); color: white; }

.news-section { padding: 60px 0; }
.section-header-inline { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 40px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.view-all { color: var(--accent); font-weight: 700; margin-left: auto; }

/* --- SLIDER --- */
.slider-section { height: 500px; position: relative; overflow: hidden; margin-bottom: 40px; background: #000; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }

.slide-content { 
    position: relative; z-index: 2; color: #fff; 
    text-align: center; max-width: 800px; padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.slide-title { font-size: 3rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1.1; }
.slide-desc { font-size: 1.2rem; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: #fff; width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; z-index: 10; font-size: 20px; transition: 0.3s; }
.slider-btn:hover { background: rgba(255,255,255,0.4); }
.prev { left: 20px; } .next { right: 20px; }

/* FOOTER */
.site-footer { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); color: #fff; padding: 60px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; }
.footer-col a { color: rgba(255,255,255,0.8); } .footer-col a:hover { color: #fff; }

.tag { font-weight: 700; padding: 5px 12px; border-radius: 6px; font-size: 0.7rem; text-transform: uppercase; }
.tag-camp { background: #fff7ed; color: #ea580c; } .tag-info { background: #eff6ff; color: #3b82f6; }

@media (max-width: 768px) {
    .cards-grid, .news-grid, .products-grid { grid-template-columns: 1fr; }
    .slider-section { height: 350px; }
    .slide-title { font-size: 2rem; }
    .topbar { display: none; }
    .header-inner { flex-direction: column; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
}