/* Cabinet Grotesk Font */
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&display=swap');

/* Root Variables */
:root {
    --primary-color: skyblue;
    --accent-color: gold;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
}

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

body {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

h1 {
    font-size: 3rem !important;
    color: var(--text-light) !important;
}

h2 {
    font-size: 2.25rem !important;
    color: var(--text-dark) !important;
}

h3 {
    font-size: 1.75rem !important;
    color: var(--text-dark) !important;
}

p {
    font-size: 18px;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0 !important;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar-nav {
    list-style: none !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark) !important;
    padding: 0.5rem 0.5rem !important;
    transition: color 0.3s;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after {
    display: none !important;
}

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

.navbar-nav li {
    list-style: none !important;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), #4a90e2) !important;
    color: var(--text-light) !important;
    border: none !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 0.25rem !important;
}

.btn-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4) !important;
    color: var(--text-light) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('top-kasyna-z-depozytem-5-pln_6344437760.jpg') center/cover no-repeat !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 4rem 1rem !important;
    padding-top: 6rem !important;
    position: relative !important;
    color: var(--text-light) !important;
}

.hero-content {
    max-width: 900px !important;
    z-index: 2 !important;
}

.hero-section h1 {
    font-size: 3.5rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7) !important;
    color: var(--text-light) !important;
}

.hero-section p {
    font-size: 1.35rem !important;
    margin-bottom: 2rem !important;
    color: var(--text-light) !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7) !important;
    line-height: 1.8 !important;
}

.hero-section .btn-cta {
    font-size: 1.25rem !important;
    padding: 1rem 2.5rem !important;
}

/* Table of Contents */
.toc-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.toc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-btn {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.toc-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-light {
    background-color: #ffffff;
}

.section-dark {
    background-color: var(--bg-light);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1rem !important;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

picture {
    display: block;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 17px;
}

thead {
    background: linear-gradient(135deg, var(--primary-color), #4a90e2);
}

thead th {
    color: var(--text-light);
    font-weight: 700;
    padding: 1.25rem 1rem;
    text-align: left;
    white-space: nowrap;
}

tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

tbody tr:hover {
    background-color: rgba(135, 206, 235, 0.1);
}

tbody tr:last-child td {
    border-bottom: none;
}

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

ul li, ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-size: 18px;
    line-height: 1.7;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

ol {
    counter-reset: custom-counter;
}

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

ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

footer .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .footer-links li {
    margin-bottom: 0.75rem;
    padding: 0 !important;
}

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

footer h5 {
    color: var(--accent-color) !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    font-weight: 700 !important;
}

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

/* Icons */
.fa, .fas, .far, .fab {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.85rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .hero-section {
        min-height: 500px !important;
    }

    .hero-section h1 {
        font-size: 2.25rem !important;
    }

    .hero-section p {
        font-size: 1.15rem !important;
    }

    .navbar-brand {
        font-size: 1.35rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .toc-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .toc-btn {
        text-align: center;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 17px;
    }

    p {
        font-size: 17px;
    }

    .btn-cta {
        font-size: 0.95rem !important;
        padding: 0.65rem 1.5rem !important;
    }

    table {
        font-size: 15px;
    }

    thead th, tbody td {
        padding: 0.85rem 0.65rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
