/* Institutional Page Styles */

/* Mobile Menu Active State Fix */
@media (max-width: 991px) {
    /* Show mobile menu button on tablets/mobile */
    .mobile-menu-btn {
        display: block;
    }

    /* Ensure the menu is hidden by default on mobile unless active */
    .nav-menu {
        display: none;
    }

    /* When active, show it */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 10000;
        border-top: 1px solid #f0f0f0;
    }

    .nav-menu.active ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-menu.active ul li {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        padding-bottom: 10px;
    }

    .nav-menu.active ul li:last-child {
        border-bottom: none;
    }

    .nav-menu.active ul li a {
        display: block;
        width: 100%;
        font-size: 16px;
        color: #333;
    }
}

/* 
 * HOW IT WORKS PAGE STYLE (Compact Timeline)
 * Style: Clean, Step-by-step, Integrated
 */

:root {
    --brand-blue: #1E88E5;
    --brand-green: #43A047;
    --dark-bg: #0f172a;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hiw-hero {
    /* Blue Gradient Banner */
    background-color: #1E88E5;
    background-image: linear-gradient(135deg, #64B5F6 0%, #1976D2 100%);
    padding: 60px 0 80px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px -10px rgba(25, 118, 210, 0.3);
    margin-bottom: 40px;
}

.hiw-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    color: #fff;
}

.hiw-hero h1 span {
    color: #fff;
    text-shadow: none;
}

.hiw-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* =========================================
   STEPS SECTION
   ========================================= */
.hiw-section {
    padding: 5px 0; /* Reduced from 60px */
    background: #fff;
}

.hiw-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hiw-title {
    text-align: center;
    margin-bottom: 30px; /* Reduced from 40px */
}

.hiw-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.hiw-title p {
    color: #64748b;
    font-size: 1rem;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Reduced from 30px */
    position: relative;
}

/* Connector Line (Desktop) */
.hiw-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(30, 136, 229, 0) 0%, 
        rgba(30, 136, 229, 0.2) 20%, 
        rgba(30, 136, 229, 0.2) 80%, 
        rgba(30, 136, 229, 0) 100%
    );
    z-index: 0;
}

.step-card {
    background: #fff;
    padding: 25px 20px; /* Compact padding */
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px; /* Restored larger circle */
    height: 60px;
    background: var(--brand-blue); /* Solid Blue Default */
    border: none;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3); /* Soft shadow matching brand */
    z-index: 2;
}

/* Specific Colors per Section */
.section-client .step-number {
    background: var(--brand-blue);
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.section-pro .step-number {
    background: var(--brand-green);
    box-shadow: 0 4px 10px rgba(67, 160, 71, 0.3);
}

.step-number span {
    /* Removed gradient text */
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}

.step-number i {
    color: #fff;
    font-size: 24px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.step-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 1.75rem;
    color: var(--brand-blue);
    opacity: 0.8;
    margin-top: auto;
}

/* =========================================
   TRUST SECTION
   ========================================= */
.hiw-trust {
    background: #f8fafc;
    padding: 30px 0;
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 20px;
    background: #e8f5e9;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   CTA SECTION
   ========================================= */
/* Container styling removed as it was not matching HTML */

.hiw-cta {
    text-align: center;
    padding: 50px 30px; 
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1565C0 100%); /* Project Blue Gradient */
    border-radius: 16px; 
    color: #fff;
    position: relative;
    overflow: hidden;
    max-width: 900px; /* Limit width */
    margin: 0 auto 60px auto; /* Center alignment + Balanced Bottom Margin */
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.2); /* Soft blue shadow */
}

.hiw-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hiw-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9); /* Brighter text for blue bg */
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hiw-cta .btn-cta {
    background: #fff; /* White button for contrast on blue */
    color: var(--brand-blue); /* Blue text */
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.hiw-cta .btn-cta:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   MOBILE ADJUSTMENTS (Modern & Compact)
   ========================================= */
@media (max-width: 992px) {
    /* Layout Reset */
    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 15px; /* Tighter gap */
        max-width: 400px; /* Limit width on mobile to prevent stretching */
        margin: 0 auto;
    }
    
    .hiw-steps::before {
        display: none; /* Hide connector line */
    }

    /* Compact Card Style */
    .step-card {
        padding: 15px; /* Minimal padding */
        display: flex; /* Horizontal layout for compactness */
        align-items: center;
        text-align: left; /* Left align text */
        gap: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Lighter shadow */
        border: 1px solid #f1f5f9;
    }

    /* Smaller Icon/Number Circle */
    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px; /* Prevent shrinking */
        font-size: 16px; /* Smaller icon size */
        margin: 0; /* Remove bottom margin */
        box-shadow: none; /* Flat design for mobile */
    }
    
    .step-number i {
        font-size: 18px;
    }

    /* Compact Text */
    .step-content {
        /* Wrapper for text if needed, but targeting children directly works */
    }

    .step-card h3 {
        font-size: 1rem; /* Smaller title */
        margin-bottom: 4px;
    }

    .step-card p {
        font-size: 0.85rem; /* Smaller body text */
        margin-bottom: 0;
        line-height: 1.3;
    }

    /* Hero & Titles */
    .hiw-hero {
        padding: 25px 20px 30px;
        border-radius: 12px; /* Card-like rounded corners */
        margin: 50px 15px 30px; /* Increased top margin for separation from search box */
        width: auto; /* Allow margin to take effect */
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.15);
    }

    .hiw-hero h1 { 
        font-size: 1.5rem; 
        margin-bottom: 8px;
    }
    
    .hiw-hero p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .hiw-title {
        margin-bottom: 20px;
    }
    
    .hiw-title h2 {
        font-size: 1.5rem;
    }

    /* CTA Compact */
    .hiw-cta {
        padding: 30px 20px;
        border-radius: 12px;
        margin-bottom: 40px;
    }
    
    .hiw-cta h2 {
        font-size: 1.4rem;
    }
}
