/* 
   Project: SiDECLARA-CJJ Modernization
   Theme: "Cupertino" (Apple HIG meets Corporate Governance)
   Author: Antigravity
   Date: 2026-02-16
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Brand Palette */
    --blue: #153751;
    /* Deep Navy - Main Brand */
    --soft-blue: #4186ba;
    /* iOS Blue - Links/Active */
    --orange: #CD9F52;
    /* Gold/Orange - Call to Action (The "Alert" color) */
    --white: #ffffff;
    --bg-app: #F5F5F7;
    /* Apple-style light gray background */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(21, 55, 81, 0.85);
    /* For Navbar */
    --text-main: #1d1d1f;
    /* Soft Black */
    --text-sec: #86868b;
    /* Gray text */
    --border-light: rgba(0, 0, 0, 0.1);

    /* The "Apple" Physics */
    --radius-xl: 20px;
    /* For main cards */
    --radius-md: 12px;
    /* For buttons/inputs */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--soft-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Glassmorphism Navbar - Floating Island Design */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 90px;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 0;
    padding: 0 40px;
}

/* Scrolled State: The Floating Island */
.navbar.scrolled {
    width: auto;
    min-width: 600px;
    /* Ensure enough space for links */
    height: 70px;
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    top: 20px;
    padding: 0 30px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* We will use margins on the logo/groups */
}

.nav-group-left,
.nav-group-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Navbar Brand - Now In-Flow */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    margin: 0 40px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    /* Prevent collapsing */
}

/* Initial State: Original SVG Colors */
.navbar-brand img {
    height: 70px;
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* No color filter, show original SVG colors */
}

/* Scrolled State: The Floating Island */
.navbar.scrolled {
    width: auto;
    min-width: 1000px;
    /* Further increased to 1000px */
    max-width: 98%;
    /* Nearly full width if needed */
    height: 70px;
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    top: 20px;
    padding: 0 50px;
    /* Increased padding */
}

.navbar.scrolled .navbar-brand {
    margin: 0 30px;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
    /* Turn the colored SVG into a White Logo */
    filter: brightness(0) invert(1);
}

/* Logo size adjustment for vertical 1080x1920 screens */
@media (max-width: 1100px) and (orientation: portrait) {
    .navbar-brand img {
        height: 55px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 30px;
    }
}

/* Logo and font size increase for horizontal 1920x1080 screens */
@media (min-width: 1800px) and (orientation: landscape) {
    .navbar-brand img {
        height: 80px;
    }

    .navbar.scrolled {
        height: 80px !important;
        min-width: 1200px !important;
        width: auto !important;
        max-width: 95% !important;
        padding: 0 40px !important;
    }

    .navbar.scrolled .navbar-brand img {
        height: 50px;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 10px 20px;
    }

    .nav-group-left,
    .nav-group-right {
        gap: 40px;
    }

    .navbar-brand {
        margin: 0 50px;
    }

    .navbar.scrolled .navbar-brand {
        margin: 0 40px;
    }
}


.nav-links a {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}

/* Active link styling - Normal state */
.nav-links a.active {
    background: rgba(21, 55, 81, 0.1);
    color: var(--blue);
    font-weight: 700;
}

.nav-links a:hover {
    background: rgba(21, 55, 81, 0.05);
}

/* When scrolled (Dark Glass Pill), text should be White */
.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled .nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 700;
}

.navbar.scrolled .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Remove Dark Header Gradient */
body::before {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    color: var(--blue);
    /* Dark by default for white background */
    font-size: 1.5rem;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 30px;
    /* Align with new logo size */
    z-index: 1002;
}

.navbar.scrolled .mobile-toggle {
    color: var(--blue);
    /* Keep blue for visibility */
    top: 30px;
}

/* Utilities for visibility */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }
}


/* Bento Grid Dashboard (Index) */
.hero-dashboard {
    padding-top: 120px;
    /* Space for fixed navbar */
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--text-sec);
}

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

.bento-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--blue);
}

.bento-card p {
    color: var(--text-sec);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--soft-blue);
    margin-bottom: 20px;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 0 44px 12px rgba(205, 159, 82, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(205, 159, 82, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--soft-blue);
    border: 1px solid var(--soft-blue);
}

