/* Reusable Page Section Blocks */

/* ====================
   Hero Section Block
   ==================== */
   section.hero {
    padding-bottom: 6em;
}

/* Rules specific to elements INSIDE the hero block */
.hero .content-container {
    /* This container is mainly for width constraint, specific text alignment might vary */
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 0.5em;
    /* text color might vary depending on hero background - consider modifier classes or inline styles if needed */
    color: #ffffff; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Example Hero Image Grid (adjust as needed if structure changes) */
.hero-image-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align tops of images */
    gap: 20px; /* Adjust gap as needed */
    margin-top: 2em;
    flex-wrap: nowrap; /* Prevent wrapping by default */
}

.hero-image-grid img {
    max-width: 300px; /* Max width per image */
    width: 100%; /* Allow shrinking if needed within flex item */
    height: auto;
    transition: transform 0.3s ease, opacity 0.2s ease-in-out; /* Added transition */
}

.hero-image-grid img:hover {
    transform: scale(1.1);
    z-index: 10; /* To bring hovered image to the front */
}


/* =========================<seg_44>
   Call to Action (CTA) Block
   ========================== */
.cta-section {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 50px 20px;
    text-align: center;
    border-radius: 0px; /* Consider using var(--border-radius-section) or removing if always full width */
    margin-top: 50px; /* Spacing might be better handled by page layout */
    margin-bottom: 50px; /* Spacing might be better handled by page layout */
}

/* Rules specific to elements INSIDE the CTA block */
main.content .cta-section h2 {
    text-align: center; /* Center align heading within CTA block */
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

/* Consider moving button styles to component.css if these are standard variants */
.cta-section .btn-primary-cta {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    padding: 13px 26px;
    margin: 0 5px;
}

.cta-section .btn-primary-cta:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.cta-section .btn-secondary-cta {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    padding: 13px 26px;
    margin: 0 5px;
}

.cta-section .btn-secondary-cta:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.cta-section .download-note {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    opacity: 0.7;
    color: var(--text-secondary);
}

/* ===============================<seg_44>
   Feature Group Block (Specs Style)
   ================================ */
.feature-group {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 3fr; 
    gap: 2em; 
    align-items: start; 
    padding-top: 4em; 
    padding-bottom: 3em;
    border-bottom: 1px solid var(--border-color-secondary);
    margin-bottom: 0; 
}

.feature-group:first-of-type {
    padding-top: 0;
}

.feature-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0; 
}

.content .feature-category {
    grid-column: 1 / 2; 
    margin-top: 0;
    margin-bottom: 0; 
    font-weight: var(--font-weight-bold);
    text-align: left; 
    color: var(--text-primary); 
    padding-right: 1em; 
    font-size: 1.6em;
    display: flex;
    align-items: center;
}

.feature-list { 
    grid-column: 2 / 3; 
}

.feature-list p { 
    color: var(--text-secondary); 
    margin-top: 0; 
    margin-bottom: 1.5em;
}

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

.feature-list li {
    color: var(--text-primary);
    margin-bottom: 0.8em; 
    line-height: 1.5;
}

.feature-list li strong {
    font-weight: var(--font-weight-medium);
    display: block;
}

.feature-list code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--text-code);
}

/* Separator used within feature-group */
.feature-separator {
    display: none; /* Hidden by default, shown by responsive */
    grid-column: 1 / -1;
    border: none;
    height: 1px;
    background-color: var(--border-color-secondary);
    margin: 0;
    width: 100%;
}

/* Hide regular hr elements on features and requirements pages */
.features-page hr,
.requirements-page hr {
    display: block; /* Show by default */
}


/* ===============================<seg_44>
   Limitations Section Block
   ================================ */
.limitations-section {
    /* background-color: var(--background-light); Inherited from section-bg-light */
    /* border-radius: var(--border-radius-section); Inherited from section-rounded */
    /* padding: 2em; Inherited from section-padded */
    margin-top: 3em;
    margin-bottom: 3em;
}

.content .limitations-section h2 {
    /* Styles for H2 within limitations, if different from global */
    margin-bottom: 1em; /* Add space below heading */
    text-align: center;
}

.limitations-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5em;
    text-align: center;
}

.limitations-section ul {
    list-style: none;
    padding-left: 0;
    max-width: 600px; /* Constrain width of list for readability */
    margin: 0 auto 1em auto; /* Center list and add bottom margin */
}

.limitations-section li {
    display: flex; /* Align icon and text */
    align-items: center; /* Vertically align icon and text */
    margin-bottom: 0.8em;
    color: var(--text-primary);
    line-height: 1.5;
}

