/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --gray-light: #e0e0e0;
    --gray-medium: #999;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header — min-height ≈ 1920×500 bandı; cover ile kırpma daha dengeli olur */
.header {
    display: flex;
    align-items: center;
    min-height: clamp(220px, calc(100vw * 500 / 1920), 480px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 24px 0;
    box-shadow: var(--shadow);
}

.header .container {
    width: 100%;
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.header-link:hover {
    opacity: 0.9;
}

.header-link:focus {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 8px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    cursor: pointer;
}

.logo-section {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.main-logo, .anniversary-logo {
    height: 80px;
    width: auto;
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
}

/* Şeffaf logo: bazı tarayıcı/img stillerinde beyaz kutu kalmasın diye header içinde güçlü öncelik */
.header .main-logo.main-logo--plain,
.header .anniversary-logo.anniversary-logo--plain {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.header-title h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.header-title p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 5px;
    line-height: 1.4;
}

.header-title .header-extra-line {
    font-size: clamp(0.85rem, 1.7vw, 1.02rem);
    margin: 6px 0 0 0;
    line-height: 1.45;
    white-space: pre-wrap;
    opacity: 0.98;
}

.header-title .subtitle {
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    margin: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-around;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-hover);
    list-style: none;
    border-radius: 0 0 5px 5px;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-color);
    padding-left: 30px;
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.main-content .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Full Width Content (Sidebar'sız sayfalar için) */
.main-content .container.full-width,
.main-content .container[style*="max-width"] {
    display: block;
    max-width: 1400px !important;
}

.main-content .full-width .content-area,
.main-content .container[style*="max-width"] .content-area {
    max-width: 100% !important;
    width: 100% !important;
}

/* Page Content Wrapper */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-wrapper .content-area {
    width: 100%;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    padding-left: 15px;
}

.quick-links i {
    color: var(--secondary-color);
}

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Page Content Styles */
.page-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.page-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 8px;
}

.news-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 10px;
}

.news-category {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-date {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.news-title {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-content {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
}

.news-footer {
    border-top: 2px solid var(--gray-light);
    padding-top: 20px;
}

.news-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.news-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.news-stat i {
    color: var(--secondary-color);
}

.news-stat strong {
    color: var(--text-color);
}

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.email {
    background-color: #ea4335;
}

.all-news-link {
    text-align: center;
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-all-news:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), #002244);
    color: var(--white);
    margin-top: 60px;
}

.footer-top {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-title i {
    color: var(--accent-color);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
}

/* Footer Social Media */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
    background-color: #3b5998;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin:hover {
    background-color: #0077b5;
}

.social-link.youtube:hover {
    background-color: #ff0000;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-contact li {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent-color);
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 2px;
}

.footer-contact li > span {
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
    line-height: 1.6;
}

.footer-contact-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

/* Küçük tıklama butonu (telefon / e-posta / site) */
.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    font-size: 0.6rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-contact-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.footer-contact-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Tablo responsive */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.5s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop - Wider Content */
@media (min-width: 1400px) {
    .main-content .container.full-width,
    .main-content .container[style*="max-width"],
    .page-wrapper {
        max-width: 1320px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .main-content .container.full-width,
    .main-content .container[style*="max-width"],
    .page-wrapper {
        max-width: 1140px !important;
    }
}

/* Tablet - Landscape (992px ve altı) */
@media (max-width: 992px) {
    .main-content .container {
        grid-template-columns: 1fr;
    }

    .main-content .container.full-width,
    .main-content .container[style*="max-width"],
    .page-wrapper {
        max-width: 100% !important;
        padding: 0 20px;
    }

    .sidebar {
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .header {
        padding: 20px 0;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .logo-section {
        justify-content: center;
    }

    .main-logo, .anniversary-logo {
        max-height: 60px;
    }

    .header .main-logo.main-logo--plain,
    .header .anniversary-logo.anniversary-logo--plain {
        background: none !important;
        background-color: transparent !important;
        padding: 0 !important;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .news-card, .page-content {
        padding: 25px;
    }

    /* Tablolar için responsive */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Container genişliği */
    .container {
        padding: 0 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-top {
        padding: 40px 0 25px;
    }
}

/* Tablet - Portrait (768px ve altı) */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--bg-color);
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .nav-link {
        border-bottom: 1px solid var(--gray-light);
    }

    /* Header */
    .logo-section {
        flex-direction: column;
        justify-content: center;
    }

    .main-logo, .anniversary-logo {
        height: 60px;
    }

    .header .main-logo.main-logo--plain,
    .header .anniversary-logo.anniversary-logo--plain {
        background: none !important;
        background-color: transparent !important;
        padding: 0 !important;
    }

    /* Content */
    .news-title {
        font-size: 1.5rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-stats {
        flex-direction: column;
        gap: 10px;
    }

    .news-card {
        padding: 20px;
    }

    /* Genel padding ayarları */
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 30px 0;
    }

    /* Başlıklar */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Butonlar */
    .btn-all-news {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-top {
        padding: 30px 0 20px;
    }

    .footer-column {
        gap: 15px;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Mobile (480px ve altı) */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: 20px 0;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .header-title .header-extra-line {
        font-size: 0.8rem;
    }

    .main-logo, .anniversary-logo {
        height: 50px;
    }

    .header .main-logo.main-logo--plain,
    .header .anniversary-logo.anniversary-logo--plain {
        background: none !important;
        background-color: transparent !important;
        padding: 0 !important;
    }

    /* Content */
    .container {
        padding: 0 10px;
    }

    .news-card {
        padding: 15px;
    }

    .news-content {
        font-size: 0.95rem;
    }

    .share-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    /* Başlıklar */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Butonlar */
    .btn-all-news {
        font-size: 0.85rem;
        padding: 8px 15px;
        width: 100%;
        justify-content: center;
    }

    /* Share butonları */
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-top {
        padding: 25px 0 15px;
    }

    .footer-grid {
        gap: 25px;
    }

    .footer-title {
        font-size: 1rem;
        padding-bottom: 10px;
    }

    .footer-text,
    .footer-links li a,
    .footer-contact li {
        font-size: 0.85rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .copyright {
        font-size: 0.85rem;
        text-align: center;
    }

    .footer-bottom-links {
        font-size: 0.85rem;
    }
}

/* Print Stil */
@media print {
    .navbar,
    .sidebar,
    .share-section,
    .footer,
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content .container {
        grid-template-columns: 1fr !important;
    }

    .news-card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}
