:root {
    /* Colors - Premium Corporate Palette (Default Light) */
    --brand-primary:   #0071e3;
    --brand-secondary: #005bb5;
    --brand-accent:    #5ac8fa;
    --gradient-brand:  linear-gradient(135deg, #0071e3 0%, #5ac8fa 100%);
    
    --bg-primary:      #fbfbfd;
    --bg-secondary:    #ffffff;
    --bg-card:         #ffffff;
    --bg-glass:        rgba(255, 255, 255, 0.85);
    
    --text-primary:    #1d1d1f;
    --text-secondary:  #424245;
    --text-muted:      #86868b;
    
    --border-color:    rgba(0, 0, 0, 0.08);
    --input-bg:        #ffffff;
    --input-border:    rgba(0, 0, 0, 0.12);
    --input-focus:     #0071e3;
    
    /* Typography */
    --font-heading:    'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body:       'Inter', -apple-system, sans-serif;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

[data-theme="dark"] {
    --bg-primary:      #000000;
    --bg-secondary:    #121212;
    --bg-card:         #1c1c1e;
    --bg-glass:        rgba(28, 28, 30, 0.85);
    --text-primary:    #f5f5f7;
    --text-secondary:  #a1a1a6;
    --text-muted:      #86868b;
    --border-color:    rgba(255, 255, 255, 0.1);
}


html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--brand-secondary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }

/* Screen reader only */
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; }

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.05); opacity: 1; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0,113,227,0.5); }
    50%       { transform: scale(1.1); box-shadow: 0 0 60px rgba(0,113,227,0.8); }
}
@keyframes ringExpand {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes progressFill {
    from { width: 0%; }
    to   { width: 90%; }
}
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50%       { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

.fade-up         { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1         { animation-delay: 0.2s; }
.delay-2         { animation-delay: 0.4s; }
.delay-3         { animation-delay: 0.6s; }
.delay-4         { animation-delay: 0.8s; }

/* ── Floating Background Orbs ────────────────────────────── */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(0, 113, 227, 0.12); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: rgba(168, 85, 247, 0.08); bottom: -100px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: rgba(90, 200, 250, 0.08); top: 30%; left: 40%; animation-delay: -10s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 100px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}


/* ── Buttons ──────────────────────────────────────────────── */
.smo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px; /* Pill shaped buttons */
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
}

.smo-btn-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: none;
}
.smo-btn-primary:hover {
    background: var(--brand-secondary);
    color: #fff;
    transform: none;
}

.smo-btn-generate {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 113, 227, 0.3);
}
.smo-btn-generate:hover {
    background: var(--brand-secondary);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.4);
    transform: translateY(-1px);
}

.smo-btn-download {
    background: #ffffff;
    color: #1d1d1f;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.smo-btn-download:hover { background: #f5f5f7; color: #1d1d1f; border-color: rgba(0,0,0,0.2); transform: translateY(-1px); }

.smo-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.smo-btn-ghost:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(0,113,227,0.05);
}

/* ── Form Elements ────────────────────────────────────────── */
.smo-input, .smo-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.smo-input:focus, .smo-select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.15);
}
.smo-input::placeholder { color: var(--text-muted); }
.smo-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.smo-select--sm { padding: 8px 36px 8px 14px; font-size: 0.875rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    transition: var(--transition);
}


[data-theme="dark"] .site-header {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .header-inner { padding: 0 32px; }
}




.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Nav Menu */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.nav-menu,
#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li,
#primary-menu li {
    display: inline-flex !important;
    margin: 0 !important;
}



.nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: #424245 !important; /* Professional Dark Grey */
    transition: var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--brand-primary) !important;
}

[data-theme="dark"] .nav-menu li a {
    color: #a1a1a6 !important;
}

[data-theme="dark"] .nav-menu li a:hover,
[data-theme="dark"] .nav-menu li.current-menu-item a {
    color: #fff !important;
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    height: 44px;
    padding: 0 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    color: var(--text-primary);
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="dark"] .theme-toggle {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}


.theme-toggle:hover {
    border-color: var(--brand-primary);
}

.toggle-icon {
    font-size: 1.1rem;
}



.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg), var(--inner-glow);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.lang-dropdown li a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Logo Refinement */
.site-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    white-space: nowrap;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-brand);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.logo-icon img {
    /* No inversion in light mode - keeps original icon colors */
}

