/* Custom CSS for Services */
.custom-mobile-col {
    display: flex;
    margin-bottom: 30px;
}
.mobile-service-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mobile-service-card a img {
    width: 100%;
    aspect-ratio: 16/7;
    max-height: 130px;
    object-fit: cover;
    border-radius: 5px;
}
.mobile-service-card .service-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.mobile-service-card .service-text p {
    margin-bottom: 0;
}

/* Full Service Card Clickability (Desktop & Mobile) */
.service-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(7, 35, 47, 0.12);
}
@media (max-width: 767px) {
    .service-card .stretched-link {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 5;
        pointer-events: auto;
    }
}
.service-card a,
.service-card .service-text h3 a {
    text-decoration: none;
}

/* Professional Desktop Service Cards Layout (No Cut-off, Premium Aesthetic) */
@media (min-width: 768px) {
    .service-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
        margin-bottom: 30px !important;
    }
    .theme-dark .service-card {
        background: #0d1e33 !important;
        border-color: #1a3a6e !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    }
    .service-card:hover {
        transform: translateY(-6px) !important;
        box-shadow: 0 16px 36px rgba(7, 35, 47, 0.14) !important;
        border-color: #cbd5e1 !important;
    }
    .theme-dark .service-card:hover {
        border-color: #2563eb !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
    }

    /* Bring image link into normal document flow */
    .service-card a.stretched-link {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        display: block !important;
        width: 100% !important;
        height: 165px !important;
        min-height: 165px !important;
        max-height: 165px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        background: #07232F !important;
        border-radius: 12px 12px 0 0 !important;
    }
    .service-card a.stretched-link img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 165px !important;
        max-height: 165px !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
        transition: transform 0.4s ease !important;
    }
    .service-card:hover a.stretched-link img {
        transform: scale(1.06) !important;
    }

    /* Service card body text */
    .service-card .service-text {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        padding: 22px 20px 24px !important;
        background: transparent !important;
        z-index: 2 !important;
    }

    /* Service card icon - modern blue badge */
    .service-card .service-text i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
        font-size: 24px !important;
        color: #2563eb !important;
        background: #eff6ff !important;
        border: 1px solid #dbeafe !important;
        border-radius: 10px !important;
        margin-bottom: 14px !important;
        box-shadow: none !important;
        transition: all 0.3s ease !important;
    }
    .theme-dark .service-card .service-text i {
        background: #0d2137 !important;
        color: #4da6ff !important;
        border-color: #1e3a5f !important;
    }
    .service-card:hover .service-text i {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        transform: scale(1.08) !important;
    }
    .theme-dark .service-card:hover .service-text i {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #3b82f6 !important;
    }

    /* Service Title */
    .service-card .service-text h3 {
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }
    .service-card .service-text h3 a {
        color: #1e293b !important;
        display: block !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }
    .theme-dark .service-card .service-text h3 a {
        color: #f1f5f9 !important;
    }
    .service-card:hover .service-text h3 a {
        color: #2563eb !important;
    }
    .theme-dark .service-card:hover .service-text h3 a {
        color: #60a5fa !important;
    }
    .service-card .service-text h3 a span {
        color: #07232F !important;
    }
    .theme-dark .service-card .service-text h3 a span {
        color: #93c5fd !important;
    }

    /* Service Paragraph */
    .service-card .service-text p {
        display: block !important;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        color: #64748b !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
    }
    .theme-dark .service-card .service-text p {
        color: #94a3b8 !important;
    }
}

/* Header Positioning on Service Pages (Normal Document Flow - No Hero Overlap) */
body:has(.service-hero-banner) .header-area,
.service-hero-page .header-area,
.header-area.service-header {
    position: relative !important;
    width: 100%;
    z-index: 1000;
}

/* Service Hero Banner Spacing & Geometry */
.service-hero-banner {
    background: #07232F;
    background: linear-gradient(135deg, #07232F 0%, #0d3242 100%);
    padding: 55px 0 65px;
    position: relative;
    overflow: hidden;
}
.service-hero-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    line-height: 1.25;
}
.service-hero-banner .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    max-width: 650px;
    line-height: 1.6;
}
.service-hero-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}
.service-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.service-hero-breadcrumb a:hover {
    color: #4da6ff;
}
.service-hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}
.service-hero-breadcrumb .current {
    color: #4da6ff;
    font-size: 14px;
    font-weight: 600;
}
.service-hero-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}
.service-meta-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}
.service-meta-badge i {
    font-size: 16px;
    color: #4da6ff;
}
.service-hero-icon {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(77, 166, 255, 0.45);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #4da6ff;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
}

