/*
Theme Name: TechPulse
Theme URI: https://techpulse.dev
Author: TechPulse Dev
Description: قالب ووردبريس احترافي متخصص في المحتوى التقني - سريع ومتجاوب وسهل التحكم
Version: 2.3.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: techpulse
Tags: blog, technology, rtl-language-support, custom-logo, custom-menu, featured-images, theme-options
*/

/* ===== Google Fonts are loaded via wp_enqueue_style in functions.php ===== */

/* ===== CSS Variables ===== */
:root {
    --tp-primary: #0066FF;
    --tp-primary-dark: #0052CC;
    --tp-primary-light: rgba(0,102,255,0.08);
    --tp-secondary: #00D4AA;
    --tp-dark: #0A0E1A;
    --tp-dark-light: #141828;
    --tp-gray-900: #1A1F36;
    --tp-gray-800: #252B48;
    --tp-gray-700: #3D4466;
    --tp-gray-600: #565E82;
    --tp-gray-500: #7A82A6;
    --tp-gray-400: #9BA2C2;
    --tp-gray-300: #C5CAE0;
    --tp-gray-200: #E2E5F0;
    --tp-gray-100: #F0F2F8;
    --tp-white: #FFFFFF;
    --tp-bg: #F5F7FC;
    --tp-text: #1A1F36;
    --tp-text-light: #565E82;
    --tp-accent-red: #FF4757;
    --tp-accent-orange: #FF8C42;
    --tp-font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --tp-font-heading: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --tp-font-mono: 'Fira Code', 'Courier New', monospace;
    --tp-radius: 12px;
    --tp-radius-sm: 8px;
    --tp-radius-lg: 20px;
    --tp-shadow: 0 2px 12px rgba(10,14,26,0.06);
    --tp-shadow-md: 0 4px 24px rgba(10,14,26,0.1);
    --tp-shadow-lg: 0 8px 40px rgba(10,14,26,0.14);
    --tp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tp-container: 1200px;
    --tp-header-height: 70px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--tp-font-main);
    font-weight: 400;
    background: var(--tp-bg);
    color: var(--tp-text);
    line-height: 1.75;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; transition: color var(--tp-transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--tp-font-main); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tp-font-heading);
    font-weight: 700;
    line-height: 1.35;
    color: var(--tp-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, span, div, li, td, th, input, textarea, select, label {
    font-family: var(--tp-font-main);
}

.tp-container { max-width: var(--tp-container); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.tp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--tp-radius-sm);
    font-family: var(--tp-font-main); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--tp-transition);
}
.tp-btn-primary { background: var(--tp-primary); color: var(--tp-white); }
.tp-btn-primary:hover { background: var(--tp-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,102,255,0.3); }

/* ===== Breaking News Ticker ===== */
.tp-ticker {
    background: var(--tp-dark);
    color: var(--tp-white);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 999;
}
.tp-ticker-label {
    background: var(--tp-primary);
    color: var(--tp-white);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    font-family: var(--tp-font-heading);
}
.tp-ticker-label::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    border: 20px solid transparent;
    border-right-color: var(--tp-primary);
    border-left: none;
}
.tp-ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}
.tp-ticker-items {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: tickerScroll var(--ticker-speed, 30s) linear infinite;
    white-space: nowrap;
}
.tp-ticker-items:hover { animation-play-state: paused; }
.tp-ticker-item a {
    font-size: 0.85rem;
    color: var(--tp-gray-300);
    transition: color var(--tp-transition);
    font-family: var(--tp-font-main);
}
.tp-ticker-item a:hover { color: var(--tp-primary); }
.tp-ticker-item a::before {
    content: '●';
    color: var(--tp-primary);
    margin-left: 10px;
    font-size: 0.5rem;
    vertical-align: middle;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

[dir="rtl"] .tp-ticker-items {
    animation-name: tickerScrollRTL;
}

@keyframes tickerScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ===== Header ===== */
.tp-header {
    position: sticky;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tp-gray-200);
    height: var(--tp-header-height);
    transition: all var(--tp-transition);
}
.tp-header.scrolled { height: 60px; box-shadow: var(--tp-shadow); }
.tp-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: var(--tp-container); margin: 0 auto; padding: 0 20px;
}
.tp-logo img { height: 40px; width: auto; transition: height var(--tp-transition); }
.tp-header.scrolled .tp-logo img { height: 34px; }
.tp-logo-text { font-family: var(--tp-font-heading); font-size: 1.6rem; font-weight: 800; color: var(--tp-dark); }
.tp-logo-text span { color: var(--tp-primary); }

/* === Desktop Nav with Dropdowns === */
.tp-nav { display: flex; align-items: center; gap: 2px; }
.tp-nav > li { position: relative; }
.tp-nav > li > a {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: var(--tp-radius-sm);
    font-size: 0.9rem; font-weight: 600; font-family: var(--tp-font-main);
    color: var(--tp-gray-700); transition: all var(--tp-transition);
}
.tp-nav > li > a:hover,
.tp-nav > li.current-menu-item > a,
.tp-nav > li.current-menu-parent > a { color: var(--tp-primary); background: var(--tp-primary-light); }

/* Dropdown arrow */
.tp-nav > li.menu-item-has-children > a::after {
    content: '';
    width: 0; height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--tp-transition);
}
.tp-nav > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Dropdown Menu */
.tp-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow-lg);
    border: 1px solid var(--tp-gray-200);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--tp-transition);
    z-index: 100;
    list-style: none;
}
.tp-nav > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.tp-nav .sub-menu li { list-style: none; }
.tp-nav .sub-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tp-gray-700);
    border-radius: var(--tp-radius-sm);
    transition: all var(--tp-transition);
    font-family: var(--tp-font-main);
}
.tp-nav .sub-menu li a:hover {
    background: var(--tp-primary-light);
    color: var(--tp-primary);
    padding-right: 22px;
}

/* Nested sub-menu */
.tp-nav .sub-menu .sub-menu {
    right: 100%;
    top: 0;
    margin-right: 4px;
}
.tp-nav .sub-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Search */
.tp-search-toggle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border: none; background: var(--tp-gray-100); border-radius: 50%; cursor: pointer;
    color: var(--tp-gray-700); transition: all var(--tp-transition);
}
.tp-search-toggle:hover { background: var(--tp-primary); color: var(--tp-white); }

