/* =============================================
   BASE
============================================= */
.ricas-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   WRAPPER
============================================= */
.ricas-about {
    position: relative;
}

/* =============================================
   HERO
============================================= */
.ricas-about__hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ricas-about__hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.ricas-about__hero-content {
    position: relative;
    z-index: 2;
}

.ricas-about__title {
    color: #1B2A6B;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    text-align: center;
}

/* =============================================
   OVERLAY (REAL OVERLAP)
============================================= */
.ricas-about__overlay {
    position: relative;
    margin-top: -180px; /* THIS creates overlap */
    z-index: 5;
}

/* =============================================
   CARD
============================================= */
.ricas-founder-card {
    display: flex;
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* LEFT */
.ricas-founder-card__left {
    width: 20%;
}

.ricas-founder-card__label {
    color: #1B2A6B;
    font-weight: 700;
    margin-bottom: 20px;
}

.ricas-founder-card__avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

/* RIGHT */
.ricas-founder-card__right {
    width: 80%;
}

.ricas-founder-card__title {
    color: #1B2A6B;
    font-weight: 700;
    margin-bottom: 20px;
}

.ricas-founder-card__content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #333;
}

/* SIGNATURE */
.ricas-founder-card__signature {
    margin-top: 24px;
}

.ricas-founder-card__name,
.ricas-founder-card__role,
.ricas-founder-card__org {
    color: #1B2A6B;
    font-weight: 700;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 992px) {
    .ricas-founder-card {
        flex-direction: column;
    }

    .ricas-founder-card__left,
    .ricas-founder-card__right {
        width: 100%;
    }

    .ricas-founder-card__left {
        text-align: center;
    }

    .ricas-founder-card__avatar img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ricas-about__overlay {
        margin-top: -120px;
    }
}

@media (max-width: 480px) {
    .ricas-about__overlay {
        margin-top: -80px;
    }

    .ricas-founder-card {
        padding: 24px;
    }

    .ricas-founder-card__avatar img {
        width: 110px;
        height: 110px;
    }

    .ricas-founder-card__content p {
        font-size: 14px;
    }
}

/* =============================================
   TEAM SECTION
============================================= */
.ricas-team {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
}

.ricas-team__title {
    color: #1B2A6B;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
}

/* GRID */
.ricas-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 80px;
}

/* CARD */
.ricas-team-card {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 300px;
    min-width: 300px;
}

/* BACK SHAPE */
.ricas-team-card::before {
    content: "";
    position: absolute;
    width: 80%;
    height: 95%;
    background: #1B2A6B;
    border-radius: 24px;
    transform: rotate(14deg);
    z-index: 0;
}

/* FRONT CARD */
.ricas-team-card__inner {
    position: relative;
    z-index: 2;
    background: #fcfcfc;
    padding: 60px 20px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* AVATAR (OVERFLOW EFFECT) */
.ricas-team-card__avatar {
    position: absolute;
    top: -35px;
    z-index: 3;
}

.ricas-team-card__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

/* TEXT */
.ricas-team-card__name {
    margin-top: 40px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ricas-team-card__role {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

/* =============================================
   RESPONSIVE (CLEAN)
============================================= */

/* TABLET */
@media (max-width: 992px) {
    .ricas-team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* MOBILE SCROLL (PRIMARY BEHAVIOR) */
@media (max-width: 768px) {

    .ricas-team {
        padding-top: 100px; /* more headroom for shapes + avatars */
    }

    .ricas-team__grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;

        gap: 40px;
        padding: 60px 12px 20px; /* TOP padding is key */

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ricas-team-card {
        flex: 0 0 48%;
        min-width: unset;
        scroll-snap-align: start;
        min-height: 300px;
        padding-top: 20px; /* buffer inside each card */
    }

    .ricas-team__grid::-webkit-scrollbar {
        display: none;
    }

    .ricas-team__grid {
        scrollbar-width: none;
    }

    .ricas-team-card__inner {
        max-width: 100%;
    }

    .ricas-team-card::before {
        width: 100%;
        height: 100%;
        top: 15px;   /* pull inside */
        left: 5%;
        transform: rotate(10deg); /* reduce angle so it fits */
    }

    /* ADD DEPTH BACK */
    .ricas-team-card__inner {
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .ricas-team-card {
        flex: 0 0 70%; /* slightly bigger cards */
    }
}