/**
 * TOS Hub Courses - Consolidated Base Styles
 * Single source of truth for ALL course styling
 * No duplicates, no conflicts, no competing files
 */

/* --- CORE VARIABLES & RESETS --- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #478334;
    --warning: #0f172a;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* --- CONTAINERS & LAYOUT --- */
.tos-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- TYPOGRAPHY --- */
.tos-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tos-section-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 600;
}

.tos-section-title {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.tos-section-subtitle {
    display: block;
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatingAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

@keyframes chart-grow {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 100%;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes continuousDrift {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    33% {
        transform: translateX(30px) translateY(-10px);
    }
    66% {
        transform: translateX(-20px) translateY(10px);
    }
    100% {
        transform: translateX(0px) translateY(0px);
    }
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COURSE HERO --- */
.tos-course-hero {
    background: linear-gradient(135deg, #101b2b 0%, #0a1118 100%);
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.tos-course-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 40% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    opacity: 0.7;
    animation: continuousDrift 20s ease-in-out infinite;
}

.tos-course-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: slideIn 1s ease-out;
}

.tos-course-badge-wrapper {
    margin-bottom: 24px;
}

.tos-course-type-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tos-course-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tos-course-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tos-course-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tos-meta-item {
    color: #e2e8f0;
    font-size: 16px;
}

.tos-meta-divider {
    color: #64748b;
}

.tos-hero-cta-wrapper {
    margin-top: 48px;
}

.tos-btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #478334;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(71, 131, 52, 0.25);
    position: relative;
    overflow: hidden;
}

.tos-btn-primary-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tos-btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(71, 131, 52, 0.35);
    background: #3a6b2b;
}

.tos-btn-primary-large:hover::before {
    width: 300px;
    height: 300px;
}

.tos-hero-trust-text {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 14px;
}

.tos-counter {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1em;
    animation: countUp 1.5s ease-out;
    display: inline-block;
}

/* --- COURSE OVERVIEW --- */
.tos-course-overview {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
    clear: both;
}

.tos-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
    padding: 0;
}

.tos-overview-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out backwards;
}

.tos-overview-card:nth-child(1) { 
    animation-delay: 0.2s;
    animation-name: slideInLeft;
}
.tos-overview-card:nth-child(2) { 
    animation-delay: 0.4s;
    animation-name: slideIn;
}
.tos-overview-card:nth-child(3) { 
    animation-delay: 0.6s;
    animation-name: slideIn;
}
.tos-overview-card:nth-child(4) { 
    animation-delay: 0.8s;
    animation-name: slideInRight;
}

.tos-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tos-overview-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f7e8 0%, #e6efd9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.tos-overview-icon svg {
    width: 40px;
    height: 40px;
    color: #478334;
}

.tos-icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    animation: gentleFloat 4s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

.tos-overview-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.tos-overview-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tos-card-features {
    list-style: none;
    padding: 0;
}

.tos-card-features li {
    padding: 6px 0;
    color: #475569;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.tos-card-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0f172a;
}

/* --- COURSE CURRICULUM --- */
.tos-course-curriculum {
    padding: 80px 0;
    background: white;
}

.tos-course-video-wrapper {
    max-width: 900px;
    margin: 48px auto;
}

.tos-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #0a1118;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tos-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tos-curriculum-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-top: 48px;
}

.tos-course-video-preview {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: fit-content;
}

.tos-video-thumbnail-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.tos-video-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tos-video-thumbnail-wrapper:hover img {
    transform: scale(1.05);
}

.tos-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.tos-video-thumbnail-wrapper:hover .tos-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.tos-video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.tos-preview-info {
    padding: 24px 32px 32px;
}

.tos-preview-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.tos-preview-info ul {
    list-style: none;
    padding: 0;
}

.tos-preview-info li {
    padding: 8px 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.tos-preview-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #478334;
    font-weight: bold;
}

.tos-curriculum-modules {
    flex: 1;
}

.tos-curriculum-module-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tos-curriculum-module-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tos-module-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tos-module-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #101b2b 0%, #0a1118 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.tos-module-icon svg {
    width: 24px;
    height: 24px;
}

.tos-module-info {
    flex: 1;
}

.tos-module-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.tos-module-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.tos-preview-badge {
    background: #478334;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.tos-module-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tos-module-context {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 8px 8px 0;
}

.tos-module-context p {
    margin: 0;
    color: #1e569b;
    font-size: 14px;
    line-height: 1.6;
}

.tos-module-lessons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tos-module-lessons h4 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.tos-module-lessons ul {
    list-style: none;
    padding: 0;
}

.tos-module-lessons li {
    padding: 6px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.tos-module-lessons li strong {
    color: #1e293b;
    font-weight: 600;
}

.tos-module-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tos-module-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tos-btn-primary {
    background: linear-gradient(135deg, #101b2b 0%, #0a1118 100%);
    color: white;
}

.tos-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 27, 43, 0.4);
}

