/* ==================== SINGLE SERVICE HERO STYLES ==================== */
.ss-hero-section {
    position: relative;
    width: 100%;
    height: 390px;
    background-image: url('../images/about/hero.jpg'); /* Using same hero image as About page for consistency */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    font-family: var(--font-main, 'Segoe UI', sans-serif);
}

.ss-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 85, 59, 0.568); 
    z-index: 1;
}

.ss-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 15px;
    margin-left: 60px;
}

.ss-hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ss-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

/* Response for Hero Section */
@media (max-width: 768px) {
    .ss-hero-section {
        height: 350px;
    }
    
    .ss-hero-content {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .ss-hero-content h1 {
        font-size: 32px;
    }
    
    .ss-hero-content p {
        font-size: 14px;
        max-width: 100%;
    }
}

/* ==================== SERVICE DETAILS SECTION STYLES ==================== */
.service-details-section {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: var(--font-main, 'Segoe UI', sans-serif);
}

.sd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* ==================== SIDEBAR STYLES ==================== */
.sd-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 110px; /* Space from top or sticky header */
    height: fit-content;
    align-self: flex-start; /* Required for sticky to work in flex container */
    z-index: 10;
}

/* Services Menu */
.sd-menu-widget {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.sd-menu-title {
    background-color: #bbf24e; /* Lime Green */
    color: #063b27; /* Dark Green */
    font-size: 18px;
    font-weight: 800;
    padding: 20px;
    margin: 0;
}

.sd-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-menu-list li {
    border-bottom: 1px solid #eeeeee;
}

.sd-menu-list li:last-child {
    border-bottom: none;
}

.sd-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sd-menu-list a:hover,
.sd-menu-list a.active {
    color: #063b27;
    background-color: #f9fbf9;
}

.sd-menu-list a i {
    font-size: 12px;
    color: #cccccc;
    transition: color 0.3s ease;
}

.sd-menu-list a:hover i,
.sd-menu-list a.active i {
    color: #063b27;
}

/* Contact Widget */
.sd-contact-widget {
    background-color: #063b27; /* Dark Green */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
}

.sd-cw-logo {
    font-size: 24px;
    font-weight: 800;
    color: #bbf24e; /* Lime Green */
    margin-bottom: 20px;
}

.sd-cw-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.sd-cw-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.sd-cw-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    margin: 20px 0;
}

.sd-phone-icon {
    background-color: #bbf24e;
    color: #063b27;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.sd-cw-phone strong {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.sd-cw-btn {
    display: block;
    background-color: #bbf24e;
    color: #063b27;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sd-cw-btn:hover {
    background-color: #a4de35;
}

/* ==================== MAIN CONTENT STYLES ==================== */
.sd-main-content {
    flex: 1;
}

.sd-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}

.sd-heading {
    font-size: 32px;
    font-weight: 800;
    color: #063b27; /* Dark Green */
    margin: 40px 0 20px 0;
}

.sd-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Understanding Grid */
.sd-understanding-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.sd-ud-features {
    flex: 1;
}

.sd-ud-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sd-ud-icon {
    background-color: #dcf794; /* Light Lime */
    color: #063b27;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sd-ud-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #063b27;
    margin: 0 0 5px 0;
}

.sd-ud-text p {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.sd-ud-image {
    flex: 1;
}

.sd-ud-image img {
    width: 100%;
    border-radius: 12px;
}

/* Process Grid */
.sd-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.sd-process-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 40px 20px 25px 20px;
    text-align: center;
    position: relative;
}

.sd-pc-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bbf24e;
    color: #063b27;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
}

.sd-process-card h4 {
    font-size: 16px;
    color: #063b27;
    margin: 0 0 10px 0;
}

.sd-process-card p {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.sd-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.sd-reviews strong, .sd-reviews span {
    font-size: 14px;
    color: #063b27;
    font-weight: 800;
}

.sd-stars {
    color: #bbf24e;
    letter-spacing: 2px;
    font-size: 13px;
}

/* Video Wrapper */
.sd-video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sd-video-wrapper img,
.sd-video-wrapper video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.sd-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.sd-inline-features {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sd-inline-features li {
    font-size: 13px;
    color: #555555;
    display: flex;
    align-items: center;
}

.sd-inline-features li i {
    color: #bbf24e;
    margin-right: 8px;
    font-size: 15px;
}

/* FAQ Section */
.sd-faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sd-faq-item {
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
}

.sd-faq-item.active {
    background-color: #dcf794; /* Light Lime Green */
    border-color: #dcf794;
}

.sd-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
}

.sd-faq-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #063b27;
    margin: 0;
}

.sd-faq-icon {
    font-size: 14px;
    color: #063b27;
}

.sd-faq-body {
    display: none;
    padding: 0 20px 20px 20px;
}

.sd-faq-body p {
    font-size: 13px;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 991px) {
    .sd-container {
        flex-direction: column; /* Mobile වලදී එක යට එක වැටෙන්න */
    }
    
    .sd-sidebar {
        width: 100%;
        order: 2; /* User friendly වෙන්න Sidebar එක Content එකට යටින් යවමු */
        position: static; /* Disable sticky on mobile */
    }
    
    .sd-main-content {
        order: 1;
    }
    
    .sd-understanding-grid {
        flex-direction: column;
    }
    
    .sd-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sd-heading {
        font-size: 26px;
    }
    
    .sd-hero-img {
        height: 250px;
    }
    
    .sd-video-wrapper img {
        height: 250px;
    }
    
    .sd-inline-features {
        flex-direction: column;
        gap: 10px;
    }
}