/**
 * DailyTeck Classic V2 - Electrek Style Theme
 * Colors are controlled via Customizer (PHP output)
 */

/* ========================================================================
   CSS Variables - Fallback Values Only (Customizer overrides these)
   ======================================================================== */

:root {
    /* These are fallback values - Customizer values take precedence */
    --dt-primary: var(--dt-accent, #00b140);
    --dt-primary-dark: var(--dt-accent, #009935);
    --dt-text-light: var(--dt-muted, #666666);
    --dt-dark-bg: #222222;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--dt-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dt-text);
    background-color: var(--dt-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dt-font-heading);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--dt-text);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--dt-primary);
}

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--dt-primary);
    color: #fff;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* ========================================================================
   Header - Electrek Style (Teal/Cyan)
   ======================================================================== */

.dt-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--dt-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dt-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.dt-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Logo - Electrek Style */
.dt-logo-text {
    font-family: var(--dt-font-body);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dt-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.dt-logo-text:hover {
    color: var(--dt-primary);
}

/* Network Switcher - Arrow next to logo */
.dt-network-switcher {
    position: relative;
}

.dt-network-switcher-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--dt-primary);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.dt-network-switcher-toggle:hover {
    color: var(--dt-primary-dark);
}

.dt-network-switcher-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.dt-network-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -100px;
    min-width: 280px;
    background: var(--dt-bg);
    border: 1px solid var(--dt-border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dt-network-dropdown[hidden] {
    display: none;
}

.dt-network-list {
    padding: 8px 0;
}

.dt-network-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dt-text);
    transition: background 0.2s;
}

.dt-network-link:hover {
    background: var(--dt-surface);
    color: var(--dt-text);
}

.dt-network-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dt-network-info {
    flex: 1;
    min-width: 0;
}

.dt-network-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    color: var(--dt-text);
}

.dt-network-desc {
    font-size: 0.75rem;
    color: var(--dt-muted);
    display: block;
    margin-top: 2px;
}

/* Header Icons */
.dt-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--dt-text);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.dt-header-icon:hover {
    background: var(--dt-surface);
    color: var(--dt-primary);
}

.dt-header-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Dock - Electrek Style */
.dt-social-dock {
    display: flex;
    align-items: center;
    gap: 0;
}

.dt-social-icons-main,
.dt-social-icons-extra {
    display: flex;
    align-items: center;
    gap: 0;
}

.dt-social-icons-extra {
    display: none;
}

.dt-social-icons-extra:not([hidden]) {
    display: flex;
}

.dt-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--dt-text);
    border-radius: 4px;
    transition: all 0.2s;
}

.dt-social-icon:hover {
    color: var(--dt-primary);
    background: var(--dt-surface);
}

.dt-social-icon svg {
    width: 20px;
    height: 20px;
}

/* Social Expand Button (+) - Electrek Style */
.dt-social-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid var(--dt-text);
    color: var(--dt-text);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 8px;
}

.dt-social-expand-btn:hover {
    background: var(--dt-primary);
    border-color: var(--dt-primary);
    color: #fff;
}

.dt-social-expand-btn.is-active,
.dt-social-expand-btn[aria-expanded="true"] {
    background: var(--dt-text);
    border-color: var(--dt-text);
    color: var(--dt-bg);
}

.dt-social-expand-btn[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.dt-social-expand-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

/* Theme Toggle Button - Electrek Style */
.dt-theme-btn {
    position: relative;
    width: 36px;
    height: 36px;
}

.dt-theme-btn .dt-icon-light,
.dt-theme-btn .dt-icon-dark,
.dt-theme-btn .dt-icon-auto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}

/* Show icon based on current mode */
.dt-theme-light .dt-theme-btn .dt-icon-light,
.dt-theme-btn[data-mode="light"] .dt-icon-light {
    opacity: 1;
}

.dt-theme-dark .dt-theme-btn .dt-icon-dark,
.dt-theme-btn[data-mode="dark"] .dt-icon-dark {
    opacity: 1;
}

.dt-theme-auto .dt-theme-btn .dt-icon-auto,
.dt-theme-btn[data-mode="auto"] .dt-icon-auto {
    opacity: 1;
}