.limitations-section li .list-bullet-icon { /* Style for the SVG icon */
    width: 1em;
    height: 1em;
    fill: var(--color-primary); /* Use primary color for icon */
    margin-right: 0.75em; /* Space between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* ===============================<seg_44>
   Tutorials Grid/Section Blocks
   ================================ */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Default to 2 columns if space, else 1 */
    gap: 2em;
    margin-top: 0; /* Remove top margin if title section handles it */
}

.tutorial-section { /* Base for each tutorial box */
    /* background-color: var(--background-light); Inherited from section-bg-light */
    /* border-radius: var(--border-radius-section); Inherited from section-rounded */
    /* padding: 0; Remove padding, content-container handles it */
    display: flex; /* Using flex to manage inner content */
    flex-direction: column; /* Stack content and media vertically */
}

.tutorial-section .content-container { /* Inner container for padding and layout */
    padding: 2em; /* Standard padding for content inside tutorial box */
    display: flex;
    flex-direction: column; /* Default stacking for content and media */
    flex-grow: 1; /* Allow content to grow and push media down if needed */
    width: 100%; /* Ensure it takes full width of parent grid item */
    box-sizing: border-box;
}

.tutorial-full-width { /* Modifier for a tutorial taking full grid width */
    grid-column: 1 / -1; /* Span all columns */
}

.tutorial-content {
    /* Styles for the text part of a tutorial */
}
.tutorial-content h3 {
    font-size: 1.4em;
    font-weight: var(--font-weight-bold);
    margin-top: 0;
    margin-bottom: 0.75em;
    color: var(--text-primary);
}
.tutorial-content p {
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
}
.tutorial-content ol,
.tutorial-content ul {
    padding-left: 1.5em; /* Indent lists */
    margin-top: 0;
    margin-bottom: 1em;
}
.tutorial-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    color: var(--text-primary);
}
.tutorial-content code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background-color: var(--background-body); /* Match body background for inline code */
    border: 1px solid var(--border-color);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--text-code);
}

.tutorial-media-placeholder { /* For the image/video part of a tutorial */
    margin-top: 1.5em; /* Space above media */
    text-align: center; /* Center image if it's smaller than container */
}
.tutorial-media-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Softer radius for media */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Title for a group of tutorials (e.g., "Setup", "Recording") */
.tutorial-section-title {
    padding-top: 2em; /* Space above title if it's not the first element */
    padding-bottom: 1em; /* Space below title */
    margin-bottom: 0; /* Reset default margin if any */
}
.content .tutorial-section-title h2 { /* Ensure specific styling for these titles */
    text-align: left; /* Override default center for main h2 if needed */
    font-size: 2em; /* Example size, adjust as needed */
    margin-bottom: 0; /* No bottom margin, padding handles it */
}


/* ================================= 
   Block Responsive Styles 
   ================================= */

@media (max-width: 920px) { /* Larger tablets and small desktops */
    /* Hero image adjustments for slightly smaller screens */
    .hero-image-grid .hero-img-1,
    .hero-image-grid .hero-img-3 {
        max-width: 220px; /* Slightly smaller side images */
    }
    .hero-image-grid {
        gap: 15px;
    }
    .hero-image-grid .hero-img-center {
        max-width: 280px; /* Slightly smaller center image */
    }
}

