/* Rules Page Container */
.rules-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

/* Sidebar Styles */
.rules-sidebar {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.rules-nav h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.rules-nav ul {
    list-style: none;
    padding: 0;
}

.rules-nav li {
    margin-bottom: 0.5rem;
}

.rules-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rules-nav a i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.rules-nav li.active a,
.rules-nav a:hover {
    background: #4a90e2;
    color: #fff;
}

/* Main Content Styles */
.rules-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Rules Header */
.rules-header {
    text-align: center;
    padding: 60px 20px;
    background: var(--gradient);
    color: var(--text-light);
}

.rules-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.rules-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Rules Content Title */
.rules-content-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.rules-content-title h1 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.rules-content-title p {
    font-size: 1rem;
    color: #666;
}

.last-update {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.rules-section {
    margin-bottom: 3rem;
}

.rules-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
}

.rules-section h2 i {
    margin-right: 0.8rem;
    color: #4a90e2;
}

.rules-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.rules-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.rules-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

.subsection {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.subsection h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 1rem 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-section {
    animation: fadeIn 0.3s ease-out;
}

/* Add animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-content {
    animation: fadeInUp 1s ease-out;
}

.rule-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.2s);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rules-container {
        flex-direction: column;
    }

    .rules-sidebar {
        position: static;
        width: 100%;
    }

    .rules-content {
        padding: 1.5rem;
    }

    .rules-header h1 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .rules-sidebar,
    .navbar,
    .discount-banner {
        display: none;
    }

    .rules-container {
        margin: 0;
        padding: 0;
    }

    .rules-content {
        box-shadow: none;
        padding: 0;
    }

    .rules-section {
        page-break-inside: avoid;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to right, 
        transparent,
        rgba(74, 144, 226, 0.05),
        rgba(74, 144, 226, 0.05),
        transparent
    );
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0.5), 
        rgba(100, 181, 246, 0.5)
    );
    border-radius: 50px;
    box-shadow: 
        inset 0 0 6px rgba(0, 0, 0, 0.1),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0.8), 
        rgba(100, 181, 246, 0.8)
    );
    box-shadow: 
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        inset 0 0 3px rgba(255, 255, 255, 0.4),
        0 0 8px rgba(74, 144, 226, 0.3);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.5) transparent;
} 