/* ========================================================================== */
/* HOME PAGE                                                    */
/* ========================================================================== */

.home-wrapper {
    padding: 0;
    margin: 0;
}

.home-hero {
    position: relative;
    width: 100%;
    min-height: 850px;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    color: white;
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 48px;
    background: white;
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    z-index: 6;
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 70px;
    margin-bottom: 70px;
    background: white;
    border-radius: 10px;
    padding: 60px 70px;
    gap: 20px;
}

.how-it-works-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #032f4f;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 60px;
}

.how-step {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #032f4f;
}

.how-it-works-section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #22303d;
    opacity: 0.95;
}

.how-section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #032f4f;
}

.how-section p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #22303d;
    margin-bottom: 1.2rem;
    max-width: 900px;
}

.how-it-works-section-title { /* note this 1 */
    position: relative;
    padding-bottom: 8px;
}

    .how-it-works-section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: min(480px, 100%); /* length of blue line */
        height: 3px; /* thickness */
        background-color: #006dba; /* color of line blue */
        border-radius: 2px;
    }

/* why choose us section */
.why-section {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(145deg,#eef3f9,#e6edf9);
}

.why-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #032f4f;
}

.why-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.why-card {
    width: 320px;
    padding: 2.5rem 1.8rem;
    background: linear-gradient(145deg,#0b4f83,#0f69a5);
    border-radius: 6px;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    color: white;
    position: relative;
}

    .why-card:hover {
        transform: translateY(-8px);
    }

.why-icon {
    width: 120px;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* news card section*/
.news-section {
    background: linear-gradient(145deg, #f5f8fc, #e7f0ff);
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px 50px;
    margin-top: 16px;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(3, 47, 79, 0.15);
    border: none;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

    .news-section:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 55px rgba(3, 47, 79, 0.25);
    }

.news-divider {
    width: 100%;
    height: 2px;
    background: rgba(3, 47, 79, 0.12);
    border-radius: 4px;
    margin-bottom: 25px;
}

.news-grid-section {
    width: 100%;
    padding: 80px 190px;
    background: white;
}

.news-grid-title {
    margin-bottom: 40px;
    font-size: 2.4rem;
    font-weight: 600;
    color: #032f4f;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
}

    .news-card:hover {
        transform: translateY(-6px);
    }

.news-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    padding-top: 1rem;
}

    .news-card-content h3 {
        font-size: 1.4rem;
        margin-top: 5px;
        margin-bottom: 0.6rem;
        margin-left: 10px;
        color: #062b45;
    }

    .news-card-content p {
        color: #333;
        opacity: 0.9;
        margin-top: 5px;
        margin-bottom: 1.2rem;
        margin-left: 10px;
        line-height: 1.5;
    }

.news-btn {
    margin-top: auto;
    display: inline-block;
    background: #003a63;
    color: white;
    margin-left: 10px;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    align-self: flex-start;
}

    .news-btn:hover {
        background: #00518c;
    }

/*carousel button*/
.btn-primary {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #0078D7;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #005ea8;
    }

@media (max-width: 991.98px) {
    .how-it-works-content {
        padding: 40px 24px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .how-steps {
        grid-template-columns: 1fr;
    }

    .news-grid-section {
        padding: 60px 24px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .news-section {
        padding: 30px 20px;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

