/*
Theme Name: TED Blog
Theme URI: https://example.com/tedblog-starter
Author: Theme Developer
Author URI: https://example.com
Description: Dynamic inspirational blog theme with bold typography and red accents. Perfect for ideas, talks, and thought leadership content.
Version: 1.7.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tedblog
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* TED-inspired Red Palette */
    --tedb-color-primary: #e62b1e;
    --tedb-color-primary-dark: #c41e12;
    --tedb-color-primary-light: #ff4136;
    --tedb-color-secondary: #1a1a1a;
    --tedb-color-accent: #ff6d5a;

    /* Backgrounds */
    --tedb-bg-white: #ffffff;
    --tedb-bg-light: #f8f8f8;
    --tedb-bg-dark: #111111;
    --tedb-bg-overlay: rgba(0, 0, 0, 0.7);

    /* Text */
    --tedb-text-dark: #111111;
    --tedb-text-body: #333333;
    --tedb-text-muted: #666666;
    --tedb-text-light: #999999;
    --tedb-text-white: #ffffff;

    /* Borders */
    --tedb-border-light: #eeeeee;
    --tedb-border-medium: #dddddd;

    /* Typography */
    --tedb-font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --tedb-font-body: 'Georgia', 'Times New Roman', serif;
    --tedb-font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Sizing */
    --tedb-container-width: 1200px;
    --tedb-content-width: 800px;
    --tedb-gap: 2rem;
    --tedb-gap-lg: 4rem;
    --tedb-radius: 0;
    --tedb-radius-sm: 4px;

    /* Effects */
    --tedb-transition: 0.25s ease;
    --tedb-transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--tedb-font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--tedb-text-body);
    background-color: var(--tedb-bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--tedb-color-primary);
    text-decoration: none;
    transition: color var(--tedb-transition);
}

a:hover,
a:focus {
    color: var(--tedb-color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tedb-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tedb-text-dark);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.tedb-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 1rem 2rem;
    z-index: 9999;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.tedb-skip-link:focus {
    top: 10px;
    color: var(--tedb-text-white);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.tedb-container {
    max-width: var(--tedb-container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.tedb-container--narrow {
    max-width: var(--tedb-content-width);
}

/* ==========================================================================
   Header
   ========================================================================== */

.tedb-header {
    background: var(--tedb-bg-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--tedb-transition);
    border-top: 3px solid var(--tedb-color-primary);
}

.tedb-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.tedb-header--hidden {
    transform: translateY(-100%);
}

/* Reading Progress Bar */
.tedb-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--tedb-color-primary);
    z-index: 1001;
    transition: width 0.1s linear;
    width: 0;
}

.tedb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.tedb-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tedb-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.tedb-logo-text {
    font-family: var(--tedb-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tedb-text-dark);
    letter-spacing: -0.02em;
}

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

/* Navigation */
.tedb-nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tedb-nav-list a {
    display: block;
    padding: 0.5rem 0.6rem;
    color: var(--tedb-text-dark);
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color var(--tedb-transition);
}

.tedb-nav-list a:hover,
.tedb-nav-list .current-menu-item > a {
    color: var(--tedb-color-primary);
}

/* Submenu */
.tedb-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--tedb-bg-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--tedb-transition);
}

.tedb-nav-list li {
    position: relative;
}

.tedb-nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tedb-nav-list .sub-menu a {
    padding: 0.5rem 1.5rem;
    text-transform: none;
    font-size: 0.9375rem;
}

/* Header Actions */
.tedb-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tedb-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tedb-text-dark);
    transition: color var(--tedb-transition);
}

.tedb-search-btn:hover {
    color: var(--tedb-color-primary);
}

.tedb-search-btn svg {
    width: 20px;
    height: 20px;
}

.tedb-nav-close {
    display: none;
}

.tedb-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tedb-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tedb-text-dark);
    transition: all var(--tedb-transition);
}

/* Header spacer */
.tedb-header-spacer {
    height: 80px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.tedb-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--tedb-bg-dark);
    overflow: hidden;
}

.tedb-hero-bg {
    position: absolute;
    inset: 0;
}

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

.tedb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.tedb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--tedb-gap-lg) 0;
}

.tedb-hero-category {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 0.5rem 1rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.tedb-hero-title {
    font-size: 3.5rem;
    color: var(--tedb-text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.tedb-hero-excerpt {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.tedb-hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.tedb-hero-meta a {
    color: rgba(255, 255, 255, 0.9);
}

.tedb-hero-meta a:hover {
    color: var(--tedb-color-primary);
}

/* ==========================================================================
   Featured Sticky Grid
   ========================================================================== */

.tedb-featured {
    padding: var(--tedb-gap-md) 0;
}

.tedb-featured .tedb-section-title {
    margin-bottom: var(--tedb-gap-md);
}

.tedb-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tedb-gap-md);
}

.tedb-featured-card {
    background: var(--tedb-bg-card, #fff);
    border-radius: var(--tedb-radius, 8px);
    overflow: hidden;
}

.tedb-featured-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.tedb-featured-body {
    padding: var(--tedb-gap-sm) var(--tedb-gap-md);
}

@media (max-width: 600px) {
    .tedb-featured-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ideas Grid (Posts)
   ========================================================================== */

.tedb-section {
    padding: var(--tedb-gap-lg) 0;
}

.tedb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--tedb-text-dark);
}

.tedb-section-title {
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tedb-section-link {
    font-family: var(--tedb-font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tedb-color-primary);
}

/* Ideas Grid */
.tedb-ideas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tedb-gap);
}

/* Idea Card */
.tedb-idea {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tedb-idea-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.tedb-idea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tedb-transition-slow);
}