.tp-search-overlay {
    position: fixed; inset: 0;
    background: rgba(10,14,26,0.85); backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--tp-transition);
}
.tp-search-overlay.active { opacity: 1; visibility: visible; }
.tp-search-overlay form { width: 90%; max-width: 600px; position: relative; }
.tp-search-overlay input {
    width: 100%; padding: 20px 60px 20px 20px; font-size: 1.1rem;
    border: none; border-radius: var(--tp-radius-lg); background: var(--tp-white);
    font-family: var(--tp-font-main); color: var(--tp-dark); outline: none;
}
.tp-search-overlay button[type="submit"] {
    position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: none; background: var(--tp-primary); color: var(--tp-white);
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tp-search-close {
    position: absolute; top: 30px; left: 30px;
    width: 50px; height: 50px; border: none; background: rgba(255,255,255,0.1);
    color: var(--tp-white); border-radius: 50%; cursor: pointer;
    font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Toggle */
.tp-menu-toggle {
    display: none; width: 40px; height: 40px; border: none; background: none;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.tp-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--tp-dark); border-radius: 2px; transition: all var(--tp-transition); }
.tp-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tp-menu-toggle.active span:nth-child(2) { opacity: 0; }
.tp-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Nav */
.tp-mobile-nav {
    position: fixed; top: var(--tp-header-height); right: 0;
    width: 300px; height: calc(100vh - var(--tp-header-height));
    background: var(--tp-white); box-shadow: var(--tp-shadow-lg);
    transform: translateX(100%); transition: transform var(--tp-transition);
    z-index: 999; overflow-y: auto; padding: 20px;
}
.tp-mobile-nav.active { transform: translateX(0); }
.tp-mobile-nav ul { list-style: none; }
.tp-mobile-nav > ul > li > a {
    display: block; padding: 12px 16px; font-size: 1rem; font-weight: 600;
    color: var(--tp-gray-700); border-radius: var(--tp-radius-sm); margin-bottom: 2px;
    font-family: var(--tp-font-main);
}
.tp-mobile-nav > ul > li > a:hover { background: var(--tp-primary-light); color: var(--tp-primary); }

/* Mobile sub-menu */
.tp-mobile-nav .sub-menu {
    padding-right: 16px; display: none; list-style: none;
}
.tp-mobile-nav .sub-menu.open { display: block; }
.tp-mobile-nav .sub-menu a {
    display: block; padding: 8px 16px; font-size: 0.9rem;
    color: var(--tp-gray-600); font-family: var(--tp-font-main);
}
.tp-mobile-nav .sub-menu a:hover { color: var(--tp-primary); }
.tp-mobile-nav .menu-item-has-children > a {
    display: flex; justify-content: space-between; align-items: center;
}
.tp-mobile-submenu-toggle {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border: none; background: var(--tp-gray-100); border-radius: 50%;
    cursor: pointer; font-size: 0.7rem; color: var(--tp-gray-700); transition: all var(--tp-transition);
}
.tp-mobile-submenu-toggle.open { transform: rotate(180deg); background: var(--tp-primary-light); color: var(--tp-primary); }

/* ===== Ad Spaces ===== */
.tp-ad { text-align: center; margin: 20px 0; overflow: hidden; }
.tp-ad img { max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--tp-radius-sm); }
.tp-ad-label { font-size: 0.68rem; color: var(--tp-gray-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-family: var(--tp-font-main); }
.tp-hide-mobile { display: block; }
.tp-hide-desktop { display: block; }
@media (max-width: 768px) { .tp-hide-mobile { display: none !important; } }
@media (min-width: 769px) { .tp-hide-desktop { display: none !important; } }

/* ===== Slider Base ===== */
.tp-slider { position: relative; overflow: hidden; background: var(--tp-dark); }
.tp-slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.tp-slide { min-width: 100%; position: relative; overflow: hidden; }
.tp-slide-img { width: 100%; height: 100%; object-fit: cover; }
.tp-slide-content {
    position: absolute; bottom: 0; right: 0; left: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.5) 60%, transparent 100%);
    color: var(--tp-white);
}
.tp-slide-cat {
    display: inline-block; padding: 5px 16px; background: var(--tp-primary);
    border-radius: 20px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
    font-family: var(--tp-font-main);
}
.tp-slide-title {
    font-family: var(--tp-font-heading);
    font-weight: 800; color: var(--tp-white); margin-bottom: 10px; line-height: 1.4;
}
.tp-slide-title a { color: var(--tp-white); }
.tp-slide-title a:hover { color: var(--tp-secondary); }
.tp-slide-excerpt { font-size: 0.9rem; color: var(--tp-gray-300); margin-bottom: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-slide-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--tp-gray-400); font-family: var(--tp-font-main); }
.tp-slide-meta svg { width: 14px; height: 14px; margin-left: 4px; }

/* Slider Style 1: Full Width */
.tp-slider-style-1 .tp-slide { height: 500px; }
.tp-slider-style-1 .tp-slide-img { opacity: 0.55; }
.tp-slider-style-1 .tp-slide-title { font-size: 1.8rem; }

/* Slider Style 2: Boxed with content side */
.tp-slider-style-2 { background: var(--tp-dark); }
.tp-slider-style-2 .tp-slide { height: 450px; display: flex; }
.tp-slider-style-2 .tp-slide-img { opacity: 0.5; }
.tp-slider-style-2 .tp-slide-content {
    max-width: 650px; display: flex; flex-direction: column; justify-content: center;
}
.tp-slider-style-2 .tp-slide-title { font-size: 1.6rem; }

/* Slider Style 3: Cards Carousel */
.tp-slider-style-3 { background: var(--tp-bg); padding: 40px 0; }
.tp-slider-style-3 .tp-slider-track { gap: 20px; padding: 0 20px; }
.tp-slider-style-3 .tp-slide {
    min-width: calc(33.333% - 14px); height: 350px; border-radius: var(--tp-radius);
    overflow: hidden; box-shadow: var(--tp-shadow-md);
}
.tp-slider-style-3 .tp-slide-img { opacity: 0.7; }
.tp-slider-style-3 .tp-slide-title { font-size: 1.1rem; }

/* Slider Nav */
.tp-slider-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.tp-slider-dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
    border: none; cursor: pointer; transition: all var(--tp-transition);
}
.tp-slider-dot.active { background: var(--tp-primary); width: 28px; border-radius: 5px; }
.tp-slider-style-3 .tp-slider-dot { background: var(--tp-gray-300); }
.tp-slider-style-3 .tp-slider-dot.active { background: var(--tp-primary); }

.tp-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border: none; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px); color: var(--tp-white); border-radius: 50%;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: all var(--tp-transition);
}
.tp-slider-arrow:hover { background: var(--tp-primary); }
.tp-slider-arrow.prev { right: 20px; }
.tp-slider-arrow.next { left: 20px; }
.tp-slider-style-3 .tp-slider-arrow { background: var(--tp-white); color: var(--tp-dark); box-shadow: var(--tp-shadow-md); }