/* --- TRADING STRATEGIES --- */
.tos-trading-strategies {
    padding: 80px 0;
    background: white;
}

.tos-strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.tos-strategy-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 1s ease-out backwards;
}

.tos-strategy-card:nth-child(1) { 
    animation-delay: 0.3s;
}
.tos-strategy-card:nth-child(2) { 
    animation-delay: 0.5s;
}
.tos-strategy-card:nth-child(3) { 
    animation-delay: 0.7s;
}

.tos-strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
}

.tos-strategy-card:nth-child(1)::before {
    background: linear-gradient(90deg, #478334 0%, #5a9945 100%);
}

.tos-strategy-card:nth-child(2)::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.tos-strategy-card:nth-child(3)::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.tos-strategy-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.tos-strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tos-strategy-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.tos-strategy-card:nth-child(1) .tos-strategy-icon {
    background: linear-gradient(135deg, #f0f7e8 0%, #e6efd9 100%);
}

.tos-strategy-card:nth-child(2) .tos-strategy-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.tos-strategy-card:nth-child(3) .tos-strategy-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.tos-strategy-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.tos-strategy-badge {
    background: linear-gradient(135deg, #101b2b 0%, #0a1118 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.tos-strategy-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tos-strategy-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tos-stat {
    text-align: center;
}

.tos-stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tos-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* --- TRADING EXAMPLES / VIDEOS --- */
.tos-trading-examples {
    padding: 80px 0;
    background: white;
}

/* Trading Example Cards */
.tos-trading-example-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.tos-trading-example-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.tos-trade-ticker {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.tos-trade-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tos-trade-stat {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.tos-trade-stat:hover {
    background: #f1f5f9;
}

.tos-trade-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.tos-trade-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.tos-trade-stat-value.profit {
    color: #478334;
}

.tos-trade-stat-value.loss {
    color: #ef4444;
}

/* Key Concepts Grid */
.tos-key-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tos-concept-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tos-concept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.tos-concept-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tos-concept-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

.tos-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.tos-video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: slideIn 1s ease-out backwards;
}

.tos-video-card:nth-child(1) { animation-delay: 0.3s; }
.tos-video-card:nth-child(2) { animation-delay: 0.5s; }
.tos-video-card:nth-child(3) { animation-delay: 0.7s; }
.tos-video-card:nth-child(4) { animation-delay: 0.9s; }
.tos-video-card:nth-child(5) { animation-delay: 1.1s; }

.tos-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tos-video-info {
    padding: 16px;
}

.tos-video-info h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.tos-video-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

/* --- TESTIMONIALS --- */
.tos-testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.tos-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.tos-testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tos-testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.tos-testimonial-content {
    font-style: italic;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tos-testimonial-author {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.tos-testimonial-stars {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 8px;
}

.tos-testimonial-stars span {
    color: #1e293b;
}

.tos-testimonial-author h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 4px 0;
}

.tos-testimonial-source {
    font-size: 12px;
    color: #94a3b8;
}

/* --- RESOURCES --- */
.tos-course-resources {
    padding: 80px 0;
    background: #f8fafc;
}

.tos-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.tos-resource-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.tos-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tos-resource-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f7e8 0%, #e6efd9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tos-resource-icon svg {
    width: 40px;
    height: 40px;
    color: #478334;
}

.tos-resource-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.tos-resource-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tos-resource-link {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tos-resource-link:hover {
    color: #1e293b;
    transform: translateX(4px);
}

/* VB Members Only Resources */
.tos-resource-card.vb-members-only {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 2px solid #0f172a;
}

.tos-resource-card.vb-members-only::before {
    content: "VB PRO";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tos-resource-card.vb-members-only .tos-resource-icon {
    background: linear-gradient(135deg, #cbd5e1 0%, #1e293b 100%);
}

.tos-resource-card.vb-members-only .tos-resource-icon svg {
    color: #1e293b;
}

.tos-resource-card.vb-members-only .tos-resource-link {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tos-resource-card.vb-members-only .tos-resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.tos-resource-card.free-resource::before {
    content: "FREE";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #478334 0%, #3a6b2b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --- FOOTER CTA --- */
.tos-footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.tos-footer-cta::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: gentleFloat 8s ease-in-out infinite;
}

.tos-footer-cta::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation: gentleFloat 10s ease-in-out infinite reverse;
}


.tos-chart-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.15;
    padding: 0 50px;
}

.tos-chart-line {
    width: 6px;
    background: linear-gradient(to top, transparent, #0f172a 40%, transparent);
    animation: chart-grow 3s ease-in-out infinite;
    border-radius: 3px;
}

.tos-chart-line:nth-child(1) { animation-delay: 0s; height: 60%; }
.tos-chart-line:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.tos-chart-line:nth-child(3) { animation-delay: 0.4s; height: 40%; }
.tos-chart-line:nth-child(4) { animation-delay: 0.6s; height: 90%; }
.tos-chart-line:nth-child(5) { animation-delay: 0.8s; height: 50%; }
.tos-chart-line:nth-child(6) { animation-delay: 1s; height: 70%; }
.tos-chart-line:nth-child(7) { animation-delay: 1.2s; height: 85%; }
.tos-chart-line:nth-child(8) { animation-delay: 1.4s; height: 45%; }
.tos-chart-line:nth-child(9) { animation-delay: 1.6s; height: 75%; }
.tos-chart-line:nth-child(10) { animation-delay: 1.8s; height: 60%; }
.tos-chart-line:nth-child(11) { animation-delay: 2s; height: 95%; }
.tos-chart-line:nth-child(12) { animation-delay: 2.2s; height: 55%; }

.tos-footer-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.tos-featured-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tos-featured-tool {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.tos-featured-tool:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tos-tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tos-tool-icon svg {
    width: 24px;
    height: 24px;
    color: #60a5fa;
}

.tos-featured-tool h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tos-featured-tool p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tos-tool-features {
    list-style: none;
    padding: 0;
}

.tos-tool-features li {
    color: #cbd5e1;
    font-size: 14px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.tos-tool-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #478334;
}

.tos-cta-actions {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tos-cta-actions h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 24px;
}

.tos-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(71, 131, 52, 0.4);
    position: relative;
    overflow: hidden;
}

.tos-footer-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tos-footer-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(71, 131, 52, 0.8), 0 0 40px rgba(71, 131, 52, 0.4);
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #1e293b;
}

.tos-footer-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* --- MODULE PAGES --- */
.tos-course-module-wrapper {
    background: #ffffff;
    min-height: 100vh;
}

.tos-module-hero-light {
    padding: 60px 0 40px;
    background: linear-gradient(90deg, rgba(38, 99, 235, 0.05) 0%, #fcffff 95%);
    border-bottom: 1px solid #E3E9F0;
}

.tos-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.tos-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.tos-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}

.tos-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tos-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #478334;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tos-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.tos-hero-description {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 16px;
}

.tos-hero-meta {
    display: flex;
    gap: 24px;
    color: #64748b;
    font-size: 14px;
}

.tos-module-content-area {
    padding: 40px 0;
}

.tos-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.tos-content-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.tos-toc-sticky {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.tos-toc-sticky h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
}

.tos-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tos-toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s;
}

.tos-toc-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.tos-toc-link.active {
    background: #f0f7ed;
    color: #478334;
}

.tos-module-list-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tos-module-list-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #64748b;
}

.tos-module-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #475569;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.tos-module-list-item:hover {
    background: #f8fafc;
}

.tos-module-list-item.active {
    background: #f0f7ed;
    color: #478334;
}

.tos-module-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 600;
    font-size: 12px;
}

.tos-module-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.tos-content-section {
    margin-bottom: 48px;
}

/* Ensure proper section spacing */
section {
    padding: 60px 0;
}

.tos-course-content-section {
    padding: 60px 0;
}

.tos-content-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.tos-content-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

.tos-settings-table-container {
    margin: 32px 0;
}

.tos-settings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tos-settings-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.tos-settings-table td {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
}

.tos-color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.tos-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.tos-comparison-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tos-comparison-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #478334;
}

