/* ==========================================================================
   LearnDoodles.com — Modern Comic & Doodle Theme
   Inspiration: Knowbase / Gutenverse Comic Aesthetic
   ========================================================================== */

:root {
    --bg-main: #fbfbfd;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --color-orange: #ff6b35;
    --color-orange-hover: #fa571b;
    --color-orange-light: #fff5f0;
    
    --color-teal: #009688;
    --color-teal-dark: #00796b;
    --color-teal-light: #e0f2f1;
    
    --color-yellow: #f59e0b;
    --color-yellow-light: #fef3c7;
    
    --color-rose: #f43f5e;
    --color-rose-light: #ffe4e6;
    
    --color-indigo: #6366f1;
    --color-indigo-light: #e0e7ff;
    
    --color-sky: #0ea5e9;
    --color-sky-light: #e0f2fe;

    --border-color: #e2e8f0;
    --border-dark: #0f172a;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-comic: 3px 3px 0px #0f172a;
    --shadow-comic-lg: 5px 5px 0px #0f172a;

    --font-heading: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
    background: transparent !important;
    position: sticky;
    top: 14px;
    z-index: 100;
    padding: 0 20px;
    transition: all 0.25s ease;
}

.site-header.scrolled {
    box-shadow: none !important;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 2.5px solid var(--border-dark);
    border-radius: 20px;
    box-shadow: var(--shadow-comic);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 24px;
    gap: 16px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.25s ease;
}

.site-header.scrolled .header-inner {
    box-shadow: var(--shadow-comic-lg);
}

/* 1. Left Nav: aligned left */
.header-inner .main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: start;
}

/* 2. Center Brand Logo: dead center */
.header-inner .brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    text-decoration: none;
}

/* 3. Right Actions: aligned right */
.header-inner .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.mobile-nav-toggle {
    display: none;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo-img {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.brand-logo:hover .site-logo-img {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-comic);
    transform: rotate(-3deg);
    transition: transform 0.2s ease;
}

.brand-logo:hover .logo-badge {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-title span {
    color: var(--color-orange);
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-teal);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    position: relative;
}

.nav-link:hover {
    color: var(--color-orange);
}

.nav-badge {
    font-size: 10px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid #fed7aa;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 16px;
}

.btn-orange {
    background-color: var(--color-orange);
    color: #ffffff;
    border-color: var(--border-dark);
    box-shadow: 2px 2px 0px var(--border-dark);
}

.btn-orange:hover {
    background-color: var(--color-orange-hover);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border-dark);
}

.btn-teal {
    background-color: var(--color-teal);
    color: #ffffff;
    border-color: var(--border-dark);
    box-shadow: 2px 2px 0px var(--border-dark);
}

.btn-teal:hover {
    background-color: var(--color-teal-dark);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border-dark);
}

.btn-outline {
    background-color: #ffffff;
    color: var(--text-main);
    border: 2px solid var(--border-dark);
    box-shadow: 2px 2px 0px var(--border-dark);
}

.btn-outline:hover {
    background-color: #f8fafc;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--border-dark);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 50px 0 70px;
    background: radial-gradient(circle at 85% 30%, #fff7ed 0%, transparent 45%),
                radial-gradient(circle at 15% 70%, #ecfdf5 0%, transparent 40%),
                var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-pill-icon {
    color: var(--color-orange);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero-title .highlight-orange {
    color: var(--color-orange);
    position: relative;
    display: inline-block;
}

.hero-title .highlight-orange::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #fde68a;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Hero Search Box */
.hero-search-wrapper {
    background: #ffffff;
    border: 2.5px solid var(--border-dark);
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-comic-lg);
    margin-bottom: 20px;
    position: relative;
}

.hero-search-input {
    border: none;
    outline: none;
    font-size: 15px;
    width: 100%;
    background: transparent;
    color: var(--text-main);
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--border-dark);
    border-radius: 16px;
    box-shadow: var(--shadow-comic-lg);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.hero-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.hero-search-item:last-child {
    border-bottom: none;
}

.hero-search-item:hover {
    background: #f8fafc;
}

/* Trending Tags */
.trending-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.trending-label {
    font-weight: 700;
    color: var(--text-main);
}

.tag-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tag-pill:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
}

/* Hero Art Graphic (Rocket Comic) */
.hero-art-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-comic-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.floating-critter {
    position: absolute;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ==========================================================================
   5 BENTO ILLUSTRATION CARDS (Exact Gutenverse / Knowbase Style)
   ========================================================================== */
.bento-section {
    padding: 40px 0 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 22px;
    margin-bottom: 22px;
}

.bento-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 22px;
}

.bento-card {
    border: 2.5px solid var(--border-dark);
    border-radius: 20px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-comic-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 280px;
    text-decoration: none;
}

.bento-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--border-dark);
}

