/* =====================================================
   Disabled Dog Care — Mobile-First Stylesheet
   Gradient: #667eea → #764ba2  |  Font: Inter
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -44px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 6px 0;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === HEADER & NAV === */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* === HAMBURGER BUTTON === */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 200;
    position: relative;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animate hamburger → X when open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE NAV OVERLAY === */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 140;
    cursor: pointer;
}
.nav-overlay.active {
    display: block;
}

/* === MOBILE NAV PANEL (default — slides in from right) === */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 82vw);
    height: 100dvh;
    background: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    padding-bottom: 2rem;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 150;
    gap: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile dropdown toggle arrow */
.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dropdown-toggle::after {
    content: '›';
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
    margin-left: 0.5rem;
}
.dropdown.open .dropdown-toggle::after {
    transform: rotate(90deg);
}

/* Mobile dropdown sub-menu (hidden by default, toggled via JS) */
.dropdown-menu {
    display: none;
    background: rgba(0, 0, 0, 0.18);
    padding: 0;
    margin: 0;
    list-style: none;
}
.dropdown.open .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === DESKTOP NAV === */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-overlay {
        display: none !important;
    }

    .nav-menu {
        position: static;
        height: auto;
        width: auto;
        background: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        overflow: visible;
        transition: none;
        box-shadow: none;
        gap: 0.2rem;
    }

    .nav-menu > li {
        border: none;
    }

    .nav-menu > li > a {
        padding: 0.4rem 0.7rem;
        border-radius: 6px;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .nav-menu > li > a:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    /* Desktop dropdown */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle::after {
        display: none;
    }

    .dropdown-menu {
        display: block;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 230px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        z-index: 200;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li {
        border: none;
    }

    .dropdown-menu a {
        color: #333;
        padding: 0.6rem 1.1rem;
        font-size: 0.875rem;
        font-weight: 400;
    }

    .dropdown-menu a:hover {
        background: #f3f4f6;
        color: #667eea;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    line-height: 1.4;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: #ffd700;
    color: #1a1a1a;
    border-color: #ffd700;
}
.btn-primary:hover {
    background: #ffe833;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.45);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 1rem 4.5rem;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.92;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 3.5rem;
    }
}

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* === SECTIONS === */
.intro,
.care-guides-section,
.care-guides {
    background: white;
}

.conditions-section,
.conditions,
.resources,
.care-tips {
    background: #f8f9fa;
}

.intro,
.services,
.conditions,
.conditions-section,
.care-tips,
.care-guides-section,
.care-guides,
.resources,
.cta {
    padding: 3.5rem 1rem;
}

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

/* Section headings */
.intro h2,
.services h2,
.conditions h2,
.conditions-section h2,
.care-tips h2,
.care-tips h3,
.care-guides h2,
.care-guides-section h2,
.resources h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-intro,
.intro > .container > p,
.intro-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 2rem;
    text-align: center;
}

.cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* === CARD GRIDS === */
.feature-grid,
.conditions-content,
.tips-grid,
.guides-grid,
.resources-grid,
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .feature-grid,
    .conditions-content,
    .tips-grid,
    .guides-grid,
    .resources-grid,
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(4, 1fr); }
    .conditions-content { grid-template-columns: repeat(3, 1fr); }
    .tips-grid { grid-template-columns: repeat(2, 1fr); }
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-grid { grid-template-columns: repeat(3, 1fr); }
    .section-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === CARDS === */
.feature-card,
.condition-card,
.guide-card,
.resource-card,
.section-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8eaed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.condition-card:hover,
.guide-card:hover,
.resource-card:hover,
.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.16);
}

.feature-card h3,
.section-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
}

.condition-card h3,
.guide-card h3,
.resource-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.6rem;
}

.feature-card p,
.condition-card p,
.guide-card p,
.resource-card p,
.section-card p {
    color: #555;
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 0.875rem;
}

.condition-card ul,
.guide-card ul,
.section-card ul {
    padding-left: 1.1rem;
    margin-top: 0.25rem;
}

.condition-card li,
.guide-card li,
.section-card li {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.35rem;
    list-style: disc;
}

.feature-icon,
.card-icon {
    font-size: 2.25rem;
    margin-bottom: 0.875rem;
    display: block;
}

/* Tip card */
.tip {
    background: white;
    border-radius: 10px;
    padding: 1.4rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #667eea;
}

.tip h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}

.tip p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Resource button */
.resource-btn {
    display: inline-block;
    background: #ffd700;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.5rem;
}
.resource-btn:hover {
    background: #ffe833;
    transform: translateY(-2px);
}

