/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
:root {
            --primary-blue: #005a8d;
            --light-blue-bg: #b0cbe1;
            --border-color: #ddd;
            --text-dark: #333;
            --orange-accent: #e69138;
            --card-padding: 15px;
            --font-main: 'Red Hat Display', sans-serif;
        }

        body {
            font-family: var(--font-main);
            margin: 0;
            padding: 0;
            background-color: #fff;
            color: var(--text-dark);
        }

        /* Header Section */
        .page-header {
            background-color: var(--light-blue-bg);
            padding: 40px 20px;
            text-align: center;
            border-radius: 8px;
            /* Slightly rounded corners as per modern design, optional */
            margin: 20px auto;
/*             max-width: 1200px; */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .page-header h1 {
            margin: 0;
            font-size: 1.5rem;
            color: #333;
            font-weight: 600;
        }

        /* Main Container */
        .container {
/*             max-width: 1200px; */
            margin: 0 auto;
            padding: 20px;
        }

        /* Category Grid */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-bottom: 40px;
        }

        .category-card {
            display: flex;
            align-items: center;
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            /* Rounded corners */
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-card:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .category-card.active {
            background-color: var(--primary-blue);
            color: #fff;
            border-color: var(--primary-blue);
        }

        .category-card img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            margin-right: 15px;
            border-radius: 4px;
        }

        .category-card span {
            font-weight: 500;
            font-size: 0.95rem;
            line-height: 1.3;
        }

        /* Accordion / List Section */
        .section-title {
            color: var(--primary-blue);
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 20px;
            letter-spacing: 0.5px;
        }

        .accordion-item {
            border-bottom: 1px solid #f0f0f0;
        }

        /* General Documentation Header Style from Image */
        .general-docs-header {
/*             border: 1px solid var(--orange-accent); */
            padding: 15px 20px;
            border-radius: 4px;
/*             color: var(--orange-accent); */
            font-weight: 700;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            cursor: pointer;
            background: #fff;
        }

        .general-docs-header:after {
            content: '^';
            /* Simple arrow representation */
            transform: rotate(180deg);
            display: inline-block;
        }

        .doc-list-item {
            padding: 15px 0;
            font-size: 0.9rem;
            color: #333;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
            /* Bold as per image */
            text-transform: uppercase;
        }

        .doc-list-item:hover {
            color: var(--primary-blue);
        }

        .doc-list-item::after {
            content: '⌄';
            font-size: 1.2rem;
            color: #999;
        }

        .sub-item {
            padding: 10px 0 10px 20px;
            font-size: 0.85rem;
            color: #666;
            font-weight: normal;
            text-transform: none;
            margin-bottom: 10px;
        }

        /* Utility */
        .hidden {
            display: none !important;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .page-header {
                padding: 20px 15px;
                margin: 10px;
            }

            .page-header h1 {
                font-size: 1.25rem;
            }

            .container {
                padding: 15px;
            }

            .category-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 10px;
                margin-bottom: 30px;
            }

            .category-card {
                padding: 10px;
                flex-direction: column;
                text-align: center;
                height: 100%;
            }

            .category-card img,
            .category-card div {
                margin-right: 0 !important;
                margin-bottom: 10px;
            }

            .category-card span {
                font-size: 0.85rem;
            }
        }

        /* Accordion Interactions */
        .general-docs-header.active::after {
            transform: rotate(0deg);
        }

        .doc-list-item.active::after {
            transform: rotate(180deg);
        }

        .docs-container {
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Refactored Classes */
        .card-icon-container {
            width: 50px;
            height: 50px;
            background: #f5f5f5;
            border-radius: 4px;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .category-card.active .card-icon-container {
            background: #fff;
        }

        .card-icon-emoji {
            font-size: 24px;
        }

        .category-card.active .card-icon-emoji {
            color: #005a8d;
        }

        .section-content {
            margin-bottom: 20px;
            padding-left: 10px;
        }