/* ===== Section Headers ===== */
.tp-section { padding: 50px 0; }
.tp-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.tp-section-title {
    font-size: 1.4rem; font-weight: 800; color: var(--tp-dark);
    position: relative; padding-right: 16px; font-family: var(--tp-font-heading);
}
.tp-section-title::before {
    content: ''; position: absolute; right: 0; top: 4px; bottom: 4px;
    width: 4px; background: var(--tp-primary); border-radius: 2px;
}
.tp-section-more {
    font-size: 0.88rem; font-weight: 600; color: var(--tp-primary);
    display: flex; align-items: center; gap: 6px; font-family: var(--tp-font-main);
}
.tp-section-more:hover { gap: 10px; }

/* ===== Post Cards ===== */
/* Layout 1: Grid */
.tp-layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Layout 2: List */
.tp-layout-list { display: flex; flex-direction: column; gap: 20px; }
.tp-layout-list .tp-card { display: flex; flex-direction: row; }
.tp-layout-list .tp-card-thumb { width: 280px; min-width: 280px; height: auto; min-height: 200px; }
.tp-layout-list .tp-card-body { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.tp-layout-list .tp-card-title { font-size: 1.15rem; -webkit-line-clamp: 2; }
.tp-layout-list .tp-card-excerpt { -webkit-line-clamp: 3; }

/* Layout 3: Featured + Side */
.tp-layout-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tp-layout-featured .tp-card:first-child { grid-row: 1 / 4; }
.tp-layout-featured .tp-card:first-child .tp-card-thumb { height: 100%; min-height: 420px; }
.tp-layout-featured .tp-card:first-child .tp-card-body {
    position: absolute; bottom: 0; right: 0; left: 0;
    background: linear-gradient(to top, rgba(10,14,26,0.95), transparent);
    color: var(--tp-white); padding: 30px;
}
.tp-layout-featured .tp-card:first-child .tp-card-title { font-size: 1.35rem; color: var(--tp-white); }
.tp-layout-featured .tp-card:first-child .tp-card-title a { color: var(--tp-white); }
.tp-layout-featured .tp-card:first-child .tp-card-meta { color: var(--tp-gray-400); border-top-color: rgba(255,255,255,0.2); }
.tp-layout-featured .tp-card:not(:first-child) { display: flex; flex-direction: row; }
.tp-layout-featured .tp-card:not(:first-child) .tp-card-thumb { width: 180px; min-width: 180px; height: auto; }

/* Layout 4: Two Columns */
.tp-layout-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.tp-card {
    background: var(--tp-white); border-radius: var(--tp-radius); overflow: hidden;
    box-shadow: var(--tp-shadow); transition: all var(--tp-transition); position: relative;
}
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-md); }
.tp-card-thumb { position: relative; height: 200px; overflow: hidden; }
.tp-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tp-card:hover .tp-card-thumb img { transform: scale(1.06); }
.tp-card-cat {
    position: absolute; top: 12px; right: 12px; padding: 4px 12px; background: var(--tp-primary);
    color: var(--tp-white); border-radius: 20px; font-size: 0.72rem; font-weight: 700;
    font-family: var(--tp-font-main);
}
.tp-card-body { padding: 20px; }
.tp-card-title {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5;
    font-family: var(--tp-font-heading);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-card-title a:hover { color: var(--tp-primary); }
.tp-card-excerpt {
    font-size: 0.88rem; color: var(--tp-text-light); line-height: 1.7; margin-bottom: 14px;
    font-family: var(--tp-font-main);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--tp-gray-500); padding-top: 14px; border-top: 1px solid var(--tp-gray-100);
    font-family: var(--tp-font-main);
}
.tp-card-meta-item { display: flex; align-items: center; gap: 4px; }
.tp-card-meta svg { width: 14px; height: 14px; }

/* ===== Layout (Content + Sidebar) ===== */
.tp-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.tp-sidebar { position: sticky; top: 90px; }

/* Widgets */
.tp-widget {
    background: var(--tp-white); border-radius: var(--tp-radius); padding: 24px;
    box-shadow: var(--tp-shadow); margin-bottom: 24px;
}
.tp-widget-title {
    font-size: 1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--tp-gray-100); position: relative;
    font-family: var(--tp-font-heading);
}
.tp-widget-title::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 50px; height: 2px; background: var(--tp-primary); }
.tp-widget-popular-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--tp-gray-100); }
.tp-widget-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.tp-widget-popular-num {
    width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--tp-gray-100); border-radius: var(--tp-radius-sm);
    font-size: 0.82rem; font-weight: 800; color: var(--tp-primary); font-family: var(--tp-font-main);
}
.tp-widget-popular-title { font-size: 0.88rem; font-weight: 600; line-height: 1.5; font-family: var(--tp-font-heading); }
.tp-widget-popular-title a:hover { color: var(--tp-primary); }
.tp-widget-popular-date { font-size: 0.75rem; color: var(--tp-gray-500); margin-top: 4px; font-family: var(--tp-font-main); }
.tp-widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-widget-tags a {
    padding: 6px 14px; background: var(--tp-gray-100); border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; color: var(--tp-gray-700); transition: all var(--tp-transition);
    font-family: var(--tp-font-main);
}
.tp-widget-tags a:hover { background: var(--tp-primary); color: var(--tp-white); }

