/*
Theme Name: Jettfy Blog
Theme URI: https://jettfy.com
Author: Jettfy
Author URI: https://jettfy.com
Description: Jettfy E-Ticaret | B2B Yazılım Çözümleri Blog Teması
Version: 1.0.0
Tested up to: 6.6
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jettfy-seo
Tags: blog, jettfy, e-ticaret, b2b, yazılım, çözümler
*/

/* CSS reset (modern, minimal) */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
:root { --bg: #ffffff; --text: #0f172a; --muted: #475569; --brand: #fb923c; --brand-600: #f97316; --border: #e5e7eb; --card: #ffffff; --shadow: 0 8px 20px rgba(2, 8, 23, 0.06); }
body { 
    margin: 0; 
    font-family: "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    background: var(--bg);
    position: relative;
    font-size: 16px;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
html { overflow-x: hidden; }

main {
    flex: 1;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Apply grid background to all sections */
section {
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.05) 0%, transparent 50%);
    position: relative;
}
body.menu-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
iframe, embed, object { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Prevent long words/URLs from causing horizontal overflow */
p, h1, h2, h3, h4, h5, h6, a, li, blockquote {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Layout */
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Top Bar with Scrolling Text */
.top-bar { 
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    color: white;
    padding: .5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 60;
}
.scrolling-text {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: .875rem;
    font-weight: 500;
}
.topbar-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.topbar-link:hover {
    transform: none;
}
.topbar-main-text {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.topbar-sub-text {
    font-size: 0.8rem;
    opacity: 0.9;
}
@keyframes pulse-glow {
    0% { text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
    100% { text-shadow: 0 2px 8px rgba(255,255,255,0.6), 0 0 12px rgba(255,255,255,0.3); }
}
@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.scrolling-text:hover {
    animation-play-state: paused;
}

/* Modern Header */
header.site-header { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    backdrop-filter: saturate(180%) blur(20px); 
    background: rgba(255,255,255,.85); 
    border: 2px solid var(--brand-600);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(251, 146, 60, 0.15), 0 4px 20px rgba(0,0,0,.08);
    transition: all .3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 0.75rem 0;
    margin: 0.5rem auto;
    max-width: 1200px;
    width: calc(100% - 2rem);
}
/* Sticky header fallback/fix on some mobile browsers */
header.site-header { position: sticky !important; top: 0 !important; transform: none !important; z-index: 1000 !important; }
header.site-header:hover {
    box-shadow: 0 12px 40px rgba(251, 146, 60, 0.25), 0 8px 30px rgba(0,0,0,.12);
    border-color: var(--brand);
    transform: translateY(-2px);
}
header.site-header.scrolled {
    background: rgba(255,255,255,.99);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

footer.site-footer { padding: 1.25rem 0; }
main { padding: 1rem 0 2rem; }

/* Navigation */
.header-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.site-branding { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}
.site-branding .custom-logo { width: 120px; height: auto; margin-bottom: .5rem; }
.site-title { display: none; }
.site-description { margin: .25rem 0 0; color: #1f2937; font-size: .95rem; }

.nav-left, .nav-right { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.nav-left ul, .nav-right ul { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-left li, .nav-right li { display: inline-block; }
.nav-left a, .nav-right a { 
    display: inline-block; 
    padding: .75rem 1rem; 
    border-radius: .75rem; 
    color: #0f172a; 
    font-weight: 600; 
    white-space: nowrap;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.nav-left a::before, .nav-right a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left .5s ease;
}
.nav-left a:hover::before, .nav-right a:hover::before {
    left: 100%;
}
.nav-left a:hover, .nav-right a:hover { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.nav-left a:focus-visible, .nav-right a:focus-visible { outline: 2px solid #0a66c2; outline-offset: 2px; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
    border-radius: .5rem;
    transition: background .3s ease;
    z-index: 1001;
    position: relative;
    color: #0f172a;
}
.mobile-menu-toggle:hover {
    background: rgba(0,0,0,.1);
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transition: transform .35s ease, opacity .25s ease, visibility .25s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu .menu li {
    margin-bottom: .5rem;
}
.mobile-menu .menu a {
    display: block;
    padding: .75rem 1rem;
    color: #0f172a;
    text-decoration: none;
    border-radius: .5rem;
    transition: background .3s ease;
}
.mobile-menu .menu a:hover {
    background: #f3f4f6;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-brand { display: flex; align-items: center; gap: .75rem; }
.mobile-brand .custom-logo { max-height: 40px; width: auto; }
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
    border-radius: .5rem;
    transition: background .3s ease;
}
.mobile-menu-close:hover {
    background: rgba(0,0,0,.1);
}

/* Fix: When mobile menu is open, ensure it is fixed to viewport, not header */
body.menu-open header.site-header { transform: none !important; }
/* Hide mobile menu toggle while menu is open to avoid z-index overlap */
body.menu-open .mobile-menu-toggle { visibility: hidden; pointer-events: none; display: none; }

@media (max-width: 768px) {
    header.site-header {
        position: sticky !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
        border-radius: 0.75rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .nav-left, .nav-right {
        display: none;
    }
    .header-split {
        grid-template-columns: auto 1fr auto;
        justify-items: center;
    }
    .site-branding {
        text-align: center;
        grid-column: 2;
    }
    .site-title {
        font-size: 1.5rem;
    }
}

/* Posts */
.post-list { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    padding: 0 1rem;
}
@media (min-width: 48rem) { 
    .post-list { 
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
        padding: 0;
    } 
}
@media (min-width: 1024px) {
    .post-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
.post-card { 
    border: 1px solid var(--border); 
    border-radius: 1rem; 
    padding: 1rem; 
    background: var(--card); 
    box-shadow: var(--shadow); 
    transition: transform .2s ease, box-shadow .2s ease; 
    overflow: hidden; 
}
@media (max-width: 768px) {
    .post-card {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(2, 8, 23, 0.1); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: .5rem; }
.post-card h2 { margin: .25rem 0 .5rem; font-size: 1.25rem; }
.post-meta { color: var(--muted); font-size: .875rem; }

/* Category sections on home */
.home .category-sections { 
    display: grid; 
    gap: 2.5rem; 
    margin: 3rem 0;
}
@media (max-width: 768px) {
    .home .category-sections {
        gap: 1.5rem;
        margin: 2rem 0;
    }
}
.home .mixed-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin: 2rem 0;
}
@media (min-width: 48rem) { 
    .home .mixed-grid { 
        grid-template-columns: 2fr 1fr; 
        gap: 3rem;
    } 
}
.home .mixed-grid .feature { 
    border: 1px solid var(--border); 
    border-radius: 1.25rem; 
    padding: 1.5rem; 
    background: var(--card); 
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
.home .mixed-grid .feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.home .mixed-grid .stack { 
    display: grid; 
    gap: 1.25rem; 
}
.home .mixed-grid .stack .post-card {
    border-radius: .875rem;
    padding: 1.25rem;
}
/* Category sections - exactly like featured content */
.category-section {
    padding: 1.5rem 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.05) 0%, transparent 50%),
        #f8fafc;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}
.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(251, 146, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.category-section .section-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    color: #0f172a;
    position: relative;
}
.category-section .category-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}
@media (min-width: 768px) {
    .category-section .category-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (min-width: 1024px) {
    .category-section .category-posts {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .category-section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    .category-section .category-posts {
        gap: 1rem;
    }
    .category-section .section-title {
        font-size: 1.5rem;
    }
}
/* View All Button */
.view-all-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--brand-600);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--brand-600);
}
.view-all-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
    color: white;
}
@media (max-width: 768px) {
    .view-all-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Utilities */
.badge { display: inline-block; background: #ecfeff; color: var(--brand-600); border: 1px solid #cffafe; padding: .2rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(15deg);
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 30%;
    height: 150%;
    background: linear-gradient(-45deg, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-15deg);
}
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #0f172a;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin: 0 0 2rem;
    font-weight: 500;
}
/* Academy CTA Section */
.academy-cta {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: transparent;
    border-radius: 2rem;
    border: 3px solid var(--brand-600);
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.academy-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(251, 146, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(15deg);
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #0f172a;
    line-height: 1.2;
}
.animated-text {
    position: relative;
    height: 3rem;
    overflow: hidden;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    color: var(--brand-600);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-item.active {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .animated-text {
        height: 3.25rem;
        margin: 0.75rem 0;
    }
    .text-item {
        font-size: 1.05rem;
        padding: 0 0.5rem;
        white-space: normal;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }
}
@media (max-width: 480px) {
    .animated-text {
        height: 3rem;
    }
    .text-item {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
        padding: 0 0.25rem;
        word-wrap: break-word;
        hyphens: auto;
    }
}
.cta-description {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 3rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.cta-btn.primary {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}
.cta-btn.secondary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.btn-text {
    position: relative;
    z-index: 1;
}

/* Hero Desktop Image */
.hero-desktop-image {
    position: absolute;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Hero Mobile Image */
.hero-mobile-image {
    display: none;
    width: 100px;
    margin: 0 auto 1rem;
    text-align: center;
}
.hero-left-image:hover {
    transform: scale(1.05);
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}
.image-placeholder {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}
.image-placeholder:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-desktop-image {
        display: none !important;
    }
    .hero-mobile-image {
        display: block !important;
    }
    .image-placeholder {
        font-size: 0.8rem;
    }
}
.hero-search .search-form {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
}
.hero-search .search-field {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid #fb923c;
    border-radius: 1rem;
    font-size: 1.1rem;
    transition: all .3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.2);
}
.hero-search .search-field:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.3);
    background: rgba(251, 146, 60, 0.1);
}
.hero-search .search-submit {
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-search .search-submit:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6);
    transform: translateY(-2px);
}
.search-suggestions {
    color: #64748b;
    font-size: .9rem;
    margin: 1rem 0 0;
    font-style: italic;
    text-align: center;
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-title {
        font-size: 1.25rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    .academy-cta {
        padding: 1rem 0.5rem;
        margin: 0.75rem auto 0;
        border-radius: 0.5rem;
    }
    .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    .animated-text {
        height: 1.75rem;
        margin-bottom: 0.25rem;
    }
    .text-item {
        font-size: 0.9rem;
    }
    .cta-description {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    .cta-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-width: 140px;
    }
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .hero-mobile-image {
        width: 100px;
        margin: 0 auto 0.75rem;
    }
    header.site-header {
        margin: 0.25rem auto;
        width: calc(100% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    .hero-search .search-form {
        flex-direction: column;
    }
    header.site-header {
        top: 0;
        padding: 0.5rem 0;
        margin: 0.25rem auto;
        border-radius: 0.75rem;
        max-width: 1200px;
        width: calc(100% - 1rem);
    }
    .container {
        padding: 0 0.75rem;
    }
    .hero-section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    .academy-cta {
        padding: 1.25rem 0.75rem;
        margin: 1rem auto 0;
        border-radius: 0.75rem;
        max-width: 100%;
        width: 100%;
    }
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    /* Single readability - mobile */
    .single .entry-content { font-size: 1.0625rem; line-height: 1.8; }
    .single .entry-content p { margin: 1rem 0; }
    .single .entry-content h2 { font-size: 1.25rem; margin: 1.25rem 0 .5rem; line-height: 1.3; }
    .single .entry-content h3 { font-size: 1.125rem; margin: 1rem 0 .5rem; line-height: 1.3; }
    .single .entry-content ul, .single .entry-content ol { padding-left: 1.25rem; margin: .5rem 0 1rem; }
    .single .entry-content li { margin: .375rem 0; }
    .single .entry-content img, .single .entry-content figure, .single .entry-content table, .single .entry-content pre, .single .entry-content code { max-width: 100%; width: 100%; }
    .single .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .single .entry-content blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--brand-600); background: #fff7ed; border-radius: .25rem; }
    .single .entry-content a { text-decoration: underline; text-underline-offset: 3px; }
    .post-nav { gap: .5rem; }
    .animated-text { height: 3.25rem; margin-bottom: 0.75rem; text-align: center; }
    .text-item {
        font-size: 1.05rem;
        line-height: 1.3;
    }
    .cta-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.4;
    }
    .cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-width: 160px;
        width: 100%;
        max-width: 280px;
    }
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .featured-card {
        padding: 1rem;
    }
    .card-content {
        padding: 0.5rem 0;
    }
    .excerpt {
        -webkit-line-clamp: 2;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .hero-desktop-image {
        display: none !important;
    }
    .hero-mobile-image {
        display: block !important;
        width: 120px;
        margin: 0 auto 1rem;
        order: -1;
    }
    .academy-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cta-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body.menu-open .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .nav-left, .nav-right {
        display: none;
    }
    .header-split {
        grid-template-columns: auto 1fr auto;
        justify-items: center;
        align-items: center;
    }
    .site-branding {
        text-align: center;
        grid-column: 2;
    }
    .site-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

/* Featured Content Grid */
.featured-content {
    padding: 1.5rem 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.05) 0%, transparent 50%),
        #f8fafc;
    position: relative;
    overflow: hidden;
}
.featured-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(251, 146, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.section-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    color: #0f172a;
    position: relative;
    z-index: 1;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}
.slide-item {
    flex: 0 0 100%;
    min-width: 0;
}
@media (min-width: 768px) {
    .slide-item {
        flex: 0 0 50%;
    }
}
@media (min-width: 1024px) {
    .slide-item {
        flex: 0 0 33.333%;
    }
}
.featured-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}
.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.featured-card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: 0.75rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
}
.card-content h3 a {
    color: #0f172a;
    text-decoration: none;
}
.card-content h3 a:hover {
    color: var(--brand-600);
}
.post-meta {
    color: #64748b;
    font-size: .8rem;
    margin: 0 0 .75rem;
}
.excerpt {
    color: #475569;
    line-height: 1.4;
    margin: 0 0 .75rem;
    flex: 1;
    font-size: .85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color .3s ease;
}
.read-more:hover {
    color: #ea580c;
}
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.slider-prev, .slider-next {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}
.slider-prev:hover, .slider-next:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6);
}
.slider-prev:disabled, .slider-next:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Single layout with sidebar */
.single .content-wrap { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 64rem) { .single .content-wrap { grid-template-columns: minmax(0,1fr) 320px; } }
.widget { border: 1px solid var(--border); border-radius: .75rem; padding: 1rem; background: var(--card); box-shadow: var(--shadow); }
.entry-content { font-size: 1.05rem; }
.entry-content pre, .entry-content code { white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; }
.entry-content table { width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content p { margin: 1rem 0; }
.entry-content h2 { margin: 1.5rem 0 .5rem; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.entry-content img { border-radius: .5rem; }

/* Force hide any related posts blocks */
.related-posts { display: none !important; }
.yarpp-related, .jp-relatedposts, .crp_related, .related, .related-articles { display: none !important; }

/* Single Post Featured Image */
.single-featured-image {
    margin: 1.5rem 0;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
}
.single-featured-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Single Post Title - improved readability */
.single .single-article > header h1 {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
@media (max-width: 768px) {
    .single .single-article > header h1 {
        font-size: 1.375rem;
        line-height: 1.3;
    }
}

/* Social Sharing */
.social-sharing {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: .75rem;
    border: 1px solid #e2e8f0;
}
.social-sharing h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #0f172a;
}
.sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
}
.share-btn.twitter {
    background: #1da1f2;
    color: white;
}
.share-btn.facebook {
    background: #1877f2;
    color: white;
}
.share-btn.linkedin {
    background: #0077b5;
    color: white;
}
.share-btn.whatsapp {
    background: #25d366;
    color: white;
}
.share-btn.copy-link {
    background: var(--brand-600);
    color: white;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Minimal share icons: single color on orange background */
.social-sharing.minimal {
    background: transparent;
    border: none;
    padding: 0;
}
.social-sharing.minimal .sharing-buttons {
    display: flex;
    gap: .5rem;
}
.share-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-600);
    color: #fff;
    border-radius: .5rem;
    text-decoration: none;
    border: 2px solid var(--brand-600);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.share-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(251,146,60,.4); background: var(--brand); }
.share-icon .icon { font-weight: 800; font-size: .9rem; line-height: 1; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-nav-btn { display: inline-block; padding: .75rem 1rem; border-radius: .5rem; background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; text-decoration: none; font-weight: 600; }
.post-nav-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* Comments styling */
.comments-wrap { margin-top: 2rem; }
.comments-area { border: 1px solid var(--border); border-radius: .75rem; padding: 1rem; background: var(--card); box-shadow: var(--shadow); }
.comments-title { margin: 0 0 1rem; font-size: 1.25rem; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.comment { border-top: 1px solid var(--border); padding-top: 1rem; }
.comment:first-child { border-top: 0; padding-top: 0; }
.comment-meta { color: var(--muted); font-size: .875rem; }
.comment-content { margin-top: .25rem; }
.comment-form { display: grid; gap: .75rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: .5rem; padding: .75rem; font-size: 1rem; }
.comment-form textarea { min-height: 140px; }
.comment-form .submit { width: fit-content; padding: .75rem 1rem; border-radius: .5rem; background: var(--brand-600); color: #fff; border: none; font-weight: 600; }
.widget-title { margin: 0 0 .75rem; font-size: 1.1rem; }

@media (max-width: 768px) {
    .comments-wrap, .comments-area, .comment-respond, .comment-form, .comment-list, .comments-title { width: 100% !important; max-width: 100% !important; padding-left: 0; padding-right: 0; }
    .comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100% !important; }
}

/* Accessibility helpers */
.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem .75rem; background: #111; color: #fff; border-radius: .375rem; }

/* Typography */
h1 { 
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    font-weight: 900; 
    line-height: 1.2; 
    letter-spacing: -0.02em;
    font-size: 2.25rem;
}
h2 { 
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    font-weight: 800; 
    font-size: 2rem; 
    line-height: 1.25; 
    letter-spacing: -0.02em;
}
h3 { 
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    font-weight: 700; 
    font-size: 1.25rem; 
    line-height: 1.3; 
    letter-spacing: -0.01em;
}
h4 { 
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; 
    font-weight: 600; 
    font-size: 1.25rem; 
    line-height: 1.3; 
    letter-spacing: -0.01em;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Breadcrumbs */
.breadcrumb-area {
    background: #f8fafc;
    padding: 1rem;
    border-radius: .75rem;
    margin: 2rem 0 2rem 0;
    border: 1px solid #e2e8f0;
}
.breadcrumbs { 
    font-size: .875rem; 
    color: #6b7280; 
    margin: 0; 
    font-weight: 500;
}
.breadcrumbs a { 
    color: var(--brand-600);
    text-decoration: none;
    transition: color .3s ease;
}
.breadcrumbs a:hover {
    color: #ea580c;
}

/* Thin Footer */
.thin-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: auto;
}
@media (max-width: 768px) {
    .thin-footer {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
}
.thin-footer p {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.thin-footer a {
    color: var(--brand-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.thin-footer a:hover {
    color: #ea580c;
    text-decoration: underline;
}


