/* iFSP Website - Home Page CSS */
/* This file contains styles specific to the home page */

/* Hero Section - HOME SPECIFIC */
.hero {
    background: #0d192c;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 100vh;
}

.hero-content {
    background: #0d192c;
    padding: 5vw 3.75vw 5vw 8.4375vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    color: white;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.0625rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-line {
    display: block;
    font-weight: 100;
    white-space: nowrap; /* Prevent line breaks within title-line spans */
}

/* Special styling for emphasized words in hero title */
.hero-title .title-emphasis {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 500;
    white-space: nowrap; /* Ensure Ecosystem and "of" stay together */
}

.hero-description {
    font-size: clamp(1rem, 1.125vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.125rem;
    line-height: 1.7;
    max-width: 31.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5625rem;
    margin-top: 3rem;
}

.hero-image-bg {
    background-image: url('images-home/home-hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

/* Elephant Section - HOME SPECIFIC */
.elephant-section {
    background: #0d192c;
    background-image: url('images-home/ifiduciaryMainBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.elephant-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.elephant-image {
    margin-bottom: 2rem;
}

.elephant {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.elephant-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 300;
    color: white;
    margin: 0;
    letter-spacing: -0.0625rem;
}

/* Ecosystem Section - HOME SPECIFIC */
.ecosystem {
    background: #f8f9fa;
    min-height: 110vh;
    height: 110vh;
    display: flex;
    align-items: center;
    padding: 3.125vw 1.25vw;
}

.ecosystem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
}

.ecosystem-features {
    padding-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 6.25rem;
    box-shadow: 0 0.125rem 1rem rgba(0,0,0,0.04);
}

.feature-icon {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background: #d8e2f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 8px;
}

.feature-content h3 {
    font-size: clamp(1rem, 1.125vw, 1.125rem);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: 0.0625rem;
}

.feature-content p {
    color: #5a6c7d;
    font-size: clamp(0.8rem, 0.875vw, 0.875rem);
    line-height: 1.6;
}

/* Testimonial Section - HOME SPECIFIC */
.testimonial {
    min-height: 80vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 80vh;
    position: relative;
}

.testimonial-image-bg {
    background-image: url('images-home/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.testimonial-content {
    background: #ede8dd;
    padding: 5vw 7.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 11.25vw;
}

.testimonial-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    position: absolute;
    top: 20%;
    left: 7.5vw;
    z-index: 10;
}

.testimonial-slider {
    position: relative;
}

.testimonial-item {
    position: relative;
}

.testimonial-item blockquote {
    font-size: clamp(1rem, 1.125vw, 1.125rem);
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1.875rem;
    font-style: italic;
    position: relative;
}

.testimonial-item blockquote::before {
    content: '';
    position: absolute;
    left: -6.25vw;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-item blockquote::after {
    content: '';
    position: absolute;
    right: -6.25vw;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-item cite {
    color: #2c3e50;
    font-style: normal;
    font-size: clamp(0.8rem, 0.875vw, 0.875rem);
    line-height: 1.5;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    position: relative;
    justify-content: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 0.0625rem solid rgba(44, 62, 80, 0.3);
    color: #2c3e50;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    opacity: 1;
    pointer-events: auto;
}

.testimonial-nav-btn.prev {
    left: 2.5rem;
}

.testimonial-nav-btn.next {
    right: 2.5rem;
}

.testimonial-controls .control-btn {
    display: none;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
}

.testimonial-dots {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    width: 100%;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #222;
}

.auto-scroll-label {
    color: #e74c3c;
    font-size: clamp(0.6rem, 0.6875vw, 0.6875rem);
    font-weight: 600;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-top: 1.25rem;
    display: block;
}

/* Insights Section - HOME SPECIFIC */
.insights {
    padding: 6.25rem 0;
    background: #0d192c;
}

.insights-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    color: white;
    text-align: center;
    margin-bottom: 5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.insight-item {
    background: #0d192c;
    border-radius: 0.625rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.insight-item:hover {
    transform: translateY(-0.3125rem);
}

.insight-meta {
    padding: 1.25rem 1.25rem 0;
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.7rem, 0.75vw, 0.75rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.0625rem;
}

.insight-image {
    width: 100%;
    height: 15.625rem;
    object-fit: cover;
    margin: 0.9375rem 0;
}

.insight-title-card {
    font-size: clamp(1.1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    color: white;
    padding: 0 1.25rem;
    margin-bottom: 1.5625rem;
    line-height: 1.4;
}

/* Partners Section - HOME SPECIFIC */
.partners {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
}


.partners-title {
    font-size: clamp(1.3rem, 1.5vw, 1.5rem);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3.75rem;
    letter-spacing: 0.125rem;
}

.partners-slider {
    position: relative;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 5rem;
    align-items: center;
    justify-content: center;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    flex-shrink: 0;
    width: 15rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
}

.partners-controls {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Animations - HOME SPECIFIC */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Ecosystem animation classes - HOME SPECIFIC */
.ecosystem-text {
    will-change: opacity, transform;
    padding-top: 0;
}

.feature-item {
    will-change: opacity, transform;
}

/* Mobile Responsive - HOME SPECIFIC */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 40px 20px;
        min-height: auto; /* Changed from 60vh to auto */
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #0d192c;
        order: 2;
    }
    
    .hero-image-bg {
        min-height: 30vh; /* Reduced from 60vh to 30vh - half the size */
        order: 1;
    }
    
    .hero-title {
        font-size: 2rem; /* Slightly smaller */
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-title .title-line {
        display: block;
        margin-bottom: 3px;
    }
    
    .hero-title .title-emphasis {
        font-size: 2.4rem;
        display: inline;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px; /* Reduced margin */
        text-align: center;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-bottom: 0; /* Remove extra bottom margin */
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
        font-size: 12px;
    }
    
    .ecosystem {
        min-height: auto;
        height: auto;
        padding: 80px 20px; /* Increased from 60px to 80px */
    }
    
    .ecosystem-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .ecosystem-text {
        order: 1; /* Changed from order: 2 to order: 1 */
    }
    
    .ecosystem-features {
        order: 2; /* Changed from order: 1 to order: 2 */
        padding-top: 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 20px;
    }
    
    .feature-icon {
        margin-bottom: 15px;
    }
    
    .feature-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .section-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .testimonial {
        min-height: auto;
    }
    
    .testimonial-container {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .testimonial-image-bg {
        min-height: 30vh;
        order: 1;
    }
    
    .testimonial-content {
        padding: 40px 20px;
        padding-top: 60px;
        order: 2;
    }
    
    .testimonial-title {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 30px;
        font-size: 2.2rem;
        text-align: center;
    }
    
    .testimonial-item blockquote {
        font-size: 16px;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .testimonial-item blockquote::before,
    .testimonial-item blockquote::after {
        display: none;
    }
    
    .testimonial-item cite {
        text-align: center;
        display: block;
    }
    
    .testimonial-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .testimonial-nav-btn.prev {
        left: 15px;
    }
    
    .testimonial-nav-btn.next {
        right: 15px;
    }
    
    .testimonial-controls {
        justify-content: center;
        margin-top: 30px;
    }
    
    .insights {
        padding: 60px 0;
    }
    
    .insights-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .insight-item {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .insight-image {
        height: 200px;
    }
    
    .insight-title-card {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .partners {
        padding: 60px 0;
    }
    
    .partners-title {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .partners-track {
        gap: 40px;
    }
    
    .partner-logo {
        width: 160px;
        height: 90px;
    }
    
    .elephant-section {
        min-height: 100vh;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 25px 15px; /* Even more compact */
    }
    
    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 15px; /* Reduced margin */
    }
    
    .hero-title .title-emphasis {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 20px; /* Reduced margin */
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 14px 18px;
        font-size: 11px;
    }
    
    .hero-image-bg {
        min-height: 25vh; /* Reduced from 65vh to 25vh for small screens */
    }
    
    .elephant-section {
        min-height: 100vh;
        height: 100vh;
        padding: 40px 15px;
    }
    
    .elephant {
        max-width: 200px;
        max-height: 200px;
    }
    
    .elephant-title {
        font-size: 2.5rem;
    }
    
    .ecosystem {
        padding: 60px 15px; /* Increased from 40px to 60px */
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-content {
        padding: 30px 15px;
        padding-top: 50px;
    }
    
    .testimonial-title {
        font-size: 1.8rem;
    }
    
    .testimonial-item blockquote {
        font-size: 14px;
    }
    
    .insights-title {
        font-size: 1.8rem;
    }
    
    .insight-title-card {
        font-size: 16px;
    }
}

/* Decorative Divider Section */
.divider-section {
    width: 100%;
    padding: 15px 0;
    background: #0d192c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    width: 100%;
    height: 32px;
    background: white;
    position: relative;
}

.divider-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: #c25b31;
    transform: translateY(-50%);
}