/* ===== Single Post ===== */
.tp-single { padding-top: 30px; padding-bottom: 50px; }
.tp-single-header { text-align: center; max-width: 800px; margin: 0 auto 30px; }
.tp-single-cat {
    display: inline-block; padding: 6px 18px; background: var(--tp-primary-light);
    color: var(--tp-primary); border-radius: 20px; font-size: 0.82rem; font-weight: 700;
    margin-bottom: 16px; font-family: var(--tp-font-main);
}
.tp-single-title { font-size: 2rem; font-weight: 800; line-height: 1.4; margin-bottom: 18px; font-family: var(--tp-font-heading); }
.tp-single-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; font-size: 0.88rem; color: var(--tp-gray-500); flex-wrap: wrap;
    font-family: var(--tp-font-main);
}
.tp-single-meta-item { display: flex; align-items: center; gap: 6px; }
.tp-single-meta svg { width: 16px; height: 16px; }
.tp-single-author-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tp-single-thumb { border-radius: var(--tp-radius-lg); overflow: hidden; margin-bottom: 30px; max-height: 480px; }
.tp-single-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Content */
.tp-content {
    background: var(--tp-white); border-radius: var(--tp-radius); padding: 40px;
    box-shadow: var(--tp-shadow); margin-bottom: 30px;
}
.tp-content p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.9; font-family: var(--tp-font-main); }
.tp-content h2 { font-size: 1.5rem; margin: 30px 0 16px; padding-right: 16px; border-right: 4px solid var(--tp-primary); font-family: var(--tp-font-heading); }
.tp-content h3 { font-size: 1.25rem; margin: 24px 0 12px; font-family: var(--tp-font-heading); }
.tp-content h4 { font-size: 1.1rem; margin: 20px 0 10px; font-family: var(--tp-font-heading); }
.tp-content ul, .tp-content ol { margin: 16px 0; padding-right: 24px; }
.tp-content ul { list-style: disc; }
.tp-content ol { list-style: decimal; }
.tp-content li { margin-bottom: 8px; line-height: 1.8; font-family: var(--tp-font-main); }
.tp-content blockquote {
    margin: 24px 0; padding: 24px 30px;
    background: linear-gradient(135deg, rgba(0,102,255,0.04), rgba(0,212,170,0.04));
    border-right: 4px solid var(--tp-primary); border-radius: var(--tp-radius-sm);
    font-style: italic; color: var(--tp-gray-700);
}
.tp-content pre {
    background: var(--tp-dark); color: #E0E6F1; padding: 24px;
    border-radius: var(--tp-radius-sm); overflow-x: auto; margin: 20px 0;
    font-family: var(--tp-font-mono); font-size: 0.9rem; line-height: 1.7;
    direction: ltr; text-align: left;
}
.tp-content code {
    font-family: var(--tp-font-mono); background: var(--tp-gray-100);
    padding: 2px 8px; border-radius: 4px; font-size: 0.88rem; color: var(--tp-accent-red); direction: ltr;
}
.tp-content pre code { background: none; padding: 0; color: inherit; }
.tp-content img { border-radius: var(--tp-radius-sm); margin: 20px auto; }
.tp-content a { color: var(--tp-primary); text-decoration: underline; text-underline-offset: 3px; }
.tp-content a:hover { color: var(--tp-primary-dark); }
.tp-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.tp-content th, .tp-content td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--tp-gray-200); font-family: var(--tp-font-main); }
.tp-content th { background: var(--tp-gray-100); font-weight: 700; }

/* TOC */
.tp-toc { background: var(--tp-gray-100); border-radius: var(--tp-radius); padding: 24px; margin-bottom: 30px; }
.tp-toc-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--tp-font-heading); }
.tp-toc ol { list-style: decimal; padding-right: 20px; }
.tp-toc li { padding: 6px 0; font-size: 0.9rem; font-family: var(--tp-font-main); }
.tp-toc a { color: var(--tp-gray-700); }
.tp-toc a:hover { color: var(--tp-primary); }

/* Share */
.tp-share { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--tp-gray-200); margin-top: 20px; }
.tp-share-label { font-size: 0.9rem; font-weight: 700; color: var(--tp-gray-700); font-family: var(--tp-font-main); }
.tp-share a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all var(--tp-transition);
}
.tp-share-twitter { background: #E8F5FD; color: #1DA1F2; }
.tp-share-facebook { background: #E7F0FD; color: #1877F2; }
.tp-share-whatsapp { background: #E7F8EE; color: #25D366; }
.tp-share-telegram { background: #E6F2FA; color: #0088cc; }
.tp-share-linkedin { background: #E8F1F8; color: #0077B5; }
.tp-share-copy { background: var(--tp-gray-100); color: var(--tp-gray-700); }
.tp-share a:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Author Box */
.tp-author-box {
    display: flex; gap: 20px; padding: 30px; background: var(--tp-white);
    border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); margin-bottom: 30px;
}
.tp-author-box-img { width: 80px; height: 80px; min-width: 80px; border-radius: 50%; object-fit: cover; }
.tp-author-box-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; font-family: var(--tp-font-heading); }
.tp-author-box-bio { font-size: 0.9rem; color: var(--tp-text-light); line-height: 1.7; font-family: var(--tp-font-main); }

/* Post Navigation */
.tp-post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px;
}
.tp-post-nav-item {
    background: var(--tp-white); border-radius: var(--tp-radius); padding: 20px;
    box-shadow: var(--tp-shadow); transition: all var(--tp-transition);
}
.tp-post-nav-item:hover { box-shadow: var(--tp-shadow-md); }
.tp-post-nav-label { font-size: 0.78rem; color: var(--tp-gray-500); margin-bottom: 6px; font-family: var(--tp-font-main); }
.tp-post-nav-title { font-size: 0.92rem; font-weight: 700; line-height: 1.5; font-family: var(--tp-font-heading); }
.tp-post-nav-title:hover { color: var(--tp-primary); }

/* Related */
.tp-related { margin-bottom: 30px; }
.tp-related-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; padding-right: 16px; border-right: 4px solid var(--tp-primary); font-family: var(--tp-font-heading); }
.tp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Comments */
.tp-comments { background: var(--tp-white); border-radius: var(--tp-radius); padding: 30px; box-shadow: var(--tp-shadow); }
.tp-comments-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; font-family: var(--tp-font-heading); }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--tp-gray-100); }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author img { width: 44px; height: 44px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: 0.95rem; font-family: var(--tp-font-heading); }
.comment-metadata { font-size: 0.78rem; color: var(--tp-gray-500); margin-bottom: 10px; }
.comment-content p { font-size: 0.92rem; line-height: 1.7; }
.comment-reply-link { font-size: 0.82rem; font-weight: 600; color: var(--tp-primary); }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-sm); font-family: var(--tp-font-main);
    font-size: 0.92rem; color: var(--tp-dark); margin-bottom: 16px;
    transition: border-color var(--tp-transition); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--tp-primary); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
    background: var(--tp-primary); color: var(--tp-white); border: none;
    padding: 12px 32px; border-radius: var(--tp-radius-sm);
    font-family: var(--tp-font-main); font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: all var(--tp-transition);
}
.comment-form .submit:hover { background: var(--tp-primary-dark); }

/* ===== Page ===== */
.tp-page { padding-top: 30px; padding-bottom: 50px; }
.tp-page-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 30px; font-family: var(--tp-font-heading); }
.tp-page-content {
    background: var(--tp-white); border-radius: var(--tp-radius); padding: 40px;
    box-shadow: var(--tp-shadow); max-width: 900px; margin: 0 auto;
}

/* ===== Pagination ===== */
.tp-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.tp-pagination a, .tp-pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: var(--tp-radius-sm); font-weight: 600; font-size: 0.9rem;
    transition: all var(--tp-transition); font-family: var(--tp-font-main);
}
.tp-pagination a { background: var(--tp-white); color: var(--tp-gray-700); box-shadow: var(--tp-shadow); }
.tp-pagination a:hover { background: var(--tp-primary); color: var(--tp-white); }
.tp-pagination .current { background: var(--tp-primary); color: var(--tp-white); }

