:root {
    --primary-blue: #004a99;
    --navy-dark: #002b5c;
    --accent-blue: #007bff;
    --gray-bg: #f8f9fa;
    --border-color: #e3e3e3;
    --text-main: #333;
    --text-muted: #666;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fff;
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

/* Header */
.top-bar {
    background: var(--navy-dark);
    color: #fff;
    padding: 5px 0;
    font-size: 13px;
    text-align: right;
}

header {
    border-bottom: 2px solid var(--primary-blue);
    padding: 25px 0;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-blue);
}

.admin-link {
    background: var(--gray-bg);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-link:hover {
    background: var(--border-color);
}

/* Navbar */
nav {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--navy-dark);
}

nav ul li a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    position: relative;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    color: #fff;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-cat {
    background: var(--primary-blue);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Main Layout */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* News List */
.news-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.news-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.news-cat {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy-dark);
}

.news-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--navy-dark);
}

.sidebar-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.sidebar-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.cat-list {
    list-style: none;
}

.cat-list li {
    border-bottom: 1px solid var(--border-color);
}

.cat-list li a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
}

.cat-list li a:hover {
    padding-left: 5px;
    color: var(--primary-blue);
}

/* Footer */
footer {
    margin-top: 60px;
    background: var(--navy-dark);
    color: #eee;
    padding: 60px 0 20px;
}

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

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .news-card {
        grid-template-columns: 1fr;
    }
    .header-grid {
        flex-direction: column;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 14px;
}

.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-circle svg {
    width: 22px;
    height: 22px;
}

.social-circle:hover {
    background: #1e5eff;
    transform: scale(1.1);
}

.news-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}






/* Genel geçişler */
.news-card,
.hero-card,
.widget,
.admin-link,
nav ul li a,
.footer-social a,
.social-circle {
    transition: all 0.3s ease;
}

/* Hero alanı */
.hero-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.16);
}

.hero-content {
    padding: 45px;
}

.hero-title {
    font-size: 36px;
    line-height: 1.15;
}

/* Haber kartları */
.news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
    border-color: rgba(0, 74, 153, 0.18);
}

.news-img {
    border-radius: 10px;
    height: 170px;
}

.news-title {
    font-size: 24px;
    line-height: 1.25;
}

.news-info p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Sidebar */
.widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.sidebar-post {
    align-items: center;
}

.sidebar-post:hover .sidebar-post-title {
    color: var(--primary-blue);
}

.sidebar-img {
    border-radius: 8px;
}

.widget-title {
    font-size: 19px;
    letter-spacing: 0.3px;
}

/* Header */
header {
    padding: 22px 0;
    background: #fff;
}

.logo h1 {
    font-size: 38px;
}

.admin-link {
    background: var(--primary-blue);
    color: #fff;
    border: 1px solid var(--primary-blue);
}

.admin-link:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-1px);
}

/* Arama kutusu daha iyi görünüm */
.header-actions input[type="text"] {
    min-width: 220px;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    outline: none;
}

.header-actions input[type="text"]:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

/* Navbar */
nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 90;
}

nav ul li a {
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 10px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.25s ease;
}

nav ul li a:hover::after {
    width: calc(100% - 40px);
}

/* Footer */
footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #062349 0%, #001c3d 100%);
}

.footer-grid h3 {
    margin-bottom: 14px;
    color: #fff;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
    color: rgba(255,255,255,0.82);
}

.footer-grid a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 18px;
    display: flex;
    gap: 14px;
}

.social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.social-circle:hover {
    background: #1e5eff;
    transform: translateY(-3px) scale(1.05);
}

/* Sayfa içerik kutuları */
.content-area {
    min-width: 0;
}

/* Mobil iyileştirmeler */
@media (max-width: 900px) {
    .hero-card {
        height: 360px;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-title {
        font-size: 28px;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 30px;
    }

    .hero-card {
        height: 300px;
    }

    .hero-title {
        font-size: 24px;
    }

    .widget,
    .news-card {
        border-radius: 12px;
    }

    .header-actions input[type="text"] {
        min-width: 160px;
    }
}




.top-bar {
    background: var(--navy-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
}

.top-bar-flex {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-date {
    white-space: nowrap;
    font-weight: 600;
}

.top-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.top-label {
    background: #ff3b3b;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.top-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.top-ticker-text {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 22s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


.top-bar {
    background: var(--navy-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
}

.top-bar-flex {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-date {
    white-space: nowrap;
    font-weight: 600;
}

.top-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.top-label {
    background: #ff3b3b;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.top-ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.top-ticker-text {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 28s linear infinite;
}

.ticker-link {
    color: #fff;
    text-decoration: none;
    margin-right: 40px;
}

.ticker-link:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}






/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.nav-flex {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
    gap: 0;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--navy-dark);
    white-space: nowrap;
}

.nav-links li a:hover {
    color: var(--accent-blue);
}

@media (max-width: 900px) {
    .nav-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
    }
}



.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    min-width: 220px;
}

.search-form button {
    padding: 10px 14px;
    border: 1px solid var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--navy-dark);
}

.search-form input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}



.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    list-style: none;
    gap: 25px;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.logo h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.search-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.search-form input {
    width: 220px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d9e4f2;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.search-form button {
    width: 44px;
    height: 40px;
    border: 1px solid #0b4ea2;
    background: #0b4ea2;
    color: #fff;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    flex-shrink: 0;
}

.altaysec-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #0b4ea2;
    background: #f3f7fd;
    border: 1px solid #d9e4f2;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.altaysec-link:hover {
    background: #0b4ea2;
    color: #fff;
    border-color: #0b4ea2;
}

@media (max-width: 992px) {
    .header-grid {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}



/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #0f172a; /* koyu lacivert */
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* hover efekti */
.page-btn:hover {
    background: #1d4ed8; /* mavi */
    border-color: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
}

/* aktif sayfa */
.page-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* önceki-sonraki butonları */
.page-btn:first-child,
.page-btn:last-child {
    font-weight: 600;
}

/* mobil uyum */
@media (max-width: 600px) {
    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}


