/* =========================
   TESTING HERO
========================= */

.testing-hero {
    position: relative;
    height: 50vh;
    background:
        linear-gradient(rgba(7, 20, 40, 0.75),
            rgba(7, 20, 40, 0.75)),
        url('../images/Chemical_testing_services.jpg') center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.testing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
}

.testing-hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.testing-hero-content p {
    color: #dbe4f0;
    font-size: 1.15rem;
    line-height: 1.9;
}

.glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 1;
}

/* =========================
   MAIN WRAPPER
========================= */

.chemical-section {
    padding: 80px 8% 0;
}

.chemical-section>*:last-child {
    margin-bottom: 0;
}

.chemical-section>* {
    margin-bottom: 90px;
}

/* =========================
   HERO SPLIT (TEXT + IMAGE)
========================= */

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-split .text {
    max-width: 650px;
}

.hero-split .text h2 {
    font-size: 32px;
    margin-bottom: 18px;
    color: #111827;
}

.hero-split .text p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

/* =========================
   TEXT BLOCKS
========================= */

.chemical-block {
    max-width: 720px;
}

.chemical-block h2 {
    font-size: 32px;
    margin-bottom: 18px;
    color: #111827;
}

.chemical-block p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 14px;
    text-align: justify;
}

/* =========================
   SPLIT SECTION
========================= */

.chemical-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chemical-split.reverse {
    direction: rtl;
}

.chemical-split.reverse * {
    direction: ltr;
}

.image-box {
    height: 260px;
    border-radius: 20px;
    background: rgba(77, 163, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(77, 163, 255, 0.2);
}

/* =========================
   CAPABILITIES
========================= */

.capabilities {
    margin-top: 60px;
}

.section-title {
    font-size: 30px;
    margin-bottom: 30px;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.cap-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.cap-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cap-top h3 {
    font-size: 18px;
    color: #111827;
}

.cap-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.1);
    color: #2563eb;
    font-weight: 600;
}

.cap-std {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}

.cap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   SERVICE LIST
========================= */

.service-list {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #374151;
}

/* =========================
   EQUIPMENT SECTION
========================= */

.equipment-section {
    padding: 110px 8%;
    background: linear-gradient(to bottom, #f8fbff, #ffffff);
    border-radius: 30px;
    margin-top: 40px;
}

.equipment-header {
    text-align: center;
    margin-bottom: 70px;
}

.equipment-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    position: relative;
}

.equipment-header h2::after {
    content: "";
    width: 90px;
    height: 4px;
    background: #2563eb;
    display: block;
    margin: 18px auto 0;
    border-radius: 20px;
}

.equipment-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.equipment-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    margin: 0 auto;
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.equipment-card img {
    width: 100%;
    height: auto;
    display: block;
    background: #f3f4f6;
}

.equipment-content {
    padding: 34px;
    text-align: left;
}

.equipment-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.equipment-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 28px;
}

.equipment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.equipment-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.equipment-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================
   SECTION DIVIDER
========================= */

.chemical-block,
.chemical-split,
.capabilities,
.equipment-section {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {

    .hero-split,
    .chemical-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image img {
        height: 250px;
    }

    .testing-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .testing-hero {
        height: 65vh;
    }

    .testing-hero-content h1 {
        font-size: 2.3rem;
        letter-spacing: 2px;
    }

    .testing-hero-content p {
        font-size: 1rem;
    }

    .equipment-section {
        padding: 80px 6%;
    }

    .equipment-header h2 {
        font-size: 2rem;
    }

    .equipment-header p {
        font-size: 16px;
    }

    .equipment-content {
        padding: 26px;
    }

    .equipment-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .testing-hero-content h1 {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }

    .chemical-section {
        padding: 60px 6% 80px;
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .equipment-card {
        border-radius: 22px;
    }

    .equipment-header h2 {
        font-size: 1.8rem;
    }
}

/* Remove border and padding on last section */
.equipment-section {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}