/* ============================================================
   DR. HAKAN ŞAHİN - Resmi Web Sitesi
   Statik HTML/CSS/JS Versiyonu
   Orijinal: WordPress Gist teması (candidthemes)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
    --primary:       #a36f00;
    --primary-dark:  #7a5300;
    --dark:          #1a1a1a;
    --text:          #555;
    --muted:         #888;
    --border:        #e0e0e0;
    --bg-light:      #fafafa;
    --header-h:      70px;
    --font-ui:       'Oswald', sans-serif;
    --font-body:     'Inter', 'Segoe UI', Arial, sans-serif;
    --font-narrow:   'Arial Narrow', 'Segoe UI', Arial, sans-serif;
    --max-w:         1200px;
    --radius-sm:     2px;
    --radius-md:     4px;
}

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #fafafa;
    color: #555;
    font-family: var(--font-body);
    line-height: 1.9;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    margin-top: 0;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.4em;
    margin-top: 0;
}

ul, ol {
    margin: 0 0 1.2em 1.5em;
}

blockquote {
    border-left: 5px solid var(--primary);
    padding: 4px 0 4px 24px;
    margin: 1.5em 0;
    font-style: italic;
    color: #666;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Ortak Bilgi / Yönlendirme Şeridi (.info-strip) ─── */
