/*
 * Desktop layout standard (screens 1025px and wider).
 * Loaded last on every page. Phones and tablets are not affected.
 *
 * Three content widths:
 *  - Wide pages (home, listings, about, legal, sitemap): 1400px container with
 *    24px side padding, the same as the header, so page content lines up with
 *    the logo and the header buttons.
 *  - Detail pages (tool, project, course): 1200px.
 *  - Articles (news post, blog post): 1120px reading width (unchanged).
 */

@media (min-width: 1025px) {

    /* ── Wide pages ─────────────────────────────────────────────── */

    /* Listing pages with a filter sidebar: Tools, Projects, Courses, Blog, Videos */
    .main-content.main-content,
    /* Listing heroes (were 1280px, narrower than the content below them) */
    .news-hero-wrapper.news-hero-wrapper,
    .blog-hero-wrapper.blog-hero-wrapper,
    .vt-hero-wrapper.vt-hero-wrapper,
    .prompts-hero-wrapper.prompts-hero-wrapper,
    /* Prompts gallery (was 1280px) */
    .prompts-main.prompts-main,
    /* News list (was 1120px) */
    .news-page .news-container,
    /* About, legal pages, sitemap (had 32px side padding) */
    .about-container.about-container,
    .legal-container.legal-container,
    .sitemap-container.sitemap-container {
        max-width: 1400px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* News list: three cards per row in the wider container (was two) */
    .news-page .news-card {
        grid-column: span 4;
    }

    /* Home page sections: same edges as the header */
    .tools-by-subcategory-section,
    .ai-prompts-section,
    .ai-news-section,
    .blog-posts-section,
    .featured-projects-section,
    .featured-courses-section,
    .featured-watch-section {
        padding-left: 0;
        padding-right: 0;
    }

    .tools-by-subcategory-section .subcategory-container,
    .ai-prompts-section .prompts-container,
    .ai-news-section .news-container,
    .blog-posts-section .blog-posts-container,
    .featured-projects-section .projects-container,
    .featured-courses-section .courses-container,
    .featured-watch-section .watch-section-container {
        max-width: 1400px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Home: the AI Tools section had less space below it than the others */
    .tools-by-subcategory-section {
        padding-bottom: 5rem;
    }

    /* ── Detail pages ───────────────────────────────────────────── */

    /* Project page body was 1400px under a 1200px hero */
    .project-content-wrapper.project-content-wrapper {
        max-width: 1200px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Same hero spacing on tool, project and course pages (were 56 / 64 / 24px) */
    .tool-hero.tool-hero,
    .project-hero.project-hero,
    .course-hero.course-hero {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Same title style on tool, project and course pages.
       Page titles (h1) only: cards on the home page and the Courses
       listing use the same class names for their much smaller titles. */
    h1.tool-title.tool-title,
    h1.project-title.project-title,
    h1.course-title.course-title {
        font-size: 2.75rem;
        font-weight: 700;
    }

    /* ── Other page heroes ──────────────────────────────────────── */

    /* Sitemap and Submit Tool titles match the listing page heroes */
    .sitemap-hero .hero-title,
    .submit-hero h1 {
        font-size: 3.2rem;
        font-weight: 700;
    }

    /* Submit Tool hero: same top and bottom spacing as About and Sitemap */
    .submit-hero.submit-hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
