/* Base Styles */
.med-tech-container {
    font-family: Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 10px 0;

}

/* Full-width section styling */
.full-width-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.white-bg {
    background-color: white;
}

.gray-bg {
    background-color: #f7f7f7;
}

/* Diagram Container */
.diagram-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 15px 0;
    overflow: visible;
}

.med-tech-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    background-color: transparent;
    box-shadow: none;
}

.med-tech-image {
    border-radius: 5px;
    width: 100%;
    object-fit: contain;
}

/* Content Styles */
.med-tech-content {
    flex: 1.5;
}

/* Points Styling */
.med-tech-point {
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.med-tech-point-number {
    position: absolute;
    left: 0;
    top: 0;
    color: #187635;
    font-size: 1.2rem;
    font-weight: 700;
}

.med-tech-point-title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 700;
    color: #455a64;
    font-size: 1.1rem;
    max-width: 300px;
}

.med-tech-point-subtitle {
    font-style: italic;
    color: #546e7a;
    margin-bottom: 10px;
    font-size: 1rem;
}

.med-tech-point-text {
    color: #455a64;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Tech Section Styles */
.med-tech-tech-title {
    color: #455a64;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.med-tech-tech-description {
    color: #455a64;
    font-size: 0.95rem;
    line-height: 1.5;
}

.med-tech-tech-paragraph {
    margin-bottom: 15px;
}

/* Banner Style */
.green-banner {
    background-color: rgba(24, 118, 54, 0.9);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 0;
}

.green-banner h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.green-banner p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 16px;
}

/* Diagram Icon */
.diagram-icon {
    position: absolute;
    top: -33px;
    right: 0;
    width: 170px;
    height: 170px;
    z-index: 10;
}

.center-circle {
    position: absolute;
    width: 67px;
    height: 67px;
    background-color: #9e9e9e;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.satellite-circle {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: 2;
}

.top {
    top: 17%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #9e9e9e;
}

.right {
    top: 50%;
    right: 17%;
    transform: translateY(-50%);
    background-color: #9e9e9e;
}

.bottom {
    bottom: 17%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #9e9e9e;
}

.left {
    top: 50%;
    left: 17%;
    transform: translateY(-50%);
    background-color: #9e9e9e;
}

.diagram-icon::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 85px;
    border: 2px dashed #9e9e9e;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Базовий стиль для всіх кругів діаграми */
.center-circle, .satellite-circle {
    transition: all 0.3s ease;
}

/* Ефект наведення для центрального круга */
.center-circle:hover {
    background-color: #808080;
    transform: translate(-50%, -50%) scale(1.1);
    cursor: pointer;
}

/* Ефект наведення для кругів-супутників */
.satellite-circle:hover {
    background-color: #808080;
    transform: scale(1.1);
    cursor: pointer;
}

/* Спеціальні коригування трансформації для кожного круга-супутника при наведенні */
.satellite-circle.top:hover {
    transform: translateX(-50%) scale(1.1);
}

.satellite-circle.right:hover {
    transform: translateY(-50%) scale(1.1);
}

.satellite-circle.bottom:hover {
    transform: translateX(-50%) scale(1.1);
}

.satellite-circle.left:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Layout Structure */
.med-tech-block-first {
    display: flex;
    flex-direction: column;
}

.med-tech-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Image zoom and popup styles */
.image-zoom-container {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-popup-img {
    max-width: 100%;
    max-height: 90vh;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.image-popup-close {
    position: absolute;
    top: -35px;
    right: -35px;
    color: white;
    background-color: #187635;
    border: 2px solid white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-co2{
    width: 100%;
    display: flex;
    justify-content: center;
}

.med-tech-point-text ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.med-tech-point-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.med-tech-point-text ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #187635;
    font-weight: bold;
    font-size: 18px;
}

/* Support section */
.support-section {
    padding: 30px 0;
    background-color: #f7f7f7;
}

.support-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.support-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    min-width: 340px;
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #187635;
    margin: 0 auto 20px;
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-title {
    font-size: 20px;
    color: #187635;
    margin-bottom: 15px;
    text-align: center;
}

.support-card p {
    margin-bottom: 15px;
    font-size: 14px;
}


/* Media Queries */
@media (min-width: 768px) and (max-width: 1199px) {
    .diagram-container {
        padding: 70px 0 0 0;
    }

    .med-tech-block-first {
        flex-direction: column;
    }

    .med-tech-images {
        width: 100%;
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .med-tech-image {
        width: 100%;
        height: 400px;
        object-fit: contain;
        margin-bottom: 20px;
    }

    .med-tech-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* Point placements in the desired order */
    .med-tech-point:nth-child(1) { /* SCUF - 01 */
        grid-column: 1;
        grid-row: 1;
    }

    .med-tech-point:nth-child(2) { /* CVVH - 02 */
        grid-column: 2;
        grid-row: 1;
    }

    .med-tech-point:nth-child(3) { /* CVVHD - 03 */
        grid-column: 1;
        grid-row: 2;
    }

    .med-tech-point:nth-child(4) { /* CVVHDF - 04 */
        grid-column: 2;
        grid-row: 2;
    }

    .med-tech-point {
        padding-left: 30px;
    }
}

@media (max-width: 767px) {
    .diagram-icon {
        width: 120px;
        height: 120px;
        top: -11px;
        right: 2px;
    }

    .med-tech-block-first {
        flex-direction: column;
    }

    .med-tech-images {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .med-tech-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .med-tech-content {
        display: block;
    }

    .center-circle {
        width: 60px;
        height: 60px;
    }

    .satellite-circle {
        width: 30px;
        height: 30px;
    }

    .diagram-icon::before {
        width: 74px;
        height: 74px;
    }

    .top {
        top: 9%;
        left: 50%;
    }

    .right {
        top: 50%;
        right: 9%;
    }

    .bottom {
        bottom: 9%;
        left: 50%;
    }

    .left {
        top: 50%;
        left: 9%;
    }

    .med-tech-card {
        padding: 15px;
    }

    .med-tech-point {
        padding-left: 30px;
    }

    .image-popup-close {
        top: -25px;
        right: -25px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    /* Support cards for tablets */
    .support-cards {
        flex-wrap: wrap;

    }

    .support-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .monitor-feature {
        flex-direction: column;
    }

    .feature-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }


    .support-cards {
        flex-wrap: wrap;
    }

    .support-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Default layout for wider screens */
@media (min-width: 1200px) {
    .med-tech-block-first {
        flex-direction: row;
    }

    .med-tech-images {
        flex: 1.5;
        flex-direction: column;
    }

    .med-tech-image {
        object-fit: contain;
    }
    @media (max-width: 640px) {
        .support-cards {
            flex-direction: column;
            align-items: center;
        }

        .support-card {
            width: 90%;
            max-width: 90%;
            flex: 0 0 90%;
        }
        .btn{
            margin: 20px 0 0 27px;
        }
        .btn-co2{
            width: 90%;
        }
    }

    @media (max-width: 480px) {
        .support-card {
            max-width: 100%;
            margin-bottom: 20px;
        }

        .card-title, .monitor-feature-title {
            font-size: 16px;
        }

        .support-card, .monitor-info {
            padding: 20px;
            min-width: 360px;
        }

        .btn {
            margin: 0 0 0 18px;
        }
        }
}





