/* ==========================================
   TEKNOTALYA ANA SAYFA BİRLEŞTİRİLMİŞ CSS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
  --body-font: 'Roboto', sans-serif;
  --body-bg: #03061E;
  --body-bg2: #030515;
  --heading-font: "Poppins", sans-serif;
  --theme-color: #1F9BEE;
  --theme-color2: #0D6EFD;
  --theme-bg-light: #050A30;
  --color-dark: #FFFFFF;
  --body-text-color: #e4e6ea;
  --color-white: #FFFFFF;
  --box-shadow: 0px 8px 32px rgba(255, 255, 255, 0.05);
  --box-shadow2: 0 0 15px rgba(0, 0, 0, 0.17);
  --transition: all .5s ease-in-out;
  --transition2: all .3s ease-in-out;
  --border-info-color: rgba(255, 255, 255, 0.1);
  --footer-bg: #050A30;
  --footer-text-color: #e4e6ea;
}

/* GENEL AYARLAR VE PRELOADER İPTALİ */
*, *:before, *:after { box-sizing: inherit; }
html, body { height: auto; width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
body { font-family: var(--body-font); font-size: 16px; color: var(--body-text-color); line-height: 1.8; background: var(--body-bg); overflow: visible !important;}
.preloader { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
a { color: var(--color-dark); display: inline-block; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--theme-color); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--color-dark); margin: 0px; font-weight: 600; font-family: var(--heading-font); line-height: 1.2; }
img { max-width: 100%; height: auto; }
.badge { border-radius: 50px; color: var(--color-white) !important; background: var(--theme-color); padding: 4px 10px; font-size:12px; }

/* BAŞLIKLAR VE BOŞLUKLAR */
.pt-30{padding-top:30px;} .pt-40{padding-top:40px;} .pb-50{padding-bottom:50px;} .py-80{padding:80px 0;} .py-90{padding:90px 0;}
.mb-4{margin-bottom:1.5rem;} .mt-4{margin-top:1.5rem;}
.site-heading-inline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-bottom: 15px; margin-bottom: 20px; border-bottom: 5px double var(--border-info-color); }
.site-heading-inline .site-title { text-transform: capitalize; font-size: 22px; color: var(--color-dark); margin-bottom: 0; position: relative; padding-left: 15px; }
.site-heading-inline .site-title::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 10px; background: var(--theme-color); border-radius: 5px; transform: translateY(-50%); }
.theme-btn { font-size: 16px; color: var(--color-white); padding: 10px 24px; transition: all 0.5s; border-radius: 50px; font-weight: 500; background: var(--theme-color); border: none; }
.theme-btn:hover { background: var(--theme-color2); color: var(--color-white); }

/* HEADER & NAVBAR (SİMETRİ VE MEGA MENÜ) */
.header-top { padding: 6px 0; background: var(--theme-color); z-index: 5; }
.header-top-wrap { display: flex; justify-content: space-between; align-items: center; }
.header-top-list ul, .header-top-social { display: flex; align-items: center; gap: 15px; }
.header-top-list a, .header-top-social a { color: var(--color-white); transition: var(--transition); }
.header-middle { padding: 20px 0; }
.navbar { background: var(--body-bg); border-top: 1px solid var(--border-info-color); z-index: 4; padding: 0; }
.navbar .nav-item .nav-link { padding: 15px 0; margin-right: 25px; font-size: 17px; font-weight: 500; color: var(--color-dark); text-transform: capitalize; }
.navbar .nav-item .nav-link:hover, .navbar .nav-item .nav-link.active { color: var(--theme-color); }

