/* =====================================================
   Rising Bharat - Clean Homepage Opportunity Section
   Desktop: 4 by 1
   Mobile: 2 by 2
   Only affects homepage opportunity section: .rbx-
===================================================== */

.rbx-opportunity-section{
    padding:38px 0 40px;
    background:#ffffff;
}

.rbx-opportunity-container{
    width:90%;
    max-width:1180px;
    margin:0 auto;
}

/* Header */
.rbx-opportunity-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 0 24px;
}

.rbx-opportunity-header h2{
    margin:0;
    color:#061c45;
    font-size:32px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:-0.8px;
}

.rbx-opportunity-header a{
    color:#061c45;
    text-decoration:none;
    font-size:15px;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
}

/* Desktop grid: 4 cards in one row */
.rbx-opportunity-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:20px;
}

/* Card */
.rbx-opportunity-card{
    min-height:230px;
    padding:28px 18px 22px;
    border-radius:18px;
    background:#ffffff;
    border:1px solid #e5edf7;
    box-shadow:0 10px 28px rgba(15,35,90,.055);
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    overflow:hidden;
    box-sizing:border-box;
    transition:.22s ease;
}

.rbx-opportunity-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 44px rgba(15,35,90,.10);
    text-decoration:none;
}

/* Main round icon */
.rbx-opportunity-icon{
    width:66px;
    height:66px;
    min-width:66px;
    min-height:66px;
    flex:0 0 66px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:31px;
    margin:0 0 16px;
}

/* Title */
.rbx-opportunity-card-title{
    width:100%;
    max-width:190px;
    min-height:42px;
    margin:0 auto 8px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#071437;
    font-size:18px;
    line-height:1.18;
    font-weight:900;
    text-align:center;
}

/* Description */
.rbx-opportunity-card-text{
    width:100%;
    max-width:180px;
    min-height:42px;
    margin:0 auto 12px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#66748a;
    font-size:13px;
    line-height:1.35;
    font-weight:700;
    text-align:center;
}

/* Small badge */
.rbx-opportunity-badge{
    width:100%;
    max-width:175px;
    min-height:40px;
    margin:0 auto 14px;
    padding:8px 12px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    box-sizing:border-box;
    overflow:hidden;
    text-align:center;
}

.rbx-opportunity-badge i{
    width:20px;
    height:20px;
    min-width:20px;
    flex:0 0 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    line-height:1;
    margin:0;
    padding:0;
}

.rbx-opportunity-badge-text{
    display:block;
    min-width:0;
    color:inherit;
    font-size:12px;
    line-height:1.12;
    font-weight:900;
    text-align:center;
    white-space:normal;
}

/* Explore link */
.rbx-opportunity-link{
    margin-top:auto;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-style:normal;
    font-size:14px;
    line-height:1.1;
    font-weight:900;
    white-space:nowrap;
}

