/**
 * TenAgile Unified Styles
 * Common CSS for workshops and resource hubs
 * 
 * Prefixes:
 * - .tek-* : Resource hub pages (full-width layout, no sidebar)
 * - .wkshp-* : Workshop pages (sidebar navigation layout)
 */

/* ========================================================================
   CSS Variables - Override in individual files if needed
   ======================================================================== */
:root {
    --primary-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #475569;
    --bg-light-panel: rgb(238, 233, 226);
    --border-color: #cbd5e1;
    --nav-bg: #1e293b;
    --nav-hover: #334155;
    /* Accent color should be defined per file:
       --accent-color for workshops
       --accent-pink and --accent-pink-hover for resources */
}

/* ========================================================================
   RESOURCE HUB LAYOUT (.tek-* prefix)
   Full-width layout with no sidebar
   ======================================================================== */
.tek-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 80px 0 !important;
}

.tek-wrapper *,
.tek-wrapper *::before,
.tek-wrapper *::after {
    box-sizing: inherit;
}

.tek-container {
    width: 90vw;
    max-width: 1440px;
    margin: 0 auto !important;
    position: relative;
}

/* Page Banner (Full Width) - UNIFIED */
.tek-page-banner {
    width: 100vw !important;
    background-color: #334155;
    padding: 60px 20px !important;  /* ← Balanced height for consistency */
    text-align: center;
    border-bottom: 4px solid var(--accent-color) !important;  /* ← Use CSS variable */
    border-radius: 2px !important;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tek-banner-title {
    font-size: 3.8rem !important;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2 !important;
    margin: 0 0 16px 0 !important;  /* ← Removed top margin for consistency */
    letter-spacing: -0.03em;
}

.tek-banner-subtitle {
    font-size: 1.6rem !important;
    color: #cbd5e1;
    line-height: 1.5 !important;
    max-width: 850px;
    font-weight: 400;
    margin: 0 auto !important;  /* ← Removed bottom margin for consistency */
}

/* Content Wrapper (Full Width) */
.tek-content-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin: 0 !important;
    padding: 40px 0;
}

.tek-content-inner {
    width: 90vw;
    max-width: 900px;
    margin: 0 auto;
}

.tek-content-wrapper + .tek-content-wrapper {
    padding-top: 10px;
}

/* Resource Hub Specific Sections */
.tek-course-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tek-course-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tek-course-section#overview,
.tek-course-section#role {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.tek-course-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 20px 0;
    line-height: 1.2;
    border-bottom: none;
    padding-bottom: 0;
}

.tek-course-section h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 30px 0 12px 0;
}

.tek-course-section p {
    font-size: 1.55rem !important;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px 0;
}

/* Quote Block - UNIFIED */
.tek-quote-block {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(8, 145, 178, 0.02) 100%);
    border-left: 6px solid var(--accent-color);  /* ← Use CSS variable */
    padding: 28px 36px;
    margin: 0 0 24px 0;
    border-radius: 4px;
}

/* Quote Block - Centered variant for transformation services */
.tek-quote-block.centered {
    text-align: center;
}

.tek-quote-text {
    font-size: 1.9rem !important;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.tek-quote-author {
    font-size: 1.2rem !important;
    color: var(--text-muted);
    font-style: normal;
}

/* List Styles */
.tek-course-section ul {
    padding-left: 0;
    margin: 0 0 20px 0;
    list-style: none;
}

.tek-course-section ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--text-main);
    line-height: 1.7;
}

.tek-course-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-pink);
    font-weight: 900;
    font-size: 1.8rem;
}

.tek-course-section ul li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Link Styles */
.tek-course-section a {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.tek-course-section a:hover {
    color: var(--accent-pink-hover);
    border-bottom-color: var(--accent-pink-hover);
}

/* Metric List Special Style */
.tek-metric-list li {
    background: var(--bg-light-panel);
    padding: 18px 18px 18px 50px;
    margin-bottom: 16px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-pink);
}

/* Call to Action */
.tek-cta-section {
    background-color: var(--bg-light-panel);
    border-top: 4px solid var(--accent-pink);
    padding: 50px 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 60px;
}

.tek-btn-primary {
    display: inline-block;
    background-color: var(--accent-color);  /* ← Use CSS variable */
    color: #ffffff !important;
    padding: 18px 40px;  /* ← Increased for consistency */
    font-weight: 700;
    font-size: 1.4rem;  /* ← Increased for consistency */
    text-decoration: none !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.tek-btn-primary:hover {
    background-color: var(--accent-color-hover);  /* ← Use CSS variable */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);  /* ← Enhanced hover effect */
}

