/* RI Partners Pages - Enhanced Styling with Standard Container Pattern */

/* ============================================
   HERO SECTION
   ============================================ */
.ri-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
    margin-bottom: 0;
}

.ri-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ri-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.ri-hero:hover .ri-hero__bg img {
    transform: scale(1);
}

.ri-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 23, 73, 0.85) 0%, rgba(39, 65, 133, 0.75) 50%, rgba(23, 23, 73, 0.9) 100%);
    z-index: 2;
}

.ri-hero__overlay::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.ri-hero__overlay::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.ri-hero__content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.ri-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.ri-hero__desc {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.ri-hero__btn {
    display: inline-block;
    background: #374151;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ri-hero__btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .ri-hero {
        min-height: 500px;
        height: 500px;
        margin-top: -70px;
    }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.ri-hero-nav {
    padding: 1.5rem 0;
    background: transparent;
}

@media (max-width: 768px) {
    .ri-hero-nav {
        top: 70px !important;
        padding: 1rem 0;
    }
}

.ri-nav-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.ri-nav-link {
    color: #171749;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.ri-nav-link:hover {
    color: #171749;
    background: rgba(23, 23, 73, 0.05);
}

.ri-nav-link.active {
    background: #171749;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
}

.ri-nav-link.active::after {
    display: none;
}

@media (max-width: 768px) {
    .ri-nav-container {
        padding: 0.4rem;
        gap: 0.25rem;
    }
    
    .ri-nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.ri-video-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #fef3e8 100%);
    position: relative;
    overflow: hidden;
}

.ri-video-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.ri-video-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 23, 73, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.ri-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
    position: relative;
    z-index: 1;
}

.ri-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   SECTION 1 - ASPIRING INCOME
   ============================================ */
.ri-section-1 {
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(247, 168, 37, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(23, 23, 73, 0.05) 0%, transparent 50%);
    position: relative;
}

.ri-content-text {
    color: #374151;
}

.ri-content-text p {
    margin-bottom: 1.5rem;
}

/* ============================================
   ORANGE SECTION
   ============================================ */
.ri-orange-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    position: relative;
}

.ri-orange-card {
    background: #ffffff;
    border: 3px solid #f7a825;
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(247, 168, 37, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ri-orange-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ri-orange-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(247, 168, 37, 0.25);
}

.ri-orange-card:hover::before {
    opacity: 1;
}

.ri-orange-card__icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.ri-orange-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #f7a825;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.ri-orange-card__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f7a825;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .ri-orange-card {
        padding: 2rem;
    }
}

/* ============================================
   SECTION 2 - HOW WIS HELPS
   ============================================ */
.ri-section-2 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
}

.ri-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.ri-image-card:hover {
    transform: scale(1.02);
}

.ri-image-card__img {
    width: 100%;
    height: auto;
    display: block;
}

.ri-image-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #171749;
    padding: 1.5rem;
    text-align: center;
}

.ri-image-card__text {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* ============================================
   SECTION 3 - EXPERIENCED INTERMEDIARY
   ============================================ */
.ri-section-3 {
    background: linear-gradient(135deg, #171749 0%, #274185 50%, #171749 100%);
    position: relative;
    overflow: hidden;
}

.ri-section-3::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.ri-section-3::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 25s ease-in-out infinite reverse;
}

.ri-content-text-white {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.ri-content-text-white p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* ============================================
   SECTION 4 - BUSINESS GOALS
   ============================================ */
.ri-section-4 {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #fef3e8 100%);
    position: relative;
    overflow: hidden;
}

.ri-section-4::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.ri-goal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
}

.ri-goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #f7a825;
}

.ri-goal-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.ri-goal-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #171749;
    margin-bottom: 1rem;
}

.ri-goal-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ============================================
   SECTION 5 - WHY CHOOSE WIS
   ============================================ */
.ri-section-5 {
    background: #ffffff;
    position: relative;
}

/* ============================================
   FORM SECTION
   ============================================ */
.ri-form-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.ri-form-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 168, 37, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.ri-form-wrapper {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ri-form-placeholder {
    text-align: center;
    padding: 3rem 0;
}

.ri-form-placeholder__text {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.ri-form-placeholder__subtext {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.ri-form-placeholder__code {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 1.5rem;
    display: inline-block;
}

.ri-form-placeholder__code code {
    font-size: 0.9rem;
    color: #171749;
    font-family: 'Courier New', monospace;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section IDs for smooth scrolling */
section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 80px;
    }
}