.btn-secondary:hover {
    background-color: rgba(65, 134, 186, 0.1);
}

/* Page Layouts (Normas, Videos, etc) */
.page-container {
    padding-top: 110px;
    /* Navbar space */
    padding-bottom: 60px;
    min-height: 80vh;
}

.content-floating {
    background: var(--white);
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 60px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
}

.page-header h1 {
    color: var(--blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Content Typography inside floating container */
.content-body h2 {
    color: var(--blue);
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

.content-body h3 {
    color: var(--text-main);
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

.content-body p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.content-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-body li {
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p,
.footer li,
.footer span {
    color: var(--text-sec);
    font-size: 0.9rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer a {
    color: var(--text-sec);
}

.footer a:hover {
    color: var(--soft-blue);
}

/* Scrolled State: The Floating Island */


.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-sec);
    font-size: 0.85rem;
}

/* Restore Layouts & Grids */
.hero-dashboard {
    padding-top: 180px;
    /* More space for the larger logo */
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.dashboard-header h1 {
    font-size: 3rem;
    color: var(--blue);
    /* Changed from white to dark blue */
    margin-bottom: 10px;
    font-weight: 700;
    /* Removed text-shadow for cleaner look with dark text */
}

.dashboard-header p {
    font-size: 1.2rem;
    color: var(--blue);
    /* Changed from white to dark blue */
    font-weight: 500;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 10;
}

.bento-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 220px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
}

.bento-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Featured Card - Presenta tu Declaración */
.featured-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid var(--orange);
    box-shadow: 0 8px 32px rgba(205, 159, 82, 0.3), 0 0 0 1px rgba(205, 159, 82, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(205, 159, 82, 0.03) 50%,
            transparent 70%);
    animation: shimmer 6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.featured-card .bento-icon {
    color: var(--orange);
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(205, 159, 82, 0.3));
}

.featured-card h3 {
    color: var(--blue);
    font-size: 1.8rem;
    font-weight: 700;
}

.featured-card p {
    color: var(--text-main);
    font-size: 1.05rem;
}

.featured-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(205, 159, 82, 0.35), 0 0 0 3px var(--orange);
    border-color: var(--orange);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--orange);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(205, 159, 82, 0.4);

}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(205, 159, 82, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(205, 159, 82, 0.6);
    }
}

/* Featured Button */
.btn-featured {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--orange);
    box-shadow: 0 6px 20px rgba(205, 159, 82, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-featured::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-featured:hover::before {
    width: 300px;
    height: 300px;
}

.btn-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(205, 159, 82, 0.5);
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--soft-blue);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--blue);
}

.bento-card p {
    color: var(--text-sec);
    margin-bottom: 25px;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Buttons and Footer Restored */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 159, 82, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-blue);
    border: 1px solid var(--soft-blue);
}

.btn-secondary:hover {
    background: rgba(65, 134, 186, 0.1);
}

/* Page Layouts */
.page-container {
    padding-top: 150px;
    padding-bottom: 60px;
    min-height: 80vh;
}

.content-floating {
    background: var(--white);
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 60px;
    position: relative;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 30px;
}

.page-header h1 {
    color: var(--blue);
    font-size: 2.2rem;
}

/* Video Grid and Lists */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 5px;
}

/* Document List & Actions */
.document-list {
    list-style: none;
    padding: 0;
}

.document-item {
    background: var(--bg-app);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    /* Center icon vertically */
}

.document-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.doc-icon {
    color: var(--orange);
    font-size: 1.5rem;
}

.doc-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.doc-title {
    color: var(--blue);
    font-weight: 500;
    font-size: 1rem;
}

.doc-actions {
    display: flex;
    gap: 10px;
}

