.rli-section {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Blue Heading */
.rli-card-header {
    background: linear-gradient(135deg, #0056a6, #0077cc);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.rli-card-header h3 {
    color: #fff;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Content Cards */
.rli-card {
    background: #ffffff;
    padding: 25px 30px;
    border-left: 6px solid #0056a6;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.rli-card:hover {
    transform: translateY(-3px);
}

.rli-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
}

/* Highlight Box */
.rli-feature-box {
    background: linear-gradient(135deg, #0056a6, #0088dd);
    padding: 30px;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(0,86,166,0.25);
}

.rli-feature-box p {
    color: #fff;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {

    .rli-card-header h3 {
        font-size: 22px;
    }

    .rli-card,
    .rli-feature-box {
        padding: 20px;
    }

    .rli-card p,
    .rli-feature-box p {
        font-size: 16px;
    }
}

/* ==========================================
   Professional Blue Image Cards
========================================== */

.diagram-card {
    margin: 35px 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #0056b3;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

/* Decorative Top Strip */
.diagram-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        #0056b3,
        #4da3ff,
        #0056b3
    );
    z-index: 2;
}

/* Hover Effect */
.diagram-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 86, 179, 0.25);
    border-color: #0077cc;
}

/* Header */
.diagram-header {
    background: linear-gradient(
        135deg,
        #0056b3,
        #0077cc
    );
    color: #ffffff;
    text-align: center;
    padding: 16px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Images */
.diagram-card img {
    width: 100%;
    display: block;
    background: #f8fbff;
    padding: 20px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Image Zoom on Hover */
.diagram-card:hover img {
    transform: scale(1.02);
}

/* Alternate Rotary Gold Accent */
.diagram-card:nth-child(even) {
    border-color: #f4b400;
}

.diagram-card:nth-child(even)::before {
    background: linear-gradient(
        90deg,
        #f4b400,
        #ffd54f,
        #f4b400
    );
}

.diagram-card:nth-child(even) .diagram-header {
    background: linear-gradient(
        135deg,
        #d89f00,
        #f4b400
    );
}

/* Responsive */
@media (max-width: 768px) {

    .diagram-card {
        margin: 25px 0;
    }

    .diagram-header {
        font-size: 18px;
        padding: 12px;
    }

    .diagram-card img {
        padding: 10px;
    }
}