/* Page-specific overrides */
body {
    padding-top: 80px !important; /* Adjust for fixed navbar height */
}

/* Navbar override for this page */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.partners-hero {
    background: linear-gradient(135deg, #0A2357 0%, #1A3A7A 100%);
    color: white;
    text-align: center;
    padding: 100px 20px 200px; /* Increased bottom padding for overlap */
    position: relative;
}

.hero-content h1 {
    font-family: 'Geist', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #FFFFFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 60px; /* Adjusted spacing */
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    border-radius: 100px;
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 5px;
    height: 54px; /* Fixed height */
    box-sizing: border-box;
}

.btn-primary {
    background: #3B82F6;
    color: #FFFFFF;
    width: 280px;
}

.btn-secondary {
    background: #FFFFFF;
    color: #3B82F6;
    width: 282px;
}

.btn-icon {
    width: 30px;
    height: 30px;
}

.btn-secondary .btn-icon {
    width: 32px;
    height: 32px;
}

/* Container for overlapping cards */
.partners-cards-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-top: -150px; /* Negative margin to pull cards up */
    padding-bottom: 80px; /* Space below cards before next section */
}

.partners-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.partner-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: calc(33.333% - 20px);
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #EEEEEE;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle initial shadow */
    cursor: pointer;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    background-color: #EFF6FF; /* Light blue background on hover */
    border-color: #3B82F6; /* Blue border on hover */
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card h3 {
    font-family: 'Geist', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111111;
}

.partner-card p {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

/* Value Section */
.value-section {
    padding: 80px 20px;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Geist', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 80px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.value-card {
    border: 1px solid #DDDDDD;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

/* Hover effect for Value Cards */
.value-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    background-color: #EFF6FF;
    border-color: #3B82F6;
}

.value-card.highlighted {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3B82F6;
}

.value-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-content {
    flex: 1;
}

.value-content h3 {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
}

.value-content p {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
}

/* Onboarding Section */
.onboarding-section {
    padding: 100px 20px;
    text-align: center;
    background: #fff;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.onboarding-section .section-title {
    margin-bottom: 40px;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    background: #3B82F6;
    border-radius: 100px;
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 100px;
    transition: background 0.3s ease;
}

.btn-apply:hover {
    background: #2563EB;
}

.steps-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    top: 75px; /* Center of the 80px icons (30px label + 40px half icon roughly) */
    left: 140px;
    right: 140px;
    height: 2px;
    background: #EEEEEE;
    z-index: 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 10px;
}

.step-label {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 16px;
    color: #333333;
    margin-bottom: 12px;
    background: #fff;
    padding: 0 10px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 50%;
}

.step-icon img {
    width: 100%;
    height: 100%;
}

.step-item h3 {
    font-family: 'Geist', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    min-height: 62px; /* Align titles */
}

.step-item p {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 22px;
    max-width: 320px;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .steps-line {
        display: none; /* Hide horizontal line on mobile */
    }
    
    .step-item {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .partners-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-card {
        width: 100%;
        max-width: 400px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}

/* =========================================
   Partner Section
   ========================================= */
.partners-section {
    width: 100%;
    height: 362px;
    background: #D6E4FF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.partners-title {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #111111;
    margin-bottom: 60px;
    text-align: center;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px; /* Space between icons */
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partners-track img {
    height: 60px; /* Logos height */
    width: auto;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%); /* Move by 1 set (1/4 of total width) */
    }
}
