.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-buttons .tab-btn {
    padding: 10px 24px;
    background-color: #fef1e6;
    color: #444;
    border: none;
    border-radius: 12px;
    /* 完全橢圓圓角 */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tab-buttons .tab-btn:hover {
    background-color: #fde4cc;
}

.tab-buttons .tab-btn.active {
    background-color: #f9c8a7;
    color: #000;
    font-weight: bold;
}


.custom-footer {
    background-color: #1d3557;
    /* 深藍底色 */
    text-align: center;

}

.custom-footer img {
    max-width: 100px;
    height: auto;
    display: inline-block;
}

@media (max-width: 768px) {

    /* Overview、Comparison、Coding library三個按鈕 */
    .tab-buttons {
        display: flex;
        gap: 6px;
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        padding: 8px 6px;
        font-size: 12px;
        border-radius: 12px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
        line-height: 1.2;
        min-height: 44px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-btn.allow-wrap {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

         /*
        footer 本體
        增加上下內距
        讓深藍底更厚
    */
    .custom-footer {
        padding-top: 2vh;
        padding-bottom: 2vh;
    }

    /*
        footer logo
        原本 max-width 100px
        手機改為約兩倍
        同時保留自動縮放避免超出
    */
    .custom-footer img {
        max-width: none;
        width: 20vw !important;
        height: auto;
        margin-top: 0;
    }
}