/* Global Styles */
:root {
    color-scheme: light;
    --bg: var(--bg);
    --surface: var(--surface);
    --surface-alt: var(--surface-alt);
    --text: var(--text);
    --muted: var(--muted);
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --accent-strong: #2563eb;
    --border: var(--border);
    --shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: var(--text);
    --surface: var(--text);
    --surface-alt: var(--text);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --accent-strong: #3b82f6;
    --border: #334155;
    --shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background-color 0.3s, color 0.3s;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.4s ease-out;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1560px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
    display: inline-block;
}

.nav-links li a:hover {
    background: #f0f4f8;
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links li a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links li a.active:hover {
    background: #f0f4f8;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--accent);
}

/* Hide Profile link until user logs in */
.nav-links li a[href$="profile.html"] {
    display: none;
}

.header-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.header-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.header-cta:hover::before {
    left: 100%;
}

/* Desktop Search Bar - Top Right */
.search-navbar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 350px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 950;
}

.search-navbar.hidden-desktop {
    display: none;
}

.search-navbar-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0;
}

.search-navbar-input::placeholder {
    color: #9ca3af;
}

.search-navbar-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-navbar-btn:hover {
    background: var(--accent-strong);
}

/* Mobile Search Icon in Navbar */
.search-icon {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.search-icon:hover {
    transform: scale(1.1);
}

/* Mobile Search Bar */
.search-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-mobile.active {
    display: flex;
}

.search-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-mobile-input {
    flex: 1;
    border: 1px solid var(--border);
    outline: none;
    background: #f8f9fa;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
}

.search-mobile-input::placeholder {
    color: #9ca3af;
}

.search-mobile-input:focus {
    background: white;
    border-color: var(--accent);
}

.search-mobile-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.search-mobile-close:hover {
    color: var(--text);
}

/* Hide search on homepage */
body.homepage .search-navbar,
body.homepage .search-icon {
    display: none !important;
}

/* Container for search navbar */
.search-container {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #f0f4f8;
    color: var(--accent);
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero {
    background: linear-gradient(135deg, var(--surface-alt) 0%, #eef4ff 100%);
    padding: 5rem 2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 3.5rem;
    align-items: center;
}

.hero-copy {
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--surface);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.18);
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.hero-badge strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.hero-badge span,
.hero-badge p {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--surface-alt) 100%);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 65%);
    border-radius: 50%;
}

.panel-tag {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.visual-card h2 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text);
}

.visual-card p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.visual-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visual-stats div {
    flex: 1;
    min-width: 140px;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid rgba(79, 70, 229, 0.06);
}

.visual-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.visual-stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text);
}

.visual-illustration {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.visual-illustration img {
    width: 100%;
    max-width: 320px;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
}

.feature-section,
.features-section {
    padding: 4rem 2rem;
}

.section-intro {
    max-width: 940px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-intro h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: var(--text);
    margin-top: 0.75rem;
    line-height: 1.15;
}

.feature-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 75px rgba(15, 23, 42, 0.16);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    color: var(--text);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.75;
}

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

.tutorials-hero {
    background: linear-gradient(180deg, #eef5ff 0%, var(--surface-alt) 100%);
    padding: 5rem 2rem 3rem;
}

.tutorials-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2.5rem;
    align-items: center;
}

.tutorials-hero .hero-copy h1 {
    font-size: clamp(2.75rem, 4vw, 4rem);
    line-height: 1.03;
    letter-spacing: -1px;
    margin: 1rem 0 1rem;
    color: var(--text);
}

.tutorials-hero .hero-copy p {
    color: #54648f;
    font-size: 1.03rem;
    max-width: 560px;
}

.tutorials-hero .hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tutorials-hero .secondary-btn {
    background: transparent;
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #0e7490;
    box-shadow: none;
}

.tutorials-hero .secondary-btn:hover {
    background: #eff8ff;
    color: #075985;
}

.tutorials-hero .hero-panel {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
    border-radius: 32px;
    border: 1px solid #dbeafe;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.16);
    position: relative;
    overflow: hidden;
}

.tutorials-hero .panel-chip {
    display: inline-flex;
    padding: 0.55rem 1rem;
    background: rgba(14, 165, 233, 0.12);
    color: #0e7490;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tutorials-hero .hero-panel h2 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1rem;
}