/* Card Themes */
.card-gray {
    background-color: #f1f5f9;
}

.card-pink {
    background-color: #ffe4e6;
}

.card-yellow {
    background-color: #fef08a;
}

.card-green {
    background-color: #ccfbf1;
}

.card-blue {
    background-color: #e0e7ff;
}

.bento-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--border-dark);
    background: #ffffff;
}

.bento-card-art {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 20px;
    min-height: 120px;
}

.bento-card-content {
    margin-top: auto;
}

.bento-card-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 6px;
}

.bento-card-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 14px;
}

.bento-card-link {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.bento-card:hover .bento-card-link {
    gap: 10px;
    color: var(--color-orange);
}

/* ==========================================================================
   TUTORIALS & VIDEO GUIDES SECTION
   ========================================================================== */
.section-wrapper {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    border: 1.5px solid #fed7aa;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

/* Filter Controls */
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--border-dark);
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--border-dark);
    transition: all 0.15s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--border-dark);
    color: #ffffff;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--color-orange);
}

/* Tutorials Grid */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.tutorial-card {
    background: #ffffff;
    border: 2.5px solid var(--border-dark);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-comic-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--border-dark);
}

.tutorial-thumb-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f8fafc;
    border-bottom: 2px solid var(--border-dark);
    overflow: hidden;
}

.tutorial-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumb-img {
    transform: scale(1.05);
}

.tutorial-badge-video {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid var(--border-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 1.5px 1.5px 0px var(--border-dark);
}

.tutorial-badge-step {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e0f2fe;
    color: #0284c7;
    border: 1.5px solid var(--border-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 1.5px 1.5px 0px var(--border-dark);
}

.tutorial-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fef3c7;
    color: #b45309;
    border: 1.5px solid var(--border-dark);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 1.5px 1.5px 0px var(--border-dark);
}

.tutorial-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.tutorial-category {
    font-weight: 700;
    color: var(--color-teal);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.tutorial-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.tutorial-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
}

.tutorial-snippet {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.difficulty-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.action-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   DRAWING DIRECTORY SECTION
   ========================================================================== */
.directory-section {
    background: #ffffff;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.drawing-card {
    border: 2px solid var(--border-dark);
    border-radius: 16px;
    padding: 16px;
    background: #fbfbfd;
    box-shadow: var(--shadow-comic);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawing-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--border-dark);
    background: #ffffff;
}

.drawing-thumb-wrap {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 12px;
}

.drawing-thumb-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drawing-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    text-transform: capitalize;
    color: var(--text-main);
    margin-bottom: 4px;
}

.drawing-steps-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-teal);
    background: var(--color-teal-light);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.drawing-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.drawing-actions .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
}

/* ==========================================================================
   INSTAGRAM CHALLENGE & ART SCHOOL SECTION
   ========================================================================== */
.community-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 20px;
}

.community-box {
    border: 2.5px solid var(--border-dark);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-comic-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-instagram {
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
}

.box-school {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
}

.community-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--border-dark);
    background: #ffffff;
    margin-bottom: 16px;
    align-self: flex-start;
}

.community-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 12px;
}