/* ===== Breadcrumb ===== */
.tp-breadcrumb {
    display: flex; align-items: center; gap: 8px; font-size: 0.82rem;
    color: var(--tp-gray-500); margin-bottom: 20px; flex-wrap: wrap; font-family: var(--tp-font-main);
}
.tp-breadcrumb a { color: var(--tp-gray-500); }
.tp-breadcrumb a:hover { color: var(--tp-primary); }

/* ===== Footer ===== */
.tp-footer { background: var(--tp-dark); color: var(--tp-gray-400); padding: 50px 0 0; margin-top: 50px; }
.tp-footer-grid {
    display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--tp-gray-800);
}
.tp-footer-col-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.tp-footer-col-3 { grid-template-columns: 2fr 1fr 1fr; }
.tp-footer-col-2 { grid-template-columns: 1fr 1fr; }
.tp-footer-about p { font-size: 0.9rem; line-height: 1.8; margin-top: 16px; font-family: var(--tp-font-main); }
.tp-footer-logo { font-family: var(--tp-font-heading); font-size: 1.5rem; font-weight: 800; color: var(--tp-white); }
.tp-footer-logo span { color: var(--tp-primary); }
.tp-footer-title { font-size: 1rem; font-weight: 700; color: var(--tp-white); margin-bottom: 18px; font-family: var(--tp-font-heading); }
.tp-footer-links { list-style: none; }
.tp-footer-links a { display: block; padding: 6px 0; font-size: 0.88rem; color: var(--tp-gray-400); transition: all var(--tp-transition); font-family: var(--tp-font-main); }
.tp-footer-links a:hover { color: var(--tp-primary); padding-right: 6px; }
.tp-footer-social { display: flex; gap: 10px; margin-top: 18px; }
.tp-footer-social a {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: var(--tp-gray-800); border-radius: 50%; color: var(--tp-gray-400); transition: all var(--tp-transition);
}
.tp-footer-social a:hover { background: var(--tp-primary); color: var(--tp-white); }
.tp-footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; font-size: 0.82rem; font-family: var(--tp-font-main);
}

/* ===== Archive ===== */
.tp-archive { padding-top: 30px; padding-bottom: 50px; }
.tp-archive-header { text-align: center; padding: 30px 0; }
.tp-archive-title { font-size: 1.6rem; font-weight: 800; font-family: var(--tp-font-heading); }
.tp-archive-desc { color: var(--tp-text-light); margin-top: 8px; font-family: var(--tp-font-main); }

/* ===== 404 ===== */
.tp-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 30px; }
.tp-404-code { font-size: 8rem; font-weight: 900; color: var(--tp-gray-200); line-height: 1; font-family: var(--tp-font-heading); }
.tp-404-title { font-size: 1.6rem; margin: 16px 0 12px; font-family: var(--tp-font-heading); }
.tp-404-text { color: var(--tp-text-light); margin-bottom: 24px; font-family: var(--tp-font-main); }

/* ===== Scroll to Top ===== */
.tp-scroll-top {
    position: fixed; bottom: 30px; left: 30px; width: 46px; height: 46px;
    background: var(--tp-primary); color: var(--tp-white); border: none; border-radius: 50%;
    cursor: pointer; z-index: 999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--tp-transition);
    box-shadow: 0 4px 16px rgba(0,102,255,0.3);
}
.tp-scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-scroll-top:hover { background: var(--tp-primary-dark); transform: translateY(-3px); }