.tedb-idea:hover .tedb-idea-image img {
    transform: scale(1.05);
}

.tedb-idea-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 0.375rem 0.75rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tedb-idea-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tedb-idea-title a {
    color: var(--tedb-text-dark);
}

.tedb-idea-title a:hover {
    color: var(--tedb-color-primary);
}

.tedb-idea-excerpt {
    font-size: 1rem;
    color: var(--tedb-text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tedb-idea-meta {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    color: var(--tedb-text-light);
}

.tedb-idea-meta a {
    color: var(--tedb-text-body);
}

/* Sticky Post */
.tedb-sticky-badge {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: #fff;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   Single Post
   ========================================================================== */

.tedb-single-header {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.tedb-single-category {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 0.5rem 1.25rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.tedb-single-title {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: var(--tedb-text-white);
}

.tedb-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.tedb-single-meta a {
    color: rgba(255, 255, 255, 0.9);
}

.tedb-single-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tedb-single-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* Featured Image */
.tedb-single-featured {
    margin: -2rem auto 3rem;
    max-width: 1000px;
    padding: 0 2rem;
}

.tedb-single-featured img {
    width: 100%;
    height: auto;
}

/* Content */
.tedb-single-content {
    max-width: var(--tedb-content-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.tedb-entry-content {
    font-size: 1.125rem;
    line-height: 1.9;
}

.tedb-entry-content > *:first-child {
    margin-top: 0;
}

.tedb-entry-content h2 {
    margin-top: 3rem;
    font-size: 2rem;
}

.tedb-entry-content h3 {
    margin-top: 2.5rem;
}

.tedb-entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tedb-entry-content blockquote {
    margin: 2.5rem 0;
    padding: 0;
    border: none;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--tedb-text-dark);
    position: relative;
    padding-left: 2rem;
    background: var(--tedb-bg-light);
    padding: 1.25rem 1.5rem 1.25rem 2rem;
}

.tedb-entry-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tedb-color-primary);
}

.tedb-entry-content pre {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9375rem;
}
.tedb-entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; overflow-x: auto; display: block; }
.tedb-entry-content thead { background: var(--tedb-bg-light, #f4f4f4); }
.tedb-entry-content th, .tedb-entry-content td { padding: 0.75rem 1rem; border: 1px solid var(--tedb-border-light, #ddd); text-align: left; vertical-align: top; }
.tedb-entry-content th { font-weight: 700; white-space: nowrap; }
.tedb-entry-content tr:nth-child(even) { background: var(--tedb-bg-light, #f8f8f8); }

/* Tags */
.tedb-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tedb-border-light);
}

.tedb-post-tags a {
    background: var(--tedb-bg-light);
    color: var(--tedb-text-body);
    padding: 0.5rem 1rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--tedb-transition);
}

.tedb-post-tags a:hover {
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
}

/* Post Navigation */
.tedb-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--tedb-border-light);
}

.tedb-post-nav-item {
    padding: 1.5rem;
    background: var(--tedb-bg-light);
}

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

.tedb-post-nav-label {
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tedb-color-primary);
    margin-bottom: 0.5rem;
}

.tedb-post-nav-title {
    font-family: var(--tedb-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tedb-text-dark);
    line-height: 1.3;
}

.tedb-post-nav-item:hover .tedb-post-nav-title {
    color: var(--tedb-color-primary);
}

/* ==========================================================================
   Article (Single Post) - New Styles
   ========================================================================== */

.tedb-article {
    padding-bottom: 0;
}

/* Article Header */
.tedb-article-header {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.tedb-article-categories {
    margin-bottom: 1.5rem;
}

.tedb-article-category {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 0.5rem 1.25rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0.25rem;
}

.tedb-article-category:hover {
    background: var(--tedb-color-primary-dark);
    color: var(--tedb-text-white);
}

.tedb-article-title {
    font-size: 2.75rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: var(--tedb-text-white);
    line-height: 1.2;
}

.tedb-article-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Article Meta with Author Avatar */
.tedb-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tedb-article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tedb-article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tedb-article-author-info {
    text-align: left;
}

.tedb-article-author-name {
    display: block;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    font-size: 1rem;
    color: var(--tedb-text-white);
}

.tedb-article-author-name:hover {
    color: var(--tedb-color-primary);
}

.tedb-article-date-reading {
    font-family: var(--tedb-font-ui);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.tedb-article-date-reading .tedb-separator {
    margin: 0 0.5rem;
}

/* Featured Image */
.tedb-article-featured {
    max-width: 1000px;
    margin: -1.5rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.tedb-article-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.tedb-article-caption {
    font-size: 0.875rem;
    color: var(--tedb-text-muted);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* Article Body */
.tedb-article-body {
    padding: 3rem 0;
}

.tedb-article-content {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* Full width (no sidebar) - center content */
.tedb-full-width .tedb-article-content {
    max-width: var(--tedb-content-width);
    margin: 0 auto;
}

/* With sidebar - use full width of primary content area */
.tedb-has-sidebar .tedb-article-content {
    max-width: 100%;
}

.tedb-article-content > *:first-child {
    margin-top: 0;
}

.tedb-article-content h2 {
    margin-top: 3rem;
    font-size: 2rem;
    padding-left: 16px;
    border-left: 3px solid var(--tedb-color-primary);
}

.tedb-article-content h3 {
    margin-top: 2.5rem;
}

.tedb-article-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    color: var(--tedb-color-primary);
    font-family: var(--tedb-font-heading);
    font-weight: 700;
}

.tedb-article-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tedb-article-content blockquote {
    margin: 2.5rem 0;
    padding: 0 0 0 3rem;
    border: none;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--tedb-text-dark);
    position: relative;
}

.tedb-article-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: -0.5rem;
    top: -1rem;
    font-size: 5rem;
    color: var(--tedb-color-primary);
    opacity: 0.2;
    font-family: var(--tedb-font-heading);
    line-height: 1;
}

.tedb-article-content pre {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.9375rem;
}

.tedb-article-content img {
    max-width: 100%;
    height: auto;
}

.tedb-article-content figure {
    margin: 2rem 0;
}

.tedb-article-content figcaption {
    font-size: 0.875rem;
    color: var(--tedb-text-muted);
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* Article Footer (Tags) */
.tedb-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tedb-border-light);
}

.tedb-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tedb-tags-label {
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--tedb-text-dark);
    margin-right: 0.5rem;
}

.tedb-tag {
    background: var(--tedb-bg-light);
    color: var(--tedb-text-body);
    padding: 0.5rem 1rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--tedb-transition);
}

.tedb-tag:hover {
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
}

/* Author Bio */
.tedb-article-author-bio {
    background: var(--tedb-bg-light);
    padding: 3rem 0;
}

.tedb-article-author-bio .tedb-container--narrow {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.tedb-article-author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tedb-author-bio-content {
    flex: 1;
}

.tedb-author-bio-label {
    display: block;
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tedb-color-primary);
    margin-bottom: 0.5rem;
}

.tedb-author-bio-name {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.tedb-author-bio-name a {
    color: var(--tedb-text-dark);
}

.tedb-author-bio-name a:hover {
    color: var(--tedb-color-primary);
}

.tedb-author-bio-text {
    font-size: 1rem;
    color: var(--tedb-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* Post Navigation */
.tedb-post-navigation {
    border-top: 1px solid var(--tedb-border-light);
    padding: 3rem 0;
}

.tedb-post-navigation .tedb-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tedb-post-nav-link {
    display: block;
    padding: 1.5rem;
    background: var(--tedb-bg-light);
    transition: background var(--tedb-transition);
}

.tedb-post-nav-link:hover {
    background: var(--tedb-border-light);
}

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

.tedb-post-nav-label {
    display: block;
    font-family: var(--tedb-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tedb-color-primary);
    margin-bottom: 0.5rem;
}

.tedb-post-nav-title {
    display: block;
    font-family: var(--tedb-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tedb-text-dark);
    line-height: 1.3;
}

/* Page Links (multi-page posts) */
.tedb-page-links {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--tedb-bg-light);
    text-align: center;
}

.tedb-page-links-title {
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    margin-right: 1rem;
}

.tedb-page-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--tedb-bg-white);
}

.tedb-page-links a span {
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
}

/* Related Ideas */
.tedb-related {
    background: var(--tedb-bg-light);
    padding: var(--tedb-gap-lg) 0;
}

.tedb-related-title {
    text-align: center;
    margin-bottom: 2rem;
}

.tedb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tedb-gap);
}