.community-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.challenge-steps {
    list-style: none;
    margin-bottom: 24px;
}

.challenge-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 8px;
    color: #334155;
}

.step-num {
    background: var(--border-dark);
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   NEWSLETTER BANNER (Gutenverse Comic Style)
   ========================================================================== */
.newsletter-section {
    padding: 40px 0 60px;
}

.newsletter-card {
    background: #f8fafc;
    border: 2.5px solid var(--border-dark);
    border-radius: 24px;
    padding: 40px 48px;
    box-shadow: var(--shadow-comic-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 10px;
}

.newsletter-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
}

.newsletter-input {
    flex: 1;
    border: 2px solid var(--border-dark);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

.newsletter-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   FOOTER (Dark Theme matching Gutenverse / Knowbase)
   ========================================================================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 3px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

/* ==========================================================================
   TUTORIAL MODAL (VIDEO & STEP VIEWER)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border: 3px solid var(--border-dark);
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0px var(--border-dark);
    position: relative;
    padding: 28px;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--border-dark);
    background: #000;
    margin-bottom: 20px;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-step-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.modal-step-card {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    background: #f8fafc;
}

.modal-step-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 6px;
}

.modal-step-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-teal);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-search-wrapper {
        margin: 0 auto 20px;
    }
    
    .trending-tags {
        justify-content: center;
    }

    .hero-art-container {
        margin-top: 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid-bottom {
        grid-template-columns: 1fr;
    }

    .community-split {
        grid-template-columns: 1fr;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 24px;
    }

    .newsletter-form {
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .site-header {
        top: 8px;
        padding: 0 10px;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 14px;
        border-radius: 16px;
        border-width: 2px;
        box-shadow: 2px 2px 0px var(--border-dark);
        gap: 10px;
        position: relative;
    }

    /* Top: Center Logo */
    .header-inner .brand-logo {
        margin: 0 auto;
        order: 1;
    }

    .site-logo-img {
        max-width: 155px;
        height: 34px;
    }

    /* Top Right: Hamburger Toggle Button */
    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 12px;
        top: 10px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 2px solid var(--border-dark);
        background: #ffffff;
        box-shadow: 2px 2px 0px var(--border-dark);
        font-size: 19px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.15s ease;
    }

    .mobile-nav-toggle:active {
        transform: translate(1px, 1px);
        box-shadow: 1px 1px 0px var(--border-dark);
    }

    /* Bottom Row: 50% / 50% Action Buttons */
    .header-inner .header-actions {
        display: flex !important;
        width: 100%;
        gap: 8px;
        order: 2;
    }

    .header-inner .header-actions .btn {
        flex: 1;
        display: inline-flex !important;
        justify-content: center;
        padding: 8px 6px;
        font-size: 12px;
    }

    /* By default: HIDE NAV LINKS FROM THE HEADER BAR */
    .header-inner .main-nav {
        display: none !important;
    }

    /* When Hamburger is clicked: OPEN AS DROPDOWN DRAWER */
    .header-inner .main-nav.active,
    .header-inner .main-nav[style*="display: flex"] {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border: 2.5px solid var(--border-dark) !important;
        border-radius: 18px !important;
        box-shadow: var(--shadow-comic-lg) !important;
        padding: 16px !important;
        gap: 8px !important;
        z-index: 1000 !important;
        order: 3;
    }

    .header-inner .main-nav .nav-link {
        padding: 11px 14px;
        border-radius: 12px;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--text-main);
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1.5px solid #f1f5f9;
        background: #f8fafc;
        transition: all 0.15s ease;
    }

    .header-inner .main-nav .nav-link:hover {
        background: #fff5f0;
        border-color: var(--border-dark);
        color: var(--color-orange);
        transform: translate(-1px, -1px);
        box-shadow: 2px 2px 0px var(--border-dark);
    }

    .header-inner .main-nav .nav-link.nav-link-school {
        color: var(--color-orange);
        border-color: #fed7aa;
        background: #fff5f0;
    }

    .hero-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px 16px;
    }
}
