/* ===========================================
   INDEX PAGE STYLES
   New unified layout structure
   =========================================== */

/* --- Page Banner (Reusable Background Component) --- */
.page-banner {
    position: relative;
    background-color: #fff; /* White background for rest of page */
}

/* Banner background - fixed height, absolute positioned */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 800px; /* Fixed banner height */
    background-attachment: scroll;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

/* Index page specific banner image */
.page-banner--index::before {
    background-image:
        linear-gradient(
            to right,
            rgba(28, 37, 57, 0.9) 20%,
            rgba(28, 37, 57, 0.7) 40%,
            rgba(28, 37, 57, 0.3) 90%,
            transparent 100%
        ),
        url('../../images/index/hero-banner.webp');
}

/* Fade at bottom of banner (no blur for performance) */
.page-banner::after {
    content: '';
    position: absolute;
    top: 500px;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 25%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.95) 75%,
        #fff 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* --- Page Content (Unified Content Layer) --- */
.page-content {
    position: relative;
    z-index: 10;
    padding: 60px 0 20px;
}

/* Remove white card from main-content since page bg is white */
.main-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* --- Hero Content (Text on Banner) --- */
.hero-content {
    padding-bottom: 60px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-white);
    margin-bottom: 0;
    max-width: 650px;
    font-weight: 400;
    opacity: 0.95;
}

/* --- Main Content (Below Banner Area) --- */
.main-content .thumbnail img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* --- Sidebar --- */
.sidebar-wrapper {
    position: sticky;
    top: 100px;
    padding: 1rem;
}

.sidebar-widget {
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    color: var(--color-white);
    box-shadow: var(--shadow-card);
}

.sidebar-widget--dark {
    background: var(--color-primary);
}

.sidebar-widget--cta {
    background: var(--color-heading-1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-widget--cta img {
    display: block;
    margin: 0 auto;
}

.sidebar-widget--cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 -40px;
    padding: 2rem;
}

.sidebar-links li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-white);
    text-decoration: none;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);

    transition: all 0.4s ease;
}

.sidebar-link:hover,
.sidebar-link:active,
.sidebar-link.touched {
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateX(5px) scale(1.1);
}

.sidebar-link i {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.sidebar-link:hover i,
.sidebar-link:active i,
.sidebar-link.touched i {
    opacity: 1;
    transform: translateX(3px);
}

/* --- Features Grid --- */
.feature-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.feature-icon {
    height: 60px;
    min-width: 60px;
    background: #F2F2F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 24px;
}

.feature-content h5 {
    font-size: var(--h5);
    margin-bottom: 10px;
    color: var(--color-heading-1);
}

.feature-content p {
    font-size: var(--font-size-b1);
    color: var(--color-body);
    line-height: var(--line-height-b3);
}

/* --- Process Section (Step Rows) --- */
.process-section {
    padding-bottom: 20px;
}

.step-row {
    padding: 31px 0;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 30px;
}

.step-image {
    flex: 0 0 200px;
    height: 140px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.step-header {
    flex: 0 0 30%;
    padding-right: 20px;
}

.step-title {
    font-size: 18px;
    color: #161921;
    margin: 0;
    font-weight: 700;
}

.step-list {
    flex: 1;
}

.step-list p {
    margin-bottom: 8px;
    color: var(--color-body);
    font-weight: var(--p-regular);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1199px) {
    .sidebar-wrapper {
        position: static;
    }
}

@media (max-width: 991px) {
    .page-content {
        padding: 60px 0 20px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .main-content {
        padding: 30px;
    }

    .step-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        max-width: 100%;
    }

    .step-header, .step-list {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
}

/* Mobile services widget - appears after hero on mobile */
@media (max-width: 1199px) {
    .hero-content + .sidebar-widget {
        /*margin-bottom: 30px;*/
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 32px;
    }

    .main-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 30px;
    }

    .sidebar-links {
        margin: 0 -30px;
    }

    .sidebar-link {
        padding: 15px 30px;
    }
}