/*
Theme Name: SGD Dernek Teması
Theme URI: https://sgd.org.tr
Description: Sosyal Güvenlik Denetmenleri Derneği için özel geliştirilmiş profesyonel WordPress teması. Modern tasarım, optimum performans ve SEO uyumlu.
Version: 1.0
Author: Sosyal Güvenlik Denetmenleri Derneği
Author URI: https://sgd.org.tr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sgd-theme
*/

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #ffffff;
}

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

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

/* === CONTAINER === */
.container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container {
        max-width: 98%;
        padding: 0 5px;
    }
}

/* === BORSA KAYANI BANT === */
.stock-ticker-wrapper {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}

.stock-ticker-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .stock-ticker-container {
        max-width: 98%;
        padding: 0 5px;
        gap: 10px;
    }
}

.stock-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.stock-ticker-inner {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.stock-ticker-inner:hover {
    animation-play-state: paused;
}

.stock-ticker-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.stock-ticker-controls label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.stock-ticker-controls select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2a2a3e;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

.stock-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 14px;
    flex-shrink: 0;
}

.stock-item .symbol {
    font-weight: bold;
    margin-right: 8px;
}

.stock-item .price {
    margin-right: 8px;
}

.stock-item .change {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.stock-item .change.positive {
    background: #10b981;
    color: #fff;
}

.stock-item .change.negative {
    background: #ef4444;
    color: #fff;
}

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

/* === HEADER === */
.site-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e5e5e5;
}

.header-main {
    min-height: 66px;
}

.header-main .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
}

.header-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

@media (max-width: 768px) {
    .header-main {
        min-height: 55px;
    }

    .header-main .header-container {
        min-height: 55px;
    }

    .header-content {
        max-width: 98%;
        padding: 8px 5px;
        gap: 10px;
    }

    .header-right {
        gap: 10px;
    }
}

.site-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.3px;
}

.site-logo img {
    max-height: 54px; /* 45px * 1.20 = 54px */
    width: auto;
}

/* === GOOGLE TRANSLATE === */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}

/* Google Translate container */
.goog-te-gadget {
    font-size: 0 !important;
    line-height: 1 !important;
}

/* "Powered by" ve logo gizle */
.goog-te-gadget > span > a {
    display: none !important;
}

.goog-te-gadget > span:first-child {
    display: none !important;
}

.goog-te-gadget img {
    display: none !important;
}

/* Select dropdown - Sadece yükseklik küçültme */
select.goog-te-combo {
    height: 34px !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    vertical-align: middle !important;
}

/* Google Translate üst banner'ı gizle */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

/* Body top margin düzelt */
body {
    top: 0 !important;
    position: static !important;
}

body.translated-ltr {
    top: 0 !important;
}

html.translated-ltr {
    margin-top: 0 !important;
}

/* === NAVIGATION === */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #1a1a1a;
    font-weight: 600;
    padding: 8px 18px;
    display: block;
    font-size: 14px;
    letter-spacing: -0.2px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-navigation a:hover {
    color: #fff; /* Beyaz - okunabilir! */
    background: #667eea; /* Mor arka plan */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: #fff;
    background: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    padding-top: 16px; /* Görsel boşluk için */
    margin-top: 0;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    z-index: 1000;
}

/* Alt menü açık kalması için parent ve alt menünün kendisine hover */
.main-navigation li:hover > ul,
.main-navigation ul ul:hover {
    display: flex;
}

/* Parent li hover durumunda geçiş sırasında boşluğu kapat */
.main-navigation li {
    position: relative;
}

.main-navigation li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    display: none;
}

.main-navigation li:hover::after {
    display: block;
}

.main-navigation ul ul a {
    padding: 12px 16px;
    border: 2px solid #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
}