.info-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    border-radius: 4px;
}
.info-strip .info-icon {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}
.info-strip .info-icon.youtube-color { color: #ff0000; }
.info-strip .info-icon.scholar-color { color: #4285F4; }

.info-strip .info-content {
    flex: 1;
    min-width: 0;
}
.info-strip .info-content strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--dark, #1a1a1a);
    margin-bottom: 4px;
}
.info-strip .info-content p {
    font-size: .85rem;
    color: #666;
    margin: 0;
}
.info-strip .info-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .2s, transform .2s;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
}
.info-strip .info-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}
.info-strip .info-action.youtube-btn { background: #ff0000; }
.info-strip .info-action.youtube-btn:hover { background: #cc0000; }
.info-strip .info-action.scholar-btn { background: #4285F4; }
.info-strip .info-action.scholar-btn:hover { background: #3367D6; }

@media (max-width: 600px) {
    .info-strip {
        flex-wrap: wrap;
    }
    .info-strip .info-action {
        width: 100%;
        justify-content: center;
    }
}

.book-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.book-summary-grid a {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-top: 3px solid var(--primary);
    background: #fff;
    color: #333;
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.book-summary-grid a:hover {
    background: #fff9e6;
    color: var(--primary);
    transform: translateY(-2px);
}

.books-page-section {
    background: #fafafa;
    padding: 56px 20px 80px;
}

.book-detail-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-bottom: 28px;
    padding: 38px;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
}

.book-cover-large {
    display: flex;
    justify-content: center;
}

.book-cover-large img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    box-shadow: 5px 10px 24px rgba(0, 0, 0, 0.16);
    border-radius: 4px;
}

.book-info h2 {
    margin-bottom: 10px;
    font-size: 1.65rem;
}

.book-info .publisher {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.book-info .publisher span {
    color: #999;
    font-weight: 400;
}

.book-info p {
    max-width: 760px;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

.book-info .topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.book-info .topic-tag {
    padding: 5px 12px;
    border: 1px solid #e8d8ae;
    background: #fff9e6;
    color: var(--primary-dark);
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 700px) {
    .book-detail-card {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px 22px;
    }

    .book-info h2 {
        font-size: 1.4rem;
    }

    .book-info .publisher,
    .book-info .topics {
        justify-content: center;
    }

    .book-info {
        text-align: center;
    }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
#masthead {
    background: #fff;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding img.logo {
    height: 48px;
    width: auto;
}

.site-title-text {
    display: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0 18px;
    height: 70px;
    line-height: 70px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li.active > a {
    color: var(--primary);
    background: #FDF8EF;
}

/* Dropdown */
.nav-menu li ul {
    position: absolute;
    top: 70px;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    z-index: 9999;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu li ul li a {
    height: auto;
    line-height: 1.5;
    padding: 12px 18px;
    font-size: 14px;
    text-transform: none;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu li ul li a:hover {
    background: #FDF8EF;
    color: var(--primary);
}

.nav-menu li ul li.active > a {
    background: var(--primary);
    color: #fff;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.category-tabs a {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tabs a:hover,
.category-tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: #333;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.menu-toggle:hover { background: var(--primary); }

/* ============================================================
   HERO / BANNER SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(150deg, #111008 0%, #1e1709 45%, #2a1f0a 70%, #3d2c0a 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/mt-sample-background.jpg') center/cover no-repeat;
    opacity: 0.08;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, #E6A020 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
    margin: 6px;
}

.hero-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.hero-btn.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
}

.hero-btn.outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ============================================================
   ABOUT PREVIEW (Ana sayfa hakkında bölümü)
   ============================================================ */
.about-preview {
    padding: 70px 20px;
    background: #fff;
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-photo {
    text-align: center;
}

.about-photo img {
    max-width: 280px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    margin: 0 auto;
    max-height: 380px;
    object-fit: cover;
    object-position: top center;
}

.about-text .section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.about-text p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-text .btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 12px;
    transition: background 0.2s ease;
}

.about-text .btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.section-title p {
    color: #888;
    font-size: 1rem;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   LATEST ARTICLES / BLOG CARDS
   ============================================================ */
.articles-section {
    padding: 70px 20px;
    background: #fafafa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-card-img {
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta .category {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-card h3 a {
    color: #1a1a1a;
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.7;
    flex: 1;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-card .read-more:hover {
    border-color: var(--primary);
}

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books-section {
    padding: 70px 20px;
    background: #fff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.book-card {
    text-align: center;
    transition: transform 0.2s ease;
}



.book-card:hover {
    transform: translateY(-4px);
}

.book-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.15);
    border-radius: 2px;
}

.book-card h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.book-card p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}


/* Carousel: no-JS fallback — first 3 cards visible if JS not loaded */



.books-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

.books-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.books-dots button.active,
.books-dots button:hover {
    background: var(--primary);
}

/* ============================================================
   MAIN CONTENT AREA (İç sayfalar)
   ============================================================ */
#content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

#content-wrapper.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 900px;
}

#primary {
    min-width: 0;
}

/* ============================================================
   ARTICLE SINGLE
   ============================================================ */
.entry-single {
    background: #fff;
    padding: 36px;
    margin-bottom: 24px;
}

.entry-single .entry-header {
    margin-bottom: 28px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 28px;
}

.entry-single .entry-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-single .entry-meta .category a {
    color: var(--primary);
    font-weight: 600;
}

.entry-single h1.entry-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
}

.entry-single .entry-content {
    font-family: 'Source Serif 4', serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
}

.entry-single .entry-content p {
    margin-bottom: 1.6em;
}

.entry-single .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    display: block;
    border-radius: 2px;
}

.entry-single .featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 28px;
    border-radius: 2px;
}

/* ============================================================
   ARTICLE LIST (Blog sayfası)
   ============================================================ */
article.post-item {
    background: #fff;
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

article.post-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-item-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 2px;
    background: #f0f0f0;
}

.post-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-item:hover .post-item-thumb img {
    transform: scale(1.05);
}

.post-item-body {
    flex: 1;
    min-width: 0;
}

.post-item-body .entry-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.post-item-body .entry-meta .category a {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.post-item-body h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-item-body h2 a {
    color: #1a1a1a;
}

.post-item-body h2 a:hover {
    color: var(--primary);
}

.post-item-body .excerpt {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 14px;
}

.post-item-body .read-more {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: var(--primary);
    padding: 8px 20px;
    display: inline-block;
    transition: background 0.2s;
}

.post-item-body .read-more:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary {
    min-width: 0;
}

.widget {
    background: #fff;
    padding: 28px 22px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
}

.widget ul li a:hover {
    color: var(--primary);
}

.widget-author img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 3px solid var(--primary);
}

.widget-author .author-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.widget-author .author-bio {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    line-height: 1.7;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-hero {
    background: linear-gradient(150deg, #111008 0%, #1e1709 60%, #2a1f0a 100%);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid var(--primary);
}

.about-page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.about-page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

.about-content {
    background: #fff;
    padding: 60px 20px;
}

.about-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo-large {
    position: sticky;
    top: 90px;
}

.about-photo-large img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.about-text-content h2 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.about-text-content .subtitle {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 28px;
    display: block;
}

.about-text-content p {
    color: #555;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1.4em;
}

.about-text-content h3 {
    margin-top: 32px;
    margin-bottom: 14px;
    color: #1a1a1a;
    font-size: 1.3rem;
    border-left: 4px solid var(--primary);
    padding-left: 14px;
}

.credentials-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.credentials-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.credentials-list li::before {
    content: '▸';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
    background: #fff;
    padding: 60px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.contact-info h3 {
    grid-column: 1 / -1;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 170px;
    margin-bottom: 0;
    padding: 24px;
    border: 1px solid #f0f0f0;
    border-top: 3px solid var(--primary);
}

.contact-info-item:last-child {
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 22px;
}

.contact-info-text strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.contact-info-text span {
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-info h3 {
        grid-column: auto;
    }
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 15px;
    color: #444;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 2px;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-notice {
    background: #FDF8EF;
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    font-size: 14px;
    color: #555;
    margin-top: 16px;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a,
.pagination span,
.pagination button {
    display: inline-block;
    border: 1px solid var(--primary);
    background: transparent;
    padding: 6px 14px;
    margin: 0 4px 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination span.current,
.pagination button:hover,
.pagination button.current {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   PAGE HEADER (İç sayfa başlığı)
   ============================================================ */
.page-hero {
    background: linear-gradient(150deg, #111008 0%, #1e1709 60%, #2a1f0a 100%);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid var(--primary);
}

.page-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.page-hero .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-hero .breadcrumb a:hover {
    color: #fff;
}

.page-hero .breadcrumb span.sep {
    margin: 0 8px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    margin: 40px auto;
    max-width: 600px;
}

.error-404 .error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.error-404 p {
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.error-404 .btn-home {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s;
}

.error-404 .btn-home:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background: #111;
    color: #aaa;
    padding: 60px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}

.footer-col .footer-logo {
    margin-bottom: 16px;
    opacity: 0.9;
    /* filter: brightness(0) invert(1); */
    max-height: 40px;
    width: auto;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #888;
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-col ul li a {
    color: #888;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col ul li a::before {
    content: '›';
    margin-right: 6px;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.footer-bottom a {
    color: var(--primary);
}

/* Back to top */
#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(200,134,10,0.35);
    transition: background 0.2s, transform 0.2s;
    z-index: 999;
}

#toTop.visible {
    display: flex;
}

#toTop:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================================
   STATS / INFO STRIP
   ============================================================ */
.stats-strip {
    background: var(--primary);
    padding: 40px 20px;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item .number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item .label {
    font-size: 0.85rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SEARCH BOX (Sidebar)
   ============================================================ */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    border: 1px solid var(--primary);
    padding: 11px 50px 11px 16px;
    font-size: 14px;
    outline: none;
    border-radius: 2px;
    background: #fff;
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .books-grid { grid-template-columns: 1fr; }

    .book-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #content-wrapper {
        grid-template-columns: 1fr;
    }

    .about-preview .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-preview .container .about-photo {
        order: -1;
    }

    .about-content .container {
        grid-template-columns: 1fr;
    }

    .about-photo-large {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .books-grid { grid-template-columns: 1fr; }

    article.post-item {
        flex-direction: column;
    }

    .post-item-thumb {
        width: 100%;
        height: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    #site-navigation {
        /* Keep toggle button aligned properly */
        display: flex;
        align-items: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        height: auto;
        line-height: 1.5;
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 4px solid var(--primary);
        margin-left: 20px;
    }

    .header-inner {
        height: auto;
        padding: 12px 20px;
        position: relative;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .book-summary-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .entry-single {
        padding: 20px;
    }
}


/* ============================================================
   BUTTON UTILITY CLASSES
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 13px 30px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: 2px solid var(--primary);
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 11px 30px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: 2px solid var(--primary);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary);
    color: #fff;
}

.book-back-btn {
    margin-top: 32px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-green { color: var(--primary); }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* Smooth image fade-in */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.lazy {
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* Mobile: submenu toggled by click via JS (.submenu-open class) */
@media (max-width: 768px) {
    .nav-menu li > ul {
        display: none !important;
    }
    .nav-menu li.submenu-open > ul {
        display: block !important;
    }
}


/* ============================================================
   PAGINATION BUTTONS (Added via script)
   ============================================================ */
.pagination-btn {
    padding: 8px 16px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, opacity 0.2s;
}
.pagination-btn:hover:not(.disabled) {
    background: var(--primary-dark);
}
.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-info {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: #333;
}
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
    --primary: #cca352;
    --primary-dark: #e6be65;
    --dark: #f0f0f0;
    --text: #ffffff;
    --muted: #999999;
    --border: #333333;
    --bg-light: #1a1a1a;
    
    background-color: #121212 !important;
    color: #ffffff;
}

body.dark-mode #masthead,
body.dark-mode .nav-menu,
body.dark-mode .nav-menu ul,
body.dark-mode .nav-menu li ul,
body.dark-mode .article-card,
body.dark-mode .book-card,
body.dark-mode article.post-item,
body.dark-mode .search-form input,
body.dark-mode .entry-single,
body.dark-mode .video-card,
body.dark-mode .articles-list-section,
body.dark-mode .info-strip,
body.dark-mode .book-detail-card,
body.dark-mode .topic-tag,
body.dark-mode .about-preview,
body.dark-mode .books-section,
body.dark-mode .widget,
body.dark-mode .about-content,
body.dark-mode .contact-section,
body.dark-mode .error-404 {
    background-color: #1e1e1e !important;
    color: #ffffff;
}

body.dark-mode .books-page-section,
body.dark-mode .articles-section {
    background-color: #121212 !important;
}

body.dark-mode .site-title a {
    color: #ffffff !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .entry-meta,
body.dark-mode .video-desc {
    color: #ffffff !important;
}

body.dark-mode #content-wrapper a:not(.btn-primary):not(.btn-outline):not(.read-more):not(.category):not(.video-watch-link) {
    color: #ffffff;
}

body.dark-mode a:hover {
    color: var(--primary) !important;
}

body.dark-mode #masthead a,
body.dark-mode .nav-menu a {
    color: #ffffff;
}

body.dark-mode .nav-menu li ul {
    border-top: 2px solid var(--primary);
}

body.dark-mode .category-tabs a {
    background: #1e1e1e !important;
    border-color: #333;
    color: #ffffff;
}

body.dark-mode .category-tabs a:hover,
body.dark-mode .category-tabs a.active {
    background: var(--primary) !important;
    border-color: var(--primary);
    color: #121212 !important;
}

body.dark-mode .pagination-info {
    color: #ffffff !important;
}



#darkModeToggle {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}
#darkModeToggle:hover {
    color: var(--primary);
}
body.dark-mode #darkModeToggle {
    color: #f1c40f;
}

/* Dark Mode fixes for nav menu active/hover and mobile borders */
body.dark-mode .nav-menu li a:hover,
body.dark-mode .nav-menu li.active > a,
body.dark-mode .nav-menu li ul li a:hover {
    background-color: #2a2a2a !important;
    color: var(--primary) !important;
}

body.dark-mode .nav-menu li ul li.active > a {
    background-color: var(--primary) !important;
    color: #121212 !important;
}

@media (max-width: 768px) {
    body.dark-mode .nav-menu li a {
        border-bottom-color: #333 !important;
    }
}

body.dark-mode .menu-toggle {
    color: #ffffff !important;
}

/* Ensure all heading links are white in dark mode */
body.dark-mode h1 a,
body.dark-mode h2 a,
body.dark-mode h3 a,
body.dark-mode h4 a,
body.dark-mode h5 a,
body.dark-mode h6 a,
body.dark-mode .post-item-body h2 a,
body.dark-mode .post-item-body h3 a {
    color: #ffffff !important;
}

/* Fix bright borders while keeping primary borders */
body.dark-mode .nav-menu,
body.dark-mode .nav-menu li a,
body.dark-mode .nav-menu li ul li a,
body.dark-mode .category-tabs,
body.dark-mode .entry-single .entry-header,
body.dark-mode .post-item-thumb,
body.dark-mode .credentials-list li,
body.dark-mode .contact-info-item,
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .book-summary-grid a {
    border-color: #333 !important;
}

/* Form inputs and contact fixes */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

body.dark-mode .contact-info-item {
    border-top-color: var(--primary) !important;
}

body.dark-mode blockquote {
    color: #ffffff !important;
}

body.dark-mode hr {
    border-top-color: #333 !important;
}

body.dark-mode .category {
    background-color: transparent !important;
    color: var(--primary) !important;
}
body.dark-mode .category a {
    color: var(--primary) !important;
}

body.dark-mode .topic-tag {
    background-color: #2a2a2a !important;
}

/* Ensure explicitly colored paragraphs are light in dark mode */
body.dark-mode .info-strip .info-content p,
body.dark-mode .book-info p,
body.dark-mode .about-text p,
body.dark-mode .section-title p,
body.dark-mode .article-card p,
body.dark-mode .book-card p,
body.dark-mode .post-item-body .excerpt,
body.dark-mode .about-text-content p,
body.dark-mode .error-404 p,
body.dark-mode p {
    color: #ffffff !important;
}

/* Ensure footer text remains dim as originally intended */
body.dark-mode #colophon p { color: #ffffff !important; }
body.dark-mode .footer-bottom p { color: #ffffff !important; }

/* Ensure explicitly colored lists and spans are light in dark mode */
body.dark-mode .credentials-list li,
body.dark-mode .contact-info-text span,
body.dark-mode .widget ul li a {
    color: #ffffff !important;
}

body.dark-mode .footer-col ul li a {
    color: #ffffff !important;
}

/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */
.lang-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}
#langToggle {
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    transition: color 0.3s ease;
}
#langToggle i {
    font-size: 10px;
    color: #888;
}
#langToggle:hover {
    color: var(--primary);
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    margin: 10px 0 0 0;
    border-radius: 4px;
    min-width: 140px;
    z-index: 1000;
    border: 1px solid #eee;
}
.lang-dropdown.show {
    display: block;
}
.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.lang-dropdown li a:hover {
    background: #f9f9f9;
    color: var(--primary);
}

/* Dark Mode fixes for Lang Selector */
body.dark-mode #langToggle {
    color: #f4f4f4;
}
body.dark-mode .lang-dropdown {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-color: #333;
}
body.dark-mode .lang-dropdown li a {
    color: #ffffff;
}
body.dark-mode .lang-dropdown li a:hover {
    background: #2a2a2a;
    color: var(--primary);
}