.tedb-related-item {
    background: var(--tedb-bg-white);
}

.tedb-related-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tedb-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tedb-transition-slow);
}

.tedb-related-item:hover .tedb-related-image img {
    transform: scale(1.05);
}

.tedb-related-item-title {
    font-size: 1.125rem;
    margin: 1rem 1rem 0.5rem;
    line-height: 1.3;
}

.tedb-related-item-title a {
    color: var(--tedb-text-dark);
}

.tedb-related-item-title a:hover {
    color: var(--tedb-color-primary);
}

.tedb-related-meta {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    color: var(--tedb-text-light);
    padding: 0 1rem 1rem;
}

/* ==========================================================================
   Page
   ========================================================================== */

.tedb-page-header {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.tedb-page-title {
    font-size: 3rem;
    color: var(--tedb-text-white);
    margin: 0;
}

.tedb-page-content {
    max-width: var(--tedb-content-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==========================================================================
   Archive
   ========================================================================== */

.tedb-archive-header {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 4rem 0;
    text-align: center;
}

.tedb-archive-label {
    font-family: var(--tedb-font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tedb-color-primary);
    margin-bottom: 1rem;
}

.tedb-archive-title {
    font-size: 2.5rem;
    color: var(--tedb-text-white);
    margin: 0;
}

.tedb-archive-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Search
   ========================================================================== */

.tedb-search-header {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 4rem 0;
    text-align: center;
}

.tedb-search-title {
    font-size: 2rem;
    color: var(--tedb-text-white);
    margin-bottom: 2rem;
}

.tedb-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.tedb-search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    font-family: var(--tedb-font-body);
}

.tedb-search-form button {
    padding: 1rem 2rem;
    background: var(--tedb-color-primary);
    border: none;
    color: var(--tedb-text-white);
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--tedb-transition);
}

.tedb-search-form button:hover {
    background: var(--tedb-color-primary-dark);
}

/* ==========================================================================
   404
   ========================================================================== */

.tedb-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.tedb-404-inner {
    max-width: 600px;
}

.tedb-404-code {
    font-family: var(--tedb-font-heading);
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tedb-color-primary);
    margin-bottom: 1rem;
}