@media (max-width: 768px) { /* Tablet */
    .cta-section h2 { font-size: 1.8rem; }
    .cta-section p { font-size: 1rem; }
    .cta-section { 
        padding: 40px 15px;
    }
    .hero-image-grid {
        flex-direction: column; /* Stack images */
        align-items: center; /* Center stacked images */
        gap: 20px; /* Gap between stacked images */
    }
    .hero-image-grid img { /* Apply to all images in the grid for mobile */
        max-width: 80%; /* Allow images to be larger when stacked */
        margin-left: auto; /* Center images if they don't fill max-width */
        margin-right: auto;
    }
    .hero-image-grid .hero-img-1,
    .hero-image-grid .hero-img-3,
    .hero-image-grid .hero-img-center {
        max-width: 320px; /* Unified max-width when stacked, can adjust */
        width: 100%; /* Ensure they try to fill the container up to max-width */
    }
    section.hero {
        padding-bottom: 3em; /* Reduce bottom padding on mobile */
    }

    /* Hide download button and its note in CTA on tablets and below */
    .cta-section .btn-secondary-cta,
    .cta-section .download-note {
        display: none !important; 
    }

    .features-page .feature-group,
    .requirements-page .feature-group {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 1em; /* Reduce gap */
        padding-top: 2em;
        padding-bottom: 2em;
        border-bottom: none !important; /* Hide border, use only feature-separator - ADDED !important */
        box-shadow: none !important; /* ADDED: Reset box-shadow */
    }
    .features-page .feature-group::before,
    .features-page .feature-group::after,
    .requirements-page .feature-group::before,
    .requirements-page .feature-group::after {
        display: none !important;
        content: "" !important;
        border: none !important;
        background: none !important;
        height: 0 !important;
        width: 0 !important;
    }
    .features-page hr,
    .requirements-page hr {
        display: none; /* Hide regular hr on mobile */
    }
    .features-page .feature-separator,
    .requirements-page .feature-separator {
        display: none !important; /* Hide separator for diagnosis */
        margin-top: 1.5em;
        margin-bottom: 1.5em;
    }
    .features-page .feature-category,
    .requirements-page .feature-category {
        grid-column: 1 / -1; /* Full width */
        text-align: center; /* Center heading */
        font-size: 1.5em; /* Adjust size */
        padding-right: 0;
        justify-content: center; /* Center icon + text */
    }
    .features-page .feature-list,
    .requirements-page .feature-list {
        grid-column: 1 / -1; /* Full width */
    }

    .cta-section .btn-secondary-cta,
    .cta-section .btn-primary-cta {
        display: block; /* Stack buttons */
        margin: 10px auto; /* Center and add vertical spacing */
        width: 80%; /* Give some width */
        max-width: 300px;
    }

    /* Styles moved from responsive.css for blocks */
    .limitations-section p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .limitations-section h2,
    .limitations-section li {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .tutorial-section .content-container { /* Targeting the inner one */
        padding: 1.5em; /* Increased padding for tablet */
    }
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
        margin-top: 2em;
    }
    .tutorial-full-width,
    .tutorial-half-width {
        grid-column: span 1;
    }
    .category-filter { /* Feedback page block */
        flex-direction: column;
        align-items: stretch; 
    }
    .category-filter .category-button {
        width: 100%; 
        text-align: center;
    }
    .pagination { /* Feedback page block */
        gap: 3px; 
    }
    .pagination .page-number,
    .pagination .pagination-button {
        padding: 6px 10px; 
        font-size: 0.9em; 
    }
}


@media (max-width: 480px) { /* Mobile */
    .hero-image-grid .hero-img-center {
        /* Styles already adjusted by 768px, further specific overrides if needed */
    }
    .hero-image-grid img { /* Further refinement for smaller mobiles if necessary */
        max-width: 90%; 
    }
    .features-grid { /* Homepage features grid */
        grid-template-columns: 1fr; /* Stack items */
        gap: 1.5em;
    }
    .cta-section {
        padding: 30px 10px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    /* Example of a more complex pseudo-element rule, if needed */
    /* .cta-section::after { 
        content: \'✨\'; 
        display: block; 
        margin-top: 1em; 
        font-size: 1.5em;
    } */
     .cta-section h2 { font-size: 1.6rem; }
     .cta-section .btn { 
        width: 90%; /* Wider buttons on mobile */
     }
    
    .features-page .feature-group,
    .requirements-page .feature-group {
        gap: 0.5em; /* Further reduce gap */
        border-bottom: none !important; /* Hide border, use only feature-separator - ADDED !important */
        box-shadow: none !important; /* ADDED: Reset box-shadow */
    }
    .features-page .feature-group::before,
    .features-page .feature-group::after,
    .requirements-page .feature-group::before,
    .requirements-page .feature-group::after {
        display: none !important;
        content: "" !important;
        border: none !important;
        background: none !important;
        height: 0 !important;
        width: 0 !important;
    }
    .features-page .feature-separator,
    .requirements-page .feature-separator {
        display: none !important; /* Hide separator for diagnosis */
        margin-top: 1em;
        margin-bottom: 1em;
    }

    /* Styles moved from responsive.css for blocks */
    .limitations-section p { /* Already covered by 768px, but can be more specific if needed */
        max-width: 100%;
    }
    .limitations-section ul {
        display: block;
        width: 100%;
    }
    .tutorial-section .content-container { /* Targeting the inner one */
        padding: 2em; /* Reset or specific phone padding */
    }
    .tutorial-content h3,
    .tutorial-content p,
    .tutorial-content li {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .support-grid { /* Support page block */
        grid-template-columns: 1fr;
        gap: 2.5em; 
    }
}