/* Index Page Specific Styles */
:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #0F172A;
    --cta: #C8962E;
    --cta-hover: #B07E1F;
    --secondary: #0B1D33;
    --text-main: #1E293B;
    --text-light: #5A6F8A;
    --bg-main: #FFFFFF;
    --bg-soft: #F0F4F8;
    --bg-dark: #0B1D33;
    --accent-tint: #E8EEF5;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px -10px rgba(11, 29, 51, 0.12);
    --shadow-cta: 0 10px 25px -5px rgba(200, 150, 46, 0.4);
    --section-py: 120px; /* Slightly more breathable */
    --section-py-mobile: 80px;
    --gap-lg: 48px;
    --gap-md: 32px;
    --gap-sm: 20px;
    --radius-lg: 40px;
    --radius-md: 24px;
    --radius-sm: 14px;
    
    /* New Aesthetic Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
    --mesh-1: #1E40AF;
    --mesh-2: #3B82F6;
    --mesh-3: #0B1D33;
}

/* --- Custom Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 5px;
    border: 2px solid #f8fafc;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Refined Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delay staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }


body {
    opacity: 0;
    animation: pageFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Opacity only — do NOT add `transform` here. A transform on <body> (even the
   final translateY(0), kept alive by `forwards`) makes <body> the containing
   block for position:fixed descendants, which unpins the fixed .navbar so it
   scrolls away instead of staying at the top. */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Section Spacing --- */
.billion-opportunity,
.inside-course,
.market-cta-bridge {
    padding: var(--section-py) 0;
}

#free-courses {
    padding: var(--section-py) 0;
}

/* --- Courses Navy Section --- */
.courses-navy {
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #0B1D33 100%);
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

.courses-navy .section-title h2 {
    color: #FFFFFF;
}

.courses-navy .section-title p {
    color: rgba(255, 255, 255, 0.65);
}

.courses-navy .section-title span {
    color: #60A5FA !important;
}

.silver-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* Bell-curve ramp + heavy blur: the sweep must read as a soft sheen,
       never as a band with visible edges (old 0.3-peak/1px-blur showed seams). */
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(200, 215, 235, 0.03) 22%,
        rgba(215, 228, 248, 0.08) 36%,
        rgba(235, 243, 255, 0.14) 46%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(235, 243, 255, 0.14) 54%,
        rgba(215, 228, 248, 0.08) 64%,
        rgba(200, 215, 235, 0.03) 78%,
        transparent 100%
    );
    filter: blur(12px);
    animation: shimmerMove 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmerMove {
    0% { left: -60%; }
    50% { left: 100%; }
    100% { left: -60%; }
}

/* --- Hero Silver Circle Logo --- */
.logo-silver-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.silver-ring {
    width: 356px;
    height: 356px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d0d0d0 0%, #a0a0a0 25%, #e0e0e0 50%, #909090 75%, #c0c0c0 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: silverPulse 4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes silverPulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(192, 192, 192, 0.4); }
    50% { box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 0 50px rgba(220, 220, 220, 0.6); }
}

.logo-circle-img {
    width: 356px;
    height: 356px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .silver-ring {
        width: 264px;
        height: 264px;
    }
    .logo-circle-img {
        width: 264px;
        height: 264px;
    }
}

/* --- Navbar Polish --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 70px;
}

.navbar.scrolled .nav-container {
    height: 70px;
}

/* --- Hero Premium Mesh --- */
.hero {
    position: relative;
    background: #0F172A !important;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(30, 64, 175, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    z-index: 0;
}

.hero-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.mesh-ball {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    animation: meshMove 20s infinite alternate-reverse ease-in-out;
}

.mesh-1 { background: var(--mesh-1); top: -200px; left: -200px; animation-duration: 25s; }
.mesh-2 { background: var(--mesh-2); bottom: -200px; right: -200px; animation-duration: 30s; }
.mesh-3 { background: var(--mesh-3); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 40s; }

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

.hero-container {
    position: relative;
    z-index: 1;
}

/* --- Section Title Premium --- */
.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.dark-mode .section-title h2 {
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
}


.courses-navy .modern-course-card {
    background: rgba(255, 255, 255, 0.97);
}

/* Category badge styling for paid courses (คอร์สเรียนที่ผมสอนเอง) */
.courses-navy .modern-course-card .course-category {
    display: inline-block !important;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%) !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
    border: none !important;
}

.courses-navy .modern-course-card .course-title {
    color: var(--secondary);
}

.courses-navy .modern-course-card .course-price {
    color: var(--secondary);
}

.courses-navy .modern-course-card .course-link {
    color: var(--primary);
}

.courses-navy .modern-course-card .course-footer {
    border-top-color: rgba(15, 23, 42, 0.06);
}

/* --- Courses Grid --- */
.slider-viewport {
    padding: 20px 0 0;
    margin: 0;
}

.slider-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
    align-items: stretch;
}

.modern-course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: none;
    position: relative;
    height: auto;
    align-self: stretch;
}

.modern-course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: none;
}

/* Homepage course cards — subtler corner radius. The 40px (--radius-lg) rounded
   the cover image too hard at the corners (navy bled through / image got eaten).
   Scoped to the .courses-navy section so other course cards are untouched. */
.courses-navy .modern-course-card { border-radius: 18px; }

.modern-course-card .course-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.modern-course-card .course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.modern-course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--cta);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: var(--shadow-cta);
}

.price-badge.free {
    background: #2D8A5F;
    box-shadow: 0 6px 16px rgba(45, 138, 95, 0.35);
}