/* ===== Admin Panel Styles ===== */
.tp-admin-wrap { max-width: 1100px; margin: 20px auto; }
.tp-admin-header { background: linear-gradient(135deg, var(--tp-primary), #4338CA); color: #fff; padding: 30px; border-radius: 12px 12px 0 0; }
.tp-admin-header h1 { font-size: 1.5rem; margin: 0; color: #fff; }
.tp-admin-header p { opacity: 0.8; margin-top: 6px; }
.tp-admin-tabs { display: flex; background: #f0f0f1; border-bottom: 1px solid #ddd; overflow-x: auto; }
.tp-admin-tab { padding: 14px 24px; cursor: pointer; border: none; background: none; font-size: 14px; font-weight: 600; color: #50575e; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; }
.tp-admin-tab:hover { color: #2271b1; }
.tp-admin-tab.active { color: #2271b1; border-bottom-color: #2271b1; background: #fff; }
.tp-admin-panel { display: none; padding: 30px; background: #fff; border: 1px solid #ddd; border-top: none; }
.tp-admin-panel.active { display: block; }
.tp-admin-field { margin-bottom: 24px; }
.tp-admin-field label { display: block; font-weight: 600; margin-bottom: 6px; color: #1d2327; }
.tp-admin-field input[type="text"], .tp-admin-field input[type="url"],
.tp-admin-field input[type="number"], .tp-admin-field textarea,
.tp-admin-field select { width: 100%; max-width: 500px; padding: 8px 12px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px; }
.tp-admin-field textarea { min-height: 100px; }
.tp-admin-field .description { color: #646970; font-size: 13px; margin-top: 4px; }
.tp-admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tp-admin-toggle { display: flex; align-items: center; gap: 10px; }
.tp-admin-toggle input[type="checkbox"] { width: 18px; height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .tp-layout-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-layout { grid-template-columns: 1fr; }
    .tp-sidebar { position: static; }
    .tp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px; }
    .tp-layout-featured { grid-template-columns: 1fr; }
    .tp-layout-featured .tp-card:first-child { grid-row: auto; }
    .tp-layout-featured .tp-card:first-child .tp-card-thumb { min-height: 300px; }
    .tp-layout-featured .tp-card:not(:first-child) { flex-direction: row; }
    .tp-related-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-slider-style-3 .tp-slide { min-width: calc(50% - 10px); }
}

@media (max-width: 768px) {
    :root { --tp-header-height: 60px; }
    .tp-nav { display: none !important; }
    .tp-menu-toggle { display: flex; }
    .tp-slide { height: 380px !important; }
    .tp-slide-title { font-size: 1.3rem !important; }
    .tp-slide-content { padding: 40px 20px 30px; }
    .tp-layout-grid, .tp-layout-two-col { grid-template-columns: 1fr; }
    .tp-layout-list .tp-card { flex-direction: column; }
    .tp-layout-list .tp-card-thumb { width: 100%; height: 200px; min-width: 100%; }
    .tp-layout-featured .tp-card:not(:first-child) { flex-direction: column; }
    .tp-layout-featured .tp-card:not(:first-child) .tp-card-thumb { width: 100%; height: 180px; min-width: 100%; }
    .tp-single-title { font-size: 1.5rem; }
    .tp-content { padding: 24px; }
    .tp-content p { font-size: 0.98rem; }
    .tp-footer-grid { grid-template-columns: 1fr !important; }
    .tp-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .tp-author-box { flex-direction: column; text-align: center; }
    .tp-author-box-img { margin: 0 auto; }
    .tp-related-grid { grid-template-columns: 1fr; }
    .tp-share { flex-wrap: wrap; }
    .tp-page-content { padding: 24px; }
    .tp-section-title { font-size: 1.2rem; }
    .tp-slider-style-3 .tp-slide { min-width: 85%; }
    .tp-post-nav { grid-template-columns: 1fr; }
    .tp-ticker-label { padding: 0 14px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .tp-slide { height: 320px !important; }
    .tp-slide-title { font-size: 1.1rem !important; }
    .tp-single-title { font-size: 1.3rem; }
    .tp-single-meta { flex-direction: column; gap: 8px; }
    .tp-content { padding: 18px; }
}

/* ===== WordPress Defaults ===== */
.alignleft { float: right; margin-left: 20px; margin-bottom: 10px; }
.alignright { float: left; margin-right: 20px; margin-bottom: 10px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--tp-gray-500); text-align: center; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.wp-block-image { margin: 20px 0; }
.wp-block-quote { margin: 24px 0; padding: 20px 24px; border-right: 4px solid var(--tp-primary); background: var(--tp-gray-100); border-radius: var(--tp-radius-sm); }

/* ===== Lazy Loading Visual Effects ===== */

/* Base: all lazy images start hidden/transformed */
img.tp-lazy-img {
    transition: opacity 0.45s ease, filter 0.45s ease;
}

/* Blur style */
img.tp-lazy-blur {
    filter: blur(8px);
    opacity: 0.6;
    transform: scale(1.02);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
img.tp-lazy-blur.tp-lazy-loaded {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

/* Skeleton style */
.tp-card-thumb img.tp-lazy-skeleton,
.tp-single-thumb img.tp-lazy-skeleton,
.tp-related-grid img.tp-lazy-skeleton {
    opacity: 0;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: tp-skeleton-wave 1.5s infinite;
}
img.tp-lazy-skeleton.tp-lazy-loaded {
    animation: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}
/* Skeleton placeholder on parent */
.tp-card-thumb:has(img.tp-lazy-skeleton:not(.tp-lazy-loaded)),
.tp-single-thumb:has(img.tp-lazy-skeleton:not(.tp-lazy-loaded)) {
    background: linear-gradient(90deg, #e2e5f0 25%, #f0f2f8 50%, #e2e5f0 75%);
    background-size: 200% 100%;
    animation: tp-skeleton-wave 1.5s infinite;
}
@keyframes tp-skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade style */
img.tp-lazy-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img.tp-lazy-fade.tp-lazy-loaded {
    opacity: 1;
}

/* Ensure loaded images are always fully visible */
img.tp-lazy-loaded {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* ===== WebP Picture element fix ===== */
picture {
    display: block;
    line-height: 0;
}
.tp-card-thumb picture,
.tp-single-thumb picture {
    width: 100%;
    height: 100%;
}
.tp-card-thumb picture img,
.tp-single-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Single Post Layout Variants ===== */

/* Wide layout - full content width */
.tp-single-wide .tp-content {
    max-width: 100%;
}
.tp-single-wide .tp-layout { display: block; }

/* Centered layout */
.tp-single-centered .tp-single-header { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-single-thumb  { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-content       { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-author-box    { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-post-nav      { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-related       { max-width: 800px; margin-left: auto; margin-right: auto; }
.tp-single-centered .tp-comments      { max-width: 800px; margin-left: auto; margin-right: auto; }

/* Sidebar Left */
.tp-layout-sidebar-left { grid-template-columns: 320px 1fr; }

/* Sidebar sticky variant */
.tp-sidebar-sticky { position: sticky; top: 90px; }

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

/* Minimal nav */
.tp-post-nav-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.tp-post-nav-minimal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    transition: all var(--tp-transition);
    color: var(--tp-text);
}
.tp-post-nav-minimal-item:hover { box-shadow: var(--tp-shadow-md); background: var(--tp-primary-light); }
.tp-post-nav-minimal-item .tp-post-nav-label { display: block; font-size: 0.75rem; color: var(--tp-gray-500); font-family: var(--tp-font-main); }
.tp-post-nav-minimal-item .tp-post-nav-title { display: block; font-size: 0.9rem; font-weight: 700; font-family: var(--tp-font-heading); line-height: 1.4; }
.tp-post-nav-next { justify-content: flex-end; text-align: left; }

/* With thumbnails nav */
.tp-post-nav-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.tp-post-nav-thumb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    padding: 14px;
    box-shadow: var(--tp-shadow);
    transition: all var(--tp-transition);
}
.tp-post-nav-thumb-item:hover { box-shadow: var(--tp-shadow-md); }
.tp-post-nav-thumb-img { width: 80px; min-width: 80px; height: 60px; border-radius: var(--tp-radius-sm); overflow: hidden; }
.tp-post-nav-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-post-nav-thumb-right { flex-direction: row-reverse; }
.tp-post-nav-thumb-body .tp-post-nav-label { display: block; font-size: 0.75rem; color: var(--tp-gray-500); margin-bottom: 4px; font-family: var(--tp-font-main); }
.tp-post-nav-thumb-body .tp-post-nav-title { display: block; font-size: 0.88rem; font-weight: 700; line-height: 1.4; color: var(--tp-dark); font-family: var(--tp-font-heading); }

@media (max-width: 768px) {
    .tp-post-nav-minimal,
    .tp-post-nav-thumbs { grid-template-columns: 1fr; }
    .tp-post-nav-thumb-right { flex-direction: row; }
}

/* ===== Related Posts Styles ===== */

/* Grid 2 */
.tp-related-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* List style */
.tp-related-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.tp-related-list-item {
    display: flex;
    gap: 16px;
    background: var(--tp-white);
    border-radius: var(--tp-radius);
    padding: 14px;
    box-shadow: var(--tp-shadow);
    transition: all var(--tp-transition);
}
.tp-related-list-item:hover { box-shadow: var(--tp-shadow-md); }
.tp-related-list-thumb { width: 140px; min-width: 140px; height: 100px; border-radius: var(--tp-radius-sm); overflow: hidden; }
.tp-related-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-related-list-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tp-related-list-body .tp-card-title { font-size: 0.95rem; margin-bottom: 6px; }
.tp-related-list-body .tp-card-excerpt { font-size: 0.84rem; -webkit-line-clamp: 2; }
.tp-related-date { font-size: 0.78rem; color: var(--tp-gray-500); margin-top: auto; padding-top: 8px; font-family: var(--tp-font-main); }

/* Slider style */
.tp-related-slider-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}
.tp-related-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tp-related-slide {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
}
.tp-related-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    background: var(--tp-white);
    border-radius: 50%;
    box-shadow: var(--tp-shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--tp-transition);
    color: var(--tp-dark);
}
.tp-related-arrow:hover { background: var(--tp-primary); color: var(--tp-white); }
.tp-related-prev { right: 10px; }
.tp-related-next { left: 10px; }

@media (max-width: 768px) {
    .tp-related-grid-2 { grid-template-columns: 1fr; }
    .tp-related-slide  { min-width: 85%; }
    .tp-related-list-thumb { width: 100px; min-width: 100px; height: 80px; }
}

/* ===== Tags wrap ===== */
.tp-tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tp-tag {
    padding: 5px 14px;
    background: var(--tp-gray-100);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tp-gray-700);
    transition: all var(--tp-transition);
}
.tp-tag:hover { background: var(--tp-primary); color: var(--tp-white); }

/* ===== Fix: Grid layout excerpts always show ===== */
/* Ensure excerpts show in all grid layouts */
.tp-layout-grid .tp-card-excerpt,
.tp-layout-two-col .tp-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix: Related posts excerpts */
.tp-related-grid .tp-card-excerpt,
.tp-related-grid-2 .tp-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
    color: var(--tp-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== CLS Fix: Reserve image dimensions ===== */
.tp-card-thumb {
    aspect-ratio: 3 / 2; /* 600x400 */
    background: var(--tp-gray-100);
}
.tp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-single-thumb {
    aspect-ratio: 16 / 9;
    background: var(--tp-gray-100);
    max-height: 520px;
    overflow: hidden;
}
.tp-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix: Slider images CLS — reserve height via CSS, not JS */
.tp-slider-style-1 .tp-slide,
.tp-slider-style-2 .tp-slide {
    height: 500px;
    contain: layout style;
}
.tp-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-slide { position: relative; }

/* ===== Admin Panel - lazy tabs fix ===== */
.tp-admin-panel { min-height: 200px; }

/* =====================================================
   TECHPULSE v2.3 — NEW & FIXED STYLES
   ===================================================== */

/* ===== FIX: Non-composited animations → use transform/opacity only ===== */
/* Slider CLS fix: use contain to prevent layout shifts from content */
#tp-slider {
    contain: layout style;
}
.tp-slider-style-1 .tp-slide,
.tp-slider-style-2 .tp-slide {
    contain: layout style;
    will-change: transform;
}

/* CLS fix: tp-slide-content — fixed height instead of auto to prevent reflow */
.tp-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    /* Reserve space so it doesn't cause layout shift */
    min-height: 120px;
    contain: layout;
    /* Don't animate height or top — use only transform/opacity */
    transform: translateZ(0);
}

/* Images: use transform-based lazy animations instead of filter where possible */
.tp-lazy-img {
    display: block;
    /* Use will-change only on transform/opacity — not filter (non-composited) */
}

/* Blur effect — acceptable filter use (only during load, not continuous) */
.tp-lazy-blur {
    filter: blur(12px);
    transform: scale(1.04);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.tp-lazy-blur.tp-lazy-loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Skeleton effect — composited (no filter) */
.tp-lazy-skeleton {
    background: linear-gradient(90deg, #e8eaf0 25%, #f5f6fa 50%, #e8eaf0 75%);
    background-size: 200% 100%;
    animation: tp-skeleton-wave 1.5s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tp-lazy-skeleton.tp-lazy-loaded {
    animation: none;
    background: none;
    opacity: 1;
}
@keyframes tp-skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade effect — composited (opacity only) */
.tp-lazy-fade {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.tp-lazy-fade.tp-lazy-loaded { opacity: 1; }

/* Zoom effect — composited (transform + opacity) */
.tp-lazy-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}
.tp-lazy-zoom.tp-lazy-loaded {
    opacity: 1;
    transform: scale(1);
}

/* Slide effect — composited (transform + opacity) */
.tp-lazy-slide {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.tp-lazy-slide.tp-lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FIX: Slider dots — touch targets 44x44px minimum ===== */
.tp-slider-dot {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}
/* The visible dot inside the 44px touch target */
.tp-slider-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    display: block;
}
.tp-slider-dot.active::before {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}
/* Focus style for keyboard users */
.tp-slider-dot:focus-visible::before {
    outline: 2px solid var(--tp-primary);
    outline-offset: 3px;
}

/* ===== FIX: Header font visibility improvements ===== */
/* Improved contrast for nav items */
.tp-nav > li > a {
    color: var(--tp-gray-800);
    font-weight: 600;
    letter-spacing: -0.01em;
    /* Ensure text rendering is crisp */
    -webkit-font-smoothing: antialiased;
}
.tp-header-inner {
    gap: 20px;
}
/* Logo text improved visibility */
.tp-logo-text {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--tp-dark);
    letter-spacing: -0.03em;
    text-shadow: none;
}
.tp-logo-accent,
.tp-logo-text span { color: var(--tp-primary); }

/* Header actions (search + hamburger) */
.tp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tp-header-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tp-radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tp-gray-700);
    transition: background var(--tp-transition), color var(--tp-transition);
}
.tp-header-btn:hover,
.tp-header-btn:focus-visible {
    background: var(--tp-primary-light);
    color: var(--tp-primary);
    outline: none;
}
.tp-header-btn:focus-visible {
    outline: 2px solid var(--tp-primary);
    outline-offset: 2px;
}

/* ===== FIX: Footer hover effects on links ===== */
.tp-footer {
    background: var(--tp-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: 60px;
    position: relative;
}
.tp-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-secondary));
}
.tp-footer-grid {
    display: grid;
    gap: 32px;
    padding-bottom: 48px;
}
.tp-footer-col-2 { grid-template-columns: 1.5fr 1fr; }
.tp-footer-col-3 { grid-template-columns: 1.5fr 1fr 1fr; }
.tp-footer-col-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

.tp-footer-logo {
    font-family: var(--tp-font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.tp-footer-logo-accent { color: var(--tp-primary); }

.tp-footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    max-width: 280px;
}

/* Footer social icons — improved hover */
.tp-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.tp-footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    /* Composited transition */
    transition: background var(--tp-transition), color var(--tp-transition), transform var(--tp-transition);
    will-change: transform;
}
.tp-footer-social-link:hover {
    background: var(--tp-primary);
    color: #fff;
    transform: translateY(-3px);
}
.tp-footer-social-link:focus-visible {
    outline: 2px solid var(--tp-primary);
    outline-offset: 3px;
}

.tp-footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
}
.tp-footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--tp-primary);
}

.tp-footer-col .tp-footer-widget a,
.tp-footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    padding: 5px 0;
    /* Composited hover */
    transition: color var(--tp-transition), transform var(--tp-transition);
    will-change: transform;
    position: relative;
    padding-right: 14px;
}
.tp-footer-col .tp-footer-widget a::before,
.tp-footer-col a::before {
    content: '›';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tp-primary);
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--tp-transition), transform var(--tp-transition);
}
.tp-footer-col .tp-footer-widget a:hover,
.tp-footer-col a:hover {
    color: #fff;
    transform: translateX(-4px);
}
.tp-footer-col .tp-footer-widget a:hover::before,
.tp-footer-col a:hover::before {
    opacity: 1;
}

/* Footer bottom bar */
.tp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.tp-footer-copy {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
}
/* Footer nav links hover */
.tp-footer-nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    flex-wrap: wrap;
}
.tp-footer-nav a {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--tp-transition);
    display: inline;
    padding: 0;
}
.tp-footer-nav a:hover {
    color: var(--tp-primary);
    transform: none;
}
.tp-footer-nav a::before { display: none; }

/* ===== FIX: Share button ===== */
.tp-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.tp-share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--tp-text-light);
}
.tp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tp-gray-100);
    color: var(--tp-gray-700);
    border: none;
    cursor: pointer;
    transition: background var(--tp-transition), color var(--tp-transition), transform var(--tp-transition);
    will-change: transform;
    text-decoration: none;
    position: relative;
}
.tp-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}
.tp-share-twitter:hover  { background: #000; }
.tp-share-facebook:hover { background: #1877F2; }
.tp-share-whatsapp:hover { background: #25D366; }
.tp-share-telegram:hover { background: #229ED9; }
.tp-share-linkedin:hover { background: #0A66C2; }
.tp-share-copy:hover     { background: var(--tp-primary); }

/* Copy button feedback tooltip */
.tp-share-copy-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-dark);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--tp-font-main);
}
.tp-share-copy-tip:empty { display: none; }

/* ===== FIX: Card meta contrast (screenshot 11) ===== */
.tp-card-meta-item {
    color: var(--tp-text-light);
    font-size: 0.78rem;
}
/* Ensure sufficient contrast ratio on card backgrounds */
.tp-card {
    background: var(--tp-white);
}

/* ===== FIX: List items must be inside ul/ol — fix footer nav ===== */
/* Already fixed in footer.php — CSS to support the structure */
.tp-footer-nav > nav > ul,
.tp-footer-links { list-style: none; }

/* ===== Widget Style Themes (5 styles) ===== */
/* Controlled via body class tp-widget-{style} from options */

/* Classic (default) — already in base CSS, reinforce */
.tp-widget-classic .tp-widget,
body:not([class*="tp-widget-"]) .tp-widget {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}
.tp-widget-classic .tp-widget-title,
body:not([class*="tp-widget-"]) .tp-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-text);
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--tp-primary);
}