[data-theme="dark"] .logo-icon img {
    filter: brightness(0) invert(1);
}


/* Hamburger */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0 60px;
    background: transparent;
}



.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(90, 200, 250, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 113, 227, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(90, 200, 250, 0.03) 0px, transparent 50%),
        var(--bg-primary);
    z-index: 1;
}

[data-theme="dark"] .hero-bg-gradient {
    background: 
        radial-gradient(at 50% 0%, rgba(0, 113, 227, 0.15) 0px, transparent 50%),
        #000000;
}



/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}
.hero-particles::before {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,113,227,0.12) 0%, transparent 70%);
    top: 20%; left: 10%;
}
.hero-particles::after {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    bottom: 20%; right: 15%;
    animation-delay: 3s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 30%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.5;
    font-weight: 450;
}

/* ── GENERATOR CARD ────────────────────────────────────────── */
.generator-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-brand);
}


.generator-form { display: flex; flex-direction: column; gap: 20px; }

.form-group--topic .topic-input-wrap {
    position: relative;
}
.topic-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}
.topic-input { padding-left: 48px; font-size: 1.05rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.option-checkbox:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--brand-primary);
}
.option-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}
.checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}
.option-checkbox input:checked ~ .checkbox-box {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.option-checkbox input:checked ~ .checkbox-box::after {
    display: block;
}
.option-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.option-checkbox input:checked ~ .option-label {
    color: var(--text-primary);
}

.smo-error {
    padding: 12px 16px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--border-radius-sm);
    color: #EF4444;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-icon { font-size: 1.1rem; }
.btn-loading { display: flex; align-items: center; gap: 10px; }
.btn-text[hidden], .btn-loading[hidden] { display: none !important; }
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.generator-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
[data-theme="light"] .generator-counter { color: var(--text-muted); }

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}
.hero-tag {
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.hero-tag:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}


/* ── LOADING SECTION ──────────────────────────────────────── */
.loading-section { padding: 80px 0; }

.loading-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}
.loading-orb {
    position: absolute;
    inset: 20%;
    background: var(--gradient-brand);
    border-radius: 50%;
    animation: orbPulse 2s ease-in-out infinite;
}
.loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0,113,227,0.4);
    animation: ringExpand 2s ease-out infinite;
}
.loading-ring--2 { animation-delay: 1s; }

.loading-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.loading-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

.loading-progress {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}
.loading-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: progressFill 18s ease-out forwards;
}

/* ── RESULTS SECTION ──────────────────────────────────────── */
.results-section { padding: 40px 0 80px; }

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.results-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
}
.results-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.control-group { display: flex; flex-direction: column; gap: 4px; }
.control-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

/* Slides Container */
.slides-container {
    display: grid;
    gap: 24px;
}

/* Individual Slide Card — Clean White Slidemake-style Layout */
.slide-card {
    position: relative;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    color: #1a1a1a;
}
.slide-card::before {
    display: none; /* Remove geometric background pattern */
}

/* slide-card-inner is always a simple flex column — NOT a grid */
.slide-card-inner {
    position: relative;
    padding: 32px 36px 28px;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.slide-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 2.8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    color: #111111;
    display: block;
    line-height: 1.25;
    padding-right: 60px; /* space for slide number */
    border-bottom: 2px solid #3b82f6;
}
/* Removed old ::after styling completely to fix 'two lines' bug */

/* ── Body row: bullets LEFT, image RIGHT ─────────────── */
.slide-body-flex {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
}

/* Bullets column — takes remaining space */
.slide-bullets {
    flex: 1;
    min-width: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.slide-bullet {
    font-size: clamp(0.88rem, 1.7vw, 1rem);
    line-height: 1.65;
    font-weight: 400;
    color: #374151;
    margin-bottom: 13px;
    display: block;
}
.slide-bullet-dot {
    display: none;
}

/* Slide number — top right, outside flow */
.slide-number {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
}

/* Image column — fixed 280px wide, always on right */
.slide-card.has-image .slide-card-inner {
    /* No grid — body-flex handles the split */
    display: flex;
    flex-direction: column;
    padding: 32px 36px 28px;
}
.slide-card.has-image .slide-body-flex {
    flex-direction: row;
    gap: 28px;
    align-items: flex-start;
}
.slide-card.has-image .slide-bullets {
    flex: 1;
    min-width: 0;
}
.slide-card.has-image .slide-image-container {
    flex: 0 0 280px;
    width: 280px;
    margin-top: 0;
}

/* Image elements */
.slide-image-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 280px;
    width: 280px;
    margin-top: 0;
}
.slide-image-wrapper {
    display: flex;
    flex-direction: column;
}
.slide-active-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.slide-image-meta {
    padding: 5px 0 0;
}
.image-source-link {
    font-size: 0.72rem;
    color: #3b82f6;
    text-decoration: none;
    display: block;
}