/* Default: show sun icon if no mode set */
.dt-theme-btn:not([data-mode]) .dt-icon-light {
    opacity: 1;
}

/* Navigation Bar - Teal Background */
.dt-nav-bar {
    background: var(--dt-primary);
}

.dt-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dt-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (min-width: 992px) {
    .dt-menu-toggle {
        display: none;
    }
}

.dt-menu-toggle-close {
    display: none;
}

.dt-menu {
    display: none;
    align-items: center;
    gap: 0;
}

@media (min-width: 992px) {
    .dt-menu {
        display: flex;
    }
}

.dt-menu li a {
    display: block;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
    transition: background 0.2s;
}

.dt-menu li a:hover {
    background: rgba(0,0,0,0.15);
    color: #fff;
}

/* Mobile Menu */
.dt-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dt-primary);
    padding: 10px 0;
}

.dt-menu.is-open li a {
    padding: 12px 20px;
}

/* Search Modal */
.dt-search-modal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dt-bg);
    border-bottom: 1px solid var(--dt-border);
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dt-search-modal[hidden] {
    display: none;
}

.dt-search-modal-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.dt-search-modal .search-form {
    flex: 1;
    display: flex;
}

.dt-search-modal .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--dt-primary);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background: var(--dt-bg);
    color: var(--dt-text);
}

.dt-search-modal .search-field:focus {
    outline: none;
}

.dt-search-modal .search-submit {
    padding: 12px 24px;
    background: var(--dt-primary);
    color: #fff;
    border: 2px solid var(--dt-primary);
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
}

.dt-search-close {
    background: transparent;
    border: none;
    color: var(--dt-muted);
    cursor: pointer;
    padding: 8px;
}

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

.dt-content {
    padding-top: 0;
}

.dt-main {
    padding: 30px 0;
}

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

.dt-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .dt-layout {
        grid-template-columns: 1fr 340px;
    }
}

.dt-layout-main {
    min-width: 0;
}

.dt-layout-sidebar {
    display: none;
}

@media (min-width: 992px) {
    .dt-layout-sidebar {
        display: block;
    }
}

/* ========================================================================
   Hero/Featured Section - Electrek Style
   ======================================================================== */

.dt-featured {
    margin-bottom: 30px;
}

.dt-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .dt-featured-grid {
        grid-template-columns: 6fr 4fr;
        gap: 40px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dt-featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Hero Card (Left side large) - Electrek Style */
.dt-featured-hero {
    position: relative;
}

.dt-card--hero {
    background: var(--dt-bg);
}

.dt-card--hero .dt-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* Cyan border on LEFT side - Electrek Style */
    border-left: 5px solid var(--dt-primary);
    padding-left: 0;
}

.dt-card--hero .dt-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.dt-card--hero .dt-card-content {
    padding: 20px 0;
    text-align: center;
}

.dt-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    justify-content: center;
}

.dt-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dt-text);
}

.dt-card-category:hover {
    color: var(--dt-primary);
}

.dt-card--hero .dt-card-title {
    font-family: var(--dt-font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--dt-text);
    text-align: center;
}

.dt-card--hero .dt-card-title a {
    color: inherit;
    text-decoration: none;
}

.dt-card--hero .dt-card-title a:hover {
    color: var(--dt-primary);
}

@media (min-width: 768px) {
    .dt-card--hero .dt-card-title {
        font-size: 1.75rem;
    }
}

.dt-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dt-muted);
}

.dt-card-author {
    display: flex;
    align-items: center;
    color: var(--dt-primary);
    gap: 6px;
    color: var(--dt-primary);
}

.dt-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Featured Sidebar (Right side) - Electrek Style */
.dt-featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dt-featured-sidebar-title {
    font-family: var(--dt-font-heading);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--dt-primary);
}

.dt-featured-sidebar-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--dt-primary);
}

.dt-card--compact {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dt-border);
    align-items: flex-start;
}

.dt-card--compact:last-child {
    border-bottom: none;
}

.dt-card--compact .dt-card-media {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 0;
    overflow: hidden;
}