/* Modern */
.tp-widget-modern .tp-widget {
    background: var(--tp-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: box-shadow var(--tp-transition);
}
.tp-widget-modern .tp-widget:hover {
    box-shadow: 0 8px 32px rgba(0,102,255,.12);
}
.tp-widget-modern .tp-widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tp-primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--tp-primary);
}

/* Card */
.tp-widget-card .tp-widget {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}
.tp-widget-card .tp-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--tp-primary);
    padding: 10px 16px;
    margin: 0 0 0;
    border: none;
}
.tp-widget-card .tp-widget > *:not(.tp-widget-title) {
    padding: 0 16px 16px;
}
.tp-widget-card .tp-widget-popular-list,
.tp-widget-card .tp-widget-tags-cloud {
    padding: 16px 16px 0;
}

/* Minimal */
.tp-widget-minimal .tp-widget {
    background: transparent;
    border: none;
    border-top: 3px solid var(--tp-primary);
    padding: 16px 0;
    margin-bottom: 24px;
}
.tp-widget-minimal .tp-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tp-text-light);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: none;
    padding: 0;
}

/* Dark */
.tp-widget-dark .tp-widget {
    background: var(--tp-dark);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #e2e8f0;
}
.tp-widget-dark .tp-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.tp-widget-dark .tp-widget a { color: #93c5fd; }
.tp-widget-dark .tp-widget a:hover { color: #fff; }
.tp-widget-dark .tp-widget-popular-date { color: rgba(255,255,255,0.45); }

/* ===== Sidebar Popular List — semantic ol ===== */
.tp-widget-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tp-widget-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--tp-gray-100);
}
.tp-widget-popular-item:last-child { border-bottom: none; }
.tp-widget-popular-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--tp-primary-light);
    color: var(--tp-primary);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tp-widget-popular-body { flex: 1; min-width: 0; }