/* Theme overrides — keep existing themes but update base white card */
.slide-theme-cosmic  { background: #0D0D1A !important; color: #fff; }
.slide-theme-cosmic  .slide-title { color: #7C3AED; font-family: Georgia, serif; border-bottom: 2px solid #7C3AED; }
.slide-theme-cosmic  .slide-bullet { color: #D4CCFF; }

.slide-theme-midnight { background: #0F172A !important; color: #fff; }
.slide-theme-midnight .slide-title { color: #60A5FA; font-family: Georgia, serif; border-bottom: 2px solid #60A5FA; }
.slide-theme-midnight .slide-bullet { color: #CBD5E1; }

.slide-theme-aurora  { background: #064E3B !important; color: #fff; }
.slide-theme-aurora  .slide-title { color: #6EE7B7; font-family: Georgia, serif; border-bottom: 2px solid #10B981; }
.slide-theme-aurora  .slide-bullet { color: #D1FAE5; }

.slide-theme-ember   { background: #450A0A !important; color: #fff; }
.slide-theme-ember   .slide-title { color: #FCA5A5; font-family: Georgia, serif; border-bottom: 2px solid #EF4444; }
.slide-theme-ember   .slide-bullet { color: #FEE2E2; }

.slide-theme-ocean   { background: #0C4A6E !important; color: #fff; }
.slide-theme-ocean   .slide-title { color: #7DD3FC; font-family: Georgia, serif; border-bottom: 2px solid #0EA5E9; }
.slide-theme-ocean   .slide-bullet { color: #E0F2FE; }

.slide-theme-forest  { background: #1A2F1A !important; color: #fff; }
.slide-theme-forest  .slide-title { color: #86EFAC; font-family: Georgia, serif; border-bottom: 2px solid #22C55E; }
.slide-theme-forest  .slide-bullet { color: #DCFCE7; }

.slide-theme-minimal { background: #FFFFFF !important; color: #111111; }
.slide-theme-minimal .slide-title { color: #111111; font-family: Georgia, serif; border-bottom: 2px solid #3b82f6; }
.slide-theme-minimal .slide-bullet { color: #374151; }

.slide-theme-corporate { background: #1E293B !important; color: #F1F5F9; }
.slide-theme-corporate .slide-title { color: #F59E0B; font-family: Georgia, serif; border-bottom: 2px solid #F59E0B; }
.slide-theme-corporate .slide-bullet { color: #F1F5F9; }

/* All dark themes: hide bullet dot, use paragraph style */
.slide-theme-cosmic .slide-bullet-dot,
.slide-theme-midnight .slide-bullet-dot,
.slide-theme-aurora .slide-bullet-dot,
.slide-theme-ember .slide-bullet-dot,
.slide-theme-ocean .slide-bullet-dot,
.slide-theme-forest .slide-bullet-dot,
.slide-theme-corporate .slide-bullet-dot { display: none; }

/* References Slide Styling */
.slide-references { background: #f8f9fa !important; border-left: 4px solid #3b82f6 !important; }
.slide-references .slide-title { color: #1d4ed8 !important; }
.slide-references .slide-bullet { font-size: 0.88rem; color: #6b7280; font-family: var(--font-mono); }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header .section-title { text-align: left; margin-bottom: 0; }
.view-all-link { font-weight: 600; color: var(--brand-primary); font-size: 0.9rem; }
.view-all-link:hover { color: var(--brand-secondary); }

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

.step-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card:hover::before { opacity: 1; }

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── FEATURES SECTION ─────────────────────────────────────── */
.features-section { padding: var(--section-padding) 0; }

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

.feature-card {
    padding: 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── BLOG SECTION ─────────────────────────────────────────── */
.blog-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }

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

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.post-card-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-img { transform: scale(1.05); }

.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.post-card-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-badge {
    padding: 3px 10px;
    background: rgba(124,58,237,0.1);
    color: var(--brand-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-card-title { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--brand-primary); }

.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.post-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.meta-sep { margin: 0 6px; }

.post-card-link { font-size: 0.875rem; font-weight: 600; color: var(--brand-primary); }
.post-card-link:hover { color: var(--brand-secondary); }

/* ── ARCHIVE HERO ─────────────────────────────────────────── */
.main-wrap { padding-top: 72px; min-height: calc(100vh - 72px); }

.archive-hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.archive-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.archive-description { color: var(--text-muted); }

/* ── SINGLE ARTICLE ───────────────────────────────────────── */
.single-article { padding: 40px 0 80px; }

.article-header { margin-bottom: 32px; }
.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.article-featured-img { border-radius: var(--border-radius); overflow: hidden; margin: 24px 0; }
.featured-img { width: 100%; }

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-content h2, .article-content h3 {
    color: var(--text-primary);
    margin: 32px 0 16px;
}
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-tags { margin: 32px 0; }
.tags-label { font-weight: 600; }

.author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 40px 0;
}
.author-avatar { border-radius: 50%; width: 80px; height: 80px; flex-shrink: 0; }
.author-bio-name { display: block; font-weight: 700; margin-bottom: 8px; }

/* ── PAGE ARTICLE ─────────────────────────────────────────── */
.page-article { padding: 40px 0 80px; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-featured-img { border-radius: var(--border-radius); overflow: hidden; margin: 24px 0; }
.page-content { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.error-404-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.error-404-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}
.error-404-title { font-size: 2rem; margin-bottom: 16px; }
.error-404-desc { color: var(--text-muted); margin-bottom: 32px; }
.error-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-404-search { max-width: 400px; margin: 0 auto; }

/* ── NO RESULTS ───────────────────────────────────────────── */
.no-results { text-align: center; padding: 80px 24px; }
.no-results h2 { margin-bottom: 16px; }
.no-results p { color: var(--text-muted); margin-bottom: 24px; }

/* ── FAQ PREMIUM STYLING ───────────────────────────────────── */
.faq-section { padding: 100px 0; background: var(--bg-primary); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    gap: 12px;
}

.faq-question::before {
    content: "Q."; 
    color: var(--brand-primary);
    font-weight: 900;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    padding-left: 32px;
}

/* ── SEO CONTENT REFINEMENT ─────────────────────────────── */
.seo-section { padding: 80px 0; border-top: 1px solid var(--border-color); }
.seo-content { 
    max-width: 900px; margin: 0 auto; 
    columns: 2; column-gap: 60px;
    font-size: 1rem; color: var(--text-secondary);
}
.seo-content h3 { break-after: avoid; font-size: 1.3rem; margin: 32px 0 16px; color: var(--text-primary); }

@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; }
    .seo-content { columns: 1; }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.wp-pagenavi, .navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 48px 0;
    gap: 8px;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}
.page-numbers:hover, .page-numbers.current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.post-navigation { margin: 40px 0; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; }
.nav-previous a, .nav-next a { font-weight: 600; color: var(--brand-primary); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 80px 0 48px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 48px;
}

[data-theme="dark"] .site-footer {
    background: #0D0D0E;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .footer-logo { margin-bottom: 24px; }
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

.footer-social-premium {
    display: flex;
    gap: 16px;
}

.social-icon-btn {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy, .footer-legal {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .generator-card { padding: 24px; }
    .hero-title { font-size: 2.2rem; }
}


/* ── ADDITIONAL UI REFINEMENTS ────────────────────────────── */

/* Slide Image Layout — overrides cleared, handled by rules at top of file */
.slide-card.has-image .slide-card-inner {
    /* flex-column — splitting is done inside slide-body-flex */
    display: flex;
    flex-direction: column;
}
.slide-image-placeholder {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
}
.sip-icon { font-size: 2.5rem; opacity: 0.6; }
.sip-text { font-size: 0.75rem; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.1em; }
.sip-prompt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; font-style: italic; }

/* On mobile, stack image below text */
@media (max-width: 680px) {
    .slide-card.has-image .slide-body-flex {
        flex-direction: column;
    }
    .slide-card.has-image .slide-image-container,
    .slide-image-container {
        flex: unset;
        width: 100%;
    }
    .slide-active-image { height: 180px; }
}

/* Dark Mode Logic for New Elements */
[data-theme="dark"] .option-checkbox {
    background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .slide-image-placeholder {
    background: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .option-label {
    color: var(--text-secondary);
}
[data-theme="dark"] .option-checkbox:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* ── TEMPLATE SHOWCASE ───────────────────────────────────── */
/* ── FEATURES BENTO GRID ─────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(255,255,255,0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}


.feature-svg { width: 28px; height: 28px; }

.feature-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; font-size: 1.05rem; }

/* ── HOW IT WORKS GLASSY ─────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}


.step-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 24px; right: 24px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-primary);
    opacity: 0.05;
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-svg { width: 40px; height: 40px; }
.step-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }

/* ── SECTION PADDING ──────────────────────────────────────── */
.how-section,
.features-section,
.templates-section,
.blog-section {
    padding: 100px 0;
}

.how-section { background: var(--bg-secondary); }
.features-section { background: var(--bg-primary); }
.templates-section { background: var(--bg-secondary); }
.blog-section { background: var(--bg-primary); }

/* ── TEMPLATE GRID SYMMETRY ──────────────────────────────── */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .features-grid,
    .steps-grid,
    .template-grid { grid-template-columns: 1fr; }
}


.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 16px;
}
.template-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.template-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.template-thumb-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.template-thumb { width: 100%; height: 100%; object-fit: cover; }
.template-thumb-fallback {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}
.fallback-icon { font-size: 3rem; margin-bottom: 8px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.fallback-preview {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.6;
}
.fb-line { height: 3px; background: rgba(255,255,255,0.7); border-radius: 2px; }
.fb-line-1 { width: 100%; }
.fb-line-2 { width: 80%; }
.fb-line-3 { width: 50%; }

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(109, 40, 217, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.template-card:hover .template-overlay { opacity: 1; }
.btn-preview {
    padding: 10px 20px;
    background: #fff;
    color: var(--brand-primary);
    font-weight: 700;
    border-radius: 999px;
    transform: translateY(10px);
    transition: var(--transition);
}
.template-card:hover .btn-preview { transform: translateY(0); }

.template-card-content { padding: 20px; }
.template-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.template-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Scroll Indicator */
.hero-scroll-wrap {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}
.hero-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.hero-scroll-btn:hover { color: #fff; }
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}
.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    width: 2px; height: 6px;
    background: currentColor;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

@media (max-width: 1024px) {
    .template-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .template-grid { grid-template-columns: 1fr; }
}
/* ── PRESENTATION VIEW PAGE ──────────────────────────────── */
.presentation-view-page { padding: 80px 0; background: #f1f5f9 !important; }
.presentation-header { margin-bottom: 48px; text-align: center; }
.p-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}
.p-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 16px; }
.p-meta { font-size: 0.9rem; color: var(--text-muted); display: flex; justify-content: center; gap: 12px; }

.presentation-actions {
    display: flex;
    justify-content: center;
    margin: 32px 0 64px;
}

.smo-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #f87171;
}

/* ── EXECUTIVE PROFESSIONAL THEME (V11.0.0) ────────────────── */
.slide-card.slide-theme-executive {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 40px !important;
    border-radius: 12px !important;
    padding: 60px !important;
}

.slide-theme-executive .slide-card-inner {
    padding: 0 !important;
    background: none !important;
    display: block !important;
}

.slide-theme-executive .slide-title {
    font-family: "Georgia", "Times New Roman", serif !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    border-bottom: 3px solid #0071E3 !important;
    padding-bottom: 16px !important;
    margin-bottom: 40px !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

/* ── SECTION HEADERS SYMMETRY ─────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    text-align: center;
    line-height: 1.6;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.slide-body-flex {
    display: flex !important;
    gap: 48px !important;
    align-items: flex-start !important;
}

.slide-theme-executive .slide-bullets {
    flex: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.slide-theme-executive .slide-bullet {
    color: #374151 !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    display: block !important; /* Changed from flex */
}

.slide-theme-executive .slide-bullet-dot {
    display: none !important;
}

.slide-theme-executive .slide-image-container {
    flex: 1 !important;
}

.slide-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 15px; /* Subtle adjustment to position image higher relative to title */
    max-width: 90%; /* Further reduce image visual weight */
    margin-left: auto; /* Keep it aligned to the right side of the split */
}

.slide-active-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 1px solid #e2e8f0;
}

.image-source-link {
    display: block;
    margin-top: 8px;
    color: #0071E3 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.slide-theme-executive .slide-number {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

/* ── GLOBAL UI CLEANUP & PREMIUM POLISH ─────────────────── */
.container--narrow { max-width: 900px; margin: 0 auto; }
.main-wrap { padding-bottom: 100px; }

/* Single Article Improvements */
.single-article { padding: 40px 0; }
.article-header { text-align: center; margin-bottom: 48px; }
.article-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; text-align: center; }
.article-meta { justify-content: center; }
.article-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); }

/* Remove Sidebar Clutter (since get_sidebar was removed) */
.site-sidebar { display: none !important; }

/* Style Standard WordPress Widgets (In case they appear) */
.widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

/* Premium Search Form Styling */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}
.search-form label { flex-grow: 1; }
.search-form .search-field {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: var(--transition);
}
.search-form .search-field:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.1);
    outline: none;
}
.search-form .search-submit {
    padding: 0 24px;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.search-form .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
}

/* Full-Width Gallery (Archive) Styling */
.archive-page .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}
.archive-header { margin-bottom: 64px; text-align: center; }

/* Ensure Sidebar Widgets don't break flex/grid layouts if forced elsewhere */
.widget_recent_entries ul, .widget_categories ul, .widget_archive ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.widget_recent_entries li a, .widget_categories li a, .widget_archive li a {
    display: block;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
}
.widget_recent_entries li a:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateX(4px);
}

/* ── Premium Report (Topic Landing Page) ─────────────────────── */
.premium-report {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 80px 60px;
    text-align: left;
    box-shadow: var(--shadow-glass);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.report-icon { width: 32px; height: 32px; filter: grayscale(1) brightness(1.5); }
.report-type { 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 0.12em; 
    color: var(--brand-primary); 
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.report-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.report-intro {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 820px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* ── RESPONSIVE DESIGN & MOBILE MENU ────────────────────────── */
@media (max-width: 1024px) {
    .header-inner { padding: 0 24px; }
    .primary-nav {
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }
    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { display: block; padding: 12px 0; font-size: 1.1rem; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; letter-spacing: -0.04em; }
    .hero-subtitle { font-size: 1.1rem; padding: 0 20px; }
    .generator-card { padding: 32px 20px; border-radius: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-tagline { margin: 0 auto 24px; }
}

/* ── STUNNING HOVER EFFECTS ─────────────────────────────── */
.smo-btn, .generator-card, .hero-tag, .feature-card, .post-card {
    transition: var(--transition);
}
.generator-card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px rgba(0,0,0,0.15); }
.hero-tag:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }
eight: 22px;
}

/* ── MOBILE ACCESSIBILITY & SEO FIXES (AGGR) ──────────────── */
@media (max-width: 768px) {
    html {
        font-size: 18px !important; /* Force larger base size for readability */
    }
    body {
        line-height: 1.6;
    }
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    /* Critical: Ensure all buttons and links are easy to tap */
    .smo-btn, .nav-menu li a, .social-icon-btn, .view-all-link, .footer-nav li a {
        min-height: 48px !important;
        min-width: 44px;
        display: flex !important;
        align-items: center;
    }
    .nav-menu li a {
        padding: 12px 24px !important;
    }
    .section-title {
        font-size: 2rem !important;
    }
    .generator-card {
        padding: 40px 24px !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 17px !important;
    }
    .hero-title {
        font-size: 2.4rem !important;
    }
    .container {
        padding: 0 24px;
    }
}

/* ── SOCIAL SHARE SECTION ────────────────────────────────── */
.social-share-wrap {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}
.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    filter: brightness(1.1);
}
.share-icon {
    width: 20px;
    height: 20px;
    display: flex;
}
.share-facebook { background: #1877F2; }
.share-twitter  { background: #000000; }
.share-linkedin { background: #0077B5; }
.share-whatsapp { background: #25D366; }
.share-pinterest{ background: #BD081C; }

@media (max-width: 640px) {
    .social-share-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