/* Responsive Service Hero Banner */
@media (max-width: 991px) {
    .service-hero-banner {
        padding: 45px 0 50px;
    }
    .service-hero-banner h1 {
        font-size: 32px;
    }
}

/* Mobile Optimization */
@media only screen and (max-width: 767px) {
    .service-hero-banner {
        padding: 30px 0 35px;
    }
    .service-hero-banner h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .service-hero-banner .tagline {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
    }
    .service-hero-breadcrumb {
        margin-bottom: 12px !important;
        font-size: 12.5px !important;
    }
    .service-hero-breadcrumb a,
    .service-hero-breadcrumb span,
    .service-hero-breadcrumb .current {
        font-size: 12.5px !important;
    }
    .service-hero-meta {
        gap: 8px !important;
        margin-top: 16px !important;
    }
    .service-meta-badge {
        font-size: 11.5px !important;
        padding: 6px 12px !important;
    }

    .custom-mobile-col {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 16px;
    }
    .mobile-service-card {
        padding: 20px 10px !important;
        border-radius: 12px;
        text-align: center;
        background-color: #ffffff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        cursor: pointer;
    }
    .theme-dark .mobile-service-card {
        background-color: #0d1e33 !important;
        border: 1px solid #1a3a6e !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
    }
    .mobile-service-card img {
        display: none !important;
    }
    .mobile-service-card .service-text {
        padding: 0 !important;
        margin-top: 0 !important;
        justify-content: center;
        align-items: center;
    }
    .mobile-service-card .service-text i {
        font-size: 38px !important;
        position: static !important;
        display: inline-block !important;
        height: auto !important;
        width: auto !important;
        line-height: 1 !important;
        background: transparent !important;
        color: #07232F !important;
        margin-bottom: 12px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .theme-dark .mobile-service-card .service-text i {
        color: #4da6ff !important;
    }
    .mobile-service-card .service-text h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
    }
    .mobile-service-card .service-text h3 a {
        display: block;
        color: #2d2d2d !important;
    }
    .theme-dark .mobile-service-card .service-text h3 a {
        color: #ffffff !important;
    }
    .mobile-service-card .service-text h3 a span {
        color: #07232F !important;
    }
    .theme-dark .mobile-service-card .service-text h3 a span {
        color: #4da6ff !important;
    }
    .mobile-service-card .service-text p {
        display: none !important;
    }
    /* Disable stuck hover effects on mobile */
    .service-card.mobile-service-card:hover {
        background-color: #ffffff;
        transform: none !important;
    }
    .theme-dark .service-card.mobile-service-card:hover {
        background-color: #0f2845 !important;
    }
    .service-card.mobile-service-card:hover .service-text i {
        color: #07232F !important;
        background: transparent !important;
    }
    .theme-dark .service-card.mobile-service-card:hover .service-text i {
        color: #4da6ff !important;
    }
    .service-card.mobile-service-card:hover h3 a {
        color: #2d2d2d !important;
    }
    .theme-dark .service-card.mobile-service-card:hover h3 a {
        color: #ffffff !important;
    }
}

/* Service Pages Dark Mode Rules */
.theme-dark .ptb-100,
.theme-dark div.ptb-100,
body.theme-dark div.ptb-100,
html.theme-dark div.ptb-100,
.theme-dark div[style*="background:#f8fafc"],
body.theme-dark div[style*="background:#f8fafc"],
.theme-dark div[style*="background: #f8fafc"],
body.theme-dark div[style*="background: #f8fafc"] {
    background: #060d18 !important;
    background-color: #060d18 !important;
}
.theme-dark div[style*="background:var(--gold-light)"],
body.theme-dark div[style*="background:var(--gold-light)"] {
    background: #0d2137 !important;
    border-left-color: #4da6ff !important;
}
.theme-dark div[style*="background:var(--gold-light)"] p,
body.theme-dark div[style*="background:var(--gold-light)"] p {
    color: #94a3b8 !important;
}

