/* --- Animations & Effects --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glowRed {
    0% { box-shadow: 0 0 5px rgba(207, 0, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(207, 0, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(207, 0, 0, 0.2); }
}

/* 1. Page Container */
.rules-section {
    position: relative;
    padding: 6rem 0;
    background-color: #050505;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
}

/* Background Ambience (Subtler than About page) */
.rules-section::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 500px;
    background: radial-gradient(ellipse at top, rgba(30, 64, 175, 0.15), transparent 70%);
    z-index: 0; pointer-events: none;
}

.container-rules {
    width: 90%; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2;
}

/* 2. Header */
.rules-header {
    text-align: center; margin-bottom: 5rem;
    animation: fadeIn 0.8s ease-out;
}
.rules-header h1 {
    font-size: 3.5rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: -1px; margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rules-header p {
    font-size: 1.2rem; color: #888; max-width: 600px; margin: 0 auto;
    line-height: 1.6;
}
.highlight-text { color: #cf0000; font-weight: bold; }

/* 3. The Grid */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* 4. Rule Card Design */
.rule-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #333; /* Default border color */
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out backwards;
}

/* Staggered Animation Delays */
.rule-card:nth-child(1) { animation-delay: 0.1s; border-left-color: #cf0000; } /* Red for Conduct */
.rule-card:nth-child(2) { animation-delay: 0.2s; border-left-color: #1e40af; } /* Blue for Battles */
.rule-card:nth-child(3) { animation-delay: 0.3s; border-left-color: #eab308; } /* Yellow for Voting */
.rule-card:nth-child(4) { animation-delay: 0.4s; border-left-color: #fff; }    /* White for Misc */

.rule-card:hover {
    transform: translateX(10px);
    background: rgba(30, 30, 30, 0.8);
}

/* Numbering Column */
.rule-number {
    font-size: 3rem; font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    min-width: 80px; text-align: right;
    font-family: 'Impact', sans-serif; /* Or your main bold font */
}

/* Content Column */
.rule-content { flex: 1; }

.rule-title {
    font-size: 1.5rem; font-weight: 700; color: #fff;
    margin-bottom: 1rem; display: flex; align-items: center; gap: 10px;
}

/* Icons inside titles */
.rule-title svg { width: 24px; height: 24px; opacity: 0.8; }

.rule-text {
    color: #ccc; line-height: 1.7; font-size: 1rem;
    margin-bottom: 1rem;
}

.rule-list {
    list-style: none; padding: 0; margin: 0;
}
.rule-list li {
    position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem;
    color: #aaa; font-size: 0.95rem;
}
.rule-list li::before {
    content: '•'; position: absolute; left: 0; color: #555;
}

/* 5. Zero Tolerance Box */
.zero-tolerance {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(207,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(207,0,0,0.3);
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.5s backwards;
}
.zero-tolerance h3 {
    color: #cf0000; text-transform: uppercase; letter-spacing: 2px;
    font-size: 1.2rem; margin-bottom: 1rem; font-weight: 800;
}
.zero-tolerance p {
    color: #ccc; max-width: 700px; margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-header h1 { font-size: 2.5rem; }
    .rule-card { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .rule-number { text-align: left; font-size: 2.5rem; min-width: auto; margin-bottom: -1rem; }
    .rule-card:hover { transform: translateY(-5px); }
}

/* Rules questions section */
.rules-questions {
    margin-top: 1rem;
}
