/* Extracted from about-us.php */

/* ===============================
   FOUNDER HERO STYLES
================================ */

    .founder-hero {
        padding: 40px 0;
        overflow: hidden;
    }

    /* UPDATED IMAGE STYLES WITH SMOOTHER ROUNDED CORNERS */
    .founder-image-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 500px;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: none !important;
        background: none !important;
        border: none !important;
    }

    .founder-portrait {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 32px;
        /* Smooth anti-aliasing for rounded corners */
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* KEYWORD HIGHLIGHTING */
    .keyword {
        color: #0164b4;
        font-weight: 600;
        background-color: rgba(1, 100, 180, 0.08);
        padding: 2px 4px;
        border-radius: 3px;
    }

    /* CONTENT */

    .founder-name {
        font-family: 'Playfair Display', serif;
        font-size: 36px;
        color: #1a1a1a;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .founder-name .highlight {
        color: #0164b4;
    }

    .founder-lead {
        font-size: 18px;
        color: #333333;
        margin-bottom: 10px;
        padding-left: 20px;
        border-left: 4px solid #0164b4;
        line-height: 1.5;
    }

    .founder-bio p {
        font-size: 16px;
        line-height: 1.8;
        color: #555555;
        margin-bottom: 20px;
        text-align: justify;
    }

    /* RESPONSIVE */

    @media (max-width: 991px) {
        .founder-hero {
            padding: 10px 10px;
        }

        .founder-image-wrapper {
            margin-bottom: 50px;
            max-width: 450px;
            margin-left: auto;
            margin-right: auto;
            min-height: 400px;
            border-radius: 28px;
        }

        .founder-portrait {
            border-radius: 28px;
        }

        .founder-name {
            font-size: 32px;
            text-align: center;
        }

        .founder-lead {
            text-align: center;
            border-left: none;
            padding-left: 0;
        }

        .founder-bio p {
            text-align: justify;
        }
    }

    @media (max-width: 768px) {
        .founder-image-wrapper {
            min-height: 350px;
            border-radius: 24px;
        }

        .founder-portrait {
            border-radius: 24px;
        }
    }

    @media (max-width: 576px) {
        .founder-image-wrapper {
            min-height: 300px;
            border-radius: 20px;
        }

        .founder-portrait {
            border-radius: 20px;
        }
    }

    /* For mobile devices - even rounder corners on small screens */
    @media (max-width: 480px) {
        .founder-image-wrapper {
            border-radius: 24px;
            min-height: 280px;
        }

        .founder-portrait {
            border-radius: 24px;
        }
    }

    /* Fix for Safari/iOS rendering */
    @supports (-webkit-touch-callout: none) {

        .founder-image-wrapper,
        .founder-portrait {
            -webkit-mask-image: -webkit-radial-gradient(white, black);
        }
    }

/* Styling for the new title section */
    .rr-section-title-wrapper {
        margin-bottom: 50px;
    }

    .rr-section-title {
        font-family: var(--rr-ff-heading);
        font-size: var(--rr-fs-h2);
        font-weight: var(--rr-fw-bold);
        color: var(--rr-heading-primary);
        position: relative;
        padding-bottom: 15px;
    }

    /* Ensure swiper slides are responsive before JS initialization */
    .swiper-slide {
        width: 25%;
    }

    @media (max-width: 991px) {
        .rr-section-title {
            font-size: 32px;
        }

        .swiper-slide {
            width: 50%;
        }
    }

/* ===========================
   PROFILE UI WRAPPER
=========================== */
    .rr-profile-ui {
        min-height: 100vh;
        background: #f4f6f8;
        color: #222;
    }

    /* ===========================
   MAIN CONTAINER
=========================== */
    .rr-profile-ui .ui-container {
        max-width: 1050px;
        margin: auto;
    }

    /* ===========================
   CARD
=========================== */
    .rr-profile-ui .main-card {
        background-color: #ffffff;
        position: relative;
        padding: 60px 40px 25px;
        box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
        border-radius: 6px;
    }

    /* ===========================
   IMAGE
=========================== */
    .rr-profile-ui .profile-col {
        position: relative;
        min-height: 400px;
    }

    .rr-profile-ui .profile-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: calc(100% + 20px);
        object-fit: cover;
        filter: grayscale(20%);
        box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15);
        border-radius: 15px;
    }

    /* ===========================
   CONTENT
=========================== */
    .rr-profile-ui .gold-divider {
        width: 50px;
        height: 3px;
        background: #0164b4;
        margin-bottom: 10px;
    }

    .rr-profile-ui .name-text {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #111;
    }

    /* ===== Improved Content Styling ===== */
    .bio-text p {
        font-size: 16px;
        line-height: 1.8;
        color: #555555;
        margin-bottom: 20px;
        text-align: justify;
}

    .bio-text strong {
        color: #111;
        font-weight: 600;
    }

    .bio-text .highlight {
        color: #0164b4;
        font-weight: 600;
    }

    /* ===========================
   RESPONSIVE
=========================== */
    @media (max-width: 991px) {
        .rr-profile-ui .profile-img {
            position: relative;
            height: 380px;
            margin-bottom: 40px;
        }

        .rr-profile-ui .main-card {
            padding: 50px 30px 20px;
        }
    }