.main-navigation ul ul a:hover {
    background: #667eea; /* Mor arka plan */
    color: #fff; /* Beyaz - okunabilir! */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #667eea;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .site-logo a {
        font-size: 18px;
    }

    .site-logo img {
        max-height: 42px; /* 35px * 1.20 = 42px */
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 998;
    }

    .main-navigation.active {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .main-navigation a {
        padding: 10px 14px;
        border: 2px solid #e5e5e5;
        border-radius: 8px;
    }

    .main-navigation a:hover {
        /* Mobilde hover aynı */
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        margin-top: 8px;
    }

    .main-navigation li.active > ul {
        display: flex;
    }

    .main-navigation ul ul a {
        transform: translateX(0);
    }
}

/* === MAIN CONTENT === */
.site-main {
    max-width: 85%;
    margin: 10px auto 30px auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .site-main {
        max-width: 98%;
        padding: 0 5px;
        margin: 10px auto;
    }

    .page .site-main {
        margin-bottom: 5px; /* Sadece page.php için footer ile arası azaltıldı */
    }
}

.site-main-content {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    .site-main-content {
        padding: 6px;
        border-radius: 6px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

.latest-posts-section {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .latest-posts-section {
        margin-bottom: 20px;
    }
}

/* === POSTS GRID === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; /* 20px'den 12px'e - %40 azalma */
    margin-bottom: 15px; /* 30px'den 15px'e - %50 azalma */
}

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 8px; /* 10px'den 8px'e */
        margin-bottom: 10px; /* 15px'den 10px'e */
    }
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e5e5;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f5f5f5;
}

.post-card-content {
    padding: 10px; /* 12px'den 10px'e */
}

@media (max-width: 768px) {
    .post-card-content {
        padding: 6px; /* 8px'den 6px'e */
    }

    .post-card-title {
        font-size: 13px; /* 14px'den 13px'e */
    }
}

.post-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
    color: #1a1a1a;
}

.post-card-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-excerpt {
    display: none;
}

.post-card-meta {
    display: none;
}

/* === CATEGORY BANNERS === */
.category-banner {
    display: block;
    margin: 25px 0 35px 0;
    padding: 25px 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );
    animation: bannerShine 4s infinite;
}

.category-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    z-index: 1;
    position: relative;
}