.tos-module-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding: 40px;
    border-top: 1px solid #e2e8f0;
}

.tos-nav-btn {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.tos-nav-btn:hover {
    background: #f8fafc;
    transform: translateX(-4px);
}

.tos-nav-next:hover {
    transform: translateX(4px);
}

/* Modal Styles */
.tos-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.tos-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tos-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tos-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.tos-modal-close:hover {
    color: #1e293b;
}

.tos-setup-steps {
    margin-top: 32px;
}

.tos-setup-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.tos-setup-step:last-child {
    border-bottom: none;
}

.tos-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.tos-step-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.tos-step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer Bottom Centering */
.tos-footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.tos-footer-bottom p {
    text-align: center;
    margin: 0 auto;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .tos-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tos-resources-grid,
    .tos-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tos-strategies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tos-featured-tools {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .tos-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .tos-curriculum-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tos-overview-grid,
    .tos-resources-grid,
    .tos-videos-grid,
    .tos-featured-tools,
    .tos-strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-course-hero-title {
        font-size: 32px;
    }
    
    .tos-course-hero-subtitle {
        font-size: 18px;
    }
    
    .tos-strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-featured-tools {
        grid-template-columns: 1fr;
    }
    
    .tos-section-title {
        font-size: 28px;
    }
    
    .tos-content-container {
        grid-template-columns: 1fr;
    }
    
    .tos-content-sidebar {
        position: static;
    }
    
    .tos-comparison-grid {
        grid-template-columns: 1fr;
    }
}