/* Updated Styles for Glow Nested Services */

/* Outer container */
.gns-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Main Tabs */
.gns-tab-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 -2px 0;
    padding: 0;
    list-style-type: none;
}

.gns-tab-nav li {
    flex: 1;
    margin: 0; /* Remove margins between tabs */
}

.gns-tab-nav a {
    display: block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    background-color: #f0f0f0; /* Non-active tabs background */
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.gns-tab-nav a.active {
    background-color: white; /* Active tab background */
    border-bottom: none;
}

.gns-tab-nav a:hover {
    background-color: #e0e0e0;
}

/* Main Tab Panes */
.gns-tab-pane {
    display: none;
}

.gns-tab-pane.active {
    display: block;
    border: 1px solid #ddd;
}

/* Subtabs */
.gns-subtab-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 0 0;
    padding: 0;
    list-style-type: none;
}

.gns-subtab-nav li {
    flex: 1; /* Make subtabs fill the width */
    margin: 0;
}

.gns-subtab-nav a {
    display: block;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    background-color: #f0f0f0; /* Non-active subtabs background */
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.gns-subtab-nav a.active {
    background-color: white; /* Active subtab background */
    border-bottom: none;
}

.gns-subtab-nav a:hover {
    /* background-color: #e0e0e0; */
}

/* Subtab Panes */
.gns-subtab-pane {
    display: none;
}

.gns-subtab-pane.active {
    display: block;
}

.gns-subtab-pane h3 {
    margin-bottom: 10px;
}

.gns-subtab-subtitle {
    font-size: 16px;
    color: #666;
}

/* Subtab Content Layout */
.gns-subtab-layout {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row; /* Default to row */
}

.gns-subtab-left,
.gns-subtab-right {
    box-sizing: border-box;
    padding: 10px;
}

.gns-subtab-left {
    flex: 1;
    max-width: 50%;
}

.gns-subtab-right {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.gns-subtab-top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gns-subtab-middle {
    flex: 1 1 0;
    overflow-y: auto;
}

.gns-subtab-bottom {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.gns-subtab-bottom  a.fusion-button.button-flat.fusion-button-default-size.button-default.button-1.fusion-button-default-span.fusion-button-default-type {
    width: 100%;
}

/* Service Items */
.gns-service-item {
    margin-bottom: 10px;
    margin-right: 10px;
}

.gns-service-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 7px;
    font-size: 18px;
    cursor: pointer;
}

.gns-service-description {
    display: none;
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Buttons */
.gns-subtab-bottom a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.gns-subtab-bottom a:hover {
    background-color: #0056b3;
}

.gns-subtab-bottom .fusion-text {
    font-size: 18px;
    font-weight: bold;
}

/* Image Styling */
.gns-subtab-image {
    width: 100%;
    text-align: center;
}

.gns-subtab-image img {
    max-width: 100%;
    height: auto;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .gns-tab-nav,
    .gns-subtab-nav {
        flex-direction: column;
    }

    .gns-subtab-middle {
        flex: 1 1 auto;
    }

    .gns-subtab-layout h3 {
        font-size: 25px !important;
        margin: 10px 0 30px;
    }

    .gns-subtab-bottom {
        flex-direction: column;
    }

    .gns-subtab-bottom > div {
        margin: 10px 0;
    }

    .gns-tab-nav li,
    .gns-subtab-nav li {
        margin: 0;
    }

    .gns-subtab-left,
    .gns-subtab-right {
        max-width: 100%;
    }

    .gns-subtab-layout {
        flex-direction: column;
    }
}