/* --- LÜKS FONT AİLESİ --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* --- MFK KURUMSAL RENK PALETİ --- */
:root {
    --primary-color: #0871a1; /* MFK Lacivert/Mavi */
    --accent-color: #049caa;  /* MFK Turkuaz */
    --text-dark: #1A2530;
    --text-light: #596778;
    --bg-light: #F4F6F9;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --overlay: rgba(8, 113, 161, 0.60); /* Mavi tonlu resim filtresi */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--white); color: var(--text-dark); line-height: 1.6; padding-top: 80px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
section { outline: none; }

.container { max-width: 1350px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER (NAVBAR) --- */
header { background-color: var(--white); box-shadow: 0 2px 20px rgba(8,113,161,0.08); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(4,156,170,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* 🎨 RESİMLİ LOGO AYARLARI 🎨 */
.logo { display: flex; align-items: center; height: 100%; text-decoration: none; }
.logo img { max-height: 55px; width: auto; object-fit: contain; transition: var(--transition); }
.logo:hover img { transform: scale(1.05); }

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links li a { font-weight: 600; font-size: 14px; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-links > li > a::after { content: ''; position: absolute; width: 0; height: 2px; display: block; margin-top: 5px; right: 0; background: var(--accent-color); transition: width .3s ease; }
.nav-links > li > a:hover::after { width: 100%; left: 0; }

/* --- AÇILIR MENÜ (DROPDOWN) --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; background-color: var(--white); min-width: 250px; box-shadow: 0px 10px 30px rgba(0,0,0,0.08); z-index: 99; border-radius: 8px; padding: 10px 0; top: 100%; left: 0; border-top: 3px solid var(--accent-color); }
.dropdown-menu li { list-style: none; border-bottom: 1px solid #f1f1f1; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu li a { color: var(--text-dark) !important; padding: 12px 20px; text-decoration: none; display: block; font-size: 14px; font-weight: 500; transition: var(--transition); text-transform: none; }
.dropdown-menu li a:hover { background-color: var(--bg-light); color: var(--primary-color) !important; padding-left: 25px; }
.dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- BUTONLAR --- */
.btn-primary { background-color: var(--primary-color); color: var(--white) !important; padding: 14px 30px; border-radius: 6px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; transition: var(--transition); border: 1px solid var(--primary-color); display: inline-block; cursor: pointer; }
.btn-primary:hover { background-color: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(4, 156, 170, 0.3); color: var(--white) !important; font-weight: 600; }
.btn-outline { background-color: transparent; color: var(--white) !important; padding: 14px 30px; border-radius: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; border: 2px solid var(--white); transition: var(--transition); }
.btn-outline:hover { background-color: var(--white); color: var(--primary-color) !important; box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); }

/* --- ORTAK BÖLÜMLER VE BAŞLIKLAR --- */
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--primary-color); margin-bottom: 15px; font-weight: 700; letter-spacing: 1px;}
.section-header p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* --- HERO (DİNAMİK PREMIUM SLIDER) --- */
.hero { height: calc(100vh - 80px); position: relative; overflow: hidden; margin-top: -80px; padding-top: 80px; }
.hero-content { position: relative; z-index: 10; top: 50%; transform: translateY(-50%); max-width: 800px; margin: 0 auto; text-align: center; color: var(--white); }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 700; margin-bottom: 25px; line-height: 1.2; letter-spacing: 1px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--accent-color); }
.hero p { font-size: 18px; margin-bottom: 40px; color: #f1f1f1; font-weight: 300; max-width: 700px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* SLIDER TASARIMI */
.slider-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-color: var(--primary-color); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); z-index: 2; }

/* --- 4'LÜ SİMETRİK KART DİZİLİMİ --- */
.portals-grid, .services-grid, .news-grid { display: grid; gap: 30px; }
.services-grid { grid-template-columns: repeat(3, 1fr); } 
.portals-grid { grid-template-columns: repeat(4, 1fr); } 
.news-grid { grid-template-columns: repeat(3, 1fr); }

