/**
 * CerdasWeb Modern Technology - Tutorial & Knowledge Hub Stylesheet
 * Redesigned with inspiration from industry standards (IDwebhost & DewaBiz)
 * 
 * @package CerdasWeb_Modern
 * Version: 1.2.0
 */

/* ==========================================================================
   1. Tutorial Page Wrapper & Base
   ========================================================================== */
.cw-tutorial-hub {
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   2. Hero Section & Smart Knowledge Search (Mirrors Domain Page Spacing)
   ========================================================================== */
.cw-tutorial-hero {
    position: relative;
    padding: 4.5rem 0 3.25rem;
    background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(9, 122, 255, 0.12) 0%, transparent 70%);
    border-bottom: 1px solid var(--cw-border);
    text-align: center;
}

.cw-tutorial-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.cw-tutorial-eyebrow-wrap {
    margin-bottom: 1.25rem;
}

.cw-tutorial-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cw-primary);
    background: var(--cw-soft-blue);
    border: 1px solid rgba(9, 122, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--cw-radius-pill);
    box-shadow: var(--cw-shadow-sm);
}

.cw-tutorial-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cw-primary);
    box-shadow: 0 0 0 0 rgba(9, 122, 255, 0.7);
    animation: cwPulseDot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes cwPulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 122, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(9, 122, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(9, 122, 255, 0); }
}

.cw-tutorial-hero-title {
    font-size: clamp(2.125rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--cw-text);
    margin-bottom: 1rem;
}

.cw-tutorial-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--cw-muted);
    max-width: 720px;
    margin: 0 auto 2.25rem;
}

/* Smart Search Box */
.cw-tutorial-search-container {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.cw-tutorial-search-form {
    display: flex;
    align-items: center;
    background: var(--cw-surface);
    border: 1.5px solid var(--cw-border);
    border-radius: var(--cw-radius-pill);
    padding: 0.375rem 0.5rem 0.375rem 1.25rem;
    box-shadow: var(--cw-shadow-floating);
    transition: var(--cw-transition);
}

.cw-tutorial-search-form:focus-within {
    border-color: var(--cw-primary);
    box-shadow: 0 0 0 4px rgba(9, 122, 255, 0.15), var(--cw-shadow-floating);
}

.cw-tutorial-search-icon {
    display: flex;
    align-items: center;
    color: var(--cw-muted);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.cw-tutorial-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--cw-text);
    outline: none;
    min-width: 0;
}

.cw-tutorial-search-input::placeholder {
    color: var(--cw-muted);
    opacity: 0.75;
}

.cw-tutorial-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--cw-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--cw-radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cw-transition);
    flex-shrink: 0;
}

.cw-tutorial-search-btn:hover {
    background: var(--cw-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 122, 255, 0.3);
}

/* Quick Topic Pills */
.cw-tutorial-quick-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.cw-tutorial-quick-label {
    color: var(--cw-muted);
    font-weight: 600;
    margin-right: 0.25rem;
}

.cw-tutorial-quick-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--cw-radius-pill);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    color: var(--cw-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--cw-transition);
}

.cw-tutorial-quick-pill:hover {
    background: var(--cw-soft-blue);
    border-color: rgba(9, 122, 255, 0.3);
    color: var(--cw-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. Sticky Horizontal Category Filter Bar (DewaBiz Inspired)
   ========================================================================== */
.cw-tutorial-filter-bar {
    position: sticky;
    top: calc(72px + 1.25rem);
    z-index: 90;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cw-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: var(--cw-transition);
    margin-bottom: 2.5rem;
}

.cw-tutorial-filter-scroll {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    overflow-x: auto;
    padding: 0.875rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.cw-tutorial-filter-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.cw-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--cw-radius-pill);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    color: var(--cw-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cw-filter-pill:hover {
    border-color: var(--cw-primary);
    color: var(--cw-primary);
    background: var(--cw-soft-blue);
    transform: translateY(-1px);
}

.cw-filter-pill.is-active {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 122, 255, 0.25);
}

.cw-filter-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: var(--cw-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: var(--cw-muted);
    line-height: 1;
}

.cw-filter-pill.is-active .cw-filter-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   4. Section Headers & Badges
   ========================================================================== */
.cw-tutorial-section-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cw-tutorial-heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cw-tutorial-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cw-primary);
}

.cw-tutorial-section-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--cw-text);
    line-height: 1.25;
    margin: 0;
}

.cw-tutorial-section-sub {
    font-size: 0.9375rem;
    color: var(--cw-muted);
    max-width: 480px;
}

/* ==========================================================================
   5. Pilihan Editor & Trending Showcase (DewaBiz Split Hero Pattern)
   ========================================================================== */
.cw-tutorial-featured-section {
    padding: 1rem 0 3.5rem;
}