.dt-card--compact .dt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-card--compact .dt-card-title {
    font-family: var(--dt-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.dt-card--compact .dt-card-title a {
    color: var(--dt-text);
    text-decoration: none;
}

.dt-card--compact .dt-card-title a:hover {
    color: var(--dt-primary);
}

.dt-card--compact .dt-card-meta {
    justify-content: flex-start;
    font-size: 0.8rem;
}

.dt-card--compact .dt-card-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
}

.dt-card--compact .dt-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dt-card--compact .dt-card-title {
    font-family: var(--dt-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-card--compact .dt-card-meta {
    font-size: 0.75rem;
}

/* ========================================================================
   Section Titles - Electrek Style (Italic Serif)
   ======================================================================== */

.dt-section {
    margin-bottom: 40px;
}

.dt-section-title {
    font-family: var(--dt-font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dt-primary);
    display: inline-block;
}

/* ========================================================================
   Article Cards - Latest Stream (Electrek Style)
   ======================================================================== */

.dt-posts-stream {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dt-article-row {
    padding: 24px 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-article-row:first-child {
    padding-top: 0;
}

/* Category Tags Row */
.dt-article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.dt-category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dt-text);
}

.dt-category-badge:hover {
    color: var(--dt-primary);
}

/* Article Title */
.dt-article-title {
    font-family: var(--dt-font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .dt-article-title {
        font-size: 1.75rem;
    }
}

.dt-article-title a {
    color: var(--dt-text);
}

.dt-article-title a:hover {
    color: var(--dt-primary);
}

/* Article Meta */
.dt-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--dt-muted);
    margin-bottom: 16px;
}

.dt-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dt-primary);
}

.dt-post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.dt-post-meta-sep {
    color: var(--dt-border);
}

.dt-post-comments a {
    color: var(--dt-primary);
}

/* Article Image */
.dt-article-media {
    position: relative;
    margin-bottom: 16px;
    border-radius: 0;
    overflow: hidden;
}

.dt-article-image {
    width: 100%;
    height: auto;
    display: block;
}

.dt-article-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

/* Article Excerpt */
.dt-article-excerpt {
    font-size: 1rem;
    color: var(--dt-text-light);
    line-height: 1.7;
}

.dt-article-excerpt p {
    margin: 0 0 1rem;
}

.dt-article-excerpt a {
    color: var(--dt-primary);
    text-decoration: underline;
}

/* ========================================================================
   Sidebar - Electrek Style
   ======================================================================== */

.dt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Widget Titles */
.dt-widget-title,
.widget-title {
    font-family: var(--dt-font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dt-primary);
    display: inline-block;
    color: var(--dt-text);
}

/* Featured Widget (Dark Background) */
.dt-widget--featured {
    background: var(--dt-dark-bg);
    border-radius: 0;
    padding: 20px;
}

.dt-widget--featured .dt-widget-title {
    color: #fff;
}

.dt-widget--featured .dt-widget-list {
    margin: 0;
    padding: 0;
}

.dt-widget--featured .dt-widget-item {
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

.dt-widget--featured .dt-widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dt-widget--featured .dt-widget-item:first-child {
    padding-top: 0;
}

.dt-widget--featured .dt-widget-item-link {
    display: flex;
    gap: 12px;
}

.dt-widget--featured .dt-widget-item-media {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.dt-widget--featured .dt-widget-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-widget--featured .dt-widget-item-content {
    flex: 1;
    min-width: 0;
}

.dt-widget--featured .dt-widget-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-widget--featured .dt-widget-item-title:hover {
    color: var(--dt-primary);
}

.dt-widget--featured .dt-widget-item-meta {
    font-size: 0.7rem;
    color: #999;
}

/* Poll Widget */
.dt-widget--poll {
    background: var(--dt-bg);
    border: 1px solid var(--dt-border);
    padding: 20px;
}

.dt-widget--poll .dt-widget-title {
    margin-bottom: 16px;
}

/* Regular Widgets */
.dt-widget {
    background: var(--dt-bg);
}

.dt-widget h3 {
    font-family: var(--dt-font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dt-primary);
    display: inline-block;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--dt-border);
}

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

.widget a {
    color: var(--dt-text);
}

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

/* Search Widget */
.widget_search .search-form,
.wp-block-search {
    display: flex;
}

.widget_search .search-field,
.wp-block-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--dt-border);
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    background: var(--dt-bg);
    color: var(--dt-text);
}

