/*
Theme Name: Josemtech
Theme URI: https://josemtech.com
Author: José Miguel Moya Curbelo
Author URI: https://josemtech.com
Description: Dark tech theme for josemtech.com — Data Engineering, Big Data & Instructor blog. Standalone theme with dark navy background, gold accents, and network mesh hero animation.
Version: 0.2.10
Requires at least: 6.0
Tested up to: 6.9.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: josemtech
Tags: blog, custom-menu, featured-images, dark, one-column, two-columns
*/

/* ============================================
   JOSEMTECH — Dark Tech Theme
   Aligned with LinkedIn Branding
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0d1b2a;
    --bg-secondary: #1b2838;
    --bg-tertiary: #243447;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;
    --accent-gold-light: #fbbf24;
    --accent-blue: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --code-bg: #0f172a;
    --success: #10b981;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-gold);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --navbar-height: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-gold-light);
}

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

/* --- Container --- */
.jmt-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* --- WordPress Gutenberg layout containment --- */
.jmt-single__content > * {
    max-width: 100%;
    box-sizing: border-box;
}

.entry-content > *,
.is-layout-constrained > *,
.is-layout-flow > * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Reading Progress Bar --- */
.jmt-reading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* ============================================
   NAVBAR
   ============================================ */
.jmt-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 10000;
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition), box-shadow var(--transition);
}

.jmt-navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.jmt-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.jmt-navbar__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.jmt-navbar__logo:hover {
    color: var(--text-primary);
}

.jmt-navbar__logo-accent {
    color: var(--accent-gold);
}

.jmt-navbar__menu {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-shrink: 0;
}

/* WordPress wp_nav_menu outputs nested <ul><li><a> — style the anchors */
.jmt-navbar__menu li {
    list-style: none;
}

.jmt-navbar__link,
.jmt-navbar__menu a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.jmt-navbar__link:hover,
.jmt-navbar__link.active,
.jmt-navbar__menu a:hover,
.jmt-navbar__menu .current-menu-item > a,
.jmt-navbar__menu .current_page_item > a {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.jmt-navbar__link.active,
.jmt-navbar__menu .current-menu-item > a,
.jmt-navbar__menu .current_page_item > a {
    color: var(--accent-gold);
}

.jmt-navbar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.jmt-navbar__search:focus-within {
    border-color: var(--accent-gold);
}

.jmt-navbar__search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.jmt-navbar__search-input,
.jmt-navbar__search input[type="search"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 140px;
}

.jmt-navbar__search-input::placeholder,
.jmt-navbar__search input[type="search"]::placeholder {
    color: var(--text-muted);
}

/* Hamburger */
.jmt-navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.jmt-navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.jmt-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
    background: linear-gradient(135deg, #0d1b2a 0%, #132236 40%, #1b2838 100%);
}

.jmt-hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.jmt-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    z-index: 2;
}

.jmt-hero__content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
}

.jmt-hero__profile {
    display: flex;
    align-items: center;
    gap: 48px;
}

.jmt-hero__avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.2), 0 0 80px rgba(245, 158, 11, 0.1);
    animation: avatarPulse 4s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.2), 0 0 80px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 50px rgba(245, 158, 11, 0.3), 0 0 100px rgba(245, 158, 11, 0.15); }
}

.jmt-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.jmt-hero__name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jmt-hero__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.jmt-hero__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.jmt-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.jmt-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.08);
    transition: all var(--transition);
}

.jmt-tag:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-gold);
}

.jmt-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.jmt-hero__cta:hover {
    background: var(--accent-gold-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

.jmt-hero__cta svg {
    transition: transform var(--transition);
}

.jmt-hero__cta:hover svg {
    transform: translateX(4px);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.jmt-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.jmt-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    border-radius: 2px;
}

/* ============================================
   POSTS GRID
   ============================================ */
.jmt-posts {
    padding: 80px 0;
}

.jmt-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

/* ============================================
   CARD
   ============================================ */
.jmt-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.jmt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(245, 158, 11, 0.3);
}

.jmt-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.jmt-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.jmt-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-muted);
    transition: all var(--transition);
}

