/* Main container styles */
.program-design-container {

    margin: 0 auto;
    padding: 20px;

}

/* Header styles */
.program-header-g {
    text-align: center;
    margin-bottom: 30px;
}

.program-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.program-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #c1976b;
}

.program-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
}

/* Content layout */
.program-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    margin-top: 30px;
}

/* Phases list styles */
.phases-list {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phase-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phase-item:hover {
    background-color: #eee;
}

.phase-item.active {
    background-color: #6A2F38;
    color: white;
}

.phase-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: #6A2F38;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 10px;
}

.phase-item.active .phase-number {
    background-color: white;
    color: #6A2F38;
}

.phase-title {
    font-size: 16px;
    font-weight: 600;
}

/* Details section styles */
.phases-details {
    flex: 1;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    color: #6A2F38;
    margin-bottom: 15px;
    text-align: center;
}

.details-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.details-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.details-toggle:hover {
    background-color: #eee;
}

.details-icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.details-icon.rotated {
    transform: rotate(180deg);
}

/* Tabs styles */
.details-tabs {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    flex-direction: column;
}

.tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-button:hover {
    color: #6A2F38;
}

.tab-button.active {
    color: #6A2F38;
    border: 2px solid #6A2F38;
    margin: 10px 0;
    border-radius: 8px;
}

.tab-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    padding: 10px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .program-content {
        flex-direction: column-reverse;
    }

    .phases-list {
        flex: none;
        width: 100%;
    }

    .phase-item {
        padding: 12px;
    }

    .phase-title {
        font-size: 14px;
    }

    .program-design-container li {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .program-title {
        font-size: 20px;
    }

    .program-subtitle {
        font-size: 14px;
    }

    .details-title {
        font-size: 16px;
    }

    .details-content {
        font-size: 14px;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.program-design-container li {

    line-height: 28px;
    text-align: start;
    font-size: 20px;
    background-color: #eee;
    margin: 5px;
    border-radius: 5px;
    padding: 10px;
    width: 48%;
    display: inline-block;
}

.program-design-container li i {
    margin: 0 10px;
}

.pie-div,
.pie-circle {
    width: 45%
}

.number-div {
    width: 20%
}

.four-div,
.four-div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%
}

@media (max-width:776px) {

    .pie-div,
    .pie-circle,
    .four-div {
        width: 100%;
        margin: 20px 0;
    }

    .number-div {
        width: 100%
    }
}