.widget_search .search-field:focus,
.wp-block-search__input:focus {
    outline: none;
    border-color: var(--dt-primary);
}

.widget_search .search-submit,
.wp-block-search__button {
    padding: 10px 16px;
    background: var(--dt-primary);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================================================
   Ad Slots
   ======================================================================== */

.dt-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dt-surface);
    margin: 30px 0;
    min-height: 90px;
}

.dt-ad-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--dt-muted);
    font-size: 0.85rem;
}

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

.dt-footer {
    background: var(--dt-dark-bg);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.dt-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dt-footer-widgets {
    padding: 0;
}

.dt-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.dt-footer-widget-title {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dt-primary);
}

.dt-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #333;
}

.dt-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dt-footer-copyright {
    font-size: 0.85rem;
    color: #888;
}

.dt-footer-menu {
    display: flex;
    gap: 20px;
}

.dt-footer-menu a {
    color: #888;
    font-size: 0.85rem;
}

.dt-footer-menu a:hover {
    color: var(--dt-primary);
}

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

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--dt-border);
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--dt-surface);
    color: var(--dt-text);
    border-radius: 4px;
    font-weight: 500;
}

.page-numbers:hover {
    background: var(--dt-primary);
    color: #fff;
}

.page-numbers.current {
    background: var(--dt-primary);
    color: #fff;
}

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

.dt-article {
    max-width: 800px;
}

.dt-article-header {
    margin-bottom: 24px;
}

.dt-article-header .dt-article-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .dt-article-header .dt-article-title {
        font-size: 2.5rem;
    }
}

.dt-article-hero {
    margin-bottom: 24px;
}

.dt-article-hero img {
    width: 100%;
    height: auto;
}

.dt-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.dt-article-body p {
    margin-bottom: 1.5rem;
}

.dt-article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.dt-article-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.dt-article-body img {
    margin: 1.5rem 0;
}

.dt-article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--dt-primary);
    background: var(--dt-surface);
    font-style: italic;
}

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

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--dt-border);
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--dt-border);
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--dt-muted);
}

.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dt-border);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--dt-bg);
    color: var(--dt-text);
    margin-bottom: 16px;
}

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

.comment-form .submit {
    padding: 12px 24px;
    background: var(--dt-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

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

/* ========================================================================
   Reveal Ads / EXPAND Button - Electrek Style
   ======================================================================== */

.dt-reveal-ad,
.dt-expand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--dt-border);
    border-bottom: 1px solid var(--dt-border);
    margin: 20px 0;
}

.dt-reveal-ad-toggle,
.dt-expand-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--dt-primary);
    cursor: pointer;
    transition: all 0.2s;
    padding: 10px 20px;
}

.dt-reveal-ad-toggle:hover,
.dt-expand-toggle:hover {
    opacity: 0.8;
}

.dt-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: 300;
    color: var(--dt-primary);
}

.dt-expand-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.dt-expand-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dt-primary);
}

.dt-reveal-ad-toggle[aria-expanded="true"] .dt-expand-icon,
.dt-expand-toggle[aria-expanded="true"] .dt-expand-icon {
    transform: rotate(45deg);
}

.dt-reveal-ad-toggle[aria-expanded="true"] .dt-expand-text,
.dt-expand-toggle[aria-expanded="true"] .dt-expand-text {
    display: none;
}

.dt-reveal-ad-content,
.dt-expand-content {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    opacity: 0;
}

.dt-reveal-ad-content:not([hidden]),
.dt-expand-content:not([hidden]) {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
}

/* ========================================================================
   Theme Toggle
   ======================================================================== */

.dt-theme-toggle {
    display: flex;
    align-items: center;
    background: var(--dt-surface);
    border-radius: 20px;
    padding: 3px;
}

.dt-theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--dt-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.dt-theme-toggle-btn:hover {
    color: var(--dt-text);
}

.dt-theme-toggle-btn.active {
    background: var(--dt-primary);
    color: #fff;
}

