﻿/* Sarlavha konteyneri */
.title-container {
    background: linear-gradient(to right, rgb(51, 176, 100), rgb(127, 101, 162));
    width: 100vw;
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 0;
    box-sizing: border-box;
    z-index: 10;
}

.catalog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

/* MD Container */
.md-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    height: 500px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    gap: 30px;
}

/* MD Image */
.md-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 600px;
    height: 100%;
    box-shadow: 4px 4px 8px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    overflow: hidden;
}

    .md-image::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('../images/bg-medician.png') no-repeat center;
        background-size: cover;
        opacity: 0.1;
        z-index: 1;
        border-radius: 8px;
    }

    .md-image img {
        max-width: 100%;
        height: 650px;
        border-radius: 8px;
        position: relative;
        z-index: 2;
        object-fit: contain;
    }

/* Details */
.details {
    flex: 1;
    margin-left: 20px;
}

.name-md {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px;
}

.category-md {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px;
    background: linear-gradient(to right, rgb(51, 176, 100) 0%, rgb(65, 26, 117) 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.details p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 10px;
    margin-right: 100px;
}

.kind-md {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 25px;
}

    .kind-md .highlight {
        color: #00ba3b;
        font-weight: 500;
    }

/* MD About */
.md-about {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.howto-use {
    font-size: 16px;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

    .howto-use span {
        display: inline-block;
        width: 30px;
        height: 30px;
    }

    .howto-use .use-icon {
        width: 100%;
        height: 100%;
    }

/* Tugmalar */
.download-bt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    background: none;
    color: #000;
    margin: 0;
    cursor: pointer;
}

    .download-bt span {
        display: inline-block;
        width: 30px;
        height: 30px;
    }

    .download-bt .icon-download {
        width: 100%;
        height: 100%;
    }

    .download-bt:hover {
        color: #656565;
    }

.price-bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 53%;
    background: transparent;
    padding: 15px 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(to right, rgb(51, 176, 100), rgb(127, 101, 162));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

    .price-bt::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 15px;
        background: linear-gradient(to bottom, rgb(51, 176, 100), rgb(65, 26, 117));
        padding: 1px;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
        opacity: 0.7;
        z-index: 1;
    }

    .price-bt:hover {
        transform: scale(1.05);
    }

    .price-bt:active {
        transform: scale(0.98);
    }

    .price-bt span {
        display: inline-block;
        width: 20px;
        height: 20px;
        background-size: contain;
    }


.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: #fff;
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(to right, rgb(51, 176, 100), rgb(127, 101, 162));
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.3s;
    border-radius: 12px;
}

    .header:hover {
        opacity: 0.9;
    }

.arrow {
    transition: transform 0.3s;
}

.header.active .arrow {
    transform: rotate(180deg);
}

.content {
    padding: 20px;
    display: none;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

    .content.active {
        display: block;
    }

    .content strong {
        display: block;
        margin-bottom: 10px;
        color: #2c3e50;
    }

.composition-table {
    width: 50%;
    border-collapse: collapse;
    margin-top: 5px;
}

    .composition-table tr {
        display: flex;
        justify-content: flex-start;
        padding: 2px 0;
    }

    .composition-table td {
        padding: 0 2px;
        color: #555;
    }

        .composition-table td:first-child {
            flex: 3;
            text-align: left;
        }

        .composition-table td:last-child {
            flex: 1;
            text-align: left;
        }


@media (max-width: 768px) {
    .title-container {
        top: 100px; 
        padding: 8px 0;
    }

    .catalog-title {
        font-size: 20px; 
    }

    .md-container {
        flex-direction: column;
        margin-top: 150px; 
        padding: 10px;
        height: auto; 
        gap: 20px;
    }

    .md-image {
        width: 100%; 
        height: 300px; 
        padding: 5px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); 
    }

        .md-image img {
            height: 280px; 
        }

    .details {
        margin-left: 0; 
        margin-top: 15px;
    }

    .name-md {
        font-size: 22px;
    }

    .category-md {
        font-size: 14px; 
    }

    .details p {
        font-size: 13px; 
        margin-right: 0; 
    }

    .kind-md {
        font-size: 14px; 
        margin-bottom: 15px;
    }

    .md-about {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .howto-use {
        font-size: 14px; 
    }

        .howto-use span {
            width: 25px; 
            height: 25px;
        }

    .download-bt {
        width: 100%; 
        padding: 8px 15px;
        font-size: 14px; 
    }

        .download-bt span {
            width: 25px;
            height: 25px;
        }

    .price-bt {
        width: 100%; 
        padding: 12px 15px;
        font-size: 16px; 
        border-radius: 10px;
    }

        .price-bt span {
            width: 18px; 
            height: 18px;
        }

    .container {
        padding: 0 10px; 
    }

    .section {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .header {
        padding: 10px 15px;
        font-size: 16px;
        border-radius: 8px;
    }

    .content {
        padding: 15px;
        font-size: 14px; 
    }

    .composition-table {
        width: 100%; 
    }

        .composition-table tr {
            flex-direction: column;
            padding: 5px 0; 
            gap: 5px; 
        }

        .composition-table td {
            padding: 2px 0; 
            font-size: 13px; 
        }

            .composition-table td:first-child {
                flex: none;
            }

            .composition-table td:last-child {
                flex: none;
                text-align: left;
            }
}

@media (max-width: 480px) {
    .title-container {
        top: 80px;
        padding: 5px 0;
    }

    .catalog-title {
        font-size: 18px;
    }

    .md-container {
        margin-top: 120px;
        padding: 5px;
        gap: 15px;
    }

    .md-image {
        height: 350px;
    }

        .md-image img {
            height: 330px;
        }

    .name-md {
        font-size: 20px;
    }

    .category-md {
        font-size: 12px;
    }

    .details p {
        font-size: 12px;
    }

    .kind-md {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .howto-use {
        font-size: 13px;
    }

        .howto-use span {
            width: 20px;
            height: 20px;
        }

    .download-bt {
        padding: 6px 10px;
        font-size: 13px;
    }

        .download-bt span {
            width: 20px;
            height: 20px;
        }

    .price-bt {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }

        .price-bt span {
            width: 16px;
            height: 16px;
        }

    .header {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    .content {
        padding: 10px;
        font-size: 13px;
    }

    .composition-table td {
        font-size: 12px;
    }


}
