/* ==========================================================
   Rights & Obligations Page — assets/css/rights_obligations.css
   Brand colors: Blue #0960EC | Green #1DBF01
   ========================================================== */

.rdd-box {
    line-height: 1.7;
    color: #2b2b2b;
}

/* ---------- Hero (image height flexes with the title, never overflows) ---------- */
.rdd-hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.rdd-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.rdd-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 61, 0.45);
    z-index: 1;
}

.rdd-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 24px;
    padding-bottom: 24px;
}

.rdd-hero-title {
    font-size: 1.6rem;
    max-width: 720px;
    line-height: 1.35;
    padding-left: 3rem;
    margin: 0;
}

/* Add breathing room between the hero image and the content card below it
   (site-wide .main-box normally overlaps the hero with a negative margin —
   override that here so the hero title never gets clipped). */
.rdd-content-container {
    margin-top: 40px;
}

.rdd-content-container .main-box {
    margin-top: 0 !important;
}

@media (max-width: 575.98px) {
    .rdd-hero {
        min-height: 220px;
    }
    .rdd-hero-title {
        font-size: 1.15rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .rdd-content-container {
        margin-top: 24px;
    }
}

.rdd-box h2 {
    color: #0d1b3d;
    font-weight: 700;
}

.rdd-box p {
    font-size: 1rem;
    color: #3c3c3c;
}

/* ---------- Section Nav Pills ---------- */
.rdd-nav {
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9edf5;
    padding-bottom: 18px;
}

.rdd-nav .nav-link {
    border: 1px solid #dbe3f0;
    color: #0d1b3d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: #f7f9fc;
    transition: all 0.25s ease;
}

.rdd-nav .nav-link:hover {
    background: #eaf1ff;
    color: #0960EC;
}

.rdd-nav .nav-link.active {
    background: linear-gradient(135deg, #0960EC, #0748b8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(9, 96, 236, 0.25);
}

/* ---------- Headings within tabs ---------- */
.rdd-h4 {
    font-weight: 700;
    color: #0960EC;
    margin-top: 34px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid #1DBF01;
}

.rdd-intro p {
    margin-bottom: 14px;
}

/* ---------- Info / content cards ---------- */
.rdd-card {
    background: #f8faff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 10px;
}

.rdd-card p:last-child,
.rdd-card ul:last-child,
.rdd-card ol:last-child {
    margin-bottom: 0;
}

.rdd-card ul,
.rdd-numlist {
    padding-left: 20px;
}

.rdd-card ul li,
.rdd-numlist li {
    margin-bottom: 10px;
    color: #3c3c3c;
}

.rdd-numlist {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.rdd-numlist li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 14px;
}

.rdd-numlist li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: #eaf1ff;
    color: #0960EC;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Do's / Don'ts variants */
.rdd-dos {
    background: #f2fbef;
    border-color: #d4ecc9;
}
.rdd-dos h5 { color: #1DBF01; }
.rdd-dos .rdd-numlist li::before {
    background: #dff5d6;
    color: #1DBF01;
}

.rdd-donts {
    background: #fdf3f2;
    border-color: #f3d6d3;
}
.rdd-donts h5 { color: #d9362b; }
.rdd-donts .rdd-numlist li::before {
    background: #fbe1df;
    color: #d9362b;
}

/* ---------- Accordion ---------- */
.rdd-box .accordion-item {
    border: 1px solid #e9edf5;
    border-radius: 10px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.rdd-box .accordion-button {
    font-weight: 600;
    color: #0d1b3d;
    background: #f8faff;
    box-shadow: none;
}

.rdd-box .accordion-button:not(.collapsed) {
    color: #0960EC;
    background: #eaf1ff;
    box-shadow: none;
}

.rdd-box .accordion-button:focus {
    box-shadow: none;
    border-color: #dbe3f0;
}

.rdd-box .accordion-body {
    background: #ffffff;
}

.rdd-box .accordion-body p,
.rdd-box .accordion-body li {
    color: #3c3c3c;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
    .main-box.rdd-box {
        padding: 28px 18px !important;
    }

    .rdd-nav .nav-link {
        padding: 9px 14px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .rdd-h4 {
        font-size: 1.05rem;
        margin-top: 26px;
    }

    .rdd-card {
        padding: 18px;
    }

    .hero-section .container h1 {
        font-size: 1.4rem !important;
        padding-left: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .rdd-nav {
        gap: 6px;
    }
    .rdd-nav .nav-link span {
        display: none;
    }
}