/*
    Custom Styles for Service Detail Page
*/

/* Hero Section */
.service-detail-hero-v2 {
    padding: 100px 0;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    overflow: hidden;
}
.service-detail-hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 97, 242, 0.7) 100%);
    z-index: 1;
}
.service-detail-hero-v2 .container {
    position: relative;
    z-index: 2;
}
.service-detail-hero-v2 h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
}
.service-detail-hero-v2 .icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.service-detail-hero-v2 p.lead {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Main Layout */
.service-detail-layout-v2 {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .service-detail-layout-v2 {
        grid-template-columns: 1fr;
    }
}

/* Sticky Sidebar - Refined */
.service-detail-sidebar-v2 {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 100px; /* Adjust this value based on your header's height */
    align-self: start; /* Important for sticky to work in a grid */
}
.sidebar-cta-box {
    background: var(--gradient);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.sidebar-cta-box h4 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.sidebar-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
.sidebar-cta-box .btn {
    width: 100%;
    background: var(--white);
    color: var(--primary);
    border: none;
    font-weight: 700;
    box-sizing: border-box;
}
.sidebar-cta-box .btn:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Content Sections */
.content-section {
    margin-bottom: 3.5rem;
}
.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Features Grid - Revamped to be Card-based */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07);
}
.feature-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}
.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


/* Process Timeline */
.process-timeline-v2 {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #e2e8f0;
}
.process-step {
    position: relative;
    margin-bottom: 2rem;
}
.process-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
}
.process-step h4 {
    font-size: 1.1rem;
}

/* Tech Stack */
.tech-stack-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--slate-100, #f1f5f9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}
.tech-item img {
    height: 24px;
}

/* FAQ Accordion */
.faq-accordion-v2 .faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-accordion-v2 .faq-question {
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-accordion-v2 .faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-accordion-v2 .faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-accordion-v2 .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-accordion-v2 .faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}
