/* help.css - Dedicated styles for the Help Center page */

/* --- Brand Colors as CSS Variables --- */
:root {
    --primary-color: #ff8c00; /* Dark Orange - for buttons, active states */
    --secondary-color: #002060; /* Dark Blue/Navy - for sidebar, headings */
    --accent-color: #4fc3f7; /* Light Blue - for subtle accents/hovers */
    --background-light: #ffffff; /* White - main page background, card backgrounds */
    --text-dark: #333; /* General dark text */
    --text-light: #ecf0f1; /* Light text for dark backgrounds */
    --border-color: #e0e0e0; /* Light grey border */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* --- Base Styles & Typography --- */
body {
    font-family: 'Inter', sans-serif; /* Using Inter as default, as per instructions */
    margin: 0;
    padding: 0;
    background-color: var(--background-light); /* Main page background */
    color: var(--text-dark);
    line-height: 1.6;
    display: flex; /* Use flexbox for the main app layout */
    min-height: 100vh; /* Ensure body takes full viewport height */
    overflow-x: hidden; /* Prevent horizontal scroll when sidebar is off-screen */
}

/* --- App Container Layout (Flexbox) --- */
.app-container {
    display: flex;
    width: 100%;
}

/* --- Sidebar Styling --- */
.sidebar {
    width: 250px; /* Default width for desktop */
    background-color: var(--secondary-color); /* Dark Blue sidebar */
    color: var(--text-light);
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    box-shadow: 2px 0 10px var(--shadow-light); /* Subtle shadow */
    position: sticky; /* Keep sidebar fixed on scroll for desktop */
    top: 0;
    height: 100vh; /* Full height */
    overflow-y: auto; /* Enable scrolling if content overflows */
    transition: transform 0.3s ease-in-out; /* Smooth transition for mobile toggle */
    z-index: 999; /* Ensure sidebar is below hamburger but above main content on mobile */
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .clientName {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--background-light); /* White text on primary color */
    background-color: var(--primary-color); /* Dark Orange highlight */
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.navMenu li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 8px; /* Rounded corners for menu items */
    margin: 5px 10px;
}

.navMenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover on dark background */
    color: var(--accent-color); /* Light Blue on hover */
}

.navMenu li a.active {
    background-color: var(--primary-color); /* Dark Orange active link */
    color: var(--background-light);
    font-weight: 600;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

/* --- Main Content Area Styling --- */
.main-content {
    flex-grow: 1; /* Allow content to take remaining space */
    padding: 20px 30px;
    background-color: var(--background-light); /* White content background */
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out; /* Smooth transition for content push */
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.company-branding {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color); /* Dark Blue branding text */
    margin: 0;
}

.clientName-banner {
    background-color: var(--accent-color); /* Light Blue for banner client name */
    color: var(--secondary-color); /* Dark Blue text on accent */
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.help-center-section {
    padding: 20px 0;
}

.page-heading {
    text-align: center;
    color: var(--secondary-color); /* Dark Blue heading */
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
    font-size: 1.15em;
    line-height: 1.8;
}

/* --- Video Grid Layout --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between video items */
    padding: 20px;
    max-width: 1300px; /* Max width for the grid */
    margin: 0 auto;
}

.video-item {
    background-color: var(--background-light); /* White background for video cards */
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    overflow: hidden; /* Ensures rounded corners on image */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color); /* Subtle border */
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100) */
    background-color: #eee; /* Placeholder background */
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5em;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none; /* Allows clicks to pass through to the wrapper/link */
    transition: color 0.2s ease;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-item:hover .play-overlay {
    color: var(--accent-color); /* Light Blue on hover for play icon */
}

.video-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color); /* Dark Blue heading */
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
    font-weight: 600;
}

.video-item p {
    font-size: 1em;
    color: var(--text-dark);
    margin: 0 20px 25px 20px;
    flex-grow: 1; /* Allows description to take up available space */
}

.watch-video-btn {
    display: inline-block;
    background-color: var(--primary-color); /* Dark Orange button */
    color: var(--background-light); /* White text on button */
    padding: 12px 25px;
    margin: 0 20px 20px 20px;
    border-radius: 8px; /* More rounded buttons */
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease;
    align-self: flex-start; /* Aligns button to the left within flex container */
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3); /* Shadow with primary color */
}

.watch-video-btn:hover {
    background-color: #e67e00; /* Slightly darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
}

.watch-video-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 140, 0, 0.2);
}

/* --- Hamburger Menu (Mobile Only) --- */
#hamburger {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2.2em;
    cursor: pointer;
    z-index: 1000; /* Above sidebar */
    color: var(--secondary-color); /* Dark Blue hamburger icon */
    background-color: var(--background-light); /* White background */
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

#hamburger:active {
    transform: scale(0.95);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Mobile Layout */

    .sidebar {
        position: fixed; /* Make sidebar fixed for mobile overlay */
        top: 0;
        bottom: 0;
        left: -250px; /* Hide sidebar off-screen by default */
        height: 100vh; /* Full viewport height */
        z-index: 999; /* Ensure it's above content but below hamburger */
        /* Transition already defined */
    }

    .sidebar.open {
        left: 0; /* Slide sidebar into view using left property */
        transform: translateX(0); /* Reset any lingering transform */
    }

    .main-content {
        padding: 15px;
        margin-left: 0; /* No margin on mobile */
        /* Transition already defined */
    }

    .main-content.pushed {
        transform: translateX(250px); /* Push content when sidebar is open */
    }

    #hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .content-header {
        flex-direction: column; /* Stack branding and client name */
        align-items: flex-start;
        gap: 10px;
        margin-top: 60px; /* Make space for hamburger */
    }

    .company-branding {
        font-size: 1.5em;
    }

    .clientName-banner {
        align-self: flex-end; /* Keep client name to the right */
    }

    .page-heading {
        font-size: 1.8em;
    }
    .intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .video-grid {
        grid-template-columns: 1fr; /* Stack vertically on small screens */
        gap: 20px;
        padding: 10px;
    }
    .video-item h3 {
        font-size: 1.2em;
    }
    .video-item p {
        font-size: 0.9em;
    }
}