.modern-course-card .course-content {
    padding: var(--gap-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.course-content-top {
    flex-grow: 1;
}

.course-lifetime-wrapper {
    padding: 12px 0;
    margin-bottom: 12px;
}

.modern-course-card .course-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.modern-course-card .course-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary);
    line-height: 1.4;
}

/* Course Features Bullet Points */
.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 0.8rem;
    color: #475569;
}

.course-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-features li i {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.course-lifetime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    padding: 12px 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Premium Circle with Infinity */
.infinity-circle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: 400;
    box-shadow: 0 3px 8px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

/* Flowing shimmer effect inside circle */
.infinity-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmerFlow 2s ease-in-out infinite;
}

@keyframes shimmerFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Subtle pulse for the circle */
.infinity-circle {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 3px 8px rgba(30, 64, 175, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 5px 15px rgba(30, 64, 175, 0.5);
        transform: scale(1.05);
    }
}

.modern-course-card .course-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.course-price-link {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    border-radius: 50px;
    padding: 12px 20px;
    margin: 0 10px;
}

.course-price-link:hover {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-color: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.course-price-link:hover .course-price {
    color: white;
}

.modern-course-card .course-price {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--secondary);
}

.course-price-wrapper {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-price-wrapper:hover {
    background: #ff9900;
    border-color: #ff9900;
}

.course-price-wrapper:hover .course-price {
    color: white;
}

.modern-course-card .course-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modern-course-card .course-link:hover {
    padding-left: 4px;
}

.slider-nav {
    display: none;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
    margin-top: 50px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: block;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.blog-thumb {
    height: 180px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--gap-md);
}

.blog-date {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Billion Opportunity --- */
.billion-opportunity {
    background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}

.chart-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-premium);
    margin: 50px 0;
}

.chart-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.chart-header h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.chart-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.chart-container {
    position: relative;
    height: 380px;
    max-width: 860px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    margin: 50px 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-premium);
    text-align: center;
    border: 2px solid var(--accent-tint);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.opportunity-message {
    background: linear-gradient(135deg, var(--accent-tint) 0%, white 100%);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    margin-top: 50px;
    border: 2px solid var(--primary);
}

.gradient-text-blue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.opportunity-message > p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: var(--gap-lg);
}

.pain-points-highlight {
    background: rgba(37, 99, 235, 0.04);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    margin: var(--gap-md) 0;
}

.pain-points-highlight h4 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.pain-points-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-points-list-new li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.7;
}

.pain-points-list-new li span {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.solution-shortcut {
    background: var(--cta);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    text-align: center;
    margin-top: var(--gap-md);
}

.solution-shortcut p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
}

/* --- Market CTA Bridge --- */
.market-cta-bridge {
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.market-cta-bridge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

.bridge-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
    line-height: 1.8;
}

.cta-question {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.45;
    margin-bottom: var(--gap-lg);
}

.cta-question span {
    color: var(--cta);
}

.bridge-buttons {
    display: flex;
    justify-content: center;
    gap: var(--gap-sm);
}

/* --- Video Introduction Block --- */
.video-intro-block {
    background: var(--accent-tint);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    margin-bottom: 60px;
}

.video-intro-content.centered {
    text-align: center;
}

.video-text-top {
    margin-bottom: var(--gap-md);
}

.video-text-top p {
    font-size: 1.15rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.6;
}

.video-split-container {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: var(--gap-md);
    align-items: center;
    margin-bottom: var(--gap-md);
}

.video-column {
    display: flex;
    justify-content: center;
}

.video-aspect-ratio {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16/9;
    background: var(--secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.video-aspect-ratio video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-vertical-divider {
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    height: 100%;
}

.shipping-slider-column {
    display: flex;
    justify-content: center;
}

.shipping-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 3/4;
}

.shipping-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transition: opacity 0.8s ease;
}

.shipping-slide:nth-child(2) {
    opacity: 0;
}

.shipping-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-cta);
    white-space: nowrap;
}

.video-benefits-horizontal {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.video-benefits-horizontal li {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Inside Course Section --- */
.inside-course {
    background: var(--bg-soft);
}

.inside-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.inside-image {
    position: relative;
}

.inside-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.glass-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 220px;
}

.glass-card h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.glass-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.inside-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.inside-content > p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: var(--gap-md);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.benefits-list .check {
    width: 28px;
    height: 28px;
    background: var(--cta);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.benefits-list div strong {
    display: block;
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.benefits-list div p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Reviews Highlight Section --- */
.reviews-highlight {
    padding: var(--section-py) 0;
    background: var(--bg-soft);
}

/* --- Free Courses Section --- */
.free-courses-section {
    background: var(--bg-soft);
    padding: var(--section-py) 0;
}

/* Category badge styling for free courses */
.free-courses-section .modern-course-card .course-category {
    display: inline-block !important;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%) !important;
    color: white !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
    border: none !important;
}

/* --- Blog Section --- */
.blog-section {
    padding: var(--section-py) 0;
}

/* --- Knowledge Base Magazine Layout --- */
.kb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.kb-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--secondary);
}

.kb-header h2 span {
    color: var(--primary);
}