.tutorials-hero .hero-panel p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.tutorials-hero .hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tutorials-hero .hero-stat-card {
    background: white;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tutorials-hero .hero-stat-card strong {
    display: block;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.tutorials-hero .hero-stat-card span {
    color: #64748b;
    font-size: 0.95rem;
}

.tutorials-section {
    padding: 3rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tutorials-section h2 {
    margin: 0;
    font-size: 2.1rem;
    color: var(--text);
}

.tutorials-section p {
    color: #5c6d86;
    margin-top: 0.5rem;
    line-height: 1.75;
    max-width: 580px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-heading a {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
}

.section-heading a:hover {
    background: rgba(14, 165, 233, 0.16);
}

.video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.video-card {
    min-height: 240px;
    align-items: stretch;
}

.video-meta {
    padding: 1rem 1.1rem;
}

.video-meta h3 {
    font-size: 1rem;
}

.video-meta p {
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .tutorials-hero .hero-content {
        grid-template-columns: 1fr;
    }

    .tutorials-hero .hero-visual {
        justify-content: center;
        margin-top: 1.5rem;
    }

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

@media (max-width: 768px) {
    .tutorials-hero {
        padding: 3rem 1.25rem 2rem;
    }

    .tutorials-hero .hero-panel {
        max-width: 100%;
    }

    .tutorials-section {
        padding: 2rem 1.25rem 3rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

.hero-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    padding-right: 150px;
    margin-right: 150px;
    background: linear-gradient(135deg, #0ea4e900, #0285c700);
    border-radius: 50%;
    opacity: 100%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-badge {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge-rating {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.rating-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.badge-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.social-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.social-row p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 1.25rem;
    min-height: 120px;
    border-radius: 12px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: #f0f4f8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--text);
}

.latest-section {
    margin-top: 3rem;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.section-heading h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.section-heading a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.section-heading a:hover {
    color: var(--accent-strong);
    gap: 0.5rem;
}

.content-grid,
.services,
.video-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.content-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #d4dae3;
    transform: translateY(-4px);
}

.video-card {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: auto;
}

.video-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.video-thumb {
    position: relative;
    width: 220px;
    height: 130px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-overlay span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.video-card:hover .play-overlay span {
    transform: none;
}

.video-meta {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-meta h3 {
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    color: var(--text);
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.2;
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

body[data-page="tutorials"] .video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

body[data-page="tutorials"] .video-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
}

body[data-page="tutorials"] .video-card:hover {
    border-color: #b7d7f4;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

body[data-page="tutorials"] .video-thumb {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

body[data-page="tutorials"] .video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body[data-page="tutorials"] .video-card:hover .video-thumb img {
    transform: scale(1.04);
}

body[data-page="tutorials"] .play-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.34));
}

body[data-page="tutorials"] .play-overlay span {
    width: 48px;
    height: 48px;
    font-size: 0;
}

body[data-page="tutorials"] .play-overlay span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid var(--text);
}

body[data-page="tutorials"] .video-meta {
    padding: 1rem;
    gap: 0.55rem;
}

body[data-page="tutorials"] .video-meta h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

body[data-page="tutorials"] .video-meta p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

@media (max-width: 1024px) {
    body[data-page="tutorials"] .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body[data-page="tutorials"] .video-grid {
        grid-template-columns: 1fr;
    }
}

.card-image {
    width: 100%;
    min-height: 198px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: background-color 0.3s, color 0.3s;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
    line-height: 1.3;
    font-weight: 600;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-placeholder {
    padding: 2rem;
    border-radius: 12px;
    background: #f0f4f8;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #d4dae3;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #d4dae3;
}

.blog-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.blog-meta .author {
    font-weight: 600;
}

.blog-preview {
    margin: 1rem 0;
    padding: 1rem 0;
    color: #4f4b7c;
    line-height: 1.6;
    min-height: 3.5rem;
    border-top: 1px solid rgba(116, 94, 255, 0.08);
    border-bottom: 1px solid rgba(116, 94, 255, 0.08);
    font-size: 0.95rem;
}

.read-more {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.detail-section {
    max-width: 100%;
    margin: 0;
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(116, 94, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 20px 38px rgba(77, 87, 182, 0.08);
    overflow: hidden;
}

/* Tutorial Player Styles */
.tutorial-player-section {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(116, 94, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 20px 38px rgba(77, 87, 182, 0.08);
    overflow: hidden;
}

.video-player-wrapper {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #000;
    border-radius: 0;
}

.youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tutorial-info {
    padding: 2.5rem;
}

.tutorial-info h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text);
    line-height: 1.3;
}

.tutorial-description {
    margin-top: 2rem;
}

.tutorial-description h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0 0 1rem;
    font-weight: 700;
}

.tutorial-description p {
    color: #4f4b7c;
    line-height: 1.8;
    font-size: 1rem;
}

.detail-banner {
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.detail-body {
    padding: 2.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.detail-body h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text);
}

.detail-body p {
    color: #4f4b7c;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.detail-meta {
    color: #7a739f;
    margin-bottom: 1.5rem;
}

.blog-content {
    margin-top: 2rem;
}

.blog-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--text);
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.9rem;
    color: #3d3184;
    line-height: 1.3;
}

.blog-content p {
    color: #4f4b7c;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.blog-content strong {
    font-weight: 700;
    color: #2d1f9c;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

.service-card,
.blog-card,
.post-card,
.query-card,
.notification-card,
.answer-card,
.tool-card,
.download-card,
.user-summary {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(77, 87, 182, 0.08);
    border: 1px solid rgba(114, 84, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.blog-card:hover,
.post-card:hover,
.query-card:hover,
.tool-card:hover,
.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(77, 87, 182, 0.12);
}

.service-card h3,
.blog-card h2,
.post-card h2,
.query-card h2,
.tool-card h3,
.download-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.service-card p,
.blog-card p,
.post-card p,
.query-card p,
.tool-card p,
.download-card p,
.notification-card p,
.answer-card p {
    color: #494b6a;
}

.service-card a,
.tool-card a,
.download-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.85rem 1.4rem;
    background: var(--text);
    color: var(--surface);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
}

.blog-card small,
.post-card small,
.query-card small,
.notification-card small,
.user-summary small {
    display: block;
    margin-top: 1rem;
    color: #7a7699;
    font-size: 0.9rem;
}

.notification-card.notification-unread {
    border-color: #7d5bff;
}

.notification-card.notification-read {
    opacity: 0.9;
}

.answers-list {
    margin-top: 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid rgba(109, 75, 255, 0.28);
}

.answer-card {
    background: #f6f1ff;
}

footer {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    background: var(--surface);
    color: var(--muted);
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    font-size: 0.95rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: white;
    color: var(--accent);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-social-link:hover {
    background: #f0f4f8;
    border-color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        width: 100%;
        text-align: left;
        transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        max-height: 0;
        overflow: hidden;
        gap: 0;
        z-index: 999;
        border-bottom: 1px solid var(--border);
        opacity: 0;
    }

    .nav-links.active {
        max-height: 600px;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        animation: slideIn 0.3s ease-out forwards;
    }

    .nav-links li:nth-child(1) { animation-delay: 0.05s; }
    .nav-links li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links li:nth-child(3) { animation-delay: 0.15s; }
    .nav-links li:nth-child(4) { animation-delay: 0.2s; }
    .nav-links li:nth-child(5) { animation-delay: 0.25s; }
    .nav-links li:nth-child(6) { animation-delay: 0.3s; }
    .nav-links li:nth-child(7) { animation-delay: 0.35s; }

    .nav-links li a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        color: var(--muted);
    }

    .nav-links li a:hover {
        background: #f0f4f8;
        color: var(--accent);
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        height: auto;
    }

    .hero-badges {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .services,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        flex-direction: column;
        width: 100%;
    }

    .footer-social p {
        width: 100%;
    }

    .footer-social-links {
        justify-content: center;
        width: 100%;
    }

    .search-container {
        display: none;
    }

    /* Mobile search */
    .search-navbar {
        display: none !important;
    }

    .search-icon {
        display: block;
    }

    .search-mobile {
        display: none;
    }

    .search-mobile.active {
        display: flex !important;
    }
}

h1 {
    margin-top: 0.25rem;
}

.blogs-section,
.tutorials-section,
.blogs-section,
.community-section,
.tools-section,
.software-section {
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.blogs-section h1,
.tutorials-section h1,
.community-section h1,
.tools-section h1,
.software-section h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.blogs-section > p,
.tutorials-section > p,
.community-section > p,
.tools-section > p,
.software-section > p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.blogs-section {
    padding-top: 0;
}

.blogs-hero {
    background: linear-gradient(180deg, #eef5ff 0%, #f7fbff 100%);
    padding: 4rem 2rem 3rem;
}

.blogs-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
    align-items: center;
}

.blogs-hero .hero-copy h1 {
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 1rem 0 1rem;
    color: #111827;
}

.blogs-hero .hero-copy p {
    color: #475569;
    max-width: 580px;
    line-height: 1.8;
}

.blogs-hero .hero-panel {
    background: linear-gradient(180deg, var(--surface) 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 58px rgba(14, 165, 233, 0.14);
}

.blogs-hero .panel-chip {
    display: inline-flex;
    padding: 0.55rem 1rem;
    background: rgba(14, 165, 233, 0.14);
    color: #0c4a6e;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blogs-hero .hero-panel h2 {
    margin: 0;
    font-size: 1.55rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.blogs-hero .hero-panel p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.blogs-hero .hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blogs-hero .hero-stat-card {
    background: white;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
}

.blogs-hero .hero-stat-card strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.blogs-hero .hero-stat-card span {
    color: #64748b;
    font-size: 0.95rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 1.75rem;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #111827;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.blog-preview {
    color: #475569;
    line-height: 1.75;
    flex-grow: 1;
    min-height: 5rem;
    margin-bottom: 1.4rem;
}

.read-more {
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0369a1;
}

@media (max-width: 1024px) {
    .blogs-hero .hero-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .blogs-hero {
        padding: 3rem 1.25rem 2rem;
    }

    .blogs-section {
        padding: 2rem 1.25rem 3rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.profile-section {
    max-width: 100%;
    margin: 0;
    padding: 2rem 1rem;
}

.profile-loading {
    text-align: center;
    padding: 2rem;
    color: #55527a;
}

.profile-header {
    background: linear-gradient(135deg, rgba(121, 72, 255, 0.1) 0%, rgba(77, 109, 255, 0.1) 100%);
    border: 1.5px solid rgba(121, 72, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s, border-color 0.3s;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(121, 72, 255, 0.3);
}

.profile-header-info h1 {
    font-size: 2rem;
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.profile-email {
    color: #55527a;
    font-size: 1rem;
    margin: 0;
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9500, #ffb74d);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(121, 72, 255, 0.15);
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(121, 72, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(121, 72, 255, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d1f9c;
    margin: 0;
}

.stat-content p {
    font-size: 0.95rem;
    color: #55527a;
    margin: 0.25rem 0 0;
}

.profile-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-content-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(116, 94, 255, 0.12);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(77, 87, 182, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(121, 72, 255, 0.12);
    transition: background-color 0.3s, border-color 0.3s;
}

.section-header h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7948ff, #4d7dff);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.user-blog-card,
.user-query-card {
    background: rgba(245, 242, 255, 0.8);
    border-left: 3px solid var(--text);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.user-blog-card:hover,
.user-query-card:hover {
    background: rgba(245, 242, 255, 1);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(121, 72, 255, 0.12);
}

.user-blog-card h3,
.user-query-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.user-blog-card p,
.user-query-card p {
    color: #55527a;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-link {
    display: inline-block;
    color: #4d6dff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-link:hover {
    color: #2d1f9c;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #7a739f;
    padding: 2rem 1rem;
    font-style: italic;
}

.notifications-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(116, 94, 255, 0.12);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(77, 87, 182, 0.08);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Login Page Styles */
.login-section {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1.5px solid rgba(121, 72, 255, 0.2);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(121, 72, 255, 0.15);
}

.login-card h1 {
    font-size: 2rem;
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1.05rem;
    color: #55527a;
    margin: 0 0 2.5rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.75rem;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.google-signin-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.google-signin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.google-signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-signin-btn svg {
    width: 20px;
    height: 20px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.loading-spinner p {
    color: #55527a;
    font-size: 1rem;
    margin: 0;
}

.loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(121, 72, 255, 0.3);
    border-top: 2px solid var(--text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.tool-section,
.tools-section,
.software-section,
.password-gen-section,
.query-detail-section,
.create-blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.tool-section h1,
.tools-section h1,
.software-section h1,
.password-gen-section h1,
.query-detail-section h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tools-grid,
.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-content,
.query-detail-header,
.query-detail-content,
.query-answers-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.tool-content {
    padding: 2rem;
    border-radius: 24px;
    display: grid;
    gap: 1.5rem;
    max-width: 560px;
    margin: 2rem auto 0;
}

.tool-content label {
    font-weight: 700;
    color: var(--text);
}

.tool-content input,
.tool-content button {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1rem 1.15rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface-alt);
}

.tool-content input:focus,
.tool-content button:focus {
    outline: none;
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.tool-content button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.password-display {
    border-radius: 18px;
    background: #eef4ff;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(79, 70, 229, 0.14);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: var(--text);
}

.query-detail-section {
    padding-top: 4rem;
    background: var(--bg);
}

.query-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.query-detail-title-section h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0;
    color: var(--text);
}

.query-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--muted);
    margin-top: 0.8rem;
}

.query-detail-meta .meta-item {
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.answer-count-badge,
.answer-count-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.query-detail-content,
.query-answers-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.query-detail-content h2,
.query-answers-section h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.answer-item {
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--surface-alt);
}

.answer-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.answer-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.answer-author {
    font-weight: 700;
    color: var(--text);
}

.answer-date {
    color: var(--muted);
    font-size: 0.95rem;
}

.answer-number {
    color: var(--accent);
    font-weight: 700;
}

.answer-item-content {
    color: var(--muted);
    line-height: 1.8;
}

.answers-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.no-answers-state,
.error-state {
    border: 1px solid rgba(248, 113, 113, 0.18);
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border-radius: 18px;
    padding: 1.5rem;
}

@media (max-width: 900px) {
    .query-detail-header,
    .tool-content,
    .query-detail-content,
    .query-answers-section {
        padding: 1.5rem;
    }

    .tools-grid,
    .downloads {
        grid-template-columns: 1fr;
    }
}

/* Community Page Styles */
.community-section {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem 3rem;
    position: relative;
    min-height: auto;
    background: var(--surface-alt);
}

.community-listing {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 1200px;
    width: 100%;
}

.community-listing h2 {
    margin: 0;
    font-size: 2rem;
    color: #111827;
}

.community-listing p {
    margin: 0.5rem 0 0;
    color: #475569;
    max-width: 600px;
    line-height: 1.7;
}

.community-hero {
    padding: 3.5rem 2rem 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
    background: linear-gradient(180deg, var(--surface) 0%, #eff6ff 100%);
    border-radius: 32px;
    border: 1px solid #dde9f3;
    box-shadow: 0 22px 50px rgba(14, 165, 233, 0.12);
}

.ask-community-content {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 640px;
}

.ask-community-content h2 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.ask-community-content p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.ask-community-btn {
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}

.ask-community-btn:hover {
    background: linear-gradient(135deg, var(--accent-strong), #0b75c6);
    transform: translateY(-1px);
}

.ask-community-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.feature-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-text h3 {
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.queries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.query-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.75rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.query-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.query-card-header {
    gap: 1rem;
    margin-bottom: 1.2rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.query-title {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

.answer-badge {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.query-content {
    font-size: 0.98rem;
    margin-bottom: 1rem;
    min-height: 4.5rem;
}

.query-meta {
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.query-footer {
    margin-top: 1rem;
}

.answers-text {
    font-weight: 700;
    color: var(--accent);
}

.view-more {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .queries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 0 1.25rem 2rem;
    }

    .community-listing {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .ask-community-section {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 24px;
    }

    .ask-community-content {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .ask-community-features {
        grid-template-columns: 1fr;
    }

    .queries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .query-card {
        padding: 1.5rem;
    }
}

.community-title h1 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.community-title p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    display: none;
}

.community-header .post-query-btn {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.community-stats {
    display: none;
}

.stat {
    display: none;
}

.stat-number {
    display: none;
}

.stat-label {
    display: none;
}

.queries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.loading-state {
    text-align: center;
    color: var(--muted);
    padding: 3rem 2rem;
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

.query-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    color: inherit;
}

.query-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.query-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.query-title {
    font-size: 1.3rem;
    color: var(--text);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.answer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.query-content {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.query-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
}

.query-author,
.query-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.answers-text {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.view-more {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.query-card:hover .view-more {
    color: var(--text);
}

@media (max-width: 768px) {
    .queries-grid {
        grid-template-columns: 1fr;
    }
    
    .community-section {
        padding: 0 1rem 2rem;
        min-height: auto;
    }
    
    .community-title p {
        display: none;
    }
    
    .community-stats {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 1.5rem 1rem;
    }
    
    .community-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
        transition: background-color 0.3s, border-color 0.3s;
}
    
    .community-title h1 {
        font-size: 1.5rem;
    }
    
    .community-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .query-card {
        padding: 1.5rem;
    }
    
    .query-title {
        font-size: 1.1rem;
    }
    
    .query-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tutorial-info {
        padding: 1.5rem;
    }
    
    .tutorial-info h1 {
        font-size: 1.4rem;
    }
    
    .video-player-wrapper {
        padding-top: 56.25%;
    }
    
    .profile-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        transition: background-color 0.3s, border-color 0.3s;
}
    
    .login-section {
        margin: 2rem auto;
    }
    
    .login-card {
        padding: 2rem 1.75rem;
    }
    
    .login-card h1 {
        font-size: 1.5rem;
    }
    
    .profile-section {
        padding: 1.5rem 1rem;
    }
    
    .profile-section {
        padding: 1.5rem 1rem;
    }
    
    .profile-header {
        padding: 1.75rem;
        transition: background-color 0.3s, border-color 0.3s;
}
    
    .profile-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .profile-header-info h1 {
        font-size: 1.5rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .profile-content-wrapper {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .profile-content-card,
    .notifications-section {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
}

/* Query Posting System */
.post-query-container {
    display: none !important;
}

.post-query-btn {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text);
}

/* Form Styles */
.query-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.submit-btn,
.cancel-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn {
    background: var(--accent);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.submit-btn:hover {
    background: var(--accent-strong);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
    background: #f3f4f6;
    color: var(--text);
    border: 1px solid var(--border);
}

.cancel-btn:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
    }
    .hero-shapes {
        display: none;
    }
}

/* Polished tutorial library layout */
body[data-page="tutorials"] {
    background: #f6f8fb;
    color: var(--text);
}

body[data-page="tutorials"] .tutorials-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

body[data-page="tutorials"] .tutorials-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 0 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e3e8ef;
    transition: background-color 0.3s, border-color 0.3s;
}

body[data-page="tutorials"] .tutorials-header-copy {
    max-width: 760px;
}

body[data-page="tutorials"] .eyebrow {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page="tutorials"] .tutorials-page-header h1 {
    margin: 0;
    max-width: 760px;
    color: #0b1220;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 800;
}

body[data-page="tutorials"] .tutorials-page-header p {
    max-width: 680px;
    margin: 0.8rem 0 0;
    color: #536178;
    font-size: 1rem;
    line-height: 1.7;
}

body[data-page="tutorials"] .tutorials-header-meta {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 260px;
}

body[data-page="tutorials"] .tutorials-header-meta span,
body[data-page="tutorials"] .tutorial-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: var(--surface);
    color: #42526b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

body[data-page="tutorials"] .tutorials-header-meta span,
body[data-page="tutorials"] .tutorial-count {
    padding: 0.55rem 0.75rem;
}

body[data-page="tutorials"] .tutorials-section {
    max-width: none;
    margin: 0;
    padding: 0;
}

body[data-page="tutorials"] .tutorials-list-heading {
    align-items: flex-end;
    margin-bottom: 1.1rem;
}

body[data-page="tutorials"] .tutorials-list-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

body[data-page="tutorials"] .tutorials-list-heading p {
    max-width: 620px;
    margin: 0.35rem 0 0;
    color: #68758a;
    font-size: 0.92rem;
    line-height: 1.65;
}

body[data-page="tutorials"] .tutorial-count {
    flex-shrink: 0;
    color: #0369a1;
    background: #eef8ff;
    border-color: #cfeeff;
}

body[data-page="tutorials"] .video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

body[data-page="tutorials"] .video-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #dde4ee;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transform: translateY(0);
}

body[data-page="tutorials"] .video-card:hover {
    border-color: #b8d8ef;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

body[data-page="tutorials"] .video-thumb {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dbe5ee;
}

body[data-page="tutorials"] .video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

body[data-page="tutorials"] .video-card:hover .video-thumb img {
    transform: scale(1.03);
}

body[data-page="tutorials"] .play-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.28));
}

body[data-page="tutorials"] .play-overlay span {
    width: 38px;
    height: 38px;
    font-size: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

body[data-page="tutorials"] .play-overlay span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #0f2f4f;
}

body[data-page="tutorials"] .video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem;
}

body[data-page="tutorials"] .video-meta h3 {
    margin: 0;
    color: #0f2f4f;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body[data-page="tutorials"] .video-meta p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body[data-page="tutorials"] .card-placeholder {
    grid-column: 1 / -1;
    background: var(--surface);
}

@media (max-width: 1120px) {
    body[data-page="tutorials"] .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body[data-page="tutorials"] .tutorials-page-header {
        align-items: flex-start;
        flex-direction: column;
        transition: background-color 0.3s, border-color 0.3s;
}

    body[data-page="tutorials"] .tutorials-header-meta {
        justify-content: flex-start;
        min-width: 0;
    }

    body[data-page="tutorials"] .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body[data-page="tutorials"] .tutorials-page {
        padding: 1.25rem 1rem 3rem;
    }

    body[data-page="tutorials"] .tutorials-page-header {
        padding-top: 1.25rem;
        transition: background-color 0.3s, border-color 0.3s;
}

    body[data-page="tutorials"] .tutorials-list-heading {
        align-items: flex-start;
    }

    body[data-page="tutorials"] .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern content hub pages: tutorials, blogs, community */
body[data-page="tutorials"],
body[data-page="blogs"],
body[data-page="community"] {
    background: var(--bg);
    color: var(--text);
}

body[data-page="tutorials"] .content-hub-page,
body[data-page="blogs"] .content-hub-page,
body[data-page="community"] .content-hub-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(4.5rem, 8vw, 8rem) 1.5rem 4rem;
}

body[data-page="tutorials"] .content-hero,
body[data-page="blogs"] .content-hero,
body[data-page="community"] .content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    max-width: none;
    padding: 0;
    margin-bottom: clamp(4rem, 6vw, 6rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.content-hero-copy {
    max-width: 760px;
}

.content-eyebrow,
.content-panel-chip,
.content-count-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.content-eyebrow {
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    background: #d8eefc;
    color: var(--accent-strong);
    font-size: 0.86rem;
}

.content-eyebrow span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #18a9eb;
}

.content-hero-copy h1 {
    margin: 0;
    color: #121a2b;
    font-size: clamp(3rem, 5vw, 5.1rem);
    line-height: 1.05;
    font-weight: 900;
    max-width: 860px;
}

.content-hero-copy p {
    max-width: 820px;
    margin: 1.1rem 0 0;
    color: #28405e;
    font-size: 1.08rem;
    line-height: 1.8;
}

.content-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.content-primary-btn,
.content-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.95rem 1.55rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-primary-btn {
    border: 1px solid #0b9ddd;
    background: #0e9fdb;
    color: var(--surface);
    box-shadow: 0 18px 35px rgba(14, 159, 219, 0.22);
}

.content-secondary-btn {
    border: 1px solid #d8e0ea;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.content-primary-btn:hover,
.content-secondary-btn:hover {
    transform: translateY(-2px);
}

.content-primary-btn:hover {
    box-shadow: 0 22px 42px rgba(14, 159, 219, 0.28);
}

.content-hero-panel {
    border: 1px solid #d4e4f7;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    padding: clamp(2rem, 3vw, 2.6rem);
    box-shadow: 0 28px 80px rgba(14, 116, 144, 0.1);
}

.content-panel-chip {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background: #d8eefc;
    color: #064e76;
    font-size: 0.83rem;
}

.content-hero-panel h2 {
    margin: 0;
    color: #121a2b;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.3;
}

.content-hero-panel p {
    margin: 1.25rem 0 2rem;
    color: #304864;
    font-size: 1.02rem;
    line-height: 1.75;
}

.content-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.content-stat-card {
    min-height: 104px;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid #d8e0ea;
    background: var(--surface);
}

.content-stat-card strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #010817;
    font-size: 1.35rem;
    line-height: 1;
}

.content-stat-card span {
    color: #52667f;
    font-size: 0.95rem;
}

body[data-page="tutorials"] .tutorials-section,
body[data-page="blogs"] .blogs-section,
body[data-page="community"] .community-section {
    max-width: none;
    margin: 0;
    padding: 0;
}

body[data-page="tutorials"] .section-heading,
body[data-page="blogs"] .section-heading,
body[data-page="community"] .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 1.4rem;
}

body[data-page="tutorials"] .section-heading h2,
body[data-page="blogs"] .section-heading h2,
body[data-page="community"] .section-heading h2 {
    margin: 0;
    color: #030a1f;
    font-size: clamp(1.8rem, 2.5vw, 2.3rem);
    line-height: 1.15;
    font-weight: 900;
}

body[data-page="tutorials"] .section-heading p,
body[data-page="blogs"] .section-heading p,
body[data-page="community"] .section-heading p {
    max-width: 720px;
    margin: 0.45rem 0 0;
    color: #28405e;
    font-size: 1rem;
    line-height: 1.65;
}

.content-count-badge,
.content-action-badge {
    flex-shrink: 0;
    padding: 0.85rem 1.1rem;
    border: 1px solid #d1eafe;
    background: #dff1fc;
    color: var(--accent-strong);
    font-size: 0.93rem;
    text-decoration: none;
}

button.content-action-badge {
    cursor: pointer;
}

body[data-page="tutorials"] .video-grid,
body[data-page="blogs"] .blog-grid,
body[data-page="community"] .queries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

body[data-page="tutorials"] .video-card,
body[data-page="blogs"] .blog-card,
body[data-page="community"] .query-card {
    min-width: 0;
    min-height: 100%;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body[data-page="tutorials"] .video-card:hover,
body[data-page="blogs"] .blog-card:hover,
body[data-page="community"] .query-card:hover {
    border-color: #b9d8ef;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

body[data-page="tutorials"] .video-card {
    display: flex;
    flex-direction: column;
}

body[data-page="tutorials"] .video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
}

body[data-page="tutorials"] .play-overlay span {
    width: 46px;
    height: 46px;
}

body[data-page="tutorials"] .video-meta {
    padding: 1rem 1.05rem 1.15rem;
}

body[data-page="tutorials"] .video-meta h3,
body[data-page="blogs"] .blog-card h3,
body[data-page="community"] .query-title {
    margin: 0;
    color: #062349;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 900;
}

body[data-page="tutorials"] .video-meta p,
body[data-page="blogs"] .blog-preview,
body[data-page="community"] .query-content {
    margin: 0.65rem 0 0;
    color: #596b83;
    font-size: 0.93rem;
    line-height: 1.65;
}

body[data-page="blogs"] .blog-card,
body[data-page="community"] .query-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

body[data-page="blogs"] .blog-meta,
body[data-page="community"] .query-meta,
body[data-page="community"] .query-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: #6b7d94;
    font-size: 0.84rem;
}

body[data-page="blogs"] .blog-meta {
    margin-top: 0.7rem;
}

body[data-page="blogs"] .read-more,
body[data-page="community"] .view-more {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--accent-strong);
    font-weight: 900;
}

body[data-page="community"] .query-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
}

body[data-page="community"] .answer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #dff1fc;
    color: var(--accent-strong);
    font-weight: 900;
}

body[data-page="community"] .query-meta {
    margin-top: 1rem;
}

body[data-page="community"] .query-footer {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

body[data-page="community"] .answers-text {
    color: #047857;
    font-weight: 800;
}

@media (max-width: 1120px) {
    body[data-page="tutorials"] .content-hero,
    body[data-page="blogs"] .content-hero,
    body[data-page="community"] .content-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-hero-panel {
        max-width: 760px;
    }

    body[data-page="tutorials"] .video-grid,
    body[data-page="blogs"] .blog-grid,
    body[data-page="community"] .queries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body[data-page="tutorials"] .content-hub-page,
    body[data-page="blogs"] .content-hub-page,
    body[data-page="community"] .content-hub-page {
        padding: 2.6rem 1rem 3rem;
    }

    .content-hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.25rem);
    }

    .content-stat-grid,
    body[data-page="tutorials"] .video-grid,
    body[data-page="blogs"] .blog-grid,
    body[data-page="community"] .queries-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="tutorials"] .section-heading,
    body[data-page="blogs"] .section-heading,
    body[data-page="community"] .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

