/*
        ================================================================================
        |                                                                              |
        |           APPFEL-BYTES - Custom Apple-Style Theme                          |
        |                                                                              |
        ================================================================================
        */

        :root {
            --apple-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --color-text-primary: #1d1d1f;
            --color-text-secondary: #6e6e73;
            --color-accent-green: #58A65C;
            --color-accent-red: #D93025;
            --color-accent-yellow-dark: #b45309;
            --color-accent-blue: #0071e3;
            --color-background-main: #ffffff;
            --color-background-offwhite: #f5f5f7;
            --color-border-subtle: #d2d2d7;
            --border-radius-large: 18px;
            --border-radius-small: 12px;
        }

        body {
            font-family: var(--apple-font);
            background-color: var(--color-background-main);
            color: var(--color-text-primary);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* --- Typography --- */
        h1, .display-4 {
            font-weight: 700;
            letter-spacing: -0.02em;
            font-size: 3.5rem;
        }

        h2 {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            border-bottom: 1px solid var(--color-border-subtle);
            padding-bottom: 1rem;
            margin-bottom: 2rem;
        }
        
        h3 {
             font-weight: 600;
        }

        /* --- Hero Section --- */
        /* Hero styles are defined below in the main content section */

        .hero-image-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.2) 50%,
                rgba(0, 0, 0, 0.3) 100%
            );
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            margin-bottom: 0;
        }

        /* Responsive hero adjustments */
        @media (max-width: 768px) {
            .hero-section {
                height: 60vh;
                min-height: 400px;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 576px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-subtitle {
                font-size: 1rem;
            }
        }

        p {
            font-size: 1.1rem;
            color: var(--color-text-secondary);
            line-height: 1.7;
        }

        /* --- Header & Navigation --- */
        .navbar {
            background-color: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 0.5px solid var(--color-border-subtle);
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
        }
        .navbar-brand .green-accent {
            color: var(--color-accent-green);
        }

        .navbar-toggler {
            border: none;
            padding: 0.25rem 0.5rem;
            color: var(--color-text-primary);
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        /* --- Side Navigation --- */
        .side-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 280px;
            height: 100vh;
            background-color: var(--color-background-main);
            border-right: 1px solid var(--color-border-subtle);
            z-index: 1000;
            overflow-y: auto;
            padding-top: 80px; /* Account for main navbar */
        }

        .side-nav-content {
            padding: 1.5rem 0;
        }

        .side-nav-brand {
            padding: 0 1.5rem 1rem 1.5rem;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--color-text-primary);
            border-bottom: 1px solid var(--color-border-subtle);
            margin-bottom: 1rem;
        }

        .side-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .side-nav-item {
            margin-bottom: 0.25rem;
        }

        .side-nav-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1.5rem;
            color: var(--color-text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .side-nav-link:hover {
            color: var(--color-text-primary);
            background-color: var(--color-background-offwhite);
            border-left-color: var(--color-accent-green);
        }

        .side-nav-link.active {
            color: var(--color-accent-green);
            background-color: rgba(88, 166, 92, 0.1);
            border-left-color: var(--color-accent-green);
            font-weight: 600;
        }

        .nav-icon {
            margin-right: 0.75rem;
            font-size: 1.1rem;
        }

        .side-nav-submenu {
            list-style: none;
            padding: 0;
            margin: 0;
            padding-left: 1rem;
        }

        .side-nav-sublink {
            display: block;
            padding: 0.5rem 1.5rem 0.5rem 2.5rem;
            color: var(--color-text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            border-left: 2px solid transparent;
        }

        .side-nav-sublink:hover {
            color: var(--color-accent-green);
            background-color: rgba(88, 166, 92, 0.05);
            border-left-color: var(--color-accent-green);
        }

        .side-nav-sublink.active {
            color: var(--color-accent-green);
            background-color: rgba(88, 166, 92, 0.1);
            border-left-color: var(--color-accent-green);
            font-weight: 600;
        }

        /* Main content adjustment for side nav */
        .main-content {
            margin-left: 280px;
        }
        
        /* Hero section spans full width without side nav offset */
        .hero-section {
            position: relative;
            width: 100%;
            height: 80vh;
            min-height: 600px;
            overflow: hidden;
        }
        
        /* Intro section spans full width without side nav offset */
        .section-intro {
            background-color: var(--color-background-offwhite);
        }

        /* Mobile navigation styles */
        .mobile-nav .side-nav-link {
            border-left: none;
            border-radius: var(--border-radius-small);
            margin: 0.25rem 0;
        }

        .mobile-nav .side-nav-link:hover {
            background-color: var(--color-background-offwhite);
        }

        /* --- Main Content & Sections --- */
        .section {
            padding: 80px 0;
        }
        
        .section-intro {
            background-color: var(--color-background-offwhite);
        }

        /* --- Colored Content Blocks --- */
        .content-block {
            padding: 3rem;
            border-radius: var(--border-radius-large);
            margin-bottom: 3rem;
        }
        .content-block--blue {
            background-color: #e7f5ff;
        }
        .content-block--green {
            background-color: #e8f8f5;
        }
        .content-block--grey { /* New style for Dual Boot section */
            background-color: #f2f2f2;
        }

        /* --- Custom Card Styling --- */
        .guide-card {
            background-color: var(--color-background-main);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--border-radius-large);
            padding: 2rem;
            margin-bottom: 1.5rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .guide-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .guide-card .step-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-accent-green);
            background-color: rgba(88, 166, 92, 0.1);
            border-radius: var(--border-radius-small);
            padding: 0.5rem 1rem;
            display: inline-block;
            margin-bottom: 1rem;
        }
        
        /* --- FAQ Accordion Styling --- */
        .accordion-item {
            background-color: transparent;
            border: none;
            border-bottom: 1px solid var(--color-border-subtle);
        }
        
        .accordion-button {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--color-text-primary);
        }
        
        .accordion-button:not(.collapsed) {
            background-color: transparent;
            box-shadow: none;
        }
        
        .accordion-button:focus {
            box-shadow: none;
            border-color: transparent;
        }
        
        .accordion-button::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d1d1f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

        /* --- Alert Box Styling --- */
        .alert-custom {
            border-radius: var(--border-radius-large);
            padding: 1.5rem;
        }
        
        .alert-warning-custom { /* NEW YELLOW STYLE */
            background-color: #fffbeb;
            border: 1px solid #fde68a;
            color: var(--color-text-primary);
        }
        
        .alert-warning-custom h4 { /* NEW YELLOW STYLE */
            color: var(--color-accent-yellow-dark);
            font-weight: 700;
        }
        
        .alert-info-custom {
            background-color: #e7f5ff;
            border: 1px solid #b3d7ff;
            color: var(--color-text-primary);
        }

        .alert-info-custom h5 {
            color: var(--color-accent-blue);
            font-weight: 600;
        }

        .alert-danger-custom {
            border-color: rgba(217, 48, 37, 0.5); /* var(--color-accent-red) */
            background-color: rgba(217, 48, 37, 0.05);
            color: var(--color-accent-red);
        }

        .alert-danger-custom h5 {
            color: var(--color-accent-red);
            font-weight: 600;
        }

        .disclaimer-box {
            background-color: var(--color-background-offwhite);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--border-radius-large);
            padding: 1.5rem;
            margin-top: -40px; /* Pulls it up slightly into the hero section padding */
            margin-bottom: 40px;
        }
        
        /* --- Guide Images --- */
        .guide-card img, .alert-custom img {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .guide-card img:hover, .alert-custom img:hover {
            transform: scale(1.02);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        /* --- Buttons --- */
        .btn-primary-apple {
            background-color: var(--color-accent-blue);
            color: white;
            font-weight: 500;
            border-radius: var(--border-radius-small);
            padding: 0.75rem 1.5rem;
            border: none;
            transition: background-color 0.2s ease;
        }

        .btn-primary-apple:hover {
            background-color: #005bb5;
            color: white;
        }

        .btn-secondary-apple {
            background-color: var(--color-background-offwhite);
            color: var(--color-text-primary);
            font-weight: 500;
            border-radius: var(--border-radius-small);
            padding: 0.75rem 1.5rem;
            border: 1px solid var(--color-border-subtle);
            transition: background-color 0.2s ease;
        }

        .btn-secondary-apple:hover {
            background-color: #e8e8ed;
        }

        .btn-hero {
            margin-top: 1.5rem;
        }
        
        /* --- Modal Styling --- */
        .modal-content {
            border-radius: var(--border-radius-large);
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            background-color: var(--color-background-offwhite);
        }

        .modal-header {
            border-bottom: 1px solid var(--color-border-subtle);
            padding: 1.5rem;
        }

        .modal-header .modal-title {
            font-weight: 600;
            font-size: 1.25rem;
            color: var(--color-text-primary);
            display: flex;
            align-items: center;
        }

        .modal-title-logo {
            height: 28px;
            margin-right: 0.75rem;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-body p {
            font-size: 1rem;
            line-height: 1.6;
        }

        .modal-image {
            border-radius: var(--border-radius-small);
            margin-bottom: 1.5rem;
        }

        .modal-footer {
            border-top: 1px solid var(--color-border-subtle);
            background-color: var(--color-background-offwhite);
            border-bottom-left-radius: var(--border-radius-large);
            border-bottom-right-radius: var(--border-radius-large);
            padding: 1rem 1.5rem;
        }
        
        /* --- Footer --- */
        footer {
            background-color: var(--color-background-offwhite);
            border-top: 1px solid var(--color-border-subtle);
            color: var(--color-text-secondary);
        }
        
        /* Ensure footer content accounts for side navigation */
        footer .container {
            margin-left: 280px;
            width: calc(100% - 280px);
            max-width: none;
        }

        /* --- Image Gallery Styles --- */
        .gallery-image {
            border-radius: var(--border-radius-large);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--color-border-subtle);
        }

        .gallery-image:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /*
        ================================================================================
        |   Responsive Adjustments (Media Queries)                                     |
        ================================================================================
        */

        /* For tablets and smaller devices */
        @media (max-width: 992px) {
            h1, .display-4 {
                font-size: 3rem;
            }
            h2 {
                font-size: 2.25rem;
            }
            .section {
                padding: 60px 0;
            }
            
            /* Remove side nav margin on smaller screens */
            .main-content {
                margin-left: 0;
            }
            
            .side-nav {
                display: none !important;
            }
            
            /* Reset footer for mobile */
            footer .container {
                margin-left: auto;
                width: 100%;
                max-width: 1140px;
            }
        }

        /* For mobile devices */
        @media (max-width: 768px) {
            h1, .display-4 {
                font-size: 2.5rem;
            }
            h2 {
                font-size: 2rem;
            }
            .content-block {
                padding: 1.5rem;
            }
            .guide-card {
                padding: 1.5rem;
            }
            p {
                font-size: 1rem;
            }
            .lead {
                font-size: 1.1rem;
            }
        }

        /* --- New guide-card-danger style --- */
        .guide-card-danger {
            background-color: #fff;
            border: 1px solid var(--color-accent-red);
            color: var(--color-text-primary);
        }

        .guide-card-danger h5 {
            color: var(--color-accent-red);
        }

        .guide-card-danger p {
            color: var(--color-text-secondary);
        }

        .guide-card-danger .text-muted {
            color: var(--color-text-secondary) !important;
        }
