/* guide.css - Guide page specific styles with Recommended Font Sizes */


/* Main Content Layout - Only apply grid to main-content, not entire page */
.main-content {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
    padding: 1.5rem 0;
    align-items: start;
}

/* Reset footer to ensure proper alignment */
.guide-page #footer,
.guide-page .footer {
    display: block !important;
    grid-column: unset !important;
    width: 100% !important;
}

.guide-page .footer .container {
    display: block !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.guide-page .footer .footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
}

.guide-page .footer .footer-section {
    display: block !important;
}

.guide-page .footer .footer-section h3 {
    margin-bottom: 1rem !important;
}

.guide-page .footer .footer-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: none;
    border: none;
}

.sidebar-title {
    font-size: 17px; /* Recommended: 17px */
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary);
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px; /* Recommended: 16px */
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(29, 53, 46, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

/* Content Area */
.content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

/* Sections */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 34px; /* Recommended: 34px */
    margin-bottom: 1rem;
    color: var(--primary);
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 700;
    line-height: 1.3;
}

.section-intro {
    font-size: 17px; /* Recommended: 17px */
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Step Cards */
.step-card {
    background: #f7f6f4;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: none;
    transition: all 0.3s;
}

.step-card:hover {
    box-shadow: none;
    transform: translateY(-1px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(18, 67, 109, 0.3);
}

.step-title {
    font-size: 19px; /* Recommended: 19px */
    font-weight: 600;
    color: var(--dark);
}

.step-content {
    color: #555;
    line-height: 1.8;
    font-size: 16px; /* Recommended: 16px */
}

.step-content p {
    margin-bottom: 1rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 16px; /* Recommended: 16px */
}

li strong {
    color: var(--primary);
}

/* Tip Box */
.tip-box {
    background: #edf5f7;
    border-left: none;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: none;
}

.tip-title {
    font-weight: 700;
    font-size: 17px; /* Recommended: 17px */
    color: #0c5460;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-content {
    color: #0c5460;
    line-height: 1.7;
    font-size: 16px; /* Recommended: 16px */
}

/* Warning Box */
.warning-box {
    background: #faf4e7;
    border-left: none;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: none;
}

.warning-title {
    font-weight: 700;
    font-size: 17px; /* Recommended: 17px */
    color: #856404;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-content {
    color: #856404;
    line-height: 1.7;
    font-size: 16px; /* Recommended: 16px */
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    padding: 1.5rem;
    background: #f7f6f4;
    border-radius: 10px;
    transition: all 0.3s;
    border: none;
}

.feature-item:hover {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-size: 17px; /* Recommended: 17px */
}

.feature-desc {
    color: #666;
    font-size: 16px; /* Recommended: 16px */
    line-height: 1.7;
}

/* Code Examples */
.code-example {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.code-example pre {
    margin: 0;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 15px; /* Recommended: 15px */
    line-height: 1.6;
}

/* Scrollbar styling for code blocks */
.code-example::-webkit-scrollbar {
    height: 8px;
}

.code-example::-webkit-scrollbar-track {
    background: var(--header-bg);
    border-radius: 10px;
}

.code-example::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.code-example::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    /* Ensure footer stays aligned in responsive mode */
    .footer {
        display: block !important;
    }

    .footer .container {
        display: block !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 2rem !important;
    }

    .footer .footer-content {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 2rem !important;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .sidebar-nav {
        padding: 1.2rem;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .sidebar-menu li {
        margin-bottom: 0;
    }

    .sidebar-menu a {
        text-align: center;
        padding: 0.7rem 0.5rem;
        font-size: 15px;
    }

    .sidebar-menu a:hover {
        transform: translateX(0) translateY(-2px);
    }
}

@media (max-width: 768px) {

    .content {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 28px;
    }

    .section-intro {
        font-size: 16px;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .step-title {
        font-size: 18px;
    }

    .step-content {
        font-size: 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .tip-box,
    .warning-box {
        padding: 1.2rem;
    }

    .code-example {
        padding: 1rem;
    }

    .code-example pre {
        font-size: 14px;
    }

    ul, ol {
        margin-left: 1.5rem;
    }

    .sidebar-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    
    .content {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 24px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }

    .step-title {
        font-size: 17px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}

/* CRITICAL: Force footer alignment at end of file for highest specificity */
.footer {
    display: block !important;
}

.footer .container {
    display: block !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.footer .footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}