.portal-card, .service-card, .news-card { background: var(--white); border-radius: 12px; box-shadow: 0 15px 40px rgba(8, 113, 161, 0.06); padding: 40px 25px; text-align: center; border: 1px solid rgba(4, 156, 170, 0.15); overflow: hidden; position: relative; transition: var(--transition); }
.portal-card:hover, .service-card:hover, .news-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 25px 50px rgba(4, 156, 170, 0.12); }

/* DEVLET PORTALLARI İKONLARI */
.portal-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.portal-icon { font-size: 45px; color: var(--primary-color); margin-bottom: 20px; transition: var(--transition); }
.portal-card:hover .portal-icon { transform: scale(1.15) rotate(5deg); color: var(--accent-color); }
.portal-card h4 { color: var(--text-dark); font-size: 16px; font-weight: 600; font-family: 'Poppins', sans-serif; transition: var(--transition); }
.portal-card:hover h4 { color: var(--primary-color); }

/* HİZMET İKONLARI */
.service-icon { font-size: 45px; color: var(--accent-color); margin-bottom: 25px; transition: var(--transition); }
.service-card:hover .service-icon { transform: scale(1.1); color: var(--primary-color); }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 21px; margin-bottom: 15px; color: var(--primary-color); font-weight: 600;}
.service-card p { color: var(--text-light); font-size: 14px; }

/* --- KURUMSAL / DANIŞMANLIK BÖLÜMÜ --- */
.consulting-wrapper { display: flex; align-items: center; gap: 60px; }
.consulting-content { flex: 1; }
.consulting-content h2 { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--primary-color); margin-bottom: 20px; line-height: 1.2; letter-spacing: 1px;}
.consulting-content p { color: var(--text-light); margin-bottom: 30px; }
.consulting-image { flex: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px rgba(8, 113, 161, 0.15); border: 1px solid rgba(4, 156, 170, 0.3); }
.consulting-image img { width: 100%; height: auto; display: block; filter: contrast(110%) brightness(95%); }

/* --- MEVZUAT KARTLARI --- */
.news-card { padding: 0; text-align: left; }
.news-date { background: var(--accent-color); color: var(--white); padding: 8px 20px; font-size: 12px; font-weight: 700; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }
.news-content { padding: 30px; }
.news-content h3 { font-family: 'Playfair Display', serif; color: var(--primary-color); margin-bottom: 15px; font-size: 20px; line-height: 1.4; font-weight: 600; }
.news-content p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.news-content a { color: var(--primary-color); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 1px; }
.news-content a:hover { color: var(--accent-color); }

/* --- İLETİŞİM FORMU --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { padding-right: 30px; }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.info-icon { width: 50px; height: 50px; background: rgba(4, 156, 170, 0.1); color: var(--accent-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: var(--transition); }
.info-item:hover .info-icon { background: var(--accent-color); color: var(--white); transform: rotate(15deg); }
.info-text h4 { font-family: 'Playfair Display', serif; color: var(--primary-color); margin-bottom: 5px; font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.info-text p { color: var(--text-light); font-size: 15px; }

/* --- DEVASA PREMIUM FOOTER --- */
footer { background-color: var(--primary-color); color: var(--white); padding: 80px 0 20px; border-top: 4px solid var(--accent-color); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; margin-bottom: 30px; }
.footer-about p { color: #d0e5f2; margin-top: 15px; line-height: 1.8; max-width: 320px; }
.footer-links h4, .footer-contact h4 { font-size: 17px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; color: var(--accent-color); font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #d0e5f2; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--white); padding-left: 5px; }
.footer-contact p { color: #d0e5f2; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--accent-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: #a1cde8; font-size: 13px; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: var(--white); font-weight: 600; }

/* --- RESPONSIVE TASARIM --- */
@media (max-width: 1024px) {
    .services-grid, .portals-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .consulting-wrapper { gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links, .btn-primary.desktop-only { display: none; }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 16px; }
    .services-grid, .portals-grid, .news-grid, .contact-wrapper, .consulting-wrapper, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { padding-right: 0; }
}