.tedb-404-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tedb-404-text {
    color: var(--tedb-text-muted);
    margin-bottom: 2rem;
}

.tedb-btn {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 1rem 2rem;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: background var(--tedb-transition);
}

.tedb-btn:hover {
    background: var(--tedb-color-primary-dark);
    color: var(--tedb-text-white);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.tedb-comments {
    max-width: var(--tedb-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.tedb-comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--tedb-text-dark);
}

.tedb-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tedb-comment {
    padding: 2rem 0;
    border-bottom: 1px solid var(--tedb-border-light);
}

.tedb-comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tedb-comment-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.tedb-comment-author {
    font-family: var(--tedb-font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--tedb-text-dark);
}

.tedb-comment-date {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    color: var(--tedb-text-light);
}

.tedb-comment-content {
    padding-left: 72px;
}

.tedb-comment-reply {
    margin-top: 1rem;
}

.tedb-comment-reply a {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tedb-color-primary);
}

/* Comment Form */
.tedb-comment-form {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--tedb-text-dark);
}

.tedb-comment-form label {
    display: block;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tedb-comment-form input,
.tedb-comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--tedb-border-medium);
    font-family: var(--tedb-font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--tedb-transition);
}

.tedb-comment-form input:focus,
.tedb-comment-form textarea:focus {
    outline: none;
    border-color: var(--tedb-color-primary);
}

.tedb-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.tedb-comment-form .submit {
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--tedb-transition);
}

.tedb-comment-form .submit:hover {
    background: var(--tedb-color-primary-dark);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.tedb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.tedb-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tedb-pagination a,
.tedb-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    font-family: var(--tedb-font-ui);
    font-weight: 700;
    color: var(--tedb-text-dark);
    transition: all var(--tedb-transition);
}

.tedb-pagination a:hover {
    background: var(--tedb-bg-light);
}

.tedb-pagination .current {
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.tedb-breadcrumbs {
    background: var(--tedb-bg-light);
    padding: 1rem 0;
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
}

.tedb-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tedb-breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tedb-breadcrumbs-item::after {
    content: '›';
    color: var(--tedb-text-light);
}

.tedb-breadcrumbs-item:last-child::after {
    display: none;
}

.tedb-breadcrumbs a {
    color: var(--tedb-text-body);
}

.tedb-breadcrumbs a:hover {
    color: var(--tedb-color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tedb-footer {
    background: var(--tedb-bg-dark);
    color: var(--tedb-text-white);
    padding: 2rem 0 0;
}

.tedb-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tedb-gap);
    padding-bottom: var(--tedb-gap-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tedb-footer-widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--tedb-text-white);
}

.tedb-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tedb-footer-widget li {
    margin-bottom: 0.75rem;
}

.tedb-footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--tedb-font-ui);
    font-size: 0.9375rem;
    transition: color var(--tedb-transition);
}

.tedb-footer-widget a:hover {
    color: var(--tedb-color-primary);
}

.tedb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    font-family: var(--tedb-font-ui);
    font-size: 0.875rem;
}

.tedb-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.tedb-footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tedb-footer-nav li {
    list-style: none;
}

.tedb-site-desc {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.6;
    font-size: 0.8125rem;
}

.tedb-footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 600;
}

.tedb-footer-nav a:hover {
    color: var(--tedb-color-primary);
}

/* Scroll Top */
.tedb-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--tedb-transition);
    z-index: 900;
}

.tedb-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tedb-scroll-top:hover {
    background: var(--tedb-color-primary-dark);
}

.tedb-scroll-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

.tedb-idea {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tedb-idea.tedb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Social Share
   ========================================================================== */

.tedb-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tedb-border-light);
    flex-wrap: wrap;
}

.tedb-share-label {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tedb-text-muted);
}

.tedb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--tedb-border-light);
    background: transparent;
    color: var(--tedb-text-primary);
    cursor: pointer;
    transition: background var(--tedb-transition), border-color var(--tedb-transition);
}

