/* === SANITIZED FIXES === */
html, body { overflow-x: hidden; max-width: 100vw; }

/* === BASE STYLES === */:root {
            --primary: #FF3366;
            --primary-dark: #E02050;
            --secondary: #00D4FF;
            --secondary-dark: #00B8E6;
            --accent: #FFD700;
            --dark: #0A0E27;
            --dark-alt: #141B3D;
            --text: #FFFFFF;
            --text-muted: rgba(255, 255, 255, 0.7);
            --gradient-primary: linear-gradient(135deg, #FF3366 0%, #FF6B9D 100%);
            --gradient-secondary: linear-gradient(135deg, #00D4FF 0%, #00FFD4 100%);
            --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #141B3D 100%);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
            --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
            --shadow-glow: 0 0 40px rgba(255, 51, 102, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
            max-width: 100vw;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--gradient-dark);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            max-width: 100vw;
        }

        .container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2rem, 5vw, 4.5rem);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h2 {
            font-size: clamp(1.75rem, 4vw, 3rem);
            color: var(--text);
        }

        h3 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            color: var(--secondary);
        }

        h4 {
            font-size: clamp(1.25rem, 2.5vw, 1.5rem);
            color: var(--text);
        }

        p {
            margin-bottom: 1rem;
            font-size: 1rem;
            color: var(--text-muted);
        }

        a {
            color: var(--secondary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

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

        .btn {
            padding: 14px 32px;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--text);
            box-shadow: none;
        }

        .btn-primary::before {
            content: none;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            box-shadow: none;
            transform: none;
        }

        .card {
            background: rgba(20, 27, 61, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .card:hover {
            transform: translateY(-8px);
            border-color: var(--primary);
            box-shadow: var(--shadow-lg);
        }

        .card:hover::before {
            opacity: 0.1;
        }

        .content-image {
            max-width: 100%;
            margin: 2rem auto;
            text-align: center;
            border-radius: 16px;
            overflow: hidden;
        }

        .content-image img {
            max-width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: 16px;
        }

        .content-image.portrait img {
            max-height: 350px;
            max-width: 300px;
        }

        .content-image.wide img {
            max-height: 300px;
            max-width: 100%;
        }

        .content-image figcaption {
            margin-top: 0.75rem;
            font-size: 0.875rem;
            opacity: 0.8;
        }

        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 1.5rem 0;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(20, 27, 61, 0.4);
            border-radius: 12px;
            overflow: hidden;
        }

        th, td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        th {
            background: rgba(255, 51, 102, 0.2);
            color: var(--text);
            font-weight: 600;
        }

        /* === LAYOUT STYLES === */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(10, 14, 39, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 0;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text);
            text-decoration: none;
            letter-spacing: 0.5px;
        }

        .logo-text:hover {
            color: var(--text);
        }

        .logo img {
            height: 50px;
            width: auto;
        }

        .main-nav {
            display: flex;
            align-items: center;
            flex: 1;
            justify-content: center;
        }

        .nav-list {
            display: flex;
            list-style: none;
            gap: 2rem;
            margin: 0;
        }

        .nav-list a {
            color: var(--text);
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .nav-list a:hover {
            background: rgba(255, 51, 102, 0.1);
            color: var(--primary);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .hamburger span {
            width: 24px;
            height: 2px;
            background: var(--text);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .hamburger[aria-expanded="true"] span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .site-footer {
            background: var(--dark);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 4rem 0 2rem;
            margin-top: 6rem;
        }

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

        .footer-section h3,
        .footer-section h4 {
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
        }

        @media (max-width: 767px) {
            .site-header {
                padding: 0.75rem 0;
            }

            .header-content {
                flex-wrap: wrap;
                gap: 1rem;
            }

            .logo {
                order: 1;
            }

            .hamburger {
                display: flex;
                order: 2;
            }

            .main-nav {
                order: 3;
                width: 100%;
                justify-content: flex-start;
            }

            .nav-list {
                display: none;
                flex-direction: column;
                width: 100%;
                gap: 0.5rem;
                background: rgba(20, 27, 61, 0.95);
                padding: 1rem;
                border-radius: 12px;
                margin-top: 1rem;
            }

            .nav-list.active {
                display: flex;
            }

            .header-content .btn-primary {
                order: 4;
                width: 100%;
                max-width: 200px;
                text-align: center;
                padding: 12px 20px;
                font-size: 0.9rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

@media (max-width: 767px) {
            .site-header {
                padding: 0.75rem 0;
            }

            .header-content {
                flex-wrap: wrap;
                gap: 1rem;
            }

            .logo {
                order: 1;
            }

            .hamburger {
                display: flex;
                order: 2;
            }

            .main-nav {
                order: 3;
                width: 100%;
                justify-content: flex-start;
            }

            .nav-list {
                display: none;
                flex-direction: column;
                width: 100%;
                gap: 0.5rem;
                background: rgba(20, 27, 61, 0.95);
                padding: 1rem;
                border-radius: 12px;
                margin-top: 1rem;
            }

            .nav-list.active {
                display: flex;
            }

            .header-content .btn-primary {
                order: 4;
                width: 100%;
                max-width: 200px;
                text-align: center;
                padding: 12px 20px;
                font-size: 0.9rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }