/* Single RI Profile Page Styles */

/* ============================================
   PROFILE BANNER SECTION
   ============================================ */
.single-ri-profile-banner {
    position: relative;
    padding: 2rem 0;
}

.single-ri-profile-banner__container {
    width: 98% !important;
    margin: 1% !important;
    border: none !important;
    border-radius: var(--border-radius-md, 12px) !important;
    height: fit-content;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #171749;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 0;
}

.single-ri-profile-banner__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    justify-items: center;
    width: 100%;
    padding: 2rem;
    gap: 3rem;
}

.single-ri-profile-banner__email {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-bottom: 1.5rem;
}

.single-ri-profile-banner__email-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.single-ri-profile-banner__email-link:hover {
    color: #f7a825;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.single-ri-profile-banner__image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.single-ri-profile-banner__photo-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    background: #f7a825;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: -64%; /* Negative margin to overlap bottom */
    z-index: 10;
}

.single-ri-profile-banner__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-ri-profile-banner__photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f7a825;
    border-radius: 50%;
}

.single-ri-profile-banner__phone {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-bottom: 1.5rem;
}

.single-ri-profile-banner__phone-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.single-ri-profile-banner__phone-link:hover {
    color: #f7a825;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.single-ri-hero__info {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.single-ri-hero__name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.single-ri-hero__title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-ri-hero__bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.single-ri-hero__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.single-ri-hero__social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.single-ri-hero__social-icon:hover {
    color: #f7a825;
    transform: translateY(-3px);
}

.single-ri-hero__cta-btn {
    display: inline-block;
    background: #171749;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.single-ri-hero__cta-btn:hover {
    background: #0f1229;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BROKER INFO SECTION
   ============================================ */
.single-ri-info-section {
    position: relative;
}

.single-ri-info-section__wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.single-ri-info-section__name {
    font-size: 3rem;
    font-weight: 700;
    color: #171749;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.single-ri-info-section__title {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #171749;
    margin-bottom: 2rem;
}

.single-ri-info-section__bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #171749;
    margin-bottom: 2rem;
    text-align: left;
}

.single-ri-info-section__social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.single-ri-info-section__social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #171749;
    transition: all 0.3s ease;
    cursor: pointer;
}

.single-ri-info-section__social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.single-ri-info-section__social-icon:hover {
    color: #f7a825;
    transform: translateY(-3px);
}

/* ============================================
   WHAT WE DO SECTION
   ============================================ */
.single-ri-content {
    background-color: var(--color-primary-dark-blue, #171749);
}

.single-ri-what-we-do {
    background: #ffffff;
    padding: 0;
    border-radius: 20px;
    color: #171749;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.single-ri-what-we-do__image-wrapper {
    width: 100%;
    background: #f7a825;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-ri-what-we-do__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.single-ri-what-we-do__content-wrapper {
    padding: 3rem;
}

.single-ri-what-we-do__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #171749;
}

.single-ri-what-we-do__content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #171749;
}

.single-ri-specialisations {
    margin-top: 2rem;
}

.single-ri-specialisations__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #171749;
}

.single-ri-specialisations__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.single-ri-spec-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    border: none;
    cursor: default;
}

.single-ri-spec-btn--residential {
    background: #f7a825;
}

.single-ri-spec-btn--ftb {
    background: #87ceeb;
}

.single-ri-spec-btn--foreign_nationals {
    background: #4a90e2;
}

.single-ri-spec-btn--btl {
    background: #274185;
}

/* ============================================
   CONNECT FORM SECTION
   ============================================ */
.single-ri-connect-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-ri-connect-form__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #171749;
}

.single-ri-form-wrapper {
    width: 100%;
}

.single-ri-form-placeholder {
    text-align: center;
    padding: 3rem;
    background: #f3f4f6;
    border-radius: 12px;
    border: 2px dashed #9ca3af;
}

.single-ri-form-placeholder__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #171749;
    margin-bottom: 0.5rem;
}

.single-ri-form-placeholder__subtext {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.single-ri-form-placeholder__code {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
}

.single-ri-form-placeholder__code code {
    color: #171749;
    font-size: 0.9rem;
}

/* ============================================
   MAP SECTION
   ============================================ */
.single-ri-map {
    position: relative;
}

.single-ri-map__wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-ri-map__iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .single-ri-profile-banner__photo-wrapper {
        width: 220px;
        height: 220px;
        margin-bottom: -64%;
    }
    
    .single-ri-content .grid {
        gap: 2rem;
    }
    
    .single-ri-what-we-do__content-wrapper {
        padding: 2.5rem;
    }
    
    .single-ri-what-we-do__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    
    .single-ri-profile-banner__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .single-ri-profile-banner__email,
    .single-ri-profile-banner__phone {
        justify-content: center;
    }
    
    .single-ri-profile-banner__image {
        order: -1;
    }
    
    .single-ri-profile-banner__photo-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: -64%;
    }
    
    .single-ri-profile-banner__email-link,
    .single-ri-profile-banner__phone-link {
        font-size: 0.9rem;
    }
    
    .single-ri-content .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .single-ri-what-we-do__content-wrapper {
        padding: 2rem;
    }
    
    .single-ri-what-we-do__image-wrapper {
        padding: 1.5rem;
    }
    
    .single-ri-what-we-do__title,
    .single-ri-connect-form__title {
        font-size: 1.8rem;
    }
    
    .single-ri-what-we-do__content {
        font-size: 1rem;
    }
    
    .single-ri-connect-form {
        padding: 2rem;
    }
    
    .single-ri-info-section__name {
        font-size: 2.5rem;
    }
    
    .single-ri-info-section__title {
        font-size: 1.3rem;
    }
    
    .single-ri-info-section__bio {
        font-size: 1rem;
    }
    
    .single-ri-info-section__social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .single-ri-content {
        padding: 2rem 0;
    }
    
    .single-ri-content .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .single-ri-content .grid {
        gap: 1.5rem;
    }
    
    .single-ri-what-we-do__content-wrapper {
        padding: 1.5rem;
    }
    
    .single-ri-what-we-do__image-wrapper {
        padding: 1rem;
    }
    
    .single-ri-what-we-do__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .single-ri-what-we-do__content {
        font-size: 0.95rem;
    }
    
    .single-ri-specialisations__title {
        font-size: 1.2rem;
    }
    
    .single-ri-spec-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .single-ri-connect-form {
        padding: 1.5rem;
    }
    
    .single-ri-connect-form__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .single-ri-hero__contact-bar {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .single-ri-hero__cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .single-ri-map__iframe {
        height: 350px;
    }
}