.kb-view-all {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.kb-view-all:hover {
    color: #b91c1c;
    transform: translateX(3px);
}

/* Featured Articles Row */
.kb-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kb-card-featured {
    background: white;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kb-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.kb-card-featured .kb-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.kb-card-featured .kb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kb-card-featured:hover .kb-image img {
    transform: scale(1.05);
}

.kb-card-featured .kb-content {
    padding: 20px;
}

.kb-card-featured h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.kb-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.kb-dot {
    color: #cbd5e1;
}

/* Compact Articles Row */
.kb-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.kb-card-compact {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    background: #f8fafc;
    border-radius: 0;
    transition: all 0.3s ease;
}

.kb-card-compact:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.kb-card-compact .kb-thumb {
    width: 70px;
    height: 70px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.kb-card-compact .kb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-card-compact .kb-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-card-compact .kb-info p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* --- Large Tablets / Small Desktops (1024px - 1200px) --- */
@media (max-width: 1200px) {
    .slider-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Tablets (768px - 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
        --gap-lg: 30px;
    }

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

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

    /* Knowledge Base Responsive - Tablet */
    .kb-featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kb-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .video-split-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: var(--gap-md);
    }

    .video-vertical-divider {
        display: none;
    }

    .inside-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .inside-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .glass-card {
        right: 10px;
        bottom: -16px;
    }

    .chart-container {
        height: 320px;
    }

    .inside-content h2 {
        font-size: 1.9rem;
    }
}

/* --- Mobile (480px - 768px) --- */
@media (max-width: 768px) {
    :root {
        --section-py: 60px;
        --gap-lg: 24px;
        --gap-md: 20px;
        --radius-lg: 20px;
    }

    .slider-track {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-sm);
    }

    .modern-course-card .course-thumb {
        aspect-ratio: 1 / 1;
    }

    .modern-course-card .course-content {
        padding: var(--gap-sm);
    }

    .modern-course-card .course-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .course-features {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .course-features li {
        margin-bottom: 4px;
    }

    .course-lifetime-wrapper {
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .course-lifetime {
        font-size: 0.7rem;
        margin: 0;
        white-space: nowrap;
        justify-content: center;
    }

    .infinity-circle {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }

    .modern-course-card .course-price {
        font-size: 1.05rem;
    }

    .modern-course-card .course-link {
        font-size: 0.8rem;
    }

    .modern-course-card .course-category {
        font-size: 0.65rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .blog-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    /* Knowledge Base Responsive - Mobile */
    .kb-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .kb-featured {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kb-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .kb-card-compact {
        padding: 12px;
    }
    
    .kb-card-compact .kb-thumb {
        width: 70px;
        height: 70px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .stat-card {
        padding: var(--gap-md);
    }

    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 14px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .chart-wrapper {
        padding: var(--gap-md);
        margin: var(--gap-md) 0;
    }

    .chart-container {
        height: 260px;
    }

    .chart-header h3 {
        font-size: 1rem;
    }

    .opportunity-message {
        padding: var(--gap-md);
        margin-top: var(--gap-md);
    }

    .gradient-text-blue {
        font-size: 1.35rem;
    }

    .opportunity-message > p {
        font-size: 0.95rem;
        margin-bottom: var(--gap-md);
    }

    .pain-points-highlight {
        padding: var(--gap-sm);
    }

    .pain-points-highlight h4 {
        font-size: 1rem;
    }

    .pain-points-list-new li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .solution-shortcut {
        padding: var(--gap-sm);
    }

    .solution-shortcut p {
        font-size: 0.95rem;
    }

    .highlight-text {
        font-size: 0.98rem;
        margin-bottom: 20px;
    }

    .cta-question {
        font-size: 1.3rem;
        margin-bottom: var(--gap-md);
    }

    .video-intro-block {
        padding: var(--gap-md);
        margin-bottom: 40px;
        border-radius: var(--radius-md);
    }

    .video-text-top p {
        font-size: 1rem;
    }

    .video-benefits-horizontal {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .inside-content h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .inside-content > p {
        font-size: 0.95rem;
        text-align: center;
    }

    /* On mobile the list sits alone (no image beside it) — give each item a soft
       card so it reads as intentional and polished instead of bare text. */
    .benefits-list {
        margin-top: 6px;
    }

    .benefits-list li {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 13px;
        background: #fff;
        border: 1px solid rgba(37, 99, 235, 0.12);
        border-radius: 16px;
        padding: 14px 16px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
        text-align: left;
    }

    /* keep title + desc left-aligned so the (smaller) check sits right next to the heading */
    .benefits-list li div { text-align: left; }

    .benefits-list .check {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
        margin-top: 2px;
    }

    .benefits-list div strong {
        font-size: 1rem;
    }

    .benefits-list div p {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .glass-card {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: 16px;
        padding: var(--gap-sm);
    }
}

/* --- Small Mobile (< 480px) --- */
@media (max-width: 480px) {
    :root {
        --section-py: 50px;
        --gap-md: 16px;
        --gap-sm: 12px;
        --radius-lg: 16px;
        --radius-md: 14px;
    }

    .slider-track {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .modern-course-card {
        max-width: 100%;
    }

    .modern-course-card .course-thumb {
        aspect-ratio: 1 / 1;
    }

    .modern-course-card .course-content {
        padding: var(--gap-md);
    }

    .modern-course-card .course-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .modern-course-card .course-price {
        font-size: 1.15rem;
    }

    .modern-course-card .course-link {
        font-size: 0.85rem;
    }

    .chart-wrapper {
        padding: var(--gap-sm);
        border-radius: var(--radius-md);
    }

    .chart-container {
        height: 220px;
    }

    .chart-header h3 {
        font-size: 1rem;
    }

    .opportunity-message {
        padding: var(--gap-sm);
        border-radius: var(--radius-md);
    }

    .gradient-text-blue {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: var(--gap-sm);
        border-radius: var(--radius-md);
    }

    .highlight-text {
        font-size: 0.9rem;
    }

    .cta-question {
        font-size: 1.15rem;
    }

    .video-intro-block {
        padding: var(--gap-sm);
        border-radius: var(--radius-md);
    }

    .video-aspect-ratio {
        border-radius: var(--radius-sm);
    }

    .inside-content h2 {
        font-size: 1.4rem;
    }

    .inside-image img {
        border-radius: var(--radius-md);
    }
}

/* ========================================
   NEW PREMIUM SECTIONS
   ======================================== */

/* --- Stats Counter Section --- */
.stats-counter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #eef4ff 100%);
}

.stats-grid-counter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-number.finished {
    background: linear-gradient(135deg, #C8962E 0%, #D4A84A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label-counter {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Transformation/Before-After Section --- */
.transformation-showcase {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 50%, #E0F2FE 100%);
    position: relative;
    overflow: hidden;
}

.transformation-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.flip-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}

.transformation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.transformation-card {
    background: transparent;
    border-radius: 20px;
    perspective: 1200px;
    height: 420px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.transformation-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
}

.card-back {
    background: linear-gradient(145deg, #F97316 0%, #EA580C 100%);
    transform: rotateY(180deg);
    color: white;
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.4);
}

.transformation-card:hover .card-front {
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.before-after {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.before, .after {
    padding: 25px;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.transformation-card:hover .before,
.transformation-card:hover .after {
    transform: translateX(5px);
}

.before {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.after {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.before .label {
    color: #DC2626;
}

.before .label::before {
    content: '✗';
    font-size: 0.9rem;
}

.after .label {
    color: #16A34A;
}

.after .label::before {
    content: '✓';
    font-size: 0.9rem;
}

.before p, .after p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
}

.arrow {
    text-align: center;
    font-size: 1.8rem;
    color: #F97316;
    font-weight: bold;
    margin: 5px 0;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.7; }
}

.student-name {
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    margin-top: auto;
    padding-top: 25px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

/* Card Back Styles */
.back-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.back-content h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 700;
}

.additional-reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.review-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.review-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.95);
}

.reviewer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Section title override for light theme */
.transformation-showcase .section-title h2 {
    color: var(--secondary);
}

.transformation-showcase .section-title p {
    color: var(--text-light);
}

.transformation-showcase .badge {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.before .label, .after .label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.before .label { color: #94a3b8; }
.after .label { color: #059669; }

.arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.student-name {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- Origin Story / Instructor Section --- */
.origin-story-section,
.instructor-section {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
}

.origin-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.origin-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 25px 0;
}

.origin-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-md);
    border-left: 3px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.origin-step:hover {
    border-left-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.origin-step.origin-highlight {
    border-left-color: var(--cta);
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.origin-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.origin-step strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 4px;
}

.origin-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.origin-quote {
    font-size: clamp(0.92rem, 1.1vw, 1.08rem) !important;
    font-style: normal;
    font-weight: 600;
    color: var(--secondary);
    border-left: 4px solid var(--cta);
    padding-left: 25px;
    margin: 25px 0 0;
    line-height: 1.6;
    white-space: nowrap;
    letter-spacing: -0.005em;
}
@media (max-width: 992px) {
    .origin-quote {
        white-space: normal;
        font-size: 1rem !important;
        line-height: 1.7;
    }
}

/* --- Pain Point Section --- */
.painpoint-section {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}
.painpoint-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.painpoint-glow-1 {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.20) 0%, transparent 60%);
}
.painpoint-glow-2 {
    bottom: -180px;
    right: -160px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 65%);
}
.painpoint-section .container { position: relative; z-index: 1; }

.painpoint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.painpoint-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 36px 24px 28px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05),
        0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Always-visible top accent bar — faint by default, brighter on hover */
.painpoint-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EF4444, #F97316);
    opacity: 0.22;
    transition: opacity 0.35s;
}

.painpoint-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 50px rgba(239, 68, 68, 0.10),
        0 8px 18px rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.18);
}
.painpoint-card:hover::before { opacity: 1; }

/* Numbered badge — top right */
.painpoint-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.18);
    letter-spacing: -0.02em;
    transition: color 0.3s;
}
.painpoint-card:hover .painpoint-num {
    color: rgba(239, 68, 68, 0.55);
}

/* Icon — placed inside a soft gradient circle */
.painpoint-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.10) 100%);
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 6px 16px rgba(239, 68, 68, 0.10);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.painpoint-card:hover .painpoint-icon {
    transform: scale(1.06) rotate(-3deg);
}

.painpoint-card h3 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.painpoint-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

.painpoint-bridge {
    margin-top: 48px;
    padding: 26px 36px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #312E81 100%);
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.painpoint-bridge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 50%, rgba(252, 211, 77, 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.painpoint-bridge-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(252, 211, 77, 0.4));
}
.painpoint-bridge p {
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .painpoint-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 600px) {
    .painpoint-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        justify-items: center;
    }
    .painpoint-card { padding: 28px 20px 22px; width: 100%; max-width: 420px; margin: 0 auto; }
    .painpoint-icon { width: 64px; height: 64px; font-size: 1.9rem; }
    .painpoint-bridge { flex-direction: column; text-align: center; gap: 12px; padding: 22px 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
    .painpoint-bridge p { text-align: center; }
}

/* --- Credibility Numbers Section --- */
.credibility-section {
    padding: 90px 0 100px;
    background: linear-gradient(180deg, #060B1C 0%, #0B1530 55%, #0F1B3D 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cred-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.cred-bg-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}
.cred-bg-glow-1 {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, transparent 60%);
}
.cred-bg-glow-2 {
    bottom: -160px;
    right: -140px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.50) 0%, transparent 65%);
}
.credibility-section .container { position: relative; z-index: 1; }

.cred-head {
    text-align: center;
    margin-bottom: 50px;
}
.cred-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #7DD3FC;
    padding: 6px 16px 6px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 100px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cred-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.85);
    animation: credDotPulse 2.4s ease-in-out infinite;
}
@keyframes credDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}
.cred-tagline {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.credibility-item {
    padding: 28px 24px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.credibility-item:hover { transform: translateY(-4px); }

/* Vertical neon divider between items (not on last) */
.credibility-item + .credibility-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16%;
    bottom: 16%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(56, 189, 248, 0.0) 10%,
        rgba(56, 189, 248, 0.55) 40%,
        rgba(252, 211, 77, 0.65) 60%,
        rgba(56, 189, 248, 0.0) 90%,
        transparent 100%);
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
    pointer-events: none;
}

