/* Root Variables */
:root {
    --primary-color: #2e7d32;
    --primary-light: #e8f5e9;
    --primary-dark: #1b5e20;
    --text-color: #333;
    --text-light: #666;
    --card-color: white;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

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

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

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

/* Layout */
.guide-main {
    padding: 0;
    background-color: #f8f9fa;
}

.guide-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Sidebar Navigation */
.guide-sidebar {
    width: 280px;
    position: fixed;
    top: 80px;
    left: 20px;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 250px); /* Ensure it doesn't overlap with get-started section */
    overflow-y: auto;
}

.guide-sidebar.scroll-up {
    top: -100%;
    transition: top 0.3s ease-in-out;
}

.get-started-visible .guide-sidebar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.guide-sidebar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-item {
    margin-bottom: 10px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar-nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.sidebar-nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.guide-main-content {
    margin-left: 320px; /* Match sidebar width (280px) + sidebar left margin (20px) + spacing (20px) */
    width: calc(100% - 320px);
    padding: 0;
}

/* Hero Section */
.guide-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1532996122724-e3c354a0b15b?w=1200');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    width: calc(100% - 320px); /* Match main content width */
    margin-left: 320px; /* Match sidebar width (280px) + sidebar left margin (20px) + spacing (20px) */
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,100,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.guide-hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 2;
}

.guide-hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

/* Guide Sections */
.guide-sections-container {
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-section {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.guide-section-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.guide-section-header h2 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section-content {
    padding: 30px;
    line-height: 1.6;
    background-color: white;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.info-card, .myth-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.info-card:hover, .myth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.info-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.myth-card-header {
    background-color: #f57c00;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.info-card-content, .myth-card-content {
    padding: 20px;
    font-size: 1.05rem;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    cursor: pointer;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .guide-sidebar.active {
        transform: translateX(0);
    }

    .guide-main-content {
        margin-left: 0;
        width: 100%;
    }

    .guide-hero {
        width: 100%;
        margin-left: 0;
        padding: 100px 20px;
    }

    .guide-sections-container {
        padding: 20px;
    }

    .sidebar-close {
        display: block;
    }

    .mobile-nav-toggle {
        display: block;
    }
}
