/* Service Detail Page Styles */

/* Common Hero Styling */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 90px;
    /* Offset for fixed header */
    color: white;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.7));
    z-index: 1;
}

/* Glass Header Override for Detail Pages */


/* Two-Column Layout */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
}

/* Service Content Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrapper {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

/* Capabilities List */
.capabilities-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.capability-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.capability-item:last-child {
    border-bottom: none;
}

.capability-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.capability-icon {
    margin-top: 0.25rem;
    color: var(--primary);
    min-width: 24px;
}

.capability-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.capability-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sidebar Styles */
.service-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.sidebar-cta-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

/* Typography Overrides */
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Service Cards Alignment Fix */
.service-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-detail-card .service-link {
    margin-top: auto;
}

/* === Footer Overrides for Detail Pages === */
/* Inherits global styles */
.footer-bottom p {
    margin-bottom: 0;
}