/* ========================================================================
   WORKSHOP LAYOUT (.wkshp-* prefix)
   Two layouts supported:
   1. Sidebar navigation layout (with .wkshp-sidebar)
   2. Full-bleed editorial layout (with .wkshp-hero-section, .wkshp-zigzag-*)
   ======================================================================== */

/* Base Wrapper - Supports both layouts */
.wkshp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    box-sizing: border-box;
    width: 100% !important;
    margin: 2rem 0 2rem 0 !important;  
    padding: 0 0 80px 0 !important;
}

/* Sidebar Layout Wrapper */
.wkshp-wrapper.wkshp-sidebar-layout {
    display: flex;
    min-height: 100vh;
    line-height: 1.7;
}

.wkshp-wrapper *,
.wkshp-wrapper *::before,
.wkshp-wrapper *::after {
    box-sizing: inherit;
}

.wkshp-sidebar {
    width: 280px;
    background: var(--nav-bg);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.wkshp-sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wkshp-sidebar-header h2 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.wkshp-sidebar-header .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.wkshp-nav-menu {
    list-style: none;
    padding: 24px 0;
}

.wkshp-nav-menu li {
    margin-bottom: 4px;
}

.wkshp-nav-menu a {
    display: block;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.wkshp-nav-menu a:hover {
    background: var(--nav-hover);
    color: white;
    border-left-color: var(--accent-color);
}

.wkshp-nav-menu a.active {
    background: var(--nav-hover);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.wkshp-main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}

.wkshp-content-wrapper {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Workshop Typography */
.wkshp-content-wrapper h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.wkshp-content-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-color);
}

.wkshp-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 16px;
}

.wkshp-content-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 24px;
    margin-bottom: 12px;
}

.wkshp-content-wrapper .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wkshp-content-wrapper p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.wkshp-content-wrapper ul,
.wkshp-content-wrapper ol {
    margin: 16px 0 16px 32px;
}

.wkshp-content-wrapper li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.wkshp-content-wrapper strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.wkshp-content-wrapper blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(8, 145, 178, 0.02) 100%);
    border-left: 4px solid var(--accent-color);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-main);
    border-radius: 4px;
}

.wkshp-highlight-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.wkshp-info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.wkshp-example-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.wkshp-content-wrapper pre {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wkshp-content-wrapper code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.wkshp-meta-info {
    display: flex;
    gap: 24px;
    margin: 20px 0 40px;
    padding: 16px;
    background: var(--bg-light-panel);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.wkshp-meta-info span {
    font-weight: 600;
    color: var(--text-main);
}

.wkshp-section {
    scroll-margin-top: 20px;
}

.wkshp-content-wrapper hr {
    border: 1px solid var(--border-color);
    margin: 32px 0;
}

.wkshp-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

.wkshp-footer h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.wkshp-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.wkshp-footer a:hover {
    text-decoration: underline;
}

/* ========================================================================
   WORKSHOP FULL-BLEED EDITORIAL LAYOUT (.wkshp-* prefix)
   For marketing/landing page style workshops
   ======================================================================== */

.wkshp-container {
    width: 90vw;
    max-width: 1440px;
    margin: 0 auto !important;
    position: relative;
}

/* Hero Landing Block (Full-Bleed) */
.wkshp-hero-section {
    width: 100vw !important;
    background-color: var(--bg-light-panel);
    padding: 60px 0;
    border: none !important;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin: 0 !important;
}

.wkshp-hero-tag {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.wkshp-hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
    margin: 0 0 28px 0;
}

.wkshp-hero-section p {
    font-size: 1.85rem !important;
    color: var(--text-muted);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.wkshp-btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 20px 48px;  /* ← Slightly larger for workshop CTA emphasis */
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.wkshp-btn-primary:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);  /* ← Enhanced hover effect */
}

/* Dark Editorial Page Banner Block (Full-Bleed) */
.wkshp-page-banner {
    width: 100vw !important;
    background-color: #334155;
    border: none !important;
    border-radius: 2px !important;
    padding: 4px 10px !important;
    text-align: center;
    border-top: 6px !important;
    border-bottom: 2px solid var(--accent-color) !important;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin: 0 !important;
}

.wkshp-banner-title {
    font-size: 3.8rem !important;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2 !important;
    letter-spacing: -0.03em;
    margin: 4rem 0 12px 0 !important;
}

.wkshp-banner-subtitle {
    font-size: 1.6rem !important;
    color: #cbd5e1;
    line-height: 1.5 !important;
    max-width: 850px;
    font-weight: 400;
    margin: 0 auto 6rem auto !important;
}

/* Alternating Zig-Zag Layout */
.wkshp-zigzag-container {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wkshp-zigzag-row {
    display: flex;
    align-items: stretch;
    width: 100vw !important;
    min-height: 600px;
    border: none !important;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin: 0 !important;
}

.wkshp-zigzag-row:nth-of-type(odd) {
    background-color: transparent;
}

.wkshp-zigzag-row:nth-of-type(even) {
    background-color: var(--bg-light-panel);
    flex-direction: row-reverse;
}

.wkshp-zigzag-image {
    flex: 1;
    min-width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: grayscale(15%) contrast(1.02);
}

.wkshp-zigzag-content {
    flex: 1;
    padding: 80px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wkshp-card-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 14px 0;
}

.wkshp-card-desc {
    color: var(--text-muted);
    font-size: 1.6rem !important;
    margin-bottom: 34px;
    line-height: 1.6;
    font-style: italic;
}

/* Lists & Typography for Full-Bleed Workshops */
.wkshp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wkshp-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 32px;
    font-size: 1.55rem !important;
    color: var(--text-main);
}

.wkshp-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--accent-color);
    font-weight: 900;
    font-size: 2rem;
}

