.db-services {
    background: #102523;
    position: relative;
    overflow: hidden;
    padding: 100px 5% 110px;
}

.db-services-intro {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 60px;
}

.db-eyebrow {
    color: #20BFC1;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.db-main-title {
    color: #FFFFFF;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.db-description {
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.6;
}

.db-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.db-service-card {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    background-size: cover !important;
    background-position: center !important;
    isolation: isolate;
}

.db-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 20, 18, 0.05) 20%,
        rgba(5, 20, 18, 0.45) 60%,
        rgba(5, 20, 18, 0.95) 100%
    );
    z-index: 1;
    transition: background 0.4s ease;
    pointer-events: none;
}

.db-service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    z-index: 3;
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.db-service-card:hover::after {
    border-color: #20BFC1;
}

.db-card-content {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px !important;
}

.db-card-number {
    color: #F5A623 !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.db-card-title {
    color: #FFFFFF !important;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
    max-width: 650px;
    margin-bottom: 15px;
}

.db-card-description {
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        max-height 0.5s ease,
        margin 0.4s ease;
}

.db-card-link {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.4s ease 0.05s,
        transform 0.4s ease 0.05s,
        max-height 0.5s ease;
}

.db-service-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(5,20,18,0.15) 10%,
        rgba(5,20,18,0.60) 55%,
        rgba(5,20,18,0.98) 100%
    );
}

.db-service-card:hover .db-card-description {
    opacity: 1;
    transform: translateY(0);
    max-height: 180px;
    margin-bottom: 15px;
}

.db-service-card:hover .db-card-link {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
}

.db-card-link .elementor-button {
    background: transparent;
    padding: 0;
    color: #F5A623;
    font-weight: 700;
    border: none;
    text-decoration: none;
}

.db-card-link .elementor-button:hover {
    color: #20BFC1;
}

@media (min-width: 1025px) {
    .db-service-card:nth-child(1),
    .db-service-card:nth-child(4) {
        grid-column: 1 / -1;
        min-height: 600px;
    }

    .db-service-card:nth-child(1) .db-card-content,
    .db-service-card:nth-child(4) .db-card-content {
        min-height: 600px;
    }
}

@media (max-width: 1024px) {
    .db-card-description,
    .db-card-link {
        opacity: 1;
        transform: none;
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .db-services {
        padding: 70px 20px;
    }
    .db-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .db-service-card {
        min-height: 430px;
    }

    .db-card-content {
        min-height: 430px;
        padding: 25px !important;
    }

    .db-card-title {
        font-size: 30px;
    }
}