.dt-theme-toggle-btn svg {
    width: 16px;
    height: 16px;
}

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

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dt-container {
        padding: 0 24px;
    }
    
    .dt-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dt-layout-sidebar {
        display: block;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .dt-featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .dt-card--hero .dt-card-title {
        font-size: 1.5rem;
    }
    
    .dt-article-title {
        font-size: 1.5rem;
    }
    
    .dt-header-top {
        padding: 12px 16px;
    }
    
    .dt-menu li a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* Small Tablet / Large Mobile (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .dt-container {
        padding: 0 20px;
    }
    
    .dt-featured-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dt-featured-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .dt-featured-sidebar-title {
        grid-column: 1 / -1;
    }
    
    .dt-card--compact {
        flex-direction: column;
    }
    
    .dt-card--compact .dt-card-media {
        width: 100%;
        height: 140px;
    }
    
    .dt-article-title {
        font-size: 1.35rem;
    }
    
    .dt-card--hero .dt-card-title {
        font-size: 1.35rem;
    }
}

/* Mobile (max-width: 639px) */
@media (max-width: 639px) {
    html {
        font-size: 15px;
    }
    
    .dt-container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .dt-main {
        padding: 16px 0;
    }
    
    .dt-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .dt-header-top {
        padding: 8px 12px;
        flex-wrap: nowrap;
    }
    
    .dt-header-left {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .dt-logo-text {
        font-size: 1.25rem;
    }
    
    .dt-logo img {
        height: 32px;
    }
    
    .dt-network-switcher-toggle {
        width: 20px;
        height: 20px;
    }
    
    .dt-network-switcher-toggle svg {
        width: 14px;
        height: 14px;
    }
    
    .dt-header-right {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .dt-header-icons {
        display: flex !important;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
    }
    
    .dt-header-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        color: var(--dt-text);
        cursor: pointer;
    }
    
    .dt-header-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Social Dock on Mobile */
    .dt-social-dock {
        display: none !important;
    }
    
    /* Theme Toggle Button - Always Visible on Mobile */
    .dt-theme-btn {
        display: flex !important;
        width: 32px;
        height: 32px;
    }
    
    .dt-theme-btn .dt-icon-light,
    .dt-theme-btn .dt-icon-dark,
    .dt-theme-btn .dt-icon-auto {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* Search Toggle - Always Visible */
    .dt-search-toggle {
        display: flex !important;
    }
    
    /* Navigation Bar Mobile */
    .dt-nav-bar {
        position: relative;
    }
    
    .dt-nav-inner {
        padding: 0 8px;
    }
    
    .dt-menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
    }
    
    .dt-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dt-accent, var(--dt-primary));
        flex-direction: column;
        z-index: 999;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .dt-menu.is-open {
        display: flex;
    }
    
    .dt-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dt-menu li a {
        display: block;
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    /* Layout */
    .dt-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dt-layout-sidebar {
        display: block;
        margin-top: 16px;
    }
    
    /* Featured Section */
    .dt-featured {
        margin-bottom: 20px;
    }
    
    .dt-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dt-featured-sidebar {
        margin-top: 16px;
    }
    
    .dt-featured-sidebar-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    /* Cards */
    .dt-card--hero .dt-card-media {
        width: 100%;
    }
    
    .dt-card--hero .dt-card-title {
        font-size: 1.1rem;
        line-height: 1.35;
    }
    
    .dt-card--hero .dt-card-content {
        padding: 12px 0;
    }
    
    .dt-card-categories {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .dt-card-category {
        font-size: 0.6rem;
    }
    
    .dt-card-meta {
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .dt-card-author img {
        width: 18px;
        height: 18px;
    }
    
    .dt-card--compact {
        gap: 10px;
        padding: 12px 0;
    }
    
    .dt-card--compact .dt-card-media {
        width: 90px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .dt-card--compact .dt-card-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .dt-card--compact .dt-card-meta {
        font-size: 0.65rem;
    }
    
    /* Articles */
    .dt-section {
        margin-bottom: 24px;
    }
    
    .dt-section-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .dt-article-row {
        padding: 16px 0;
    }
    
    .dt-article-categories {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .dt-category-badge {
        font-size: 0.6rem;
    }
    
    .dt-article-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .dt-post-meta {
        font-size: 0.7rem;
        gap: 4px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    
    .dt-post-author img {
        width: 18px;
        height: 18px;
    }
    
    .dt-article-media {
        margin-bottom: 12px;
    }
    
    .dt-article-image {
        width: 100%;
        height: auto;
    }
    
    .dt-article-excerpt {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Sidebar */
    .dt-sidebar {
        gap: 20px;
    }
    
    .dt-widget {
        padding: 16px;
    }
    
    .dt-widget-title,
    .widget-title {
        font-size: 1.15rem;
    }
    
    .dt-widget--featured {
        padding: 16px;
    }
    
    .dt-widget--featured .dt-widget-item-media {
        width: 70px;
        height: 50px;
    }
    
    .dt-widget--featured .dt-widget-item-title {
        font-size: 0.8rem;
    }
    
    /* Poll */
    .dt-poll-question {
        font-size: 0.9rem;
    }
    
    .dt-poll-option {
        font-size: 0.85rem;
    }
    
    .dt-poll-submit {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Network Dropdown */
    .dt-network-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        overflow-y: auto;
    }
    
    .dt-network-list {
        padding: 8px 0 16px;
    }
    
    .dt-network-link {
        padding: 14px 16px;
    }
    
    /* Search Modal */
    .dt-search-modal {
        padding: 12px;
    }
    
    .dt-search-modal .search-field {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .dt-search-modal .search-submit {
        padding: 10px 14px;
    }
    
    /* Footer */
    .dt-footer {
        padding: 30px 0 16px;
        margin-top: 40px;
    }
    
    .dt-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dt-footer-widget-title {
        font-size: 0.85rem;
    }
    
    .dt-footer-bottom {
        padding-top: 16px;
    }
    
    .dt-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .dt-footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    /* Pagination */
    .pagination,
    .nav-links {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.8rem;
    }
    
    /* Ad Slots */
    .dt-ad-slot {
        margin: 16px 0;
        min-height: 60px;
    }
    
    /* Reveal Ads */
    .dt-reveal-ad {
        padding: 12px 0;
    }
    
    .dt-reveal-ad-toggle {
        width: 32px;
        height: 32px;
    }
    
    /* Single Article */
    .dt-article-header .dt-article-title {
        font-size: 1.5rem;
    }
    
    .dt-article-body {
        font-size: 1rem;
    }
    
    .dt-article-body h2 {
        font-size: 1.25rem;
    }
    
    .dt-article-body h3 {
        font-size: 1.1rem;
    }
    
    /* Comments */
    .comments-area {
        margin-top: 30px;
        padding-top: 24px;
    }
    
    .comment-body {
        flex-direction: column;
        gap: 12px;
    }
}

/* Extra Small Mobile (max-width: 374px) */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }
    
    .dt-container {
        padding: 0 8px;
    }
    
    .dt-header-top {
        padding: 6px 8px;
    }
    
    .dt-logo-text {
        font-size: 1.1rem;
    }
    
    .dt-theme-toggle {
        display: none;
    }
    
    .dt-card--hero .dt-card-title {
        font-size: 1rem;
    }
    
    .dt-article-title {
        font-size: 1rem;
    }
}

/* ========================================================================
   Guides Section - Electrek Style
   ======================================================================== */

.dt-guides-section {
    margin: 40px 0;
}

.dt-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dt-section-heading-text {
    font-family: var(--dt-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dt-text);
    white-space: nowrap;
}

.dt-section-heading-line {
    flex: 1;
    height: 3px;
    background: var(--dt-primary);
}

.dt-guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 767px) {
    .dt-guides-grid {
        grid-template-columns: 1fr;
    }
}

.dt-guide-card {
    display: flex;
    gap: 16px;
    padding: 0;
    transition: opacity 0.2s;
}

.dt-guide-card:hover {
    opacity: 0.8;
}

.dt-guide-image {
    width: 140px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--dt-surface);
}

.dt-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-guide-placeholder {
    width: 100%;
    height: 100%;
    background: var(--dt-surface);
}

.dt-guide-content {
    flex: 1;
    min-width: 0;
}

.dt-guide-title {
    font-family: var(--dt-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dt-text);
    margin: 0 0 6px;
}

.dt-guide-desc {
    font-size: 0.875rem;
    color: var(--dt-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========================================================================
   Author Section - Electrek Style
   ======================================================================== */

.dt-author-section {
    margin: 40px 0;
}

.dt-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 639px) {
    .dt-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.dt-author-avatar-large {
    flex-shrink: 0;
}

.dt-author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.dt-author-details {
    flex: 1;
    min-width: 0;
}

.dt-author-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

@media (max-width: 639px) {
    .dt-author-name-row {
        justify-content: center;
    }
}

.dt-author-name-link {
    font-family: var(--dt-font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dt-primary);
    text-decoration: none;
}

.dt-author-name-link:hover {
    text-decoration: underline;
}

.dt-author-social-sep {
    color: var(--dt-muted);
}

.dt-author-twitter {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dt-text);
    font-size: 0.9rem;
}

.dt-author-twitter svg {
    width: 16px;
    height: 16px;
}

.dt-author-twitter:hover {
    color: var(--dt-primary);
}

.dt-author-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dt-text);
    margin: 0 0 12px;
}

.dt-author-contact,
.dt-author-website {
    font-size: 0.95rem;
    color: var(--dt-text);
    margin: 0 0 8px;
    line-height: 1.6;
}

.dt-author-contact a,
.dt-author-website a {
    color: var(--dt-primary);
}

.dt-author-contact a:hover,
.dt-author-website a:hover {
    text-decoration: underline;
}

/* ========================================================================
   Author's Gear Section - Electrek Style
   ======================================================================== */

.dt-gear-section {
    margin: 40px 0;
}

.dt-gear-divider {
    height: 3px;
    background: var(--dt-primary);
    margin-bottom: 24px;
}

.dt-gear-title {
    font-family: var(--dt-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dt-text);
    margin: 0 0 20px;
}

.dt-gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

@media (max-width: 639px) {
    .dt-gear-grid {
        grid-template-columns: 1fr;
    }
}

.dt-gear-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--dt-surface);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.dt-gear-card--brand {
    justify-content: center;
    align-items: center;
    background: var(--dt-bg);
    border: 1px solid var(--dt-border);
}

.dt-gear-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dt-bg);
    border-radius: 8px;
    font-size: 1.5rem;
}

.dt-gear-brand-text {
    font-family: var(--dt-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dt-primary);
}

.dt-gear-info {
    flex: 1;
    min-width: 0;
}

.dt-gear-name {
    font-family: var(--dt-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dt-text);
    margin: 0 0 6px;
}

.dt-gear-desc {
    font-size: 0.85rem;
    color: var(--dt-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========================================================================
   Scroll to Top Button
   ======================================================================== */

.dt-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dt-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.dt-scroll-top:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dt-scroll-top:hover {
    background: var(--dt-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.dt-scroll-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 639px) {
    .dt-scroll-top {
        bottom: 80px;
        right: 16px;
        width: 48px;
        height: 48px;
        z-index: 9999;
    }
    
    .dt-scroll-top svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .dt-scroll-top {
        bottom: 70px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

/* ========================================================================
   More from Network Site Section - Electrek Style
   ======================================================================== */

.dt-more-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--dt-border);
}

.dt-more-from {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dt-more-from-label {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--dt-muted);
}

.dt-more-from-site {
    font-family: var(--dt-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--dt-primary);
    text-decoration: none;
}

.dt-more-from-site:hover {
    text-decoration: underline;
}

.dt-more-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dt-more-article {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dt-border);
}

.dt-more-article:last-child {
    border-bottom: none;
}

.dt-more-article-image {
    width: 140px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--dt-surface);
}

.dt-more-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dt-more-article:hover .dt-more-article-image img {
    transform: scale(1.05);
}

.dt-more-article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dt-surface) 0%, var(--dt-border) 100%);
}