.credibility-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(200, 150, 46, 0.10) 100%);
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 14px rgba(0, 0, 0, 0.20);
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.credibility-item:hover .credibility-icon {
    transform: scale(1.08) rotate(-4deg);
    border-color: rgba(252, 211, 77, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 22px rgba(56, 189, 248, 0.18),
        0 4px 10px rgba(252, 211, 77, 0.20);
}

.credibility-number {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FCD34D 0%, #C8962E 45%, #FCD34D 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 40px rgba(252, 211, 77, 0.15);
    transition: background-position 0.6s ease;
    display: inline-block;
}
.credibility-item:hover .credibility-number {
    background-position: 200% center;
}
.cred-num-suffix {
    font-size: 0.65em;
    margin-left: 2px;
    vertical-align: 0.18em;
    font-weight: 800;
}

/* Decorative underline below number */
.credibility-divider {
    width: 32px;
    height: 2px;
    margin: 10px auto 14px;
    background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.7), transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.credibility-item:hover .credibility-divider { width: 56px; }

.credibility-label {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    font-size: 0.92rem;
    color: #CBD5E1;
    line-height: 1.55;
    font-weight: 500;
}
.credibility-label small {
    display: block;
    font-size: 0.74rem;
    color: #64748B;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    .credibility-section { padding: 64px 0 72px; }
    .cred-head { margin-bottom: 36px; }
    .credibility-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .credibility-item + .credibility-item::before { display: none; }
    .credibility-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(56, 189, 248, 0.14);
        border-radius: 16px;
    }
}
@media (max-width: 480px) {
    .credibility-grid { grid-template-columns: 1fr; }
    .cred-eyebrow { font-size: 0.66rem; letter-spacing: 0.24em; }
}

/* --- Responsive for new sections --- */
@media (max-width: 768px) {
    .painpoint-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .credibility-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .credibility-number {
        font-size: 2.2rem;
    }

    .origin-timeline {
        gap: 12px;
    }

    .origin-step {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .painpoint-grid {
        grid-template-columns: 1fr;
    }

    .painpoint-bridge {
        padding: 20px;
    }
}

.instructor-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.instructor-image {
    position: relative;
}

.image-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    background: linear-gradient(145deg, var(--bg-soft) 0%, white 100%);
}

.instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--cta);
    color: white;
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-cta);
    animation: float 3s ease-in-out infinite;
}

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

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
}

.instructor-content blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--secondary);
    border-left: 4px solid var(--cta);
    padding-left: 25px;
    margin: 30px 0;
    line-height: 1.6;
}

.instructor-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-item .icon {
    font-size: 1.3rem;
}

.highlight-item .text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.instructor-signature {
    margin-top: 30px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
}

/* --- Why Choose DADWORK Section --- */
.why-choose-section {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 60%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}
.why-bg-orb {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.40;
    pointer-events: none;
    z-index: 0;
}
.why-bg-orb-1 {
    top: -160px;
    right: -140px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.18) 0%, transparent 60%);
}
.why-bg-orb-2 {
    bottom: -200px;
    left: -180px;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.18) 0%, transparent 65%);
}
.why-choose-section .container { position: relative; z-index: 1; }

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.why-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFE 100%);
    border-radius: var(--radius-lg);
    padding: 40px 26px 32px;
    text-align: center;
    border: 1px solid rgba(30, 64, 175, 0.10);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Always-on top accent — premium blue→gold */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 50%, #C8962E 100%);
    opacity: 0.35;
    transition: opacity 0.4s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 26px 56px rgba(30, 64, 175, 0.14),
        0 8px 20px rgba(200, 150, 46, 0.08);
    border-color: rgba(200, 150, 46, 0.32);
}
.why-card:hover::before { opacity: 1; }

/* Numbered badge — top right, italic Playfair */
.why-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(30, 64, 175, 0.22);
    letter-spacing: -0.02em;
    transition: color 0.3s;
}
.why-card:hover .why-num { color: rgba(200, 150, 46, 0.7); }

/* Icon — large gradient circle (blue→gold tint) */
.why-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(200, 150, 46, 0.10) 100%);
    border-radius: 50%;
    border: 1px solid rgba(30, 64, 175, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 20px rgba(30, 64, 175, 0.10);
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.45s, border-color 0.45s;
}
.why-card:hover .why-icon {
    transform: scale(1.08) translateY(-2px);
    border-color: rgba(200, 150, 46, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 28px rgba(30, 64, 175, 0.16),
        0 6px 14px rgba(200, 150, 46, 0.12);
}

.why-card h3 {
    font-size: 1.12rem;
    color: var(--secondary);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1100px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 600px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        justify-items: center;
    }
    .why-card { padding: 32px 22px 26px; width: 100%; max-width: 420px; margin: 0 auto; }
    .why-icon { width: 72px; height: 72px; font-size: 2.1rem; }
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- KAS Framework Section --- */
.kas-framework-section {
    padding: 100px 0 110px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 60%, #F5F1EA 100%);
    position: relative;
    overflow: hidden;
}
.kas-framework-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(200, 150, 46, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(30, 64, 175, 0.05) 0%, transparent 45%);
    pointer-events: none;
}
.kas-framework-section .container { position: relative; z-index: 1; }

