/* ============================================
   RULES & REGULATIONS PAGE — PREMIUM STYLES
   Cambridge Model Sr. Sec. School
   ============================================ */

/* SHARED */
.rul-section-header { text-align: center; margin-bottom: 48px; }
.rul-badge { display: inline-block; background: linear-gradient(135deg, #0B3D2E, #155d47); color: #C9A24D; padding: 6px 20px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.rul-badge-light { display: inline-block; background: rgba(201,162,77,0.15); color: #C9A24D; padding: 6px 20px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.rul-section-header h2 { font-size: 2.1rem; font-weight: 700; color: #0B3D2E; margin-bottom: 14px; }
.rul-section-header p { color: #6b7280; font-size: 1.05rem; max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* RULES SECTION */
.rul-rules-section { padding: 80px 0; background: #fff; }

.rul-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.rul-rule-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(201,162,77,0.08);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.rul-rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: rgba(201,162,77,0.2);
}

.rul-rule-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 0.85rem;
    font-weight: 800;
}

.rul-rule-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.6;
    font-weight: 500;
}

/* LIBRARY SECTION */
.rul-library-section { padding: 80px 0; background: linear-gradient(180deg, #FFF8EE, #FFF0DB); }

.rul-library-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 700px;
    margin: -24px auto 40px;
}

.rul-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rul-library-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 22px rgba(0,0,0,0.05);
    border: 1px solid rgba(201,162,77,0.1);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.rul-library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
    border-color: rgba(201,162,77,0.25);
}

.rul-library-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0B3D2E, #155d47);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A24D;
    font-size: 22px;
    margin: 0 auto 16px;
}

.rul-library-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 10px;
}

.rul-library-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
}

/* CTA */
.rul-cta-section {
    padding: 72px 0;
    background: linear-gradient(135deg, #0B3D2E 0%, #155d47 50%, #0B3D2E 100%);
    position: relative;
    overflow: hidden;
}

.rul-cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201,162,77,0.05);
}

.rul-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.rul-cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.rul-cta-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .rul-rules-grid { grid-template-columns: repeat(2, 1fr); }
    .rul-library-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .rul-section-header h2 { font-size: 1.7rem; }
}

@media (max-width: 576px) {
    .rul-rules-section, .rul-library-section, .rul-cta-section { padding: 55px 0; }
    .rul-rules-grid { grid-template-columns: 1fr; }
    .rul-rule-card { padding: 18px 16px; }
    .rul-section-header h2 { font-size: 1.35rem; }
    .rul-cta-content h2 { font-size: 1.35rem; }
}