.dt-more-article-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dt-more-article-title {
    font-family: var(--dt-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--dt-text);
}

.dt-more-article-title a {
    color: inherit;
    text-decoration: none;
}

.dt-more-article-title a:hover {
    color: var(--dt-primary);
}

.dt-more-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.dt-more-article-author {
    color: var(--dt-primary);
    font-weight: 500;
}

.dt-more-article-sep {
    color: var(--dt-muted);
}

.dt-more-article-date {
    color: var(--dt-muted);
}

@media (max-width: 639px) {
    .dt-more-article {
        gap: 12px;
    }
    
    .dt-more-article-image {
        width: 100px;
        height: 70px;
    }
    
    .dt-more-article-title {
        font-size: 0.9rem;
    }
    
    .dt-more-article-meta {
        font-size: 0.75rem;
    }
}

/* ========================================================================
   Related Posts Section - Electrek Style
   ======================================================================== */

.dt-related-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid var(--dt-border);
}

.dt-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dt-related-item {
    position: relative;
}

.dt-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dt-related-media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--dt-surface);
}

/* No border on related media */

.dt-related-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.dt-related-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dt-surface) 0%, var(--dt-border) 100%);
}

.dt-related-content {
    padding: 0 4px;
}

.dt-related-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dt-primary);
    margin-bottom: 6px;
}

