/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
}

/* Navigation Menu Styles - CRITICAL RULES */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li:before,
.nav-menu li:after {
    display: none !important;
    content: none !important;
}

/* Header and Navigation */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    width: 40px;
    height: 40px;
    box-shadow: none !important;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #87CEEB;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none !important;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu:before,
.nav-menu:after {
    display: none !important;
    content: none !important;
}

.nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #87CEEB;
}

.cta-button {
    background: linear-gradient(135deg, #87CEEB, #00FFFF);
    color: #1a1a1a !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a1a;
}

/* Hero Section */
.hero {
    background-image: url('steps-to-verify-a-casino-s-fairness_12969013248.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    padding: 8rem 2rem !important;
    text-align: center !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}

.hero-content {
    position: relative !important;
    z-index: 1 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.hero h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.hero-text {
    font-size: 20px !important;
    color: #333333 !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
}

.hero-cta {
    background: linear-gradient(135deg, #87CEEB, #00FFFF) !important;
    color: #1a1a1a !important;
    padding: 1rem 2.5rem !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.hero-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.5) !important;
}

/* Table of Contents */
.toc-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.toc-container {
    background: #f8f9fa;
    border-left: 4px solid #00FFFF;
    padding: 2rem;
    border-radius: 8px;
}

.toc-list {
    list-style: none !important;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
    list-style: none !important;
}

.toc-list li:before {
    content: counter(toc-counter) ". " !important;
    color: #00FFFF !important;
    font-weight: 700;
    margin-right: 0.5rem;
}

.toc-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #87CEEB;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-in;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

h2 {
    font-size: 36px !important;
    color: #1a1a1a !important;
    margin-top: 3rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #00FFFF !important;
}

h3 {
    font-size: 28px !important;
    color: #333333 !important;
    margin-top: 2rem !important;
}

/* Paragraphs */
p {
    margin-bottom: 1.5rem;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 18px;
    line-height: 1.7;
    list-style: none !important;
}

ul li:before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background: #00FFFF;
    border-radius: 2px;
    transform: rotate(45deg);
}

ul li:marker {
    display: none !important;
    content: none !important;
}

ol {
    counter-reset: list-counter;
}

ol li {
    counter-increment: list-counter;
}

ol li:before {
    content: counter(list-counter) !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #00FFFF;
    font-weight: 700;
    font-size: 18px;
}

ol li:marker {
    display: none !important;
    content: none !important;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

picture {
    display: block;
    margin: 2rem 0;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 600px;
}

thead {
    background: linear-gradient(135deg, #87CEEB, #00FFFF);
}

thead th {
    color: #1a1a1a;
    font-weight: 700;
    padding: 1.25rem;
    text-align: left;
    font-size: 18px;
}

tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody td {
    padding: 1.25rem;
    font-size: 18px;
    color: #333333;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ffffff !important;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

footer p {
    color: #ffffff !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-column h4 {
    color: #00FFFF !important;
    margin-bottom: 1rem !important;
    font-size: 20px !important;
}

.footer-column ul {
    list-style: none !important;
    padding: 0;
}

.footer-column ul:before,
.footer-column ul:after {
    display: none !important;
    content: none !important;
}

.footer-column li {
    margin-bottom: 0.75rem;
    padding-left: 0 !important;
    list-style: none !important;
}

.footer-column li:before,
.footer-column li:after {
    display: none !important;
    content: none !important;
}

.footer-column a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-column a:hover {
    color: #00FFFF;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    text-align: center;
    color: #cccccc !important;
}

.footer-bottom p {
    color: #cccccc !important;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 1rem 0;
    }

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

    .hero {
        padding: 4rem 1.5rem !important;
    }

    .hero h1 {
        font-size: 32px !important;
    }

    .hero-text {
        font-size: 18px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 26px !important;
    }

    .hero-text {
        font-size: 16px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p, ul li, ol li, tbody td {
        font-size: 16px;
    }
}