.kas-wrapper {
    margin-top: 56px;
}

.kas-pillars {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 56px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.kas-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 280px;
    padding: 0 18px;
    position: relative;
}

/* Minimal white circle with thin gold ring (replaces big blue circle + pulse) */
.pillar-circle {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 8px 24px rgba(200, 150, 46, 0.10),
        0 2px 6px rgba(15, 23, 42, 0.04),
        inset 0 0 0 1px rgba(200, 150, 46, 0.28);
    animation: none;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.45s;
    overflow: hidden;
}

/* Photo variant — luxury portrait medallion */
.pillar-circle--photo {
    width: 168px;
    height: 168px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF5 100%);
    padding: 5px;                 /* white inner ring between photo and outer gold */
    overflow: visible;            /* allow glow + outer ring to extend */
    box-shadow:
        0 16px 40px rgba(200, 150, 46, 0.22),
        0 5px 14px rgba(15, 23, 42, 0.08),
        inset 0 0 0 2.5px rgba(200, 150, 46, 0.62);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: none;
}

/* Outer soft halo — radial glow */
.pillar-circle--photo::before {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 150, 46, 0.22) 0%, rgba(200, 150, 46, 0.08) 35%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    transition: inset 0.6s ease, opacity 0.6s ease;
    opacity: 0.75;
}

/* Outer thin ring — creates "double ring" / picture frame effect */
.pillar-circle--photo::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(200, 150, 46, 0.32);
    pointer-events: none;
    transition: inset 0.5s ease, border-color 0.5s ease;
}

.pillar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Glossy top highlight inside the medallion */
.pillar-circle--photo .pillar-photo + .pillar-tag,
.pillar-circle--photo {
    /* shared parent for layering */
}
.pillar-circle--photo .pillar-photo::after {
    /* (cannot use ::after on <img>; we'll mimic gloss via the circle gradient instead) */
}

/* K/S/A tag — gold chip with serif italic, polished */
.pillar-circle--photo .pillar-tag {
    position: absolute;
    bottom: -2px;
    right: 4px;
    width: 38px;
    height: 38px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
        linear-gradient(135deg, #E0B349 0%, #C8962E 45%, #9C7223 100%);
    color: #FFFFFF;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #FAF7F2;
    box-shadow:
        0 6px 14px rgba(200, 150, 46, 0.45),
        0 2px 4px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    line-height: 1;
    z-index: 2;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover — premium "polish" interaction */
.pillar-circle--photo:hover {
    transform: translateY(-6px);
    box-shadow:
        0 26px 60px rgba(200, 150, 46, 0.32),
        0 8px 20px rgba(15, 23, 42, 0.10),
        inset 0 0 0 3px rgba(200, 150, 46, 0.92);
}
.pillar-circle--photo:hover::before {
    inset: -30px;
    opacity: 1;
}
.pillar-circle--photo:hover::after {
    inset: -14px;
    border-color: rgba(200, 150, 46, 0.62);
}
.pillar-circle--photo:hover .pillar-tag {
    transform: scale(1.08) rotate(-4deg);
    box-shadow:
        0 10px 22px rgba(200, 150, 46, 0.55),
        0 3px 6px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.50);
}
.pillar-circle:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF5 100%);
    box-shadow:
        0 16px 36px rgba(200, 150, 46, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.06),
        inset 0 0 0 1.5px rgba(200, 150, 46, 0.55);
}

/* Icon — top layer on white circle */
.kas-pillar .pillar-icon {
    font-size: 2.1rem;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(200, 150, 46, 0.20));
}

/* Letter — large faded watermark behind the icon */
.kas-pillar .pillar-letter {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 5.5rem;
    font-weight: 900;
    color: rgba(200, 150, 46, 0.10);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    line-height: 1;
    z-index: 1;
    letter-spacing: -0.04em;
}

.kas-pillar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0B1D33;
    margin-top: 26px;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.005em;
}

.kas-pillar p {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.75;
    margin: 0;
}

/* Refined connector — thin gold line with diamond center accent */
.kas-connector {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}
.connector-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 150, 46, 0.55) 30%, rgba(200, 150, 46, 0.55) 70%, transparent);
    border-radius: 0;
    position: relative;
    overflow: visible;
    animation: none;
}
.connector-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(200, 150, 46, 0.7);
    background: #FAF7F2;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(200, 150, 46, 0.32);
}
.connector-line::after {
    display: none;
}

