/* =========================================
   1. GENEL AYARLAR & RENK PALETİ
   ========================================= */
:root {
    --green-dark: #0f3d2b;   /* Koyu Yeşil - Kurumsal */
    --green-main: #198754;   /* Ana Yeşil - Canlı */
    --accent: #2ecc71;       /* Vurgu Rengi */
    --text: #333333;         /* Genel Yazı */
    --text-light: #666666;   /* Yardımcı Yazı */
    --bg: #f4f6f9;           /* Arka Plan */
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; position: relative; }

/* Scrollbar Tasarımı */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #bdc3c7; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-main); }


/* =========================================
   2. TOP BAR & HEADER
   ========================================= */
.top-bar {
    background: var(--green-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-flex { display: flex; justify-content: space-between; align-items: center; }
.contact a { margin-right: 20px; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 6px; }
.contact a:hover { color: #fff; }
.contact i { color: var(--accent); }
.login-btn { border: 1px solid rgba(255,255,255,0.4); padding: 4px 15px; border-radius: 20px; font-size: 0.75rem; color: #fff; }
.login-btn:hover { background: #fff; color: var(--green-dark); }

.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 1000;
}

.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.logo-area img { height: 80px; width: auto; object-fit: contain; }

/* Menü */
.nav-menu { display: flex; gap: 25px; }
.nav-menu > li > a {
    color: var(--text); font-weight: 600; font-size: 0.95rem; text-transform: uppercase;
    padding: 38px 0; display: block; position: relative;
}
.nav-menu > li > a::after {
    content: ''; position: absolute; bottom: 25px; left: 0; width: 0; height: 3px;
    background: var(--green-main); transition: 0.3s;
}
.nav-menu > li:hover > a { color: var(--green-main); }
.nav-menu > li:hover > a::after { width: 100%; }

/* Dropdowns */
.has-drop { position: relative; }
.dropdown, .mega-menu {
    position: absolute; top: 100%; left: 0; background: var(--white);
    border-top: 3px solid var(--green-main);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: 0.3s; z-index: 999; padding: 15px; border-radius: 0 0 5px 5px;
}
.has-drop:hover .dropdown, .has-drop:hover .mega-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown { width: 220px; }
.mega-menu { width: 700px; display: flex; padding: 0; left: -100px; }
.mega-col { flex: 1; padding: 20px; border-right: 1px solid #f1f1f1; }
.mega-col:last-child { border: none; }
.dropdown a, .mega-menu a { display: block; padding: 8px 0; color: #555; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.dropdown a:hover, .mega-menu a:hover { color: var(--green-main); padding-left: 5px; border-color: #f1f1f1; }


/* =========================================
   3. ANA SAYFA BANNER (HERO / SLIDER)
   ========================================= */
.hero-section {
    position: relative; width: 100%; height: 500px; background: #000; overflow: hidden;
}
.hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; animation: zoomEffect 20s infinite alternate; }
@keyframes zoomEffect { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

.hero-content {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%); text-align: center; color: #fff; z-index: 2;
    padding: 0 20px;
}
.hero-content h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    margin-bottom: 15px; 
    text-shadow: 0 5px 20px rgba(0,0,0,0.6); 
    line-height: 1.1;
}
.hero-content p { font-size: 1.25rem; font-weight: 300; opacity: 0.95; max-width: 800px; margin: 0 auto; }


/* =========================================
   4. HABERLER VE GRID SİSTEMİ
   ========================================= */
.content-section { padding: 60px 0; background: var(--white); border-bottom: 1px solid #eee; }
.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; } 

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.news-item {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.news-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.news-thumb {
    position: relative; width: 100%; height: 230px; 
    overflow: hidden; background-color: #f8f9fa; flex-shrink: 0;
}
.news-thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s ease;
}
.news-item:hover .news-thumb img { transform: scale(1.1); }

/* Tarih Rozeti */
.date-badge {
    position: absolute; top: 15px; right: 15px; z-index: 20;
    background: var(--green-main); color: #fff;
    width: 60px; height: 60px; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; line-height: 1.2;
}
.date-badge b:first-of-type { font-size: 22px; font-weight: 800; display: block; }
.date-badge b:nth-of-type(2) { font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.date-badge span:last-child { font-size: 11px; font-weight: 500; opacity: 0.9; }

.news-info { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.news-info h4 {
    font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.45; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px;
    transition: color 0.3s;
}
.news-item:hover .news-info h4 { color: var(--green-main); }

.news-info p {
    font-size: 14.5px; color: var(--text-light); margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.5;
}
.read-btn {
    font-size: 13px; font-weight: 700; color: var(--green-main);
    text-transform: uppercase; margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 5px;
}
.read-btn::after { content: '→'; transition: transform 0.3s; }
.read-btn:hover::after { transform: translateX(5px); }

@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
    .news-grid { grid-template-columns: 1fr; }
    .grid-layout { grid-template-columns: 1fr; }
}


/* =========================================
   5. ALT SAYFA BANNER
   ========================================= */
.sub-banner {
    position: relative; width: 100%; height: 100px;
    background: #222; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.sub-banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.sub-banner h1 {
    position: relative; z-index: 2; color: #fff; font-size: 26px;
    font-weight: 700; text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin: 0; letter-spacing: 1.5px;
}

.page-content { padding: 50px 0; background: var(--white); min-height: 500px; }


/* =========================================
   6. İLETİŞİM SAYFASI
   ========================================= */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 30px; }
.contact-form-box {
    flex: 2; background: var(--white); padding: 40px;
    border-radius: 12px; box-shadow: var(--shadow); border: 1px solid #f0f0f0;
}
.sidebar { flex: 1; min-width: 300px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.form-control {
    width: 100%; padding: 13px 15px; border: 1px solid #e0e0e0;
    border-radius: 6px; transition: 0.3s; box-sizing: border-box;
    font-family: inherit; font-size: 14px;
}
.form-control:focus { border-color: var(--green-main); outline: none; box-shadow: 0 0 8px rgba(25, 135, 84, 0.15); }

.submit-btn {
    background: var(--green-dark); color: #fff; padding: 14px 35px;
    border: none; border-radius: 6px; cursor: pointer;
    font-weight: 700; transition: 0.3s; text-transform: uppercase; font-size: 14px;
}
.submit-btn:hover { background: var(--green-main); transform: translateY(-2px); }

.contact-info-box {
    background: var(--white); padding: 30px; border-radius: 12px;
    box-shadow: var(--shadow); border: 1px solid #f0f0f0;
}
.info-item { display: flex; margin-bottom: 25px; align-items: flex-start; }
.info-item:last-child { margin-bottom: 0; }
.icon-box {
    width: 44px; height: 44px; background: #f0fdf4; color: var(--green-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; font-size: 18px; flex-shrink: 0; transition: 0.3s;
}
.info-item:hover .icon-box { background: var(--green-main); color: #fff; }
.info-text h4 { margin: 0 0 5px; font-size: 16px; color: var(--text); }
.info-text p { margin: 0; color: var(--text-light); font-size: 14.5px; line-height: 1.5; }

.map-box { margin-top: 30px; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; height: 350px; }


/* =========================================
   7. FOOTER
   ========================================= */
.site-footer { background-color: var(--green-dark); color: #d1d9d6; font-size: 0.9rem; }
.footer-main { padding: 60px 0 30px 0; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; }

@media (max-width: 992px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }

.footer-col h3 {
    color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 25px;
    border-left: 4px solid var(--accent); padding-left: 15px;
}
.footer-links li { margin-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px; }
.footer-links a:hover { color: #fff; padding-left: 8px; }

.social-separator { position: relative; height: 0; z-index: 20; display: flex; justify-content: center; }
.social-icons {
    position: absolute; top: -25px; display: flex; gap: 12px;
    background: var(--green-dark); padding: 0 20px; border-radius: 40px;
}
.soc-btn {
    width: 42px; height: 42px; background: #fff; color: var(--green-dark);
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 1.1rem; transition: 0.4s; border: 3px solid var(--green-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.facebook:hover { background: #3b5998; color: #fff; border-color: #3b5998; transform: translateY(-5px); }
.twitter:hover  { background: #1da1f2; color: #fff; border-color: #1da1f2; transform: translateY(-5px); }
.instagram:hover { background: #e4405f; color: #fff; border-color: #e4405f; transform: translateY(-5px); }
.youtube:hover  { background: #cd201f; color: #fff; border-color: #cd201f; transform: translateY(-5px); }

.partners-area { background: var(--white); padding: 60px 0 40px 0; text-align: center; }
.partners-area h4 { color: #aaa; font-size: 0.75rem; font-weight: 800; letter-spacing: 2.5px; margin-bottom: 35px; text-transform: uppercase; }
.p-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.p-grid img { height: 50px; filter: grayscale(100%); opacity: 0.45; transition: 0.4s; }
.p-grid a:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.footer-copy { background: #000; color: #777; text-align: center; padding: 20px 0; font-size: 0.8rem; letter-spacing: 0.5px; }


/* =========================================
   8. LIGHTBOX & SAYFALAMA
   ========================================= */
.protected-img { cursor: zoom-in; }
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92); z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.4s; backdrop-filter: blur(8px);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content {
    max-width: 90%; max-height: 85vh; border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6); border: 4px solid #fff;
    transform: scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-overlay.active .lightbox-content { transform: scale(1); }
.lightbox-close-btn {
    margin-top: 25px; background: #e74c3c; color: #fff; border: none;
    padding: 12px 35px; font-size: 0.95rem; font-weight: 700;
    border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.lightbox-close-btn:hover { background: #c0392b; transform: scale(1.05); }

.pagination-area { margin: 60px 0 40px 0; display: flex; justify-content: center; }
.pagination { display: flex; gap: 8px; }
.page-link {
    display: flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; border: 1px solid #e5e7eb;
    border-radius: 50%; color: var(--text); font-weight: 700;
    background: var(--white); transition: 0.3s;
}
.page-link:hover, .page-link.active {
    background-color: var(--green-main); color: #fff; border-color: var(--green-main);
    transform: translateY(-3px); box-shadow: 0 6px 15px rgba(25, 135, 84, 0.3);
}
.page-link.prev, .page-link.next { width: auto; padding: 0 22px; border-radius: 30px; }