.tedb-share-btn:hover {
    background: var(--tedb-bg-light, #f5f5f5);
    border-color: var(--tedb-color-primary);
}

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

.tedb-share-copy.tedb-copied {
    border-color: var(--tedb-color-primary);
    color: var(--tedb-color-primary);
}

/* ==========================================================================
   Dark Header
   ========================================================================== */

.tedb-header--dark {
    background: var(--tedb-color-secondary);
}

.tedb-header--dark .tedb-logo-text,
.tedb-header--dark .tedb-nav-list a,
.tedb-header--dark .tedb-search-btn,
.tedb-header--dark .tedb-menu-toggle span {
    color: #fff;
}

.tedb-header--dark .tedb-menu-toggle span {
    background: #fff;
}

.tedb-header--dark .tedb-nav-list a:hover {
    color: var(--tedb-color-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

    .tedb-footer-widgets {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tedb-hero-title {
        font-size: 2.25rem;
    }

    .tedb-single-title {
        font-size: 2.25rem;
    }

    /* Article tablet */
    .tedb-article-title {
        font-size: 2rem;
    }

    .tedb-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --tedb-gap: 1.25rem;
        --tedb-gap-lg: 2.5rem;
    }

    .tedb-container {
        padding: 0 1rem;
    }

    .tedb-sidebar {
        display: none;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .tedb-header-inner {
        height: 60px;
    }

    .tedb-header-spacer {
        height: 60px;
    }

    .tedb-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--tedb-bg-white);
        padding: 2rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--tedb-transition), visibility var(--tedb-transition);
    }

    .tedb-nav.tedb-nav--open {
        transform: translateX(0);
        visibility: visible;
    }

    .tedb-nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: var(--tedb-text-dark);
        padding: 0.25rem 0.5rem;
    }

    body.tedb-menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 99;
    }

    .tedb-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .tedb-nav-list a {
        padding: 1rem 0;
        font-size: 1.25rem;
    }

    .tedb-nav-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .tedb-menu-toggle {
        display: flex;
    }

    .tedb-ideas-grid {
        grid-template-columns: 1fr;
    }

    .tedb-hero {
        min-height: 50vh;
    }

    .tedb-hero-title {
        font-size: 1.5rem;
    }

    .tedb-hero-excerpt {
        font-size: 0.9375rem;
    }

    .tedb-single-title {
        font-size: 1.5rem;
    }

    /* Article responsive */
    .tedb-article-header {
        padding: 2.5rem 0 2rem;
    }

    .tedb-article-title {
        font-size: 1.5rem;
    }

    .tedb-article-lead {
        font-size: 0.9375rem;
    }

    .tedb-article-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .tedb-article-author-info {
        text-align: center;
    }

    .tedb-article-featured {
        margin-top: 0;
        padding: 0 1rem;
    }

    .tedb-article-body {
        padding: 2rem 0;
    }

    .tedb-article-content {
        font-size: 1rem;
    }

    .tedb-article-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .tedb-share {
        justify-content: center;
    }

    .tedb-article-author-bio .tedb-container--narrow {
        flex-direction: column;
        text-align: center;
    }

    .tedb-post-navigation .tedb-container {
        grid-template-columns: 1fr;
    }

    .tedb-post-nav-next {
        text-align: left;
    }

    .tedb-related-grid {
        grid-template-columns: 1fr;
    }

    .tedb-post-nav {
        grid-template-columns: 1fr;
    }

    .tedb-post-nav-item.next {
        text-align: left;
    }

    .tedb-footer-widgets {
        grid-template-columns: 1fr !important;
    }

    .tedb-footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.25rem 0;
    }

    .tedb-footer-bottom .tedb-copyright {
        font-size: 0.8125rem;
    }

    .tedb-footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1rem;
    }

    .tedb-footer-nav a {
        font-size: 0.6875rem;
    }

    .tedb-footer {
        padding: 1.5rem 0 0;
    }

    .tedb-404-code {
        font-size: 6rem;
    }

    .tedb-comment-content {
        padding-left: 0;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--tedb-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.tedb-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.tedb-no-results-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tedb-no-results-text {
    color: var(--tedb-text-muted);
}

/* ==========================================================================
   Sidebar Layout
   ========================================================================== */

.tedb-content-area {
    display: block;
}

.tedb-content-area.tedb-has-sidebar {
    display: grid;
    gap: 3rem;
}

.tedb-content-area.tedb-sidebar-right {
    grid-template-columns: 1fr 320px;
}

.tedb-content-area.tedb-sidebar-left {
    grid-template-columns: 320px 1fr;
}

.tedb-content-area.tedb-sidebar-left .tedb-sidebar {
    order: -1;
}

.tedb-content-area.tedb-full-width {
    max-width: var(--tedb-content-max, 680px);
    margin: 0 auto;
}

.tedb-primary-content {
    min-width: 0;
}

/* Sidebar */
.tedb-sidebar {
    position: sticky;
    top: calc(var(--tedb-header-height, 80px) + 2rem);
    height: fit-content;
}

.tedb-widget {
    background: var(--tedb-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tedb-widget-title {
    font-family: var(--tedb-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tedb-text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--tedb-color-primary);
}

.tedb-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tedb-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tedb-border-color);
}

.tedb-widget li:last-child {
    border-bottom: none;
}

.tedb-widget a {
    color: var(--tedb-text-dark);
    transition: color var(--tedb-transition);
}

.tedb-widget a:hover {
    color: var(--tedb-color-primary);
}

/* Search Widget */
.tedb-widget .search-form {
    display: flex;
    gap: 0.5rem;
}

.tedb-widget .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--tedb-border-color);
    border-radius: 4px;
    font-size: 0.9375rem;
}

.tedb-widget .search-submit {
    padding: 0.75rem 1rem;
    background: var(--tedb-color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--tedb-transition);
}

