/* Page-specific styles: home.css */

body {
    font-family: 'AlibabaSans-Regular', 'NotoSansHans-Regular', sans-serif;
    background-color: #f9f9f9;
    width: 100%;
    margin: 0 auto;
    color: var(--dark-navy);
    overflow-x: hidden;
}

/* Typography */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--medium-green) 0%, var(--teal-green) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 10px 5px;
    font-size: 1.2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1565514020176-dbf2277cc120?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 28px;
    color: var(--light-cream);
    margin-bottom: 50px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-cta .btn {
    padding: 16px 32px;
    font-size: 18px;
}

/* Widgets Section */
.widgets-section {
    padding: 80px 100px;
    background-color: var(--white);
}

.widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

.widget-card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

.widget-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.widget-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.widget-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.widget-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.widget-desc {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Specific Widget Styles */
.w-custom {
    background: linear-gradient(135deg, var(--medium-green), var(--teal-green));
    color: var(--white);
}

.w-custom .widget-icon {
    color: var(--light-cream);
}

.w-custom .widget-image {
    background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?q=80&w=800&auto=format&fit=crop');
}

.w-presto {
    background: linear-gradient(135deg, var(--light-cream), var(--pale-green));
    color: var(--dark-navy);
}

.w-presto .widget-icon {
    color: var(--teal-green);
}

.w-presto .widget-image {
    background-image: url('/img/vinimg2.webp');
}

.w-salary {
    background: linear-gradient(135deg, var(--pale-green), var(--soft-sage));
    color: var(--dark-navy);
}

.w-salary .widget-icon {
    color: var(--teal-green);
}

.w-salary .widget-image {
    background-image: url('https://images.unsplash.com/photo-1579621970563-ebec7560ff3e?q=80&w=800&auto=format&fit=crop');
}

.w-promo {
    background: linear-gradient(135deg, var(--teal-green), var(--medium-green));
    color: var(--white);
}

.w-promo .widget-icon {
    color: var(--light-cream);
}

.w-promo .widget-image {
    background-image: url('https://images.unsplash.com/photo-1513201099705-a9746e1e201f?q=80&w=800&auto=format&fit=crop');
}

.w-special {
    background: linear-gradient(135deg, var(--teal-green), var(--dark-navy));
    color: var(--white);
}

.w-special .widget-icon {
    color: var(--light-cream);
}

.w-special .widget-image {
    background-image: url('/img/personal_loans.jpg');
}

/* Core Services */
.services-section {
    padding: 80px 100px 120px;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background-color: var(--teal-green);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-core {
    background-color: var(--light-cream);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-core:hover {
    background-color: var(--soft-sage);
    transform: translateY(-5px);
}

.service-core-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.service-core-icon {
    font-size: 36px;
    color: var(--teal-green);
    background: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.service-core-title {
    font-size: 24px;
    font-weight: 700;
}

.service-core-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
    flex-grow: 1;
}

.service-core-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-core:hover .service-core-link {
    color: var(--dark-navy);
}

.service-card {
    background-color: var(--light-cream);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    background-color: var(--soft-sage);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 36px;
    color: var(--teal-green);
    margin-bottom: 20px;
    background: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
    flex-grow: 1;
}

.service-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--teal-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card:hover .service-link {
    color: var(--dark-navy);
}


/* Mobile responsiveness */
@media (max-width: 992px) {
    .services-grid {
        font-size: 14px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero {
        height: auto;
        min-height: 250px;
        padding: 60px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 22px;
        margin-bottom: 35px;
    }

    .hero-cta {
        flex-wrap: wrap;
    }

    .hero-cta .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .widgets-section {
        padding: 60px 40px;
    }

    .widget-content {
        padding: 35px;
    }

    .widget-title {
        font-size: 28px;
    }

    .widget-desc {
        font-size: 16px;
    }

    .services-section {
        padding: 60px 40px;
    }

    .service-core-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .service-core-title {
        font-size: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .service-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .widgets-section {
        padding: 50px 20px;
    }

    .widget-content {
        padding: 30px;
    }

    .widget-title {
        font-size: 24px;
    }

    .widget-icon {
        font-size: 36px;
    }

    .services-section {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-core {
        padding: 30px;
    }

    .service-card {
        padding: 30px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .widgets-section {
        padding: 30px 15px;
    }

    .widget-content {
        padding: 20px;
    }

    .widget-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .widget-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .widget-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .services-section {
        padding: 30px 15px;
    }

    .service-core {
        padding: 25px;
    }

    .service-core-title {
        font-size: 18px;
    }

    .service-core-desc {
        font-size: 14px;
    }

    .service-core-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .service-card {
        padding: 25px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-desc {
        font-size: 14px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .section-header {
        margin-bottom: 30px;
    }
}