/* Header Background */
.header-background {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    background-color: #0d0e10;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: top;
    background-repeat: no-repeat;
    filter: brightness(0.5) blur(5px);
    background-image: url("../../images/backgrounds/rulesPage/CS2_Pravidla_Background.webp");
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #b8b8b8;
}

/* Rules Section */
.rules {
    padding: 5rem 2rem;
    background-color: #08080C;
    color: white;
}

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

.rules-info {
    margin-bottom: 3rem;
}

.rules-info h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

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

.info-card {
    background: rgba(31, 31, 31, 0.23);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.21);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.info-card:hover i {
    color: #c45822;
    transform: scale(1.1);
    transition: transform 0.3s ease 0s, color 0.3s ease 0s;
}
.info-card i {
    font-size: 2rem;
    color: #d7652c;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.info-card p {
    color: #b8b8b8;
    line-height: 1.6;
}

.rules-document {
    text-align: center;
}

.rules-document h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.rules-document p {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* PDF Container */
.pdf-container {
    margin-bottom: 2rem;
}

.pdf-container iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Download Button */
.download-button {
    display: none;
    margin-top: 2rem;
}

.download-button a {
    background-color: #1e1e1e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-button a:hover {
    background-color: #333;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-background {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .rules {
        padding: 2rem 1rem;
    }

    .rules-info h2, .rules-document h2 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1.5rem;
    }

    .pdf-container {
        display: none;
    }

    .download-button {
        display: block;
    }

    .rules-document p {
        font-size: 1rem;
    }
}