.tedb-widget .search-submit:hover {
    background: var(--tedb-color-primary-dark);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .tedb-content-area.tedb-sidebar-right,
    .tedb-content-area.tedb-sidebar-left {
        grid-template-columns: 1fr;
    }

    .tedb-content-area.tedb-sidebar-left .tedb-sidebar {
        order: 0;
    }

    .tedb-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .tedb-sidebar {
        display: none !important;
    }
}

/* Interlinking Section */
.tedb-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--tedb-bg-light);
    border-radius: 8px;
}
.tedb-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tedb-text-dark);
}
.tedb-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tedb-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.tedb-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--tedb-color-primary, #333);
}
.tedb-interlinking-list a {
    color: var(--tedb-color-primary, #333);
    text-decoration: none;
}
.tedb-interlinking-list a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Grid Layout Options
   ========================================================================== */

/* 3 Columns Grid (default) */
.tedb-grid-3col .tedb-ideas-grid,
.tedb-grid-3col .tedb-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tedb-gap);
}

/* 2 Columns Grid */
.tedb-grid-2col .tedb-ideas-grid,
.tedb-grid-2col .tedb-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tedb-gap);
}

/* List Layout */
.tedb-grid-list .tedb-ideas-grid,
.tedb-grid-list .tedb-archive-grid {
    display: flex;
    flex-direction: column;
    gap: var(--tedb-gap);
}

.tedb-grid-list .tedb-idea,
.tedb-grid-list .tedb-archive-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--tedb-gap);
    align-items: start;
}

.tedb-grid-list .tedb-idea-image {
    margin-bottom: 0;
}

.tedb-grid-list .tedb-idea-title {
    font-size: 1.5rem;
}

.tedb-grid-list .tedb-archive-item {
    grid-template-columns: 300px 1fr;
}

.tedb-grid-list .tedb-archive-image {
    margin-bottom: 0;
}

/* Archive grid default styles */
.tedb-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tedb-gap);
}

.tedb-archive-item {
    display: flex;
    flex-direction: column;
}

.tedb-archive-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.tedb-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tedb-transition-slow);
}

.tedb-archive-item:hover .tedb-archive-image img {
    transform: scale(1.05);
}

