/* Single Service Page Styles */
.single-service-wrapper {
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.single-service-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero and Excerpt Wrapper */
.service-hero-excerpt-wrapper {
    display: grid;
    grid-template-columns: 800px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.service-hero {
    position: relative;
}

@media (max-width: 968px) {
    .service-hero-excerpt-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .service-hero {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .service-sidebar {
        order: 2;
    }

    .service-hero-image {
        max-width: 100%;
        width: 100% !important;
        aspect-ratio: unset;
        height: auto;
        overflow: hidden;
    }

    .service-hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        transform: scale(1.05);
    }
}

.service-hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
}

.service-hero-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 50px 50px 50px;
    border-radius: 12px;
}

.service-hero-button {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

@media (max-width: 768px) {
    .service-hero-button {
        bottom: 25px;
        right: 18px;
    }
    .service-hero-button a.cta-button {
        padding: 5px 20px;
    }
}

.service-hero-content {
    width: 100%;
    color: #ffffff;
}

.service-badge,
.service-category {
    display: inline-block;
    margin-bottom: 15px;
}

.badge-text,
.category-text {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.service-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-date,
.service-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.service-date i,
.service-price i {
    font-size: 18px;
    font-style: normal;
}

.service-price {
    font-weight: 600;
    font-size: 18px;
}

/* Hero No Image */
.service-hero-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 50px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
}

.service-hero-no-image .service-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.service-hero-no-image .service-meta {
    justify-content: center;
}

/* Content Wrapper */
.service-content-wrapper {
    margin-bottom: 60px;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-width: 400px;
    margin-left: auto;
    min-height: 400px;
    display: flex;
    align-items: stretch;
}

.service-cta-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-cta-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.service-cta-card p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 12);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.cta-button .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Content */
.service-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 40px;
}

.service-description p {
    margin-bottom: 20px;
}

.service-description h2,
.service-description h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-description ul,
.service-description ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.service-description li {
    margin-bottom: 10px;
}

.service-summary {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.service-summary h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.service-summary p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Navigation */
.service-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.nav-previous,
.nav-next {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    color: inherit;
}

.nav-next .nav-link {
    flex-direction: row-reverse;
}

.nav-icon {
    font-size: 24px;
    color: #667eea;
    font-weight: 700;
    font-style: normal;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 14px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.nav-link:hover .nav-title {
    color: #667eea;
}

.nav-link.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.nav-disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

/* Responsive Design */
@media (max-width: 968px) {
    .service-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-sidebar {
        position: static;
        min-height: auto;
    }

    .service-title {
        font-size: 36px;
    }

    .service-hero-image {
        max-width: 100%;
        width: 100%;
    }

    .service-hero-image img {
        max-width: 100%;
        width: 100%;
    }

    .service-hero-overlay {
        padding: 40px 30px;
    }

    .service-cta-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .single-service-wrapper {
        overflow-x: hidden;
    }

    .single-service-wrapper .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .service-hero-excerpt-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .service-hero {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .service-hero-image {
        max-width: 100%;
        width: 100% !important;
        aspect-ratio: unset;
        height: auto;
        border-radius: 8px;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .service-hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
        box-sizing: border-box;
        display: block;
    }

    .service-sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-hero-overlay {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .service-title {
        font-size: 28px;
    }

    .service-hero-no-image {
        padding: 50px 30px;
        border-radius: 8px;
    }

    .service-content {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .service-description {
        font-size: 16px;
    }

    .service-cta-card {
        padding: 25px;
    }

    .service-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-link {
        padding: 20px;
    }

    .nav-next .nav-link {
        flex-direction: row;
    }

    .nav-next .nav-link .nav-content {
        order: 1;
    }

    .nav-next .nav-link .nav-icon {
        order: 2;
    }
}

@media (max-width: 480px) {
    .service-title {
        font-size: 24px;
    }

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

    .badge-text {
        font-size: 12px;
        padding: 6px 15px;
    }

    .service-content {
        padding: 20px;
    }

    .service-cta-card {
        padding: 20px;
    }

    .service-cta-card h3 {
        font-size: 20px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