.dt-related-title {
    font-family: var(--dt-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--dt-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.dt-related-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--dt-muted);
}

.dt-related-author {
    color: var(--dt-primary);
    font-weight: 500;
}

.dt-related-sep {
    color: var(--dt-muted);
}

@media (max-width: 991px) {
    .dt-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 639px) {
    .dt-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dt-related-item {
        display: flex;
        gap: 12px;
    }
    
    .dt-related-media {
        width: 120px;
        height: 80px;
        aspect-ratio: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .dt-related-content {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ========================================================================
   Trending Grid Section - Clean & Simple
   ======================================================================== */

.grid-section {
    margin: 40px 0;
    padding: 30px 20px;
    background: #f5f5f5;
}

[data-theme="dark"] .grid-section,
.dt-theme-dark .grid-section {
    background: #1a1a1a;
}

.grid-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #e91e63;
    display: inline-block;
}

[data-theme="dark"] .grid-section-title,
.dt-theme-dark .grid-section-title {
    color: #fff;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-card {
    background: #fff;
}

[data-theme="dark"] .grid-card,
.dt-theme-dark .grid-card {
    background: #2a2a2a;
}

.grid-card a {
    text-decoration: none;
    display: block;
}

.grid-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ddd;
}

.grid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-card:hover .grid-card-img img {
    transform: scale(1.05);
}

.grid-card-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.grid-card-cat {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    background: #e91e63;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grid-card-body {
    padding: 15px;
}

.grid-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

[data-theme="dark"] .grid-card-body h3,
.dt-theme-dark .grid-card-body h3 {
    color: #fff;
}

.grid-card:hover .grid-card-body h3 {
    color: var(--dt-primary);
}

.grid-card-date {
    font-size: 0.75rem;
    color: #888;
}

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 500px) {
    .grid-section { padding: 20px 15px; }
    .grid-4 { grid-template-columns: 1fr; gap: 15px; }
    .grid-card-body { padding: 12px; }
    .grid-card-body h3 { font-size: 0.9rem; }
}