/* Primary Split Hero Card */
.cw-tutorial-hero-split-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--cw-shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}

@media (min-width: 960px) {
    .cw-tutorial-hero-split-card {
        grid-template-columns: 1.15fr 1fr;
    }
}

.cw-tutorial-hero-split-card:hover {
    border-color: rgba(9, 122, 255, 0.35);
    box-shadow: var(--cw-shadow-lg);
    transform: translateY(-4px);
}

.cw-tutorial-split-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #0B1220;
    aspect-ratio: 16 / 9;
}

@media (min-width: 960px) {
    .cw-tutorial-split-thumb-wrap {
        aspect-ratio: auto;
        min-height: 380px;
    }
}

.cw-tutorial-split-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cw-tutorial-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cw-tutorial-hero-split-card:hover .cw-tutorial-split-img {
    transform: scale(1.05);
}

.cw-tutorial-pill-badge-top {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.85rem;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FCD34D;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--cw-radius-pill);
    border: 1px solid rgba(252, 211, 77, 0.35);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cw-tutorial-split-body {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cw-tutorial-split-meta-top {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.cw-tutorial-split-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cw-tutorial-split-title a {
    color: var(--cw-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cw-tutorial-split-title a:hover {
    color: var(--cw-primary);
}

.cw-tutorial-split-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cw-muted);
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-tutorial-split-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cw-border);
}

.cw-tutorial-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cw-tutorial-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cw-border);
}

.cw-tutorial-author-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cw-tutorial-author-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cw-text);
}

.cw-tutorial-author-date {
    font-size: 0.75rem;
    color: var(--cw-muted);
}

.cw-tutorial-split-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Secondary Trending 2-Column Grid */
.cw-tutorial-trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .cw-tutorial-trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cw-tutorial-trending-card {
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--cw-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cw-tutorial-trending-card:hover {
    transform: translateY(-4px);
    border-color: rgba(9, 122, 255, 0.35);
    box-shadow: var(--cw-shadow-md);
}

.cw-tutorial-trending-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0B1220;
}

.cw-tutorial-trending-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cw-tutorial-trending-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cw-tutorial-trending-card:hover .cw-tutorial-trending-img {
    transform: scale(1.05);
}

.cw-tutorial-trending-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #60A5FA;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--cw-radius-pill);
    border: 1px solid rgba(96, 165, 250, 0.3);
    z-index: 2;
}

.cw-tutorial-trending-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cw-tutorial-trending-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cw-tutorial-trending-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 0.625rem;
}

.cw-tutorial-trending-title a {
    color: var(--cw-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-tutorial-trending-title a:hover {
    color: var(--cw-primary);
}

.cw-tutorial-trending-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--cw-muted);
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-tutorial-trending-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--cw-border);
    font-size: 0.8125rem;
}

.cw-tutorial-author-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.cw-tutorial-author-name-sm {
    font-weight: 600;
    color: var(--cw-text);
}

.cw-tutorial-dot-sep {
    color: var(--cw-muted);
    margin: 0 0.25rem;
}

.cw-tutorial-trending-date {
    color: var(--cw-muted);
}

.cw-tutorial-trending-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--cw-primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cw-tutorial-trending-card:hover .cw-tutorial-trending-link {
    transform: translateX(3px);
}

/* ==========================================================================
   6. Topik Terpopuler Grid (IDwebhost 6-Column Icon Grid)
   ========================================================================== */
.cw-tutorial-topics-section {
    padding: 1.5rem 0 3.5rem;
}

.cw-tutorial-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .cw-tutorial-topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .cw-tutorial-topics-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.cw-tutorial-topic-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--cw-text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--cw-shadow-sm);
    position: relative;
    overflow: hidden;
}

.cw-tutorial-topic-box:hover {
    transform: translateY(-4px);
    border-color: var(--cw-primary);
    box-shadow: var(--cw-shadow-md);
}

.cw-tutorial-topic-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    transition: transform 0.3s ease;
}

.cw-tutorial-topic-box:hover .cw-tutorial-topic-icon {
    transform: scale(1.12);
}

.cw-tutorial-topic-name {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.375rem;
    color: var(--cw-text);
}

.cw-tutorial-topic-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cw-muted);
}

.cw-tutorial-topic-arrow {
    display: none;
}

/* ==========================================================================
   7. Promotional Ad Banner Placed (Concept Image 2)
   ========================================================================== */
.cw-tutorial-ad-banner-section {
    padding: 1.5rem 0 3.5rem;
}

.cw-tutorial-ad-banner-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.cw-tutorial-ad-banner-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cw-muted);
    text-transform: uppercase;
    text-align: right;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
}

.cw-tutorial-ad-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px -8px rgba(9, 122, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--cw-border);
}

