/**
 * Capabilities Page Styles
 */

.services-page-container {
    padding-top: 0px;
    padding-bottom: 120px;
}

/* Hero Image */
.services-hero-image-wrapper {
    width: 100%;
    margin-bottom: 100px;
    overflow: hidden;
    border-radius: 24px;
    line-height: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.services-hero-image {
    width: 100%;
    height: 580px;
    display: block;
    object-fit: cover;
}

/* Intro Section */
.services-intro {
    margin-bottom: 80px;
    max-width: 100%;
}

.services-page-title {
    font-size: 45px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 50px;
    margin-bottom: 30px;
    /* line-height: 1.2; */
}

.services-description p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Services Grid */
.site-main .services-grid-area .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
}

.site-main .service-card {
    background: #FFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.service-info {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-excerpt p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Service Inner Page Styles */
.service-inner-container {
    padding-bottom: 120px;
}

/* Split Hero */
.service-split-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.hero-text-side {
    flex: 1;
}

.hero-image-side {
    flex: 1;
}

.service-inner-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.fw-400 {
    font-weight: 400;
}

.fw-700 {
    font-weight: 700;
}

.hero-image-side img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Breadcrumbs */
.breadcrumb-container {
    margin-bottom: 48px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.breadcrumb-container a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: var(--accent-red);
    text-decoration-color: var(--accent-red);
}

.breadcrumb-separator {
    margin: 0 10px;
}

/* Content Area */
.service-content-main {
    display: flex;
    gap: 80px;
    margin-bottom: 120px;
}

.service-main-text {
    flex: 2;
}

.service-sidebar {
    flex: 1;
    position: sticky;
    top: 40px;
    align-self: start;
}

.service-main-text h2 {
    font-size: 2.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 32px;
    letter-spacing: -0.015em;
}

/* Content Typography Styles */
.service-description-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.service-description-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.service-description-text p:last-child {
    margin-bottom: 0;
}

.service-description-text p a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.service-description-text p a:hover {
    color: var(--accent-red);
    text-decoration-color: var(--accent-red);
}

/* Headings inside content */
.service-description-text h3 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.service-description-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-top: 36px;
    margin-bottom: 16px;
}

.service-description-text h5,
.service-description-text h6 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Custom list items inside description */
.service-description-text ul,
.service-description-text ol {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 0;
}

.service-description-text ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.service-description-text ul li::before {
    content: '\2022';
    position: absolute;
    left: 8px;
    color: var(--accent-red);
    font-size: 1.4rem;
    line-height: 1;
    top: 2px;
}

.service-description-text ol {
    counter-reset: o-list;
    list-style: none;
}

.service-description-text ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    counter-increment: o-list;
}

.service-description-text ol li::before {
    content: counter(o-list) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Fallback legacy list styles */
.service-main-text ul {
    list-style: none;
    padding: 0;
}

.service-main-text li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.service-main-text li::before {
    content: '\2022';
    position: absolute;
    left: 8px;
    color: var(--accent-red);
    font-size: 1.4rem;
    line-height: 1;
    top: 2px;
}

/* Blockquote design */
.service-description-text blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--accent-red);
    background-color: var(--bg-light);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.service-description-text blockquote p {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin-bottom: 0;
}

/* Sidebar Menu */
.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.sidebar-menu {
    list-style: none;
    padding: 0 0 0 15px;
}

.sidebar-menu li {
    margin-bottom: 14px;
}

.sidebar-menu li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.sidebar-menu li.current-menu-item a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.sidebar-menu li.current-menu-item a::before {
    content: '\203a';
    position: absolute;
    left: -16px;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-menu li a:hover {
    color: var(--accent-red);
    transform: translateX(3px);
}

/* BOTTOM SECTION - Expertise Banner (Hero Cards Reuse) - Handled by main.css */
.hero-cards-wrapper {
    position: relative;
    z-index: 10;
}

.hero-cards-wrapper .hero-cards {
    margin-top: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-page-container {
        padding-bottom: 80px;
    }

    .services-hero-image {
        height: 450px;
    }

    .site-main .services-grid-area .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .service-split-hero {
        flex-direction: column;
        gap: 40px;
    }

    .hero-image-side img {
        height: 350px;
    }

    .service-inner-title {
        font-size: 3rem;
    }

    .service-main-text h2 {
        font-size: 2.25rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .services-page-container {
        padding-bottom: 60px;
    }

    .services-hero-image-wrapper {
        margin-bottom: 50px;
        border-radius: 15px;
    }

    .services-hero-image {
        height: 250px;
    }

    .services-page-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .services-description p {
        font-size: 1.1rem;
    }

    .services-intro {
        margin-bottom: 50px;
    }

    .site-main .services-grid-area .services-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .site-main .service-card {
        border-radius: 15px !important;
    }

    .service-image-wrapper {
        height: 200px;
    }

    .service-info {
        padding: 25px;
    }

    .service-content-main {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 80px;
    }

    .service-split-hero {
        margin-bottom: 50px;
        gap: 30px;
    }

    .hero-image-side img {
        height: 300px;
    }

    .service-sidebar {
        position: static;
    }

    .service-inner-title {
        font-size: 2.25rem;
    }

    .service-main-text h2 {
        font-size: 1.875rem;
        margin-bottom: 20px;
    }

    .service-description-text h3 {
        font-size: 1.5rem;
        margin-top: 32px;
        margin-bottom: 14px;
    }

    .service-description-text h4 {
        font-size: 1.35rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .sidebar-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .services-hero-image {
        height: 250px;
    }

    .services-page-title {
        font-size: 28px;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-inner-title {
        font-size: 2rem;
    }

    .hero-image-side img {
        height: 220px;
    }
}