/* Bottom message — luxe with EXPERIENCE stamp inside */
.kas-message {
    text-align: center;
    padding: 22px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%);
    border: 1px solid rgba(200, 150, 46, 0.28);
    border-radius: 14px;
    max-width: none;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 8px 28px rgba(200, 150, 46, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: inline-flex;
    justify-content: center;
    width: auto;
}
.kas-message--with-stamp {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 40px 22px;
}
.kas-wrapper .kas-message {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

/* EXPERIENCE brand stamp — gold pill above message text */
.kas-exp-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #C8962E 0%, #B07F26 60%, #C8962E 100%);
    border-radius: 100px;
    color: #FFF7E6;
    box-shadow:
        0 10px 24px rgba(200, 150, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    font-family: 'Prompt', 'Sarabun', sans-serif;
    line-height: 1;
}
.kas-exp-plus {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-right: -2px;
}
.kas-exp-label {
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.20em;
    color: #FFFFFF;
}
.kas-exp-sub {
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: rgba(255, 247, 230, 0.92);
    border-left: 1px solid rgba(255, 247, 230, 0.45);
    padding-left: 12px;
    margin-left: 2px;
}
.kas-message p {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-size: clamp(0.86rem, 1.05vw, 1rem);
    color: #0B1D33;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.005em;
}
.kas-message em {
    color: #8B6914;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
}
.kas-msg-arrow {
    color: #C8962E;
    font-weight: 800;
    margin: 0 4px;
}

/* Gold "+" accent — used in KSA+ badge and message lead */
.kas-framework-section .badge .badge-plus {
    display: inline-block;
    color: #C8962E;
    font-weight: 900;
    font-size: 1.1em;
    margin: 0 1px;
    text-shadow: 0 0 12px rgba(200, 150, 46, 0.4);
}
.kas-msg-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8962E 0%, #B07F26 100%);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow:
        0 4px 12px rgba(200, 150, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.kas-framework-section .section-title em {
    color: #8B6914;
    font-style: normal;
    font-weight: 700;
}
.kas-framework-section .section-title strong {
    color: #0B1D33;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .kas-wrapper { text-align: center; }
    .kas-pillars {
        flex-direction: column;
        gap: 36px;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
    .kas-connector { display: none; }
    .kas-pillar {
        max-width: 380px;
        padding: 0;
        margin: 0 auto;
        align-self: center;
    }
    .kas-message {
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }
    .kas-message p { white-space: normal; font-size: 1rem; line-height: 1.7; }
    .kas-message { padding: 22px 28px; }
}
@media (max-width: 480px) {
    .kas-framework-section { padding: 64px 0 70px; }
    .pillar-circle { width: 92px; height: 92px; }
    .pillar-circle--photo { width: 144px; height: 144px; padding: 4px; }
    .pillar-circle--photo::before { inset: -16px; }
    .pillar-circle--photo::after  { inset: -8px; }
    .pillar-circle--photo .pillar-tag { width: 32px; height: 32px; font-size: 1.05rem; }
    .kas-pillar .pillar-icon { font-size: 1.85rem; }
    .kas-pillar .pillar-letter { font-size: 4.6rem; }
    .kas-pillar h3 { font-size: 1.35rem; }
}

/* --- Category Tabs --- */
.category-tabs {
    display: flex;
    gap: 12px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.category-tab.active {
    background: var(--cta);
    color: white;
    border-color: var(--cta);
    box-shadow: 0 5px 20px rgba(200, 150, 46, 0.3);
}

/* --- Courses Grid --- */
.courses-grid-container {
    width: 100%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.courses-grid .modern-course-card {
    height: 100%;
}

.courses-grid .modern-course-card.hidden {
    display: none !important;
}

/* --- Trust Badges --- */
.trust-badges {
    padding: 50px 0;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.badge-item-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: var(--transition);
    animation: badgeFloat 4s ease-in-out infinite;
}

.badge-item-trust:nth-child(2) { animation-delay: 0.5s; }
.badge-item-trust:nth-child(3) { animation-delay: 1s; }
.badge-item-trust:nth-child(4) { animation-delay: 1.5s; }
.badge-item-trust:nth-child(5) { animation-delay: 2s; }

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.badge-icon {
    font-size: 2rem;
}

.badge-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

/* --- Course Timeline --- */
.course-timeline {
    padding: var(--section-py) 0;
    background: var(--bg-soft);
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.timeline-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cta) 100%);
    border-radius: 2px;
    transition: width 2s ease;
}

.timeline-wrapper.reveal.active .timeline-progress {
    width: 100%;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #cbd5e1;
    border: 4px solid #e2e8f0;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.timeline-step.active .step-number,
.timeline-step:hover .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(27, 58, 92, 0.3);
}

.step-content h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- 3D Tilt Effect for Cards --- */
.modern-course-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.modern-course-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Shimmer effect on hover */
.modern-course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.modern-course-card:hover::after {
    left: 100%;
}

/* --- Micro-interactions --- */

/* Hover glow effect for buttons */
.btn-primary:hover,
.btn-nav-orange:hover {
    box-shadow: 0 0 30px rgba(200, 150, 46, 0.4);
}

/* Text reveal animation for section titles */
.section-title.reveal h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-title.reveal.active h2 {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .stats-grid-counter {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* KSA responsive — handled by main rules above; legacy overrides removed */
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .transformation-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        /* Single column now stacks vertically — the 60px desktop gap (meant for
           the horizontal column split) becomes a too-large dead band between the
           photo and the "Who is DADWORK?" content. Tighten it for mobile. */
        gap: 28px;
    }
    
    .instructor-image {
        order: -1;
    }
    
    .image-frame {
        margin: 0 auto;
    }
    
    .instructor-highlights {
        grid-template-columns: 1fr;
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-step {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .step-number {
        flex-shrink: 0;
    }
    
    .badges-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .stats-grid-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 30px 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .experience-badge {
        right: 10px;
        padding: 15px 20px;
    }
    
    .experience-badge .years {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid-counter {
        grid-template-columns: 1fr 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 6px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .transformation-card {
        height: 340px;
    }
    
    .card-front, .card-back {
        padding: 20px;
    }
}

/* Highlight Bar — Silver Metallic */
.green-highlight-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 30%, #3a3a55 50%, #2d2d44 70%, #1a1a2e 100%) !important;
    padding: 32px 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(192, 192, 210, 0.15);
    border-bottom: 1px solid rgba(192, 192, 210, 0.15);
    position: relative;
    overflow: hidden;
}

.green-highlight-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer-bar 6s ease-in-out infinite;
}

@keyframes shimmer-bar {
    0%, 100% { transform: translateX(-30%); }
    50% { transform: translateX(30%); }
}

.green-highlight-bar p {
    font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.green-highlight-bar span {
    color: #C0C0D0 !important;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #d4d4e0, #f0f0f8, #d4d4e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CAROUSEL — Horizontal Scroll Snap
   ============================================ */
.courses-carousel {
    position: relative;
    width: 100%;
}

.courses-carousel .courses-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none !important;
    max-width: none !important;
    margin: 0 !important;
    align-items: stretch;
}

.courses-carousel .courses-grid.courses-centered {
    justify-content: center;
}

.courses-carousel .courses-grid::-webkit-scrollbar {
    display: none;
}

.courses-carousel .modern-course-card {
    min-width: calc(25% - 18px);
    max-width: calc(25% - 18px);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
    transform: translateY(-50%) scale(1);
}

.carousel-nav.prev { left: -24px; }
.carousel-nav.next { right: -24px; }

@media (max-width: 1200px) {
    .courses-carousel .modern-course-card {
        min-width: calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (max-width: 900px) {
    .courses-carousel .modern-course-card {
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
    .carousel-nav.prev { left: -16px; }
    .carousel-nav.next { right: -16px; }
}

@media (max-width: 600px) {
    /* Each card occupies the full content block on mobile */
    .courses-carousel .courses-grid {
        gap: 14px;
        padding: 14px 4px 18px;
        scroll-padding-inline: 4px;
    }
    .courses-carousel .modern-course-card {
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
    }
    .carousel-nav { display: none; }

    /* Soft horizontal edge fade to hint there's more content to swipe */
    .courses-carousel {
        position: relative;
    }
    .courses-carousel::after {
        content: "";
        position: absolute;
        top: 14px; right: 0; bottom: 18px;
        width: 18px;
        background: linear-gradient(
            to left,
            rgba(0, 0, 0, 0.12),
            transparent
        );
        pointer-events: none;
        opacity: 0.6;
        z-index: 4;
        border-radius: 0 12px 12px 0;
    }

    /* Pagination dots — generated by JS */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
        padding: 0 4px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.28);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
    }
    .free-courses-section .carousel-dot {
        background: rgba(15, 23, 42, 0.18);
    }
    .carousel-dot.active {
        background: var(--primary, #2563EB);
        width: 22px;
        border-radius: 5px;
    }
    .free-courses-section .carousel-dot.active {
        background: #2D8A5F;
    }
    .member-exclusive-section .carousel-dot.active {
        background: linear-gradient(135deg, #C8962E, #F4C55A);
    }

    /* Swipe hint label — fades out after first interaction */
    .carousel-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.45);
        transition: opacity 0.4s ease;
    }
    .free-courses-section .carousel-swipe-hint {
        color: rgba(15, 23, 42, 0.5);
    }
    .carousel-swipe-hint.hidden {
        opacity: 0;
        pointer-events: none;
        margin-top: 0;
        height: 0;
        overflow: hidden;
    }
    .carousel-swipe-hint .arrow {
        animation: carouselSwipeNudge 1.6s ease-in-out infinite;
        display: inline-block;
    }
    @keyframes carouselSwipeNudge {
        0%, 100% { transform: translateX(0); opacity: 0.6; }
        50%      { transform: translateX(5px); opacity: 1; }
    }
}

@media (min-width: 601px) {
    .carousel-dots,
    .carousel-swipe-hint { display: none; }
}

/* ============================================
   COURSE CTA BUTTONS — New Design
   ============================================ */
.course-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-buy {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cta-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);
    color: #fff;
}

.cta-detail {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #0F172A;
    border: 1px solid #d1d5db;
}

.cta-detail:hover {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    border-color: #EA580C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cta-enrolled {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.cta-enrolled:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
    color: #fff;
}

.cta-free {
    background: linear-gradient(135deg, #059669 0%, #2D8A5F 100%);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(45, 138, 95, 0.35);
}

.cta-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 138, 95, 0.45);
    color: #fff;
}

.course-detail-link {
    display: block;
    text-align: center;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.course-detail-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================
   MOBILE MENU PANEL
   ============================================ */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-panel.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    padding: 20px;
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 12px;
    transition: all 0.2s;
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-menu-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px 0;
    border-radius: 1px;
}

.mobile-menu-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-btn-orange {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.mobile-btn-blue {
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.35);
}

.mobile-btn-green {
    background: linear-gradient(135deg, #059669, #10B981);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

@media (max-width: 768px) {
    .mobile-menu-panel { display: block; }
}

/* ============================================
   FOOTER — Premium Redesign
   ============================================ */
.premium-footer {
    text-align: left;
    padding: 0;
    position: relative;
}

/* Gradient accent line at top */
.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 30%, #C8962E 60%, #F97316 100%);
}

/* --- Brand Hero Area --- */
.footer-hero-area {
    background: linear-gradient(180deg, #0B0F19 0%, #0E1423 100%);
    padding: 60px 0 48px;
    text-align: center;
}

.footer-hero-area .footer-logo {
    font-size: clamp(2rem, 5vw, 2.8rem);
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    font-weight: 400;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

/* --- Footer Links Grid --- */
.footer-links-area {
    background: #0E1423;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, transparent);
    border-radius: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact li i {
    color: #3B82F6;
    font-size: 0.95rem;
    width: 18px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact li a:hover {
    color: #fff;
}

/* --- Footer Bottom --- */
.footer-bottom {
    background: #080B12;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 28px 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

/* --- Footer Responsive --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-hero-area { padding: 48px 0 36px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a:hover {
        transform: none;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
