@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Modern Blue Palette */
    --primary-dark: #0A2540;
    --primary: #1565C0;
    --primary-light: #1E88E5;
    --accent: #FF5252;
    --bg-gray: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    
    /* UI Variables */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 15px -5px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.85);
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* Header & Top Bar Modernization */
.top-bar {
    background: var(--primary-dark);
    height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-kunye {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.btn-kunye:hover {
    background: var(--primary-light);
}

.btn-iletisim {
    background: transparent;
    color: white;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    transition: var(--transition);
}

.btn-iletisim:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Main Navbar */
.main-header {
    background: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.main-header.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.main-nav a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 1.5rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover:after {
    width: 100%;
}

/* Breaking News Bar */
.breaking-bar {
    background: #f1f5f9;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.breaking-label {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    font-weight: 800;
    font-size: 11px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 6px -1px var(--primary);
    position: relative;
    overflow: hidden;
}

.breaking-label:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* News Cards & Slider */
.latestNewsSwiper .swiper-slide a {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.latestNewsSwiper .swiper-slide a:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.mainSwiper {
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.swiper-pagination-custom .swiper-pagination-bullet {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(8px);
    border: none !important;
    font-weight: 700 !important;
    transition: var(--transition) !important;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    background: var(--primary) !important;
    flex: 1.5 !important;
}

/* Section Styling */
.section-header {
    background: var(--primary-dark) !important;
    color: var(--white);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 4px 4px 0 0;
    display: block;
    width: 100%;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.section-line {
    display: none;
}

/* Typography for News Content (Prose) */
.prose {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}
.prose p {
    margin-bottom: 1.5rem;
}
.prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}
.prose h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}
.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}
.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 2rem 0;
}

/* Sidebar Blocks override for consistency */
.sidebar-block {
    background: var(--white);
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border-radius: 4px;
    padding: 1.25rem;
    transition: var(--transition);
}

.sidebar-block:hover {
    box-shadow: var(--shadow-hover);
}

/* News Card Grid Units */
.news-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-item h3 {
    color: var(--primary-dark);
    font-weight: 700;
}

.news-item:hover h3 {
    color: var(--primary);
}

/* Badge Styling */
.card-badge {
    background: var(--primary) !important;
    border-radius: var(--radius-sm);
    padding: 4px 10px !important;
    font-size: 10px !important;
    backdrop-filter: blur(4px);
}

/* Buttons */
.btn-modern {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

/* Service Cards (Home Page Carousel) */
.servicesSwiper a {
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.servicesSwiper a:hover {
    transform: scale(1.05);
}

/* Footer Modernization */
.footer-main {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
}

.footer-link {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Dropdown Menu */
.dropdown:hover .dropdown-content {
    display: block !important;
}

.dropdown-content {
    border-top: 3px solid var(--primary-light) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Mobile Menu Drawer */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 20px 0 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#mobile-menu.active {
    left: 0;
}

#mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--bg-gray);
    color: var(--primary);
    padding-left: 2rem;
}

/* Dark Mode (Subset implementation) */
@media (prefers-color-scheme: dark) {
    .dark {
        --bg-gray: #0F172A;
        --text-dark: #F8FAFC;
        --text-muted: #94A3B8;
        --white: #1E293B;
        --glass: rgba(30, 41, 59, 0.9);
    }
}
