/* ======================================== */
/* RULES SECTION - WARM THEME */
/* ======================================== */

.rules-section {
    background: linear-gradient(135deg, #e8dcc8 0%, #f5efe6 100%) !important;
    padding: 60px 0;
    position: relative;
}

.badge-accent {
    background: rgba(139, 115, 85, 0.12) !important;
    color: #8B6B4A !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: #8B6B4A !important;
    margin-top: 15px;
    border-radius: 10px;
    position: relative;
}

.header-line::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background: #C49A6C !important;
    left: 65px;
    border-radius: 10px;
}

.rule-card {
    background: #ffffff !important;
    padding: 40px 30px;
    border-radius: 18px;
    border: 2px solid #8B6B4A !important;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.06);
}

.rule-card:hover {
    border-color: #C49A6C !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.18);
    background: #ffffff !important;
}

.rule-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(139, 115, 85, 0.1) !important;
    color: #8B6B4A !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.rule-card:hover .rule-icon-box {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    color: #ffffff !important;
    transform: rotateY(360deg);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.rule-card h4 {
    font-weight: 700;
    color: #4A3228 !important;
    margin-bottom: 15px;
    font-size: 20px;
}

.rule-card p {
    color: #5A4A3A !important;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #8B6B4A !important;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.rule-card-footer {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8B6B4A !important;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Additional Decorative Elements for Rules Section */
.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.rules-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.rules-section {
    position: relative;
}

/* Rule Card Variations */
.rule-card.primary {
    border-color: #8B6B4A !important;
}

.rule-card.primary .rule-icon-box {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    color: white !important;
}

.rule-card.primary:hover .rule-icon-box {
    background: linear-gradient(135deg, #8B6B4A 0%, #C49A6C 100%) !important;
}

/* Rule Number Badge */
.rule-number {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(139, 115, 85, 0.3);
}

/* Grid Layout Enhancement */
.rule-grid {
    display: grid;
    gap: 25px;
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 768px) {
    .rules-section {
        padding: 30px 0;
    }

    .rule-card {
        padding: 30px 20px;
    }

    .rule-card h4 {
        font-size: 18px;
    }

    .rule-card p {
        font-size: 14px;
    }

    .rule-icon-box {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Hover Animation Enhancement */
.rule-card {
    overflow: hidden;
}

.rule-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #C49A6C, transparent) !important;
    transition: left 0.5s ease;
}

.rule-card:hover::after {
    left: 100%;
}

/* ======================================== */
/* DARK MODE - WARM THEME */
/* ======================================== */

@media (prefers-color-scheme: dark) {
    .rules-section {
        background: linear-gradient(135deg, #2A1F18 0%, #3D2D22 100%) !important;
    }

    .rule-card {
        background: #2A1F18 !important;
        border-color: #6B5544 !important;
    }

    .rule-card:hover {
        border-color: #8B6B4A !important;
        background: #2A1F18 !important;
    }

    .rule-card h4 {
        color: #F5E6D3 !important;
    }

    .rule-card p {
        color: #D4C5B5 !important;
    }

    .rule-icon-box {
        background: rgba(139, 115, 85, 0.15) !important;
        color: #C49A6C !important;
    }

    .rule-card:hover .rule-icon-box {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
        color: #ffffff !important;
    }

    .badge-accent {
        background: rgba(139, 115, 85, 0.15) !important;
        color: #C49A6C !important;
    }

    .header-line {
        background: #8B6B4A !important;
    }

    .header-line::after {
        background: #C49A6C !important;
    }

    .rule-card-footer {
        color: #C49A6C !important;
    }

    .status-indicator {
        background: #C49A6C !important;
    }

    .rule-number {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    }

    .rule-card.primary {
        border-color: #6B5544 !important;
    }

    .rule-card.primary .rule-icon-box {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
        color: white !important;
    }

    .rule-card.primary:hover .rule-icon-box {
        background: linear-gradient(135deg, #8B6B4A 0%, #C49A6C 100%) !important;
    }

    .rules-section::before,
    .rules-section::after {
        background: radial-gradient(circle, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    }

    .rule-card::after {
        background: linear-gradient(to right, transparent, #C49A6C, transparent) !important;
    }
}

/* ======================================== */
/* ROOT VARIABLES - WARM THEME */
/* ======================================== */

:root {
    --rule-primary: #8B6B4A;
    --rule-primary-light: #A8825A;
    --rule-primary-lighter: #C49A6C;
    --rule-primary-dark: #6B5544;
    --rule-primary-darker: #4A3228;
    --rule-bg-start: #e8dcc8;
    --rule-bg-end: #f5efe6;
    --rule-card-bg: #ffffff;
}