/* Care tips wrapper */
.care-tips .container h3 {
    text-align: center;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === BLOG LIST === */
.blog-layout {
    background: #f8f9fa;
    min-height: 75vh;
    padding: 2rem 0;
}

.blog-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.blog-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.blog-description {
    font-size: 1.05rem;
    color: #555;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.blog-content {
    padding: 0 0 2rem;
}

.blog-intro {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Category filter */
.category-filter {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-filter h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #f3f4f6;
    color: #667eea;
    border: 2px solid #e5e7eb;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Article grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Article card */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.16);
}

.article-card-image {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

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

.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.placeholder-icon {
    font-size: 2.75rem;
    opacity: 0.55;
}

.article-categories {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-category {
    background: rgba(255, 255, 255, 0.92);
    color: #667eea;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.article-card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.6rem;
}

.article-title {
    margin-bottom: 0.6rem;
}

.article-title a {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-title a:hover { color: #667eea; }

.article-excerpt {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pagination-info {
    color: #999;
    font-size: 0.875rem;
}

/* === ARTICLE (SINGLE) === */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

@media (min-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr 270px;
        align-items: start;
        padding: 2rem 1.5rem;
    }
}

.article-main { min-width: 0; }

.article-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.article-header .article-meta {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.article-header .article-categories {
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
}

.article-header .article-categories a {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.78rem;
    transition: background 0.2s;
}

.article-header .article-categories a:hover {
    background: rgba(255, 255, 255, 0.35);
}

.article-header h1 {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.article-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

.article-body {
    padding: 2rem 1.5rem;
}

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2rem 0 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eaed;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 1.5rem 0 0.6rem;
}

.article-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.5rem;
}

.article-body p {
    color: #444;
    line-height: 1.78;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    color: #444;
    line-height: 1.65;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.article-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-body code {
    background: #f1f3f5;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
    color: #d63384;
}

.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* TOC Sidebar */
.article-sidebar {
    order: -1; /* Above article on mobile */
}

@media (min-width: 900px) {
    .article-sidebar {
        order: 0;
        position: sticky;
        top: 68px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.table-of-contents {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.toc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.toc-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.2s;
    font-family: inherit;
}
.toc-toggle:hover { background: rgba(255, 255, 255, 0.18); }

.toc-nav { padding: 0.75rem; }

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

.toc-list li { margin-bottom: 0.2rem; }

.toc-link {
    display: block;
    padding: 0.38rem 0.7rem;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.45;
    transition: background 0.18s, color 0.18s;
}

.toc-link:hover { background: #f3f4f6; color: #667eea; }

.toc-link.toc-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.toc-h2 { font-weight: 600; }
.toc-h3 { padding-left: 1.2rem; font-size: 0.8rem; }
.toc-h4 { padding-left: 2.2rem; font-size: 0.76rem; }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

/* === SUPPORT PAGE === */
.support-page {
    background: #f8f9fa;
    min-height: 75vh;
    padding: 2rem 0;
}

.support-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.support-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.support-intro {
    font-size: 1.05rem;
    color: #555;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

.support-content { padding: 0 0 2rem; }

.help-options,
.contact-section,
.video-consultation,
.community-section {
    background: white;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.help-options h2,
.contact-section h2,
.video-consultation h2,
.community-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.help-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    margin-bottom: 0.875rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.help-option:last-child { margin-bottom: 0; }

.help-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.1);
}

.help-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.help-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}

.help-content p {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Contact form */
.support-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.14);
}

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

.char-count {
    text-align: right;
    font-size: 0.76rem;
    color: #999;
    margin-top: 0.25rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.calendly-section {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.calendly-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
}

.calendly-section p { color: #555; margin-bottom: 0.75rem; font-size: 0.925rem; }

.calendly-section ul {
    text-align: left;
    padding-left: 1.5rem;
    margin: 0.75rem auto 1.25rem;
    max-width: 400px;
}

.calendly-section li {
    color: #555;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    list-style: disc;
}

.calendly-btn,
.community-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calendly-btn:hover,
.community-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    color: white;
}

.community-section > p {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.community-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

@media (min-width: 600px) {
    .community-features { grid-template-columns: repeat(3, 1fr); }
}

.community-features .feature {
    text-align: center;
    padding: 1.25rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.community-features .feature h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}

.community-features .feature p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* === FOOTER === */
.footer {
    background: #1a1a2e;
    color: #c8cad8;
    text-align: center;
    padding: 2rem 1rem;
}

.footer p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer p + p {
    margin-top: 0.4rem;
    opacity: 0.65;
    font-size: 0.8rem;
}

/* === ACCESSIBILITY === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    border-radius: 3px;
}

/* === ALERT SHORTCODE === */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.alert-info    { background: #eff6ff; border-color: #667eea; color: #1e40af; }

/* === UTILITY === */
.homepage { background: white; }