.wkshp-list strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1.75rem !important;
}

/* CTA Bottom Section (Full-Bleed) */
.wkshp-cta-section {
    width: 100vw !important;
    background-color: #334155;
    border: none !important;
    padding: 80px 0;
    text-align: center;
    position: relative !important;
    left: calc(50% - 50vw) !important;
    margin: 0 0 80px 0 !important;
    border-top: 8px solid var(--accent-color) !important;
}

.wkshp-cta-section h3 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.wkshp-cta-section p {
    color: #cbd5e1;
    font-size: 1.5rem !important;
    margin: 0 auto 40px auto;
    max-width: 700px;
    line-height: 1.6;
}

/* ========================================================================
   Responsive Design
   ======================================================================== */
@media (max-width: 1100px) {
    .tek-content-inner {
        width: 95vw;
    }
}

@media (max-width: 1024px) {
    .wkshp-sidebar {
        width: 240px;
    }
    .wkshp-main-content {
        margin-left: 240px;
        padding: 40px 30px;
    }
}

@media (max-width: 1150px) {
    /* Full-Bleed Workshop Layout */
    .wkshp-hero-section h1 { 
        font-size: 3.6rem; 
    }
    .wkshp-zigzag-row, 
    .wkshp-zigzag-row:nth-of-type(even) { 
        flex-direction: column; 
    }
    .wkshp-zigzag-image { 
        min-height: 400px; 
        width: 100vw; 
    }
    .wkshp-zigzag-content { 
        padding: 60px 5vw; 
    }
}

@media (max-width: 768px) {
    /* Sidebar Workshop Layout */
    .wkshp-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    .wkshp-main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
    .wkshp-content-wrapper {
        padding: 30px 24px;
    }
    
    /* Full-Bleed Workshop Layout */
    .wkshp-hero-section h1 { 
        font-size: 2.8rem; 
    }
    .wkshp-page-banner { 
        margin: 1.5rem 0 !important; 
    }
    .wkshp-banner-title { 
        font-size: 2.6rem !important; 
        margin: 2.5rem 0 10px 0 !important; 
    }
    .wkshp-banner-subtitle { 
        font-size: 1.3rem !important; 
        margin: 0 auto 2.5rem auto !important; 
        padding: 0 20px; 
    }
    .wkshp-cta-section { 
        padding: 60px 20px; 
    }
    .wkshp-cta-section h3 { 
        font-size: 2.2rem; 
    }
    
    /* Resource Hub Layout */
    .tek-banner-title { 
        font-size: 2.8rem !important; 
        margin: 2.5rem 0 10px 0 !important; 
    }
    .tek-banner-subtitle { 
        font-size: 1.3rem !important; 
        margin: 0 auto 2.5rem auto !important; 
        padding: 0 20px; 
    }
    .tek-content-wrapper { 
        padding: 40px 0; 
    }
    .tek-course-section h2 { 
        font-size: 2rem; 
    }
    .tek-quote-block { 
        padding: 20px 24px; 
    }
    .tek-quote-text { 
        font-size: 1.5rem !important; 
    }
    
    /* Typography */
    .wkshp-content-wrapper h1 {
        font-size: 2.2rem;
    }
    .wkshp-content-wrapper h2 {
        font-size: 1.8rem;
    }
}
