/* Main feature section */
.feature-section {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

.green-banner {
    background-color: rgba(24, 118, 54, 0.9);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
}

.green-banner h2 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 15px;
    font-weight: 600;
}

.green-banner p {
    font-size: clamp(14px, 3vw, 16px);
    max-width: 800px;
    margin: 0 auto;
}

/* Feature content layout */
.feature-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
}

.feature-list, .right-features {
    width: 100%;
}

/* Feature item styling */
.feature-item, .right-feature {
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.feature-item:before, .right-feature:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #666;
}

.feature-title, .right-feature-title {
    font-weight: 600;
    color: #333;
    font-size: clamp(16px, 3vw, 18px);
}

.feature-desc, .right-feature-desc {
    color: #666;
    font-size: clamp(14px, 3vw, 16px);
}

/* Device image section */
.feature-image {
    width: 100%;
    position: relative;
    margin: 20px 0;
    min-height: 300px;
}

.device-image {
    width: 74%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #187635;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: transform 0.2s;
    font-size: 14px;
}

.hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #2E8B57;
    z-index: -1;
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hotspot:hover {
    transform: scale(1.1);
}

/* Popup styling */
.popup {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 20;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 270px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

#popup-image1 {
    height: auto;
    max-height: 110px;
}

.popup-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.popup-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* Hotspot positions for mobile first */
#hotspot1 { top: 29%; right: 45%; }
#hotspot2 { top: 25%; left: 10%; }
#hotspot3 { top: 20%; right: 36%; }
#hotspot4 { top: 57%; left: 17%; }
#hotspot5 { top: 40%; left: 34%; }

/* Popup positions for mobile first */
#popup1 { top: 32%; right: 22%; }
#popup2 { top: 30.5%; left: 5%; }
#popup3 { top: 24%; right: 11%; }
#popup4 { top: 60%; left: 5%; }
#popup5 { top: 43%; left: 12%; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section titles */
h2.section-title {
    font-size: clamp(22px, 4vw, 28px);
    color: #444;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#obligation-section {
    background-color: #f7f7f7;
    padding: 30px 0;
}

/* Support section */
.support-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.support-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    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: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #187635;
    margin: 0 auto 15px;
}

.card-icon img {
    width: 30px;
    height: 30px;
}

.card-title {
    font-size: clamp(16px, 3vw, 20px);
    color: #187635;
    margin-bottom: 10px;
    text-align: center;
}