/* MEGA MENÜ FİX */
.mega-cat-content { display: none; width: 100%; }
.mega-cat-content.active { display: block; animation: fadeIn 0.3s; }
.mega-menu-item.menu-category .dropdown-item { transition: all 0.2s; border-radius: 4px; padding: 10px 15px; background:transparent;}
.mega-menu-item.menu-category .dropdown-item.active { background: var(--theme-color); color: #fff !important; }
.navbar .nav-item.mega-menu .dropdown-menu { width: 98%; left: 50%; transform: translateX(-50%); padding:0; background: var(--theme-bg-light); border: none; border-radius:10px; }
.menu-news-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.menu-news-item img { border-radius: 8px; }
.menu-news-item h6 { font-size:14px; white-space: normal; line-height: 1.4; color:var(--color-dark); transition: var(--transition); }
.menu-news-item:hover h6 { color: var(--theme-color); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HABER KUTULARI (HERO & LİSTELER) */
.hero-news .news-item { position: relative; border-radius: 15px; overflow: hidden; }
.hero-news .news-item::before { content: ""; position: absolute; height: 70%; width: 100%; bottom: 0; left: 0; background-image: linear-gradient(180deg, transparent, #050A30); z-index: 1; }
.hero-news .news-item img { width: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-news .news-item:hover img { transform: scale(1.05); }
.hero-news .news-content { position: absolute; left: 0; bottom: 0; padding: 20px; z-index: 2; width: 100%; }
.hero-news .news-content h2 a { font-size: 18px; color: var(--color-white); }
.hero-news .news-item.big .news-content h2 a { font-size: 26px; }

.news-item { background: var(--body-bg2); border-radius: 12px; overflow: hidden; box-shadow: var(--box-shadow); transition: var(--transition); }
.news-img { overflow: hidden; }
.news-img img { width: 100%; transition: transform 0.5s; }
.news-item:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 15px; }
.news-content h3 a { color: var(--color-dark); font-size: 16px; transition: var(--transition); }
.news-content h3 a:hover { color: var(--theme-color); }

/* SIDEBAR EKLENTİLERİ */
.news-sidebar-widget { margin-bottom: 40px; }
.news-sidebar-widget .title { font-size: 20px; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 3px double var(--border-info-color); }
.news-sidebar .topic { background: var(--theme-bg-light); padding: 25px; border-radius: 12px; }
.news-sidebar .topic a { display: flex; justify-content: space-between; color: var(--color-dark); margin-bottom: 12px; padding-bottom:12px; border-bottom: 1px solid rgba(255,255,255,0.05);}
.news-sidebar .topic a:last-child { border:none; margin-bottom:0; padding-bottom:0;}
.news-sidebar .topic a:hover { color: var(--theme-color); }

/* FOOTER */
.footer-area { background: var(--footer-bg); padding-top: 50px; z-index: 1; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-widget-title { color: var(--color-white); position: relative; padding-bottom: 15px; margin-bottom: 20px; font-size: 18px; }
.footer-widget-title::after { content: ''; position: absolute; width: 40px; height: 2px; background: var(--theme-color); bottom: 0; left: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list li a { color: var(--body-text-color); transition: var(--transition); }
.footer-list li a:hover { color: var(--theme-color); padding-left: 5px; }
.copyright { padding: 20px 0; border-top: 1px solid var(--border-info-color); margin-top: 40px; text-align: center; color: var(--body-text-color); }

/* 🚀 NÜKLEER MOBİL UYUM (SİMETRİ KALKANI) */
@media (max-width: 991px) {
    .header-middle { display: none !important; }
    .navbar { position: relative; width: 100%; border:none; }
    .navbar-brand { display: block !important; margin-right: auto; padding: 10px 0; }
    .navbar-brand img { width: 160px; }
    .navbar-toggler { display: block; border: 1px solid var(--theme-color); padding: 5px 12px; background: transparent; border-radius:5px; }
    .navbar-collapse { background: var(--theme-bg-light); border-radius: 10px; padding: 15px; margin-top: 10px; position: absolute; width: 100%; top: 100%; left: 0; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .navbar-nav { flex-direction: column !important; }
    .navbar .nav-item .nav-link { margin-right: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .mega-cat-content { display: none !important; } /* Mobilde mega menünün iç resimlerini gizliyoruz ki ekran patlamasın */
    .navbar .nav-item.mega-menu .dropdown-menu { width: 100%; position: static !important; transform: none; box-shadow: none; background: transparent; }
    .header-top-list { display: none; } /* Mobilde üst barı sadeleştirmek için */
}