.cw-tutorial-ad-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(9, 122, 255, 0.22);
    border-color: rgba(9, 122, 255, 0.35);
}

.cw-tutorial-ad-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

/* Fallback Mockup Banner (Styled exactly like Image 2) */
.cw-tutorial-ad-banner-mockup {
    position: relative;
    width: 100%;
    min-height: 140px;
    background: linear-gradient(90deg, #93C5FD 0%, #BFDBFE 25%, #F5D0FE 60%, #FECDD3 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1.75rem 2.5rem;
}

.cw-ad-mockup-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
}

.cw-ad-mockup-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cw-ad-mockup-badge {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cw-ad-mockup-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
}

.cw-ad-mockup-stars {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cw-ad-stars-row {
    color: #F43F5E;
    font-size: 0.8125rem;
    letter-spacing: 2px;
    margin-top: 0.15rem;
}

.cw-ad-mockup-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.cw-ad-mockup-sub {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.35rem;
}

.cw-ad-mockup-title {
    font-size: clamp(1.25rem, 2.2vw, 1.875rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    background: linear-gradient(135deg, #2563EB 0%, #DB2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cw-ad-mockup-right {
    flex-shrink: 0;
}

.cw-ad-mockup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border: 2px solid #3B82F6;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1D4ED8;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.cw-tutorial-ad-banner-link:hover .cw-ad-mockup-btn {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .cw-ad-mockup-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .cw-ad-mockup-left {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================================================
   8. Main Tutorial Grid (3-Column Clean Pattern)
   ========================================================================== */
/* ==========================================================================
   8. Main Tutorial Grid (3-Column Clean Pattern)
   ========================================================================== */
.cw-tutorial-grid-section {
    padding: 2.5rem 0 5rem;
}

.cw-tutorial-grid-section .cw-tutorial-section-title-wrap {
    margin-bottom: 2.5rem;
}

.cw-tutorial-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2.25rem;
    margin-bottom: 3.5rem;
}

/* Individual Tutorial Article Card */
.cw-card.cw-tutorial-card {
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cw-card.cw-tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(9, 122, 255, 0.35);
    box-shadow: 0 16px 32px -8px rgba(9, 122, 255, 0.14);
}

.cw-card.cw-tutorial-card .cw-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    background: #0B1220;
    margin-bottom: 0;
}

.cw-card.cw-tutorial-card .cw-card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cw-card.cw-tutorial-card .cw-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cw-card.cw-tutorial-card .cw-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.cw-card.cw-tutorial-card .cw-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.625rem;
}

.cw-card.cw-tutorial-card .cw-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.cw-card.cw-tutorial-card .cw-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.cw-card.cw-tutorial-card .cw-card-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cw-muted);
}

.cw-card.cw-tutorial-card .cw-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
    min-height: 3.4rem;
}

.cw-card.cw-tutorial-card .cw-card-title a {
    color: var(--cw-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-card.cw-tutorial-card .cw-card-title a:hover {
    color: var(--cw-primary);
}

.cw-card.cw-tutorial-card .cw-card-excerpt {
    font-size: 0.90625rem;
    line-height: 1.7;
    color: #64748B;
    margin: 0 0 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-card.cw-tutorial-card .cw-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.15rem;
    margin-top: auto;
    border-top: 1px solid var(--cw-border);
    font-size: 0.8125rem;
}

.cw-card.cw-tutorial-card .cw-card-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cw-card.cw-tutorial-card .cw-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--cw-border);
}

.cw-card.cw-tutorial-card .cw-card-author-name {
    font-weight: 600;
    color: var(--cw-text);
    font-size: 0.84375rem;
}

.cw-card.cw-tutorial-card .cw-card-date {
    color: var(--cw-muted);
    font-size: 0.78125rem;
    font-weight: 500;
}

.cw-tutorial-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.cw-tutorial-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: var(--cw-radius-pill);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    color: var(--cw-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--cw-transition);
}

.cw-tutorial-pagination .page-numbers:hover {
    border-color: var(--cw-primary);
    color: var(--cw-primary);
    background: var(--cw-soft-blue);
}

.cw-tutorial-pagination .page-numbers.current {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 122, 255, 0.25);
}

/* ==========================================================================
   9. Consultation & Request Tutorial CTA Card (Concept Image 3)
   ========================================================================== */
.cw-tutorial-cta-section {
    padding: 2.5rem 0 5rem;
}

.cw-tutorial-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.75) 0%, rgba(248, 250, 252, 0.95) 50%, rgba(238, 242, 255, 0.7) 100%);
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 28px;
    padding: clamp(3rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(9, 122, 255, 0.08);
}

.cw-tutorial-cta-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(9, 122, 255, 0.08) 0%, rgba(9, 122, 255, 0) 70%);
}