.category-banner-icon {
    font-size: 60px;
    line-height: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

.category-banner-text {
    flex: 1;
}

.category-banner-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.category-banner-description {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    margin: 0;
    font-weight: 500;
}

.category-banner-arrow {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

/* Renk Temaları */
.category-banner-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-banner-purple {
    background: linear-gradient(135deg, #a044ff 0%, #6a3093 100%);
}

.category-banner-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.category-banner-orange {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.category-banner-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.category-banner-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-banner-teal {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-banner-indigo {
    background: linear-gradient(135deg, #5f72bd 0%, #9b23ea 100%);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

@media (max-width: 768px) {
    .category-banner {
        padding: 15px;
        min-height: 100px;
        margin: 15px 0 20px 0;
    }

    .category-banner-content {
        gap: 12px;
    }

    .category-banner-icon {
        font-size: 35px;
    }

    .category-banner-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .category-banner-description {
        font-size: 13px;
    }

    .category-banner-arrow {
        font-size: 22px;
    }
}

/* === CATEGORY SECTION === */
.category-section {
    margin-bottom: 25px;
    padding: 0;
}

@media (max-width: 768px) {
    .category-section {
        margin-bottom: 15px;
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

@media (max-width: 768px) {
    .category-header {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .category-title {
        font-size: 18px;
    }

    .view-all-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.view-all-btn {
    background: #667eea;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.view-all-btn:hover {
    background: #5568d3;
    border-color: #5568d3;
    transform: translateY(-2px);
}

/* === SIDEBAR === */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.28fr);
    gap: 12px; /* 10px'den 12px'e - Sidebar görünürlüğü için */
    max-width: 85%;
    margin: 10px auto; /* 15px'den 10px'e */
    padding: 0 10px; /* 15px'den 10px'e */
}

@media (max-width: 968px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
        max-width: 98%;
        padding: 0 5px;
        margin: 6px auto; /* 8px'den 6px'e */
        gap: 6px; /* 8px'den 6px'e */
    }
}

.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    height: fit-content;
    min-width: 0;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        padding: 8px;
        border-radius: 6px;
    }
}

/* Sidebar Ad Banner */
.sidebar-ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: bannerPulse 3s ease-in-out infinite;
}

.sidebar-ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: bannerShine 3s infinite;
}

.ad-banner-content {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.ad-banner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: iconBounce 2s ease-in-out infinite;
}

.ad-banner-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.ad-banner-content p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

@keyframes bannerShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.sidebar-section {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .sidebar-section {
        margin-bottom: 10px;
    }

    .sidebar-title {
        font-size: 14px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #667eea;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    width: 55px;
    height: 55px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.recent-post-title a {
    color: #1a1a1a;
}

.recent-post-date {
    font-size: 11px;
    color: #999;
}

/* Category List in Sidebar */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list .cat-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.category-list .cat-count {
    background: #667eea;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Tag Cloud in Sidebar */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* === SINGLE POST === */
.single-content {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .single-content {
        padding: 6px;
        border-radius: 6px;
    }

    .entry-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.entry-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.entry-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 20px;
    }
}

.entry-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-featured-image {
    margin: 15px 0;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding-left: 20px;
    padding-right: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 18px;
    margin-bottom: 9px;
    color: #1a1a1a;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 11px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
    display: block;
}

.entry-content ul,
.entry-content ol {
    margin-left: 13px;
    margin-bottom: 11px;
}

/* PDF ve iframe için responsive wrapper */
.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
    border-radius: 8px;
}

/* Tablolar için modern stil */
.entry-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.entry-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.entry-content table thead th {
    padding: 14px 16px;
    font-weight: 700;
    text-align: left;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.entry-content table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.entry-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.entry-content table tbody tr:hover {
    background-color: #e7f0ff;
}

.entry-content table tbody td {
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    vertical-align: top;
}

.entry-content table tbody tr:last-child {
    border-bottom: none;
}

/* Responsive tablo wrapper */
.entry-content table {
    display: table;
}

@media (max-width: 768px) {
    .entry-content table {
        font-size: 14px;
    }

    .entry-content table thead th,
    .entry-content table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Çok geniş tablolar için scroll */
.entry-content > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content > table table {
    display: table;
}

/* Video ve medya embedler */
.entry-content video {
    max-width: 100%;
    height: auto;
}

/* Pre ve code blokları için */
.entry-content pre {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Entry Tags */
.entry-tags {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

.entry-tags strong {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 700;
}

.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.tags-list a {
    display: inline-block;
    padding: 3px 8px;
    background: #667eea;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* === SOCIAL SHARE === */
.social-share {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.social-share-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn span {
    white-space: nowrap;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Facebook */
.share-facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-facebook:hover {
    background: #145dbf;
    border-color: #145dbf;
}

/* Twitter/X */
.share-twitter {
    background: #000;
    color: #fff;
    border-color: #000;
}

.share-twitter:hover {
    background: #333;
    border-color: #333;
}

/* LinkedIn */
.share-linkedin {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.share-linkedin:hover {
    background: #005885;
    border-color: #005885;
}

/* WhatsApp */
.share-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.share-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
}

/* Telegram */
.share-telegram {
    background: #0088cc;
    color: #fff;
    border-color: #0088cc;
}

.share-telegram:hover {
    background: #006699;
    border-color: #006699;
}

/* Instagram */
.share-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
    border: none;
}

.share-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Email */
.share-email {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.share-email:hover {
    background: #5568d3;
    border-color: #5568d3;
}

@media (max-width: 768px) {
    .social-share {
        padding: 15px;
    }

    .social-share-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .social-share-buttons {
        gap: 8px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Related Posts */
.related-posts {
    margin-top: 10px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.related-posts h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

@media (max-width: 968px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-post-content {
    padding: 6px;
}

.related-post-title {
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-title a {
    color: #1a1a1a;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-post-date {
    font-size: 10px;
    color: #999;
}

/* Post Navigation */
.post-navigation {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
    }
}

.post-navigation > div {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.post-navigation a:hover {
    background: #667eea;
    border-color: #667eea;
}

.post-navigation a:hover * {
    color: #fff;
}

.post-navigation .nav-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.post-navigation .nav-title {
    margin-top: 4px;
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
}

.post-navigation .nav-next {
    text-align: right;
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 25px 0;
        margin-top: 25px;
    }

    .footer-content {
        max-width: 98%;
        padding: 0 5px;
    }
}

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

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer-widget h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

.footer-widget h3 {
    font-size: 17px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.footer-widget p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul a {
    transition: all 0.3s ease;
    opacity: 0.9;
    display: inline-block;
}

.footer-widget ul a:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .subscribe-form {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .subscribe-form input[type="email"],
    .subscribe-form button {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.subscribe-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.subscribe-form button {
    padding: 14px 28px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.subscribe-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.subscribe-message.success {
    color: #a7f3d0;
}

.subscribe-message.error {
    color: #fca5a5;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    opacity: 0.8;
}

/* === PAGINATION === */
.navigation .screen-reader-text,
.pagination .screen-reader-text,
.navigation h2,
.pagination h2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 25px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* === ARCHIVE & CATEGORY HEADERS === */
.archive-header-section,
.category-header-section,
.search-header-section {
    background: #fff;
    padding: 20px; /* 40px'den 20px'e - %50 azaltıldı */
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.archive-header-section h1,
.category-header-section h1,
.search-header-section h1 {
    font-size: 28px; /* 36px'den 28px'e azaltıldı */
    font-weight: 800;
    margin-bottom: 8px; /* 15px'den 8px'e azaltıldı */
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.archive-header-section p,
.category-header-section > div,
.search-header-section > div {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* === PAGE CONTENT === */
/* Sadece page.php için site-main alt margin ayarı */
.page .site-main {
    margin-bottom: 15px; /* Footer ile arası %50 azaltıldı (30px → 15px) */
}

.page-content {
    background: #fff;
    padding: 25px 16px; /* Sağ-sol padding %20 azaltıldı (20px → 16px) */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.page-content + .page-content {
    margin-top: 21px; /* Container'lar arası boşluk - %30 azaltılmış (30px → 21px) */
}

.page-content .entry-header {
    text-align: center;
    margin-bottom: 20px;
}

.page-content .entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.page-content .entry-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.page-content .entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px 4px; /* Sağ-sol padding %50 azaltıldı (8px → 4px) */
    }

    .page-content .entry-title {
        font-size: 28px;
    }

    .page-content .entry-content {
        padding-left: 5px; /* %50 azaltıldı (10px → 5px) */
        padding-right: 5px; /* %50 azaltıldı (10px → 5px) */
    }
}

/* === PAGE KÖŞE YAZARLARI - YATAY TASARIM === */
.page-kose-yazarlari {
    padding: 15px 20px 25px 20px; /* Üst padding azaltıldı */
}

.page-kose-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.page-kose-header .kose-icon {
    font-size: 24px;
    animation: writeAnimation 3s ease-in-out infinite;
}

.page-kose-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.page-kose-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 20px 5px;

    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.page-kose-scroll::-webkit-scrollbar {
    height: 8px;
}

.page-kose-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.page-kose-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.page-kose-scroll::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.page-kose-item {
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-kose-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.page-kose-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.page-yazar-foto-wrapper {
    margin-bottom: 12px;
}

.page-yazar-foto,
.page-yazar-foto-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.page-yazar-foto-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.page-yazar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    width: 100%;
}

.page-yazar-adi {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.2;
}

.page-yazar-unvan {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
}

.page-yazi-baslik {
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-kose-yazarlari {
        padding: 20px 15px;
    }

    .page-kose-item {
        flex: 0 0 240px;
    }

    .page-yazar-foto,
    .page-yazar-foto-placeholder {
        width: 70px;
        height: 70px;
    }

    .page-yazar-foto-placeholder {
        font-size: 28px;
    }
}

/* === PAGE SON YAZILAR - YATAY TASARIM === */
.page-son-yazilar {
    padding: 15px 20px 25px 20px; /* Üst padding azaltıldı */
}

.page-son-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.page-son-header .son-icon {
    font-size: 24px;
}

.page-son-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.page-son-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 20px 5px;

    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.page-son-scroll::-webkit-scrollbar {
    height: 8px;
}

.page-son-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.page-son-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.page-son-scroll::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.page-son-item {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-son-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.page-son-link {
    display: block;
    text-decoration: none;
    color: #2c3e50;
}

.page-son-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.page-son-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-son-item:hover .page-son-image {
    transform: scale(1.05);
}

.page-son-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-son-placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.page-son-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 160px; /* Sabit yükseklik - tarih her zaman en altta */
}

.page-son-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
}

.page-son-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0; /* Tarih asla küçülmez, her zaman en altta sabit kalır */
}

@media (max-width: 768px) {
    .page-son-yazilar {
        padding: 20px 15px;
    }

    .page-son-item {
        flex: 0 0 280px;
    }

    .page-son-thumb {
        height: 150px;
    }
}

/* === NO POSTS / ERROR 404 === */
.no-posts,
.error-404 {
    background: #fff;
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.error-404 h1 {
    font-size: 120px;
    margin-bottom: 20px;
    color: #667eea;
    font-weight: 800;
}

.error-404 h2,
.no-posts h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.error-404 p,
.no-posts p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === SEARCH FORM === */
.search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
}

.search-form button {
    padding: 14px 30px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* === 404 PAGE === */
.error-search-wrapper {
    max-width: 500px;
    margin: 0 auto 50px;
}

.error-search-wrapper h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.popular-categories {
    margin-top: 60px;
}

.popular-categories h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-button {
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.category-button:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-button .cat-count {
    background: #667eea;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.category-button:hover .cat-count {
    background: #fff;
    color: #667eea;
}

/* === UTILITY === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* === RECENT POSTS BANNER === */
.recent-posts-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.recent-posts-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.recent-posts-title {
    flex-shrink: 0;
    padding: 6px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    animation: pulse-title 2s ease-in-out infinite;
}

@keyframes pulse-title {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.recent-posts-track {
    flex: 1;
    overflow: hidden;
    padding: 6px 12px;
    position: relative;
    z-index: 1;
}

.recent-posts-track-inner {
    display: flex;
    gap: 15px;
    animation: scroll-left 40s linear infinite;
}

.recent-posts-track-inner:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.banner-post-item {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    text-decoration: none;
    color: inherit;
}

.banner-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-post-thumb {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.banner-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-post-item:hover .banner-post-thumb img {
    transform: scale(1.1);
}

.banner-post-info {
    flex: 1;
    min-width: 0;
}

.banner-post-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-post-date {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-posts-banner-container {
        flex-direction: column;
    }

    .recent-posts-title {
        width: 100%;
        padding: 5px 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        font-size: 12px;
    }

    .banner-post-item {
        width: 200px;
        padding: 4px;
    }

    .recent-posts-track {
        padding: 5px 10px;
    }

    .recent-posts-track-inner {
        animation: scroll-left 30s linear infinite;
    }
}

/* === AUTHOR BIO BOX (Köşe Yazıları) === */
.author-bio-box {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 25px;
    margin: 10px 0 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background-image: linear-gradient(#fff, #fff),
                      linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.author-bio-box:hover {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.15);
}

.author-bio-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-bio-photo {
    flex-shrink: 0;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.author-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
}

.author-bio-info {
    flex: 1;
    min-width: 0;
}

.author-bio-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-bio-title {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 12px 0;
    font-style: italic;
}

.author-bio-description {
    font-size: 15px;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .author-bio-box {
        padding: 20px;
        margin: 10px 0 20px 0;
    }

    .author-bio-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .author-bio-photo {
        width: 92px;
        height: 92px;
    }

    .author-bio-placeholder {
        font-size: 41px;
    }

    .author-bio-name {
        font-size: 20px;
    }

    .author-bio-title {
        font-size: 14px;
    }

    .author-bio-description {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* === BAŞKANIN MESAJI BANNER === */

/* Üst banner (Slider altı) - Slider ile aynı genişlikte */
.baskan-mesaji-ust-section {
    position: relative;
    margin: 25px 0;
}

.baskan-mesaji-ust-section .baskan-mesaji-banner {
    border-radius: 8px;
}

/* Alt banner (Footer üstü) - Site genişliğinde */
.baskan-mesaji-banner-wrapper {
    /* max-width dinamik olarak functions.php'den enjekte ediliyor (sgd_site_width) */
    margin: 25px auto 25px;
    padding: 0;
}

.baskan-mesaji-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 6px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.baskan-mesaji-banner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Işık geçiş efekti */
.baskan-mesaji-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.6) 50%,
        transparent 100%);
    animation: shineEffect 5s ease-in-out infinite;
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.baskan-mesaji-foto {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
    border: 3px solid #d1d5db;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.baskan-mesaji-icon {
    font-size: 90px;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
    line-height: 1;
}

.baskan-mesaji-content {
    flex: 1;
    color: #1f2937;
    position: relative;
    z-index: 1;
}

.baskan-mesaji-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111827;
    letter-spacing: -0.2px;
}

.baskan-mesaji-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #374151;
}

.baskan-mesaji-btn {
    background: #1f2937;
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.baskan-mesaji-btn:hover {
    background: #111827;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .baskan-mesaji-banner {
        padding: 18px 20px;
        gap: 18px;
    }

    .baskan-mesaji-foto {
        width: 80px;
        height: 80px;
    }

    .baskan-mesaji-icon {
        font-size: 80px;
    }

    .baskan-mesaji-title {
        font-size: 17px;
    }

    .baskan-mesaji-text {
        font-size: 13px;
    }

    .baskan-mesaji-btn {
        padding: 9px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .baskan-mesaji-ust-section {
        margin: 20px 0;
    }

    .baskan-mesaji-banner-wrapper {
        margin: 20px auto 20px;
        padding: 0;
    }

    .baskan-mesaji-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .baskan-mesaji-foto {
        width: 85px;
        height: 85px;
    }

    .baskan-mesaji-icon {
        font-size: 75px;
    }

    .baskan-mesaji-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .baskan-mesaji-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .baskan-mesaji-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .baskan-mesaji-btn:hover {
        transform: translateY(-2px);
    }
}

/* ========================================
   MENÜ ALTI BANNER
   ======================================== */

.header-banner-wrapper {
    /* max-width dinamik olarak functions.php'den enjekte ediliyor (sgd_site_width) */
    margin: 20px auto;
    padding: 0;
}

.header-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-decoration: none;
    color: inherit;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: line-pulse 2s infinite;
}

@keyframes line-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.header-banner:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.header-banner-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    position: relative;
    animation: icon-pulse 1.5s infinite ease-in-out, icon-glow 2s infinite ease-in-out;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes icon-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 1), 0 0 60px rgba(118, 75, 162, 0.8);
    }
}

.header-banner-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    animation: ring-pulse 2s infinite ease-out;
}

@keyframes ring-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.header-banner-foto {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.header-banner-content {
    flex: 1;
    min-width: 0;
}

.header-banner-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header-banner-wrapper {
        margin: 15px auto;
    }

    .header-banner {
        padding: 12px 15px;
        gap: 12px;
    }

    .header-banner-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .header-banner-foto {
        width: 50px;
        height: 50px;
    }

    .header-banner-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-banner-wrapper {
        margin: 12px auto;
    }

    .header-banner {
        padding: 10px 12px;
        gap: 10px;
    }

    .header-banner-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .header-banner-icon::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-width: 2px;
    }

    .header-banner-foto {
        width: 40px;
        height: 40px;
    }

    .header-banner-text {
        font-size: 14px;
        line-height: 1.4;
    }
}
