/* Rules Hero Section */
.rules-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding-top: 80px;
    
    position: relative;
    overflow: hidden;
}

.rules-hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.rules-hero-image img {
    max-width: 80%;
    height: auto;
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.3s ease;
}

.rules-hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Rules Content Section */
.rules-content {
    background-color: var(--gray-color);
    
}

/* Rules Navigation */
.rules-nav {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}


/* Rules Sections */
.rules-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.rules-section.active {
    display: block;
}

.section-title {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: right;
}

.content-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: right;
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-color);
}

.contact-section .section-title {
    color: var(--dark-color);
}

.contact-section .lead {
    color: #666;
}

.btn-primary {
    color: white;
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .rules-hero {
        text-align: center;
    }
    
    .rules-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .nav-item {
        padding: 0.8rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .section-title {
        text-align: center;
    }
    
    .content-card {
        text-align: center;
    }
    
    .content-card p {
        text-align: center;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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