/* ==========================================================================
   SCHOOL RULES & REGULATIONS PUBLIC PAGE STYLES
   ========================================================================== */

.rules-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0369a1 100%);
    color: #ffffff;
    border-bottom: 4px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.rules-search-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.category-pill-btn {
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    transition: all 0.25s ease;
}

.rule-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1;
}

.rule-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rule-code-tag {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.rule-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.rule-audience-chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.3rem 0.75rem;
    border-radius: 50rem;
}

/* Enhanced contrast for info elements (Attendance & Leave) */
.bg-info {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}
.text-info {
    color: #0284c7 !important;
}
.bg-info-subtle {
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
}