.tedb-archive-category {
    display: inline-block;
    background: var(--tedb-color-primary);
    color: var(--tedb-text-white);
    padding: 0.25rem 0.5rem;
    font-family: var(--tedb-font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.tedb-archive-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tedb-archive-item-title a {
    color: var(--tedb-text-dark);
}

.tedb-archive-item-title a:hover {
    color: var(--tedb-color-primary);
}

.tedb-archive-excerpt {
    font-size: 0.9375rem;
    color: var(--tedb-text-muted);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.tedb-archive-meta {
    font-family: var(--tedb-font-ui);
    font-size: 0.8125rem;
    color: var(--tedb-text-light);
}

.tedb-archive-meta a {
    color: var(--tedb-text-body);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .tedb-grid-3col .tedb-ideas-grid,
    .tedb-grid-3col .tedb-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .tedb-grid-3col .tedb-ideas-grid,
    .tedb-grid-3col .tedb-archive-grid,
    .tedb-grid-2col .tedb-ideas-grid,
    .tedb-grid-2col .tedb-archive-grid {
        grid-template-columns: 1fr;
    }

    .tedb-grid-list .tedb-idea,
    .tedb-grid-list .tedb-archive-item {
        grid-template-columns: 1fr;
    }

    .tedb-grid-list .tedb-idea-image,
    .tedb-grid-list .tedb-archive-image {
        margin-bottom: 1rem;
    }

    .tedb-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive Media
   ========================================================================== */

iframe,
embed,
object,
video {
    max-width: 100%;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .tedb-header,
    .tedb-header-spacer,
    .tedb-breadcrumbs,
    .tedb-sidebar,
    .tedb-footer,
    .tedb-scroll-top,
    .tedb-post-navigation,
    .tedb-related,
    .tedb-interlinking,
    .tedb-comments,
    .tedb-search-overlay,
    .tedb-menu-toggle,
    .tedb-nav-close {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .tedb-content-area.tedb-has-sidebar {
        display: block;
    }
}

/* ==========================================================================
   Structural Diversification
   ========================================================================== */

/* Card Style: Horizontal */
body.tedb-card-horizontal .tedb-ideas-grid { grid-template-columns: 1fr; }
body.tedb-card-horizontal .tedb-idea { display: flex; flex-direction: row; }
body.tedb-card-horizontal .tedb-idea-image { width: 40%; flex-shrink: 0; aspect-ratio: auto; }
body.tedb-card-horizontal .tedb-idea-image img { width: 100%; height: 100%; object-fit: cover; }
body.tedb-card-horizontal .tedb-idea-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) {
    body.tedb-card-horizontal .tedb-idea { flex-direction: column; }
    body.tedb-card-horizontal .tedb-idea-image { width: 100%; }
}

/* Card Style: Overlay */
body.tedb-card-overlay .tedb-idea { position: relative; min-height: 280px; overflow: hidden; }
body.tedb-card-overlay .tedb-idea-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; }
body.tedb-card-overlay .tedb-idea-image img { width: 100%; height: 100%; object-fit: cover; }
body.tedb-card-overlay .tedb-idea-content {
    position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 280px; padding: 1.25rem; background: linear-gradient(transparent 30%, rgba(0,0,0,0.85) 100%);
}
body.tedb-card-overlay .tedb-idea-title a,
body.tedb-card-overlay .tedb-idea-meta,
body.tedb-card-overlay .tedb-idea-excerpt { color: #fff; }
body.tedb-card-overlay .tedb-idea-category { position: static; align-self: flex-start; margin-bottom: 8px; }

/* Card Style: Text-only */
body.tedb-card-text .tedb-idea-image { display: none; }
body.tedb-card-text .tedb-idea { border-left: 3px solid var(--tedb-color-primary); padding-left: 1rem; }

/* Header Layout: Centered */
body.tedb-header-centered .tedb-header-inner { flex-direction: column; align-items: center; gap: 0.75rem; }
body.tedb-header-centered .tedb-nav-list { order: 2; }
@media (max-width: 768px) {
    body.tedb-header-centered .tedb-header-inner { flex-direction: row; }
}

/* Header Layout: Stacked */
body.tedb-header-stacked .tedb-header-inner { flex-wrap: wrap; gap: 0; }
body.tedb-header-stacked .tedb-logo { width: 100%; text-align: center; padding: 0.75rem 0 0.5rem; }
body.tedb-header-stacked .tedb-nav-list { flex: 1; justify-content: center; }
@media (max-width: 768px) {
    body.tedb-header-stacked .tedb-logo { width: auto; text-align: left; padding: 0; }
}

/* Featured Style: Hero */
body.tedb-featured-hero .tedb-hero { min-height: 500px; }
body.tedb-featured-hero .tedb-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
body.tedb-featured-hero .tedb-hero-content { min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end; }
body.tedb-featured-hero .tedb-hero-title { font-size: 2.5rem; }

/* Featured Style: None */
body.tedb-featured-none .tedb-hero { display: none; }

/* Hover: Lift */
body.tedb-hover-lift .tedb-idea:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
/* Hover: Glow */
body.tedb-hover-glow .tedb-idea:hover { box-shadow: 0 0 20px rgba(var(--tedb-color-primary-rgb, 0,0,0),0.25); }
/* Hover: Shadow */
body.tedb-hover-shadow .tedb-idea:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
/* Hover: Border */
body.tedb-hover-border .tedb-idea:hover { border-color: var(--tedb-color-primary); }

/* ==========================================================================
   Skeleton Loading for Images
   ========================================================================== */

@keyframes tedb-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tedb-idea-image,
.tedb-archive-image,
.tedb-related-image {
    background: linear-gradient(90deg, var(--tedb-bg-light) 25%, var(--tedb-border-light) 50%, var(--tedb-bg-light) 75%);
    background-size: 200% 100%;
    animation: tedb-skeleton-pulse 1.8s ease-in-out infinite;
}

.tedb-idea-image img,
.tedb-archive-image img,
.tedb-related-image img {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Dropcap Styles
   ========================================================================== */

/* Boxed dropcap */
body.tedb-dropcap-boxed .tedb-article-content > p:first-of-type::first-letter {
    float: left;
    font-size: 3.25rem;
    line-height: 1;
    padding: 0.2rem 0.55rem;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    background: var(--tedb-color-primary);
    color: #fff;
    font-family: var(--tedb-font-heading);
    font-weight: 700;
}

/* No dropcap */
body.tedb-dropcap-none .tedb-article-content > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

/* Underline style */
body.tedb-nav-underline .tedb-nav-list a {
    position: relative;
}

body.tedb-nav-underline .tedb-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: var(--tedb-color-primary);
    transform: scaleX(0);
    transition: transform var(--tedb-transition);
}

body.tedb-nav-underline .tedb-nav-list a:hover::after,
body.tedb-nav-underline .tedb-nav-list .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Pill style */
body.tedb-nav-pill .tedb-nav-list a:hover,
body.tedb-nav-pill .tedb-nav-list .current-menu-item > a {
    background: var(--tedb-color-primary);
    color: #fff;
    border-radius: 20px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Centered footer */
body.tedb-footer-centered .tedb-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

body.tedb-footer-centered .tedb-footer-nav {
    justify-content: center;
}

/* Minimal footer */
body.tedb-footer-minimal .tedb-footer-widgets {
    display: none;
}

body.tedb-footer-minimal .tedb-footer {
    padding: 0;
}

body.tedb-footer-minimal .tedb-footer-bottom {
    padding: 1.5rem 0;
}

/* ==========================================================================
   Related Posts Hover
   ========================================================================== */

.tedb-related-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tedb-related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Border Radius (via CSS variable)
   ========================================================================== */

.tedb-idea-image,
.tedb-archive-image,
.tedb-related-image,
.tedb-related-item,
.tedb-tag,
.tedb-post-nav-link,
.tedb-article-category,
.tedb-hero-category,
.tedb-idea-category,
.tedb-archive-category,
.tedb-sticky-badge {
    border-radius: var(--tedb-border-radius, 0);
}

/* ==========================================================================
   Hero Style: Split
   ========================================================================== */

body.tedb-hero-split .tedb-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: var(--tedb-bg-light);
}

body.tedb-hero-split .tedb-hero-bg {
    position: relative;
    inset: auto;
    min-height: 400px;
}

body.tedb-hero-split .tedb-hero-overlay {
    display: none;
}

body.tedb-hero-split .tedb-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    max-width: none;
}

body.tedb-hero-split .tedb-hero-title,
body.tedb-hero-split .tedb-hero-title a {
    color: var(--tedb-text-dark);
    font-size: 2.75rem;
}

body.tedb-hero-split .tedb-hero-excerpt {
    color: var(--tedb-text-body);
}

body.tedb-hero-split .tedb-hero-meta {
    color: var(--tedb-text-muted);
}

body.tedb-hero-split .tedb-hero-meta a {
    color: var(--tedb-text-dark);
}

@media (max-width: 768px) {
    body.tedb-hero-split .tedb-hero {
        grid-template-columns: 1fr;
    }
    body.tedb-hero-split .tedb-hero-bg {
        min-height: 220px;
    }
    body.tedb-hero-split .tedb-hero-content {
        padding: 2rem 1rem;
    }
    body.tedb-hero-split .tedb-hero-title,
    body.tedb-hero-split .tedb-hero-title a {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Hero Style: Text-only
   ========================================================================== */

body.tedb-hero-text-only .tedb-hero {
    min-height: auto;
    background: var(--tedb-bg-white);
    padding: 4rem 0 3rem;
}

body.tedb-hero-text-only .tedb-hero-bg {
    display: none;
}

body.tedb-hero-text-only .tedb-hero-overlay {
    display: none;
}

body.tedb-hero-text-only .tedb-hero-content {
    max-width: 700px;
}

body.tedb-hero-text-only .tedb-hero-title,
body.tedb-hero-text-only .tedb-hero-title a {
    color: var(--tedb-text-dark);
    font-size: 3rem;
}

body.tedb-hero-text-only .tedb-hero-excerpt {
    color: var(--tedb-text-body);
    font-size: 1.375rem;
}

body.tedb-hero-text-only .tedb-hero-meta {
    color: var(--tedb-text-muted);
}

body.tedb-hero-text-only .tedb-hero-meta a {
    color: var(--tedb-text-dark);
}

body.tedb-hero-text-only .tedb-hero-category {
    background: transparent;
    color: var(--tedb-color-primary);
    padding: 0;
    border-bottom: 2px solid var(--tedb-color-primary);
}

@media (max-width: 768px) {
    body.tedb-hero-text-only .tedb-hero {
        padding: 2.5rem 0 2rem;
    }
    body.tedb-hero-text-only .tedb-hero-title,
    body.tedb-hero-text-only .tedb-hero-title a {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Quote Style: Highlight
   ========================================================================== */

body.tedb-quote-highlight .tedb-article-content blockquote {
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    background: rgba(var(--tedb-color-primary-rgb), 0.06);
    border: none;
    font-style: normal;
    font-size: 1.25rem;
    position: relative;
}

body.tedb-quote-highlight .tedb-article-content blockquote::before {
    content: none;
}

body.tedb-quote-highlight .tedb-article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Quote Style: Accent Border
   ========================================================================== */

body.tedb-quote-accent-border .tedb-article-content blockquote {
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2.5rem 0;
    border-left: 4px solid var(--tedb-color-primary);
    font-style: normal;
    font-size: 1.125rem;
    color: var(--tedb-text-body);
    position: relative;
}

body.tedb-quote-accent-border .tedb-article-content blockquote::before {
    content: none;
}

/* ==========================================================================
   Content Width: Medium
   ========================================================================== */

body.tedb-width-medium .tedb-container--narrow {
    max-width: 780px;
}

/* ==========================================================================
   Author Display: Inline
   ========================================================================== */

body.tedb-author-inline .tedb-article-author-bio {
    background: transparent;
    padding: 1.5rem 0;
    border-top: 1px solid var(--tedb-border-light);
    border-bottom: 1px solid var(--tedb-border-light);
}

body.tedb-author-inline .tedb-article-author-bio .tedb-container--narrow {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

body.tedb-author-inline .tedb-article-author-bio img {
    width: 48px;
    height: 48px;
}

body.tedb-author-inline .tedb-author-bio-label {
    display: none;
}

body.tedb-author-inline .tedb-author-bio-name {
    font-size: 1rem;
    margin: 0;
}

body.tedb-author-inline .tedb-author-bio-text {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Author Display: Hidden
   ========================================================================== */

body.tedb-author-hidden .tedb-article-author-bio {
    display: none;
}

/* ==========================================================================
   Section Title Style: Lowercase
   ========================================================================== */

body.tedb-title-lowercase .tedb-section-title {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 800;
    font-size: 1.75rem;
}

/* ==========================================================================
   Section Title Style: Serif Italic
   ========================================================================== */

body.tedb-title-serif-italic .tedb-section-title {
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--tedb-font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1.75rem;
    border-bottom-width: 1px;
}

/* ==========================================================================
   Hero Parallax
   ========================================================================== */

.tedb-hero-bg.tedb-parallax {
    will-change: transform;
}

.tedb-hero-bg.tedb-parallax img {
    height: 120%;
    top: -10%;
    position: relative;
}

.tedb-idea-image img,
.tedb-archive-image img,
.tedb-related-image img {
    border-radius: var(--tedb-border-radius, 0);
}
