/**
 * Tobalt Water Quality Styles
 * Author: Tobalt — https://tobalt.lt
 */

.tobalt-wq-section {
    position: relative;
    padding: 80px 0;
}

.tobalt-wq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.tobalt-wq-header {
    text-align: center;
    margin-bottom: 60px;
}

.tobalt-wq-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Upper Content - Three Columns */
.tobalt-wq-upper {
    margin-bottom: 60px;
}

.tobalt-wq-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -15px;
}

.tobalt-wq-col {
    padding: 0 15px;
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* Left Column */
.tobalt-wq-col-left .tobalt-wq-items {
    padding-top: 20px;
}

.tobalt-wq-col-left .tobalt-wq-item {
    text-align: right;
    padding-right: 110px;
    position: relative;
    margin-bottom: 140px;
}

.tobalt-wq-col-left .tobalt-wq-item:last-child {
    margin-bottom: 0;
}

.tobalt-wq-col-left .tobalt-wq-icon {
    position: absolute;
    right: 0;
    top: 0;
}

.tobalt-wq-col-left .tobalt-wq-formula {
    position: absolute;
    left: -35px;
    top: -10px;
}

/* Right Column */
.tobalt-wq-col-right .tobalt-wq-items {
    padding-top: 20px;
}

.tobalt-wq-col-right .tobalt-wq-item {
    text-align: left;
    padding-left: 110px;
    position: relative;
    margin-bottom: 140px;
}

.tobalt-wq-col-right .tobalt-wq-item:last-child {
    margin-bottom: 0;
}

.tobalt-wq-col-right .tobalt-wq-icon {
    position: absolute;
    left: 0;
    top: 0;
}

.tobalt-wq-col-right .tobalt-wq-formula {
    position: absolute;
    right: -35px;
    top: -10px;
}

/* Icon & Formula */
.tobalt-wq-icon {
    margin: 0;
    width: 70px;
    height: 70px;
}

.tobalt-wq-icon img {
    width: 70px;
    height: auto;
}

.tobalt-wq-formula {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 300;
    font-family: 'Open Sans', sans-serif;
}

/* Name & Value */
.tobalt-wq-name {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 4px;
}

.tobalt-wq-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tobalt-wq-name a:hover {
    opacity: 0.8;
}

.tobalt-wq-value {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.tobalt-wq-desc {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Center Column - Image */
.tobalt-wq-col-center {
    text-align: center;
}

.tobalt-wq-image-box {
    position: relative;
    display: inline-block;
}

.tobalt-wq-pattern {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: tobalt-wq-pulse 4s ease-in-out infinite;
}

@keyframes tobalt-wq-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
}

.tobalt-wq-glass {
    position: relative;
    z-index: 2;
    margin: 0;
    animation: tobalt-wq-float 3s ease-in-out infinite;
}

@keyframes tobalt-wq-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tobalt-wq-glass img {
    max-width: 100%;
    height: auto;
}

/* Lower Content - Bottom Items */
.tobalt-wq-lower {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tobalt-wq-bottom-item {
    flex: 0 0 25%;
    max-width: 25%;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.tobalt-wq-bottom-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

.tobalt-wq-bottom-item:last-child::after {
    display: none;
}

.tobalt-wq-bottom-item .tobalt-wq-name {
    font-size: 20px;
    margin-bottom: 2px;
}

.tobalt-wq-bottom-item .tobalt-wq-value {
    font-size: 16px;
}

/* Animations */
.tobalt-wq-item,
.tobalt-wq-bottom-item {
    animation: tobalt-wq-fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes tobalt-wq-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive */
@media (max-width: 991px) {
    .tobalt-wq-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tobalt-wq-col-center {
        order: -1;
        margin-bottom: 40px;
    }

    .tobalt-wq-col-left .tobalt-wq-item,
    .tobalt-wq-col-right .tobalt-wq-item {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        padding-top: 90px;
        margin-bottom: 50px;
    }

    .tobalt-wq-col-left .tobalt-wq-icon,
    .tobalt-wq-col-right .tobalt-wq-icon {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        right: auto;
    }

    .tobalt-wq-col-left .tobalt-wq-formula,
    .tobalt-wq-col-right .tobalt-wq-formula {
        left: auto;
        right: auto;
        top: -8px;
        transform: translateX(-80px);
    }

    .tobalt-wq-bottom-item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 20px;
    }

    .tobalt-wq-bottom-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .tobalt-wq-section {
        padding: 50px 0;
    }

    .tobalt-wq-title {
        font-size: 28px;
    }

    .tobalt-wq-pattern {
        width: 280px;
        height: 280px;
    }

    .tobalt-wq-bottom-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tobalt-wq-bottom-item::after {
        display: none;
    }
}