.tp-widget-popular-title a {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tp-text);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--tp-transition);
}
.tp-widget-popular-title a:hover { color: var(--tp-primary); }
.tp-widget-popular-date {
    font-size: 0.75rem;
    color: var(--tp-text-light);
    margin-top: 3px;
}

/* Tags cloud */
.tp-widget-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.tp-widget-tags-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--tp-gray-100);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tp-text-light);
    transition: background var(--tp-transition), color var(--tp-transition);
    will-change: transform;
}
.tp-widget-tags-cloud a:hover {
    background: var(--tp-primary);
    color: #fff;
}

/* ===== FIX: Accessibility — screen-reader only utility ===== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== TOC: button instead of div ===== */
.tp-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--tp-text);
    padding: 0;
    font-family: var(--tp-font-main);
    width: 100%;
    text-align: right;
}
.tp-toc-title:focus-visible {
    outline: 2px solid var(--tp-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== Mobile nav: support hidden attribute + transition ===== */
.tp-mobile-nav[hidden] { display: none; }
.tp-mobile-nav { display: block; }

/* ===== Search overlay: hidden attribute support ===== */
.tp-search-overlay[hidden] { display: none; }

/* ===== FIX: Reduce DOM depth — flatten where possible ===== */
/* tp-widget-tags was div > a, now uses semantic structure */
.tp-widget-tags .tp-widget-tags-cloud { /* already flat */ }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .tp-footer-grid { grid-template-columns: 1fr !important; }
    .tp-footer-col-4,
    .tp-footer-col-3,
    .tp-footer-col-2 { grid-template-columns: 1fr !important; }
    .tp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .tp-footer-nav ul { justify-content: center; }
    .tp-share { gap: 6px; }
}