/* Colors */
.rbx-opportunity-card--job .rbx-opportunity-icon{
    background:linear-gradient(135deg,#0b5ed7,#006dff);
}

.rbx-opportunity-card--job .rbx-opportunity-badge{
    background:#eef6ff;
    color:#0b5ed7;
}

.rbx-opportunity-card--job .rbx-opportunity-link{
    color:#0b5ed7;
}

.rbx-opportunity-card--internship .rbx-opportunity-icon{
    background:linear-gradient(135deg,#0f9a9b,#078080);
}

.rbx-opportunity-card--internship .rbx-opportunity-badge{
    background:#eafafa;
    color:#078080;
}

.rbx-opportunity-card--internship .rbx-opportunity-link{
    color:#078080;
}

.rbx-opportunity-card--scholarship .rbx-opportunity-icon{
    background:linear-gradient(135deg,#17b45b,#09a84f);
}

.rbx-opportunity-card--scholarship .rbx-opportunity-badge{
    background:#ecfdf3;
    color:#0c9b48;
}

.rbx-opportunity-card--scholarship .rbx-opportunity-link{
    color:#0c9b48;
}

.rbx-opportunity-card--course .rbx-opportunity-icon{
    background:linear-gradient(135deg,#8c3df2,#7226dd);
}

.rbx-opportunity-card--course .rbx-opportunity-badge{
    background:#f5edff;
    color:#7226dd;
}

.rbx-opportunity-card--course .rbx-opportunity-link{
    color:#7226dd;
}

/* Bottom note */
.rbx-opportunity-note{
    width:100%;
    margin:26px 0 0;
    padding:16px 22px;
    border-radius:14px;
    background:linear-gradient(135deg,#fffaf0,#fffdf7);
    border:1px solid #ffe8a8;
    color:#061c45;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    text-align:center;
    font-size:16px;
    line-height:1.45;
    font-weight:900;
    box-sizing:border-box;
}

.rbx-opportunity-note i{
    color:#f59e0b;
    font-size:24px;
    flex:0 0 auto;
}

/* Tablet: still clean, 2 by 2 */
@media(max-width:900px){
    .rbx-opportunity-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:18px;
    }
}

/* Mobile: 2 by 2 */
@media(max-width:768px){

    .rbx-opportunity-section{
        padding:30px 0 28px;
    }

    .rbx-opportunity-container{
        width:90%;
        max-width:90%;
        margin:0 auto;
    }

    .rbx-opportunity-header{
        margin:0 0 22px;
        gap:10px;
    }

    .rbx-opportunity-header h2{
        font-size:33px;
        line-height:1;
        white-space:nowrap;
    }

    .rbx-opportunity-header a{
        font-size:14px;
        line-height:1;
        white-space:nowrap;
    }

    .rbx-opportunity-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:14px;
    }

    .rbx-opportunity-card{
        min-height:292px;
        padding:20px 10px 17px;
        border-radius:20px;
    }

    .rbx-opportunity-icon{
        width:64px;
        height:64px;
        min-width:64px;
        min-height:64px;
        flex-basis:64px;
        font-size:31px;
        margin-bottom:16px;
    }

    .rbx-opportunity-card-title{
        max-width:145px;
        min-height:46px;
        font-size:18px;
        line-height:1.16;
        margin-bottom:8px;
    }

    .rbx-opportunity-card-text{
        max-width:140px;
        min-height:42px;
        font-size:12.8px;
        line-height:1.28;
        margin-bottom:12px;
    }

    .rbx-opportunity-badge{
        max-width:145px;
        min-height:52px;
        padding:7px 8px;
        margin-bottom:13px;
        gap:7px;
        border-radius:10px;
    }

    .rbx-opportunity-badge i{
        width:20px;
        height:20px;
        min-width:20px;
        flex-basis:20px;
        font-size:18px;
    }

    .rbx-opportunity-badge-text{
        font-size:10.8px;
        line-height:1.12;
    }

    .rbx-opportunity-link{
        font-size:14px;
        line-height:1.1;
    }

    .rbx-opportunity-note{
        min-height:76px;
        margin:24px 0 0;
        padding:14px 12px;
        font-size:15px;
        line-height:1.35;
        gap:10px;
        border-radius:14px;
    }

    .rbx-opportunity-note i{
        font-size:25px;
    }
}

/* Very small phones */
@media(max-width:380px){

    .rbx-opportunity-header h2{
        font-size:30px;
    }

    .rbx-opportunity-header a{
        font-size:12.5px;
    }

    .rbx-opportunity-grid{
        gap:12px;
    }

    .rbx-opportunity-card{
        min-height:278px;
        padding:18px 8px 15px;
    }

    .rbx-opportunity-icon{
        width:58px;
        height:58px;
        min-width:58px;
        min-height:58px;
        flex-basis:58px;
        font-size:28px;
        margin-bottom:15px;
    }

    .rbx-opportunity-card-title{
        max-width:130px;
        min-height:42px;
        font-size:16.5px;
        margin-bottom:7px;
    }

    .rbx-opportunity-card-text{
        max-width:124px;
        min-height:39px;
        font-size:11.6px;
        margin-bottom:11px;
    }

    .rbx-opportunity-badge{
        max-width:128px;
        min-height:50px;
        margin-bottom:12px;
        padding:7px 6px;
    }

    .rbx-opportunity-badge-text{
        font-size:10px;
    }

    .rbx-opportunity-link{
        font-size:12.8px;
    }

    .rbx-opportunity-note{
        min-height:72px;
        font-size:14px;
    }
}

/* Mobile opportunity card text bold fix */
@media(max-width:768px){

    .rbx-opportunity-card-title,
    .rbx-opportunity-card-text,
    .rbx-opportunity-badge-text,
    .rbx-opportunity-link{
        font-weight:900 !important;
    }

    .rbx-opportunity-card-title{
        color:#06142f !important;
    }

    .rbx-opportunity-card-text{
        color:#5f6f89 !important;
    }
}