.four-e-philosophy .sub-text{
    font-size: 20px;
}

/* Tabs Wrapper */
#philosophyTabs {
    background: transparent;
    box-shadow: 5px 0 3px grey;
}

/* Left Tabs */
#philosophyTabs .nav-link {
    background: #eeeeee;
    padding: 18px 25px;
    font-size: 20px;
    font-weight: 500;
    color: #353535;
    border-radius: 0;
    text-align: left;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    box-shadow: 5px 0 3px grey;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Active Tab */
#philosophyTabs .nav-link.active {
    background: #F38221;
    color: #fff !important;
    font-weight: 600;
}

/* Hover - Inactive */
#philosophyTabs .nav-link:hover {
    background: #f2f2f2;
    color: #000;
}

/* Hover - Active Tab Fix */
#philosophyTabs .nav-link.active:hover {
    background: #F38221;
    color: #000 !important;
}

/* Right Content */
.tab-content {
    background: #F9F0EE;
    font-size: 20px;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 0 3px grey;
}

.tab-content p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 0;
    color: #333;
}

.tab-content .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Equal Height */
.row.g-0.align-items-stretch {
    min-height: 260px;
}

/* Desktop Alignment */
@media (min-width: 768px) {
    .tab-content {
        display: flex;
        align-items: center;
    }
}

/* Mobile – Horizontal Scroll */
@media (max-width: 767px) {

    #philosophyTabs {
        flex-direction: row !important;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: 1px solid #dcdcdc;
    }

    #philosophyTabs .nav-link {
        flex: 1;
        text-align: center;
        font-size: 16px;
        box-shadow: none !important;
        border-right: 1px solid #dcdcdc;
    }

    #philosophyTabs .nav-link:last-child {
        border-right: none;
    }

    .tab-content {
        padding: 20px;
    }
}