.jmt-card:hover .jmt-card__placeholder {
    color: var(--accent-gold);
}

.jmt-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    backdrop-filter: blur(8px);
}

.jmt-card__badge--ia {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.jmt-card__badge--python {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.jmt-card__badge--spark {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold-light);
}

.jmt-card__badge--maven {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.jmt-card__badge--scala {
    background: rgba(220, 38, 38, 0.2);
    color: #fb7185;
}

.jmt-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jmt-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.jmt-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.jmt-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.jmt-card__title a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.jmt-card__title a:hover {
    color: var(--accent-gold);
}

.jmt-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.jmt-single {
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 80px;
}

.jmt-single__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.jmt-single__header {
    margin-bottom: 40px;
}

.jmt-single__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.jmt-single__breadcrumbs a {
    color: var(--text-secondary);
}

.jmt-single__breadcrumbs a:hover {
    color: var(--accent-gold);
}

.jmt-single__breadcrumbs .separator {
    color: var(--text-muted);
}

.jmt-single__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    margin-bottom: 16px;
}

.jmt-single__title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.jmt-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.jmt-single__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.jmt-single__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

.jmt-single__content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 16px;
    letter-spacing: -0.3px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-gold);
}

.jmt-single__content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.jmt-single__content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.jmt-single__content p {
    margin-bottom: 20px;
}

.jmt-single__content ul,
.jmt-single__content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.jmt-single__content li {
    margin-bottom: 8px;
}

.jmt-single__content code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background: var(--code-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-gold-light);
}

.jmt-single__content pre {
    background: var(--code-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
    border-left: 3px solid var(--accent-gold);
    position: relative;
    max-width: 100%;
}

.jmt-single__content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.jmt-single__content blockquote {
    border-left: 3px solid var(--accent-gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.jmt-single__content a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.jmt-single__content a:hover {
    text-decoration-color: var(--accent-gold);
}

.jmt-single__content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.jmt-single__content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jmt-single__content th,
.jmt-single__content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bg-tertiary);
}

.jmt-single__content th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Author Box */
.jmt-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 48px;
}

.jmt-author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.jmt-author-box__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.jmt-author-box__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.jmt-author-box__role {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.jmt-author-box__bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.jmt-author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-top: 8px;
    color: var(--accent-gold);
}

/* Sidebar TOC */
.jmt-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.jmt-toc {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.jmt-toc__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.jmt-toc__list {
    list-style: none;
}

.jmt-toc__list li {
    margin-bottom: 0;
}

.jmt-toc__list a {
    display: block;
    padding: 6px 0 6px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}

.jmt-toc__list a:hover,
.jmt-toc__list a.active {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
}

.jmt-toc__list .jmt-toc__sub {
    padding-left: 16px;
}

.jmt-toc__list .jmt-toc__sub a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   NAVBAR — CURSOS CTA (GOLD BUTTON)
   ============================================ */
.jmt-navbar__link--cta,
.jmt-navbar__menu .jmt-cta-gold > a {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
    font-weight: 700 !important;
    padding: 6px 18px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
    transition: all var(--transition) !important;
}

.jmt-navbar__link--cta:hover,
.jmt-navbar__menu .jmt-cta-gold > a:hover {
    background: var(--accent-gold-light) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

/* ============================================
   HERO — DUAL CTAs
   ============================================ */
.jmt-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.jmt-hero__cta--outline {
    background: transparent !important;
    color: var(--accent-gold) !important;
    border: 2px solid var(--accent-gold);
    box-shadow: none;
}

.jmt-hero__cta--outline:hover {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

/* ============================================
   COURSES SECTION
   ============================================ */
.jmt-courses {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
}

.jmt-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

.jmt-courses__header {
    text-align: center;
    margin-bottom: 48px;
}

.jmt-courses__header .jmt-section-title {
    display: block;
}

.jmt-courses__header .jmt-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.jmt-courses__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.jmt-course {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
}

.jmt-course::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    opacity: 0;
    transition: opacity var(--transition);
}

.jmt-course:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.2);
    color: var(--text-primary);
}