.support-card p {
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.btn {
    display: block;
    width: fit-content;
    background-color: #187635;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    margin: 30px auto 0;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2a8c48;
}

/* Desktop styles */
@media (min-width: 1224px) {
    .feature-section {
        flex-direction: row;
        padding: 40px 20px;
    }

    .feature-content {
        flex-direction: row;
        width: 50%;
        padding: 20px;
        padding-top: 0;
    }

    .feature-list, .right-features {
        width: 48%;
    }

    .feature-image {
        width: 50%;
        margin: 0;
        min-height: auto;
    }

    /* Desktop hotspot positions */
    #hotspot1 { top: 28%; right: 46%; }
    #hotspot2 { top: 27%; left: 20%; }
    #hotspot3 { top: 20.5%; right: 36%; }
    #hotspot4 { top: 56%; left: 23%; }
    #hotspot5 { top: 40%; left: 39%; }

    /* Desktop popup positions */
    #popup1 { top: 31.5%; right: 26%; }
    #popup2 { top: 30.5%; left: 1%; }
    #popup3 { top: 24%; right: 14%; }
    #popup4 { top: 59.5%; left: 6%; }
    #popup5 { top: 43.5%; left: 19%; }

    .support-cards {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
    }
}

@media (min-width: 981px) {
    /* Desktop hotspot positions */
    #hotspot1 { top: 28%; right: 46%; }
    #hotspot2 { top: 27%; left: 20%; }
    #hotspot3 { top: 20.5%; right: 36%; }
    #hotspot4 { top: 56%; left: 23%; }
    #hotspot5 { top: 40%; left: 39%; }

    /* Desktop popup positions */
    #popup1 { top: 31.5%; right: 26%; }
    #popup2 { top: 30.5%; left: 1%; }
    #popup3 { top: 24%; right: 14%; }
    #popup4 { top: 59.5%; left: 6%; }
    #popup5 { top: 43.5%; left: 19%; }

}


/* Tablet styles */
@media (min-width: 768px) and (max-width: 1223px) {
    .feature-content {
        padding: 20px;
        padding-top: 0;
        flex-direction: row;
        order: 2;
    }

    .device-image {
        width: 74%; /* скасовує обмеження max-width */
        max-height: none; /* скасовує обмеження висоти */
        max-width: 430px;
    }

    /* Tablet hotspot positions */
    #hotspot1 { top: 28%; right: 48%; }
    #hotspot2 { top: 27%; left: 36%; }
    #hotspot3 { top: 20%; right: 43%; }
    #hotspot4 { top: 57%; left: 37%; }
    #hotspot5 { top: 40%; left: 45%; }

    /* Tablet popup positions */
    #popup1 { top: 32%; right: 38%; }
    #popup2 { top: 30.5%; left: 25%; }
    #popup3 { top: 23.5%; right: 33%; }
    #popup4 { top: 61%; left: 28%; }
    #popup5 { top: 43.5%; left: 35%; }

    .support-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Додаткові контрольні точки для планшетів */
@media (min-width: 768px) and (max-width: 899px) {
    #hotspot1 { top: 28%; right: 47%; }
    #hotspot2 { top: 26%; left: 30%; }
    #hotspot3 { top: 20%; right: 40%; }
    #hotspot4 { top: 56%; left: 31%; }
    #hotspot5 { top: 40%; left: 42%; }

    #popup1 { top: 31.5%; right: 34%; }
    #popup2 { top: 29.5%; left: 17%; }
    #popup3 { top: 23.5%; right: 27%; }
    #popup4 { top: 59.5%; left: 18%; }
    #popup5 { top: 43.5%; left: 29%; }
}

@media (min-width: 900px) and (max-width: 999px) {
    #hotspot1 { top: 28.5%; right: 47.5%; }
    #hotspot2 { top: 26.5%; left: 31%; }
    #hotspot3 { top: 20.5%; right: 41%; }
    #hotspot4 { top: 56.5%; left: 32%; }
    #hotspot5 { top: 39.5%; left: 43%; }

    #popup1 { top: 32%; right: 35%; }
    #popup2 { top: 30%; left: 19%; }
    #popup3 { top: 24%; right: 28%; }
    #popup4 { top: 60%; left: 20%; }
    #popup5 { top: 43%; left: 30%; }
}

@media (min-width: 1000px) and (max-width: 1099px) {
    #hotspot1 { top: 28%; right: 48%; }
    #hotspot2 { top: 27%; left: 34%; }
    #hotspot3 { top: 20.5%; right: 42%; }
    #hotspot4 { top: 56%; left: 35%; }
    #hotspot5 { top: 40%; left: 43%; }

    #popup1 { top: 32%; right: 36%; }
    #popup2 { top: 31%; left: 23%; }
    #popup3 { top: 24%; right: 31%; }
    #popup4 { top: 60%; left: 24%; }
    #popup5 { top: 44%; left: 31%; }
}




/* Mobile and small tablet styles */
@media (max-width: 767px) {
    .support-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-content {
        padding: 0;
        order: 1;
    }
    .device-image {
        width: 64%;
    }

    #hotspot1 { top: 29%; right: 47%; }
    #hotspot2 { top: 26%; left: 24%; }
    #hotspot3 { top: 20.5%; right: 38%; }
    #hotspot4 { top: 56%; left: 26%; }
    #hotspot5 { top: 40%; left: 40%; }

    #popup1 { top: 32%; right: 31%; }
    #popup2 { top: 29.5%; left: 9%; }
    #popup3 { top: 23.5%; right: 22%; }
    #popup4 { top: 59.5%; left: 11%; }
    #popup5 { top: 43%; left: 24%; }
}

@media (max-width: 620px) {

    .device-image {
        width: 85%;
    }

    #hotspot1 { top: 29%; right: 46%; }
    #hotspot2 { top: 27%; left: 16%; }
    #hotspot3 { top: 20.5%; right: 34%; }
    #hotspot4 { top: 56%; left: 19%; }
    #hotspot5 { top: 40%; left: 36%; }

    #popup1 { top: 32%; right: 26%; }
    #popup2 { top: 30.5%; left: 0%; }
    #popup3 { top: 24%; right: 14%; }
    #popup4 { top: 59.5%; left: 0%; }
    #popup5 { top: 44%; left: 15%; }
}

@media (max-width: 480px) {

    .device-image {
        width: 90%;
    }

    #hotspot1 { top: 28%; right: 45%; }
    #hotspot2 { top: 27%; left: 13%; }
    #hotspot3 { top: 20.5%; right: 32%; }
    #hotspot4 { top: 56%; left: 16%; }
    #hotspot5 { top: 40%; left: 36%; }

    #popup1 { top: 32%; right: 18%; }
    #popup2 { top: 31%; left: 0%; }
    #popup3 { top: 25%; right: 4%; }
    #popup4 { top: 60%; left: 0%; }
    #popup5 { top: 44%; left: 9%; }
}