 
        /* Side-by-Side Layout */
        body {
            display: flex;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
           /* background-color: var(--bg-cream); */
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* Main Content Wrapper */
        .main-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
            /* Use 'fixed' and 'cover' together in the shorthand or separate them clearly */
           /* background-image: url('images/main/back1.jpg'); */ /* Default/Fallback */ 
            background-position: center;
            background-size: cover !important; /* The !important ensures JS doesn't override this */
            background-attachment: fixed;
            background-repeat: no-repeat;
        }


        /* Content Areas */
        header {
            text-align: center;
            padding: 3rem 2rem;
            background-color: var(--white);
            border-bottom: 1px solid #ddd;
            
            /* New constraints */
            max-width: 850px; 
            margin: 20px auto; /* Centers the header and adds space at the top */
            border-radius: 12px; /* Rounds the corners to match the cards */
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        header h1 {
            margin: 0 0 1rem 0;
            color: black;    /*var(--primary-sage); */
            font-size: 2.5rem;
        }

        .hero-image {
            max-width: 800px;
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .container {
            max-width: 1100px;
            margin: 3rem auto;
            padding: 0 2rem;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .card, .breed-link-box {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            text-align: center;
            border: 1px solid #eee;
        }

        /* Constrain the Encyclopedia Box width */
        .breed-link-box {
            margin-bottom: 6rem;
            max-width: 400px; /* Makes this box narrower than the header */
            margin-left: auto;
            margin-right: auto;
        }
        
        .hover-img {
            transition: transform 0.3s ease;
            width: 100%;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .hover-img:hover { transform: scale(1.03); }

        .main-link {
            color: var(--accent-orange);
            font-size: 1.5rem;
            text-decoration: none;
            font-weight: bold;
        }

