/* ==================== GLOBAL THEME OVERRIDES ==================== */
body {
    background: #f0f4f8;
    /* Soft background to match home page */
    color: #1a202c;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.page-bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatShape 18s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 134, 222, 0.04) 0%, transparent 70%);
    top: 10%;
    left: -5%;
}

.bg-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 134, 222, 0.03) 0%, transparent 70%);
    top: 60%;
    right: -3%;
}

/* ==================== NAVBAR OVERRIDES FOR SERVICE PAGES ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* ==================== SERVICE HERO (AS A LIGHT CARD) ==================== */
.service-hero {
    position: relative;
    margin: 120px 24px 20px;
    border-radius: 40px;
    overflow: hidden;
    min-height: 30vh;
    /* Reduced size */
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(46, 134, 222, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(46, 134, 222, 0.02) 0%, transparent 40%);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    /* Slightly reduced padding */
}

.service-hero-icon {
    width: 80px;
    /* Slightly smaller icon */
    height: 80px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* Slightly smaller font */
    color: var(--accent);
    margin-bottom: 25px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 4px 10px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.service-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    /* Smaller font range */
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.service-hero p {
    font-size: 1.15rem;
    /* Slightly smaller text */
    color: #4a5568;
    max-width: 650px;
    line-height: 1.7;
    font-weight: 400;
}

/* --- Hero Highlights Row --- */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(46, 134, 222, 0.04);
    border: 1px solid rgba(46, 134, 222, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s;
}

.highlight-badge i {
    font-size: 0.95rem;
}

.highlight-badge:hover {
    background: rgba(46, 134, 222, 0.08);
    transform: translateY(-2px);
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 8px 18px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ==================== SERVICE DETAILS CARD ==================== */
.service-details {
    margin: 20px 24px 60px;
    padding: 80px 0;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

/* --- Features --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    padding: 30px;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 134, 222, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1a202c;
}

/* --- Sidebar --- */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 120px;
}

.sidebar-card {
    padding: 32px;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-cta {
    padding: 32px;
    background: linear-gradient(135deg, #0a1628, #1a3a5c);
    border-radius: 24px;
    color: #fff;
    text-align: center;
}

.sidebar-cta h3 {
    color: #fff;
    margin-bottom: 12px;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* --- Footer Area --- */
.footer {
    background: #0a1628;
    color: #fff;
    margin: 20px 24px;
    padding: 40px 0;
    border-radius: 40px;
    text-align: center;
}

@media (max-width: 992px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .service-hero {
        margin-top: 100px;
    }
}