/* ============================= */
/* 📌 Services Single Page Styles */
/* ============================= */

/* ===== Hero Section (Featured Image + Title) ===== */
.service-single__hero {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-single__sidebar-image{
    margin-bottom: 20px;
}

.service-single__hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-single__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 8px;
}

.service-single__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .service-single__hero-title {
        font-size: 1.8rem;
    }
    .service-single__hero-content {
        bottom: 15px;
        padding: 10px 15px;
    }
}


.service-single__container{
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
}
/* Left Scroll Sidebar */
.service-single__scroll-sidebar {
    width: 20%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: sticky;
    top: 100px;
    padding-right: 15px;
    border-right: 1px solid #f3f4f6;
}

/* TOC styling */
.single_title_list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.single_title_list.active {
    background-color: #fbe9e7;
    border-left: 4px solid #e53935;
}

.singleblog_num {
    width: 23px;
    height: 23px;
    background: linear-gradient(to right, #ff0000cc, #022fffcf);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.singleblog_h2_list {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.singleblog_h2_list a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.singleblog_h2_list:hover a,
.single_title_list.active .toc-link {
    color: #e53935;
    font-weight: bold;
}

/* Content Section */
.service-single__content {
    width: 55%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto;
    height: 100vh;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    scrollbar-width: thin;
}

.service-single__content::-webkit-scrollbar {
    width: 6px;
}
.service-single__content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

/* Services Sidebar (Right) */
.service-single__services-sidebar {
    width: 25%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    position: sticky;
    top: 100px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.service-single__services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-single__services-item {
    margin-bottom: 10px;
}

.service-single__services-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: linear-gradient(to right, #f9fafb, #ffffff);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    transition: all 0.3s ease;
}

.service-single__services-link:hover {
    background: linear-gradient(to right, #fef2f2, #eff6ff);
    border-color: #fca5a5;
    color: #e53935;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* Headings */
.service-single__content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #111827;
}

.service-single__content h2 {
    color: #e50914;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.service-single__content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 45px;
    background: linear-gradient(to right, #d50000, #0000ff);
    border-radius: 2px;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .service-single__container {
        flex-direction: column;
        height: auto;
    }

    .service-single__scroll-sidebar,
    .service-single__services-sidebar {
        width: 100%;
        position: relative;
        top: unset;
        border: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .service-single__content {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .service-single__container {
        gap: 15px;
    }

    .service-single__content {
        padding: 15px;
    }
}