.jmt-course:hover::before {
    opacity: 1;
}

.jmt-course__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent-gold);
    transition: all var(--transition);
}

.jmt-course:hover .jmt-course__icon {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.jmt-course__image {
    position: relative;
    margin: -32px -24px 16px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.jmt-course__image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.jmt-course:hover .jmt-course__image img {
    transform: scale(1.05);
}

.jmt-course__image .jmt-course__badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.jmt-course__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.jmt-course__badge--new {
    background: #10b981;
}

.jmt-course__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.jmt-course__platform {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.jmt-courses__cta-wrap {
    text-align: center;
    margin-top: 40px;
}

.jmt-courses__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.jmt-courses__cta:hover {
    background: var(--accent-gold-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
}

/* ============================================
   SIDEBAR — COURSES CTA BANNER (Single Post)
   ============================================ */
.jmt-sidebar-cta {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.jmt-sidebar-cta__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.jmt-sidebar-cta__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.jmt-sidebar-cta__text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.jmt-sidebar-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.jmt-sidebar-cta__btn:hover {
    background: var(--accent-gold-light);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

/* Footer courses column */
.jmt-footer__courses a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.jmt-footer__course-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    line-height: 1.4;
}

.jmt-footer__courses-link {
    color: var(--accent-gold) !important;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.jmt-footer {
    background: var(--bg-secondary);
    padding: 64px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.jmt-footer__heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.jmt-footer__heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.jmt-footer__about {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.jmt-footer__avatar {
    flex-shrink: 0;
}

.jmt-footer__avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.jmt-footer__about p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.jmt-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jmt-footer__badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.08);
}

.jmt-footer__links {
    list-style: none;
}

.jmt-footer__links li {
    margin-bottom: 10px;
}

.jmt-footer__links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jmt-footer__links a:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

.jmt-footer__social a svg {
    opacity: 0.7;
    transition: opacity var(--transition);
}

.jmt-footer__social a:hover svg {
    opacity: 1;
}

.jmt-footer__bottom {
    margin-top: 48px;
    padding: 24px 0;
    text-align: center;
}

.jmt-footer__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
    margin-bottom: 24px;
}

.jmt-footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.jmt-footer__bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.jmt-footer__bottom a:hover {
    color: var(--accent-gold);
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.jmt-legal {
    padding: calc(var(--navbar-height) + 48px) 0 64px;
    min-height: 70vh;
}

.jmt-legal__content {
    max-width: 780px;
    margin: 0 auto;
}

.jmt-legal__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.jmt-legal__updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jmt-legal__content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 12px;
}

.jmt-legal__content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.jmt-legal__content ul,
.jmt-legal__content ol {
    margin: 0 0 16px 24px;
}

.jmt-legal__content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 8px;
}

.jmt-legal__content a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

.jmt-legal__content a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.jmt-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.jmt-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   WORDPRESS-SPECIFIC STYLES
   ============================================ */

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

.screen-reader-text:focus {
    background-color: var(--bg-secondary);
    clip: auto !important;
    clip-path: none;
    color: var(--accent-gold);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress image alignments */
.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

.aligncenter {
    display: block;
    margin: 24px auto;
}

.alignwide {
    max-width: calc(var(--container-max) + 100px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* WordPress captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 24px;
}

.wp-caption img {
    border-radius: var(--radius-md);
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

figcaption,
.wp-element-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* WordPress gallery */
.wp-block-gallery {
    margin-bottom: 24px;
}

/* WordPress pagination */
.jmt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.jmt-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.jmt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    text-decoration: none;
}

.jmt-pagination .page-numbers:hover {
    color: var(--accent-gold);
    border-color: rgba(245, 158, 11, 0.3);
}

.jmt-pagination .page-numbers.current {
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 700;
    border-color: var(--accent-gold);
}

/* WordPress post navigation (prev/next) */
.jmt-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.jmt-post-nav__item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
}

.jmt-post-nav__item:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.jmt-post-nav__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.jmt-post-nav__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.jmt-post-nav__title a {
    color: var(--text-primary);
    text-decoration: none;
}

.jmt-post-nav__title a:hover {
    color: var(--accent-gold);
}

.jmt-post-nav__item--next {
    text-align: right;
}

/* WordPress comments */
.jmt-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.jmt-comments__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.comment-list .comment {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 16px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 12px;
}

.reply a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Comment form */
.comment-respond {
    margin-top: 32px;
}

.comment-respond .comment-reply-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    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 16px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    margin-bottom: 16px;
}

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

.comment-form .form-submit input[type="submit"] {
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

/* Archive page header */
.jmt-archive-header {
    padding: calc(var(--navbar-height) + 48px) 0 0;
    text-align: center;
    margin-bottom: 48px;
}

.jmt-archive-header__title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.jmt-archive-header__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search results */
.jmt-search-header {
    padding: calc(var(--navbar-height) + 48px) 0 0;
    text-align: center;
    margin-bottom: 48px;
}

.jmt-search-header__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.jmt-search-header__query {
    color: var(--accent-gold);
}

.jmt-no-results {
    text-align: center;
    padding: 80px 0;
}

.jmt-no-results__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.jmt-no-results__text {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* 404 Page */
.jmt-404 {
    padding: calc(var(--navbar-height) + 80px) 0 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.jmt-404__code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.jmt-404__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.jmt-404__text {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.jmt-404__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .jmt-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .jmt-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .jmt-single__layout {
        grid-template-columns: 1fr;
    }

    .jmt-sidebar {
        position: static;
    }

    .jmt-hero__name {
        font-size: 2.2rem;
    }

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

@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    main, .jmt-single, .jmt-container, .jmt-single__layout,
    .jmt-single__main, .jmt-single__content, .jmt-sidebar {
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .jmt-navbar__menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: rgba(13, 27, 42, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .jmt-navbar__menu.open {
        display: flex;
    }

    .jmt-navbar__toggle {
        display: flex;
    }

    .jmt-navbar__search {
        display: none;
    }

    .jmt-hero__profile {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .jmt-hero__avatar {
        width: 120px;
        height: 120px;
    }

    .jmt-hero__name {
        font-size: 1.8rem;
    }

    .jmt-hero__tags {
        justify-content: center;
    }

    .jmt-hero__ctas {
        justify-content: center;
    }

    .jmt-hero__cta {
        margin: 0 auto;
    }

    .jmt-hero__content {
        padding: 48px 0;
    }

    .jmt-hero {
        min-height: auto;
    }

    .jmt-posts__grid {
        grid-template-columns: 1fr;
    }

    .jmt-courses__grid {
        grid-template-columns: 1fr;
    }

    .jmt-courses {
        padding: 48px 0;
    }

    .jmt-footer__grid {
        grid-template-columns: 1fr;
    }

    .jmt-single__title {
        font-size: 1.8rem;
    }

    .jmt-single__content pre {
        padding: 16px;
    }

    .jmt-single__content th,
    .jmt-single__content td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .jmt-author-box {
        flex-direction: column;
        text-align: center;
    }

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

    .jmt-section-title {
        font-size: 1.5rem;
    }

    .jmt-posts {
        padding: 48px 0;
    }

    .jmt-404__code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .jmt-hero__name {
        font-size: 1.5rem;
    }

    .jmt-hero__title {
        font-size: 1rem;
    }

    .jmt-hero__avatar {
        width: 100px;
        height: 100px;
    }

    .jmt-card__image {
        height: 140px;
    }
}