/* Button Group for specific pages */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }

    /* Featured Card on Mobile */
    .featured-card {
        grid-column: span 1;
        min-height: 260px;
    }

    .featured-card h3 {
        font-size: 1.5rem;
    }

    .featured-card .bento-icon {
        font-size: 3rem;
    }

    .btn-featured {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .content-floating {
        padding: 30px;
        margin: 0 15px;
    }

    .mobile-toggle {
        display: block;
        position: fixed;
        top: 30px;
        right: 20px;
        z-index: 1002;
        color: var(--blue);
    }

    .navbar {
        justify-content: flex-start;
        padding: 0 20px;
        width: 100%;
        left: 0;
        transform: none;
        top: 0;
        height: 80px;
        position: fixed;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled {
        width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        top: 0;
        height: 80px;
        padding: 0 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Force original colors on mobile scroll */
    .navbar.scrolled .navbar-brand img {
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) !important;
        /* Original shadow, no color filter */
    }

    .navbar.scrolled .mobile-toggle {
        color: var(--blue) !important;
        /* Keep original dark blue */
        top: 30px !important;
        /* Keep initial positioning */
        position: fixed !important;
        display: block !important;
    }

    .navbar-brand {
        position: relative;
        transform: none;
        margin: 0;
        z-index: 1000;
    }

    .navbar-brand img {
        height: 50px;
        /* Increased from 35px */
    }

    /* Mobile Menu Container - Always Fixed */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 80px) !important;
        background: var(--blue);
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        z-index: 999 !important;
        transform: none !important;
        border-radius: 0;
        overflow-y: auto;
        margin: 0 !important;
    }

    .nav-links.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
    }

    /* Force White Text in Mobile Menu */
    .nav-links a {
        color: var(--white) !important;
        /* Force white on dark background */
        font-size: 1.1rem;
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-group-left,
    .nav-group-right {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 5px;
    }

    /* Hide the desktop "Center Logo" inside the menu if it creates duplicates or mess?
       Actually, we moved the logo INSIDE nav-links.
       In mobile, we want the logo in the navbar header, NOT inside the dropdown menu.
       
       Wait, currently:
       <div class="nav-links">
          <div class="nav-group-left">...</div>
          <a class="navbar-brand">...</a>
          <div class="nav-group-right">...</div>
       </div>

       If we hide .nav-links on mobile, we hide the LOGO too!
       That explains "el logo no se ve bien" -> It might be missing or inside the menu!
       
       CRITICAL FIX: We need the logo to be visible in the header ALWAYS.
       But we moved it inside .nav-links to fix the overlap.
       
       Solution: 
       On Mobile:
       1. Keep .nav-links hidden (so menu items are hidden).
       2. BUT display .navbar-brand overrides? 
        No, if parent is display:none, child is hidden.
       
       We need to revert the structure change OR duplicate the logo for mobile?
       Duplication is messy.
       
       Better CSS for structure:
       Keep .nav-links display:flex but hide the groups?
       
       Let's try:
       .nav-links { display: flex; ... }
       .nav-group-left, .nav-group-right { display: none; } (when closed)
       
       But we want a dropdown menu.
       
       Alternative:
       Move Logo OUTSIDE .nav-links for Mobile? No, HTML is static.
       
       Hack:
       Use a separate Mobile Logo? Or duplicate in HTML.
       Or... 
       
       Actually, looking at the layout:
       Navbar
         Container
           Nav-Links
             Group Left
             Logo
             Group Right
           Mobile Toggle
           
       If .nav-links is display:none, Logo is gone.
       
       Fix:
       On Mobile, we need `.nav-links` to be `display: contents` or similar? No, because we want the toggle functionality.
       
       Real Fix:
       Extract Logo from .nav-links in HTML?
       But user wanted "In-Flow" to fix overlap on desktop.
       
       Compromise:
       Use CSS Grid?
       
       Or simply:
       Put Logo OUTSIDE nav-links, and on Desktop use `order` or `flex` manipulation?
       
       Let's try duplicating the logo for Mobile vs Desktop is the safest/quickest HTML fix?
       Or just change HTML structure to:
       
       <Navbar>
          <MobileLogo class="d-md-none"> (Visible only on mobile)
          <NavLinks> (Hidden on mobile, toggled)
             <GroupLeft>
             <DesktopLogo class="d-none d-md-block"> (Visible only on desktop)
             <GroupRight>
       
       Let's check if we have bootstrap classes? No, custom CSS.
       
       Let's add a "mobile-brand" outside .nav-links in HTML, and hide .navbar-brand inside .nav-links on mobile.
    */
}