/* Widget Trending - Sidebar */
.widget-box {
    background: var(--dt-surface);
    padding: 20px;
    margin-bottom: 25px;
}

.widget-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dt-text);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dt-primary);
    display: inline-block;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
}

.widget-item:hover h4 {
    color: var(--dt-primary);
}

.widget-item-img {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--dt-border);
}

.widget-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-item-text {
    flex: 1;
}

.widget-item-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dt-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.widget-item-text span {
    font-size: 0.7rem;
    color: var(--dt-muted);
}

/* ========================================================================
   Read More Button - Homepage
   ======================================================================== */

.dt-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--dt-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dt-read-more-btn:hover {
    background: var(--dt-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dt-read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dt-read-more-btn:hover svg {
    transform: translateX(4px);
}

.dt-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.dt-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--dt-primary);
    border: 2px solid var(--dt-primary);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dt-load-more-btn:hover {
    background: var(--dt-primary);
    color: #fff;
}

/* Article Card Read More Link */
.dt-article-row .dt-read-more,
.dt-card .dt-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dt-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dt-article-row .dt-read-more:hover,
.dt-card .dt-read-more:hover {
    gap: 10px;
}

.dt-article-row .dt-read-more svg,
.dt-card .dt-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.dt-article-row .dt-read-more:hover svg,
.dt-card .dt-read-more:hover svg {
    transform: translateX(3px);
}
