/* Expertise Section Styling */
.expertise-section {
    background-color: #f8fafc;
    padding: 100px 0;
}

.expertise-tagline {
    display: inline-block;
    color: #f7a400;
    /* Updated Gold */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
    padding-left: 30px;
}

.expertise-tagline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: #f7a400;
    /* Updated Gold */
}

.expertise-headline {
    font-size: 42px;
    font-weight: 800;
    color: #14176c;
    /* Updated Navy */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.expertise-subtext {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(20, 23, 108, 0.05);
    /* Navy based border */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.expertise-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #14176c;
    /* Updated Navy Background for hover */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.expertise-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(20, 23, 108, 0.15);
    border-color: transparent;
}

.expertise-box:hover::before {
    height: 100%;
}

.expertise-icon {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #14176c;
    /* Updated Navy */
    font-size: 32px;
    transition: all 0.3s ease;
}

.expertise-box:hover .expertise-icon {
    background: rgba(247, 164, 0, 0.15);
    /* Semi-transparent Gold */
    color: #f7a400;
    /* Updated Gold */
    transform: rotateY(180deg);
}

.expertise-title {
    font-size: 22px;
    font-weight: 700;
    color: #14176c;
    /* Updated Navy */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.expertise-box:hover .expertise-title {
    color: #ffffff;
}

.expertise-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.expertise-box:hover .expertise-desc {
    color: rgba(255, 255, 255, 0.8);
}

.expertise-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f7a400;
    /* Updated Gold */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.expertise-link i {
    transition: transform 0.3s ease;
}

.expertise-box:hover .expertise-link i {
    transform: translateX(5px);
    color: #f7a400;
}

/* Responsiveness */
@media (max-width: 991px) {
    .expertise-headline {
        font-size: 34px;
    }

    .expertise-section {
        padding: 70px 0;
    }
}

@media (max-width: 767px) {
    .expertise-box {
        padding: 30px 25px;
    }

    .expertise-title {
        font-size: 20px;
    }

    /* Center Group Title Box on Mobile */
    .expertise-group-header {
        text-align: center;
    }

    .group-title-box {
        margin: 0 auto;
    }
}

/* Group Headers */
.expertise-group-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 5px;
}

.group-title-box {
    display: inline-flex;
    align-items: center;
    background: #14176c;
    /* Updated Navy */
    padding: 12px 25px;
    border-radius: 10px;
    color: #f7a400;
    /* Updated Gold */
    box-shadow: 0 5px 15px rgba(20, 23, 108, 0.2);
}

.group-title-box i {
    font-size: 24px;
}

.group-title-box h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
}

.expertise-group-wrapper {
    position: relative;
}

.expertise-group-wrapper.mb-5 {
    margin-bottom: 4rem !important;
}