.cw-cta-circle-1 {
    width: 480px;
    height: 480px;
    top: -160px;
    left: -120px;
}

.cw-cta-circle-2 {
    width: 520px;
    height: 520px;
    bottom: -220px;
    right: -120px;
}

.cw-tutorial-cta-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.cw-tutorial-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    background: #EFF6FF;
    border-radius: var(--cw-radius-pill);
    border: 1px solid #BFDBFE;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1D4ED8;
    margin-bottom: 1.5rem;
}

.cw-tutorial-cta-badge svg {
    color: #2563EB;
}

.cw-tutorial-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 auto 1.15rem;
    color: #0F172A;
}

.cw-tutorial-cta-desc {
    font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
    line-height: 1.65;
    margin: 0 auto 2.25rem;
    color: #475569;
    max-width: 620px;
}

.cw-tutorial-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cw-tutorial-cta-actions .cw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #097AFF;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--cw-radius-pill);
    box-shadow: 0 4px 14px rgba(9, 122, 255, 0.28);
    transition: all 0.2s ease;
}

.cw-tutorial-cta-actions .cw-btn-primary:hover {
    background: #0062D6;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(9, 122, 255, 0.35);
}

.cw-tutorial-cta-actions .cw-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: #1E293B;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--cw-radius-pill);
    border: 1px solid #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.cw-tutorial-cta-actions .cw-btn-secondary:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #94A3B8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   10. Dark Mode Styles
   ========================================================================== */
[data-theme="dark"] .cw-tutorial-hero {
    background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(9, 122, 255, 0.16) 0%, transparent 70%);
}

[data-theme="dark"] .cw-tutorial-filter-bar {
    background: rgba(11, 18, 32, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cw-filter-pill {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

[data-theme="dark"] .cw-filter-pill:hover {
    background: rgba(9, 122, 255, 0.2);
    border-color: var(--cw-primary);
}

[data-theme="dark"] .cw-filter-pill.is-active {
    background: var(--cw-primary);
    border-color: var(--cw-primary);
}

[data-theme="dark"] .cw-filter-pill-count {
    background: rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

[data-theme="dark"] .cw-tutorial-search-form {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .cw-tutorial-quick-pill {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cw-tutorial-hero-split-card,
[data-theme="dark"] .cw-tutorial-trending-card,
[data-theme="dark"] .cw-tutorial-topic-box,
[data-theme="dark"] .cw-tutorial-ad-banner-link,
[data-theme="dark"] .cw-card.cw-tutorial-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cw-tutorial-ad-banner-mockup {
    background: linear-gradient(90deg, #1E293B 0%, #1E3A8A 50%, #4C1D95 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cw-ad-mockup-badge,
[data-theme="dark"] .cw-ad-mockup-stars {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

[data-theme="dark"] .cw-ad-mockup-sub {
    color: #CBD5E1;
}

[data-theme="dark"] .cw-ad-mockup-title {
    background: linear-gradient(135deg, #60A5FA 0%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .cw-ad-mockup-btn {
    background: rgba(15, 23, 42, 0.7);
    color: #93C5FD;
    border-color: #3B82F6;
}


[data-theme="dark"] .cw-tutorial-pagination .page-numbers {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

[data-theme="dark"] .cw-tutorial-pagination .page-numbers:hover {
    background: rgba(9, 122, 255, 0.2);
    color: #60A5FA;
}

[data-theme="dark"] .cw-tutorial-cta-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cw-tutorial-cta-deco-circle {
    background: radial-gradient(circle, rgba(9, 122, 255, 0.15) 0%, rgba(9, 122, 255, 0) 70%);
}

[data-theme="dark"] .cw-tutorial-cta-badge {
    background: rgba(9, 122, 255, 0.15);
    border-color: rgba(9, 122, 255, 0.3);
    color: #93C5FD;
}

[data-theme="dark"] .cw-tutorial-cta-title {
    color: #FFFFFF;
}

[data-theme="dark"] .cw-tutorial-cta-desc {
    color: #94A3B8;
}

[data-theme="dark"] .cw-tutorial-cta-actions .cw-btn-secondary {
    background: #1E293B;
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cw-tutorial-cta-actions .cw-btn-secondary:hover {
    background: #334155;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}


/* ==========================================================================
   11. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 640px) {
    .cw-tutorial-search-form {
        flex-direction: column;
        border-radius: var(--cw-radius-lg);
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .cw-tutorial-search-btn {
        width: 100%;
        justify-content: center;
    }

    .cw-tutorial-filter-bar {
        top: calc(72px + 0.5rem);
    }

    .cw-tutorial-split-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cw-tutorial-split-btn {
        width: 100%;
        justify-content: center;
    }

    .cw-tutorial-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cw-tutorial-cta-actions .cw-btn {
        width: 100%;
        justify-content: center;
    }
}
