/* Family Services Page Styles */
.family-services-page {
    background: linear-gradient(#151d28, #0e4f6d);
    min-height: 100vh;
    color: #ffffff;
    padding: 160px 0 60px 0;
    font-family: 'Poppins', sans-serif;
}

.navbar {
    background: linear-gradient(#0b3f56,#0e4f6d) !important;
}

.family-services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

/* Main Content */
.main-content {
    flex: 1;
}

.family-header {
    margin-bottom: 50px;
}

.family-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #38bdf8;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.family-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 25px;
}

.family-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-section {
    padding-bottom: 30px;
}

.service-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.learn-more-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more-link:hover {
    color: #0ea5e9;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 180px;
    overflow: hidden;
}

.explore-treatments {
    padding: 0;
}

.explore-treatments h4 {
    background: #38bdf8;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
}

/* Bootstrap Accordion Customization */
.accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-bg: transparent;
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    box-shadow: none;
}

.accordion-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338bdf8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: brightness(0) saturate(100%) invert(69%) sepia(89%) saturate(2068%) hue-rotate(180deg) brightness(103%) contrast(96%);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338bdf8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-collapse {
    border: none;
}

.accordion-body {
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    border: none;
}

.treatment-link {
    display: block;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid #38bdf8;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.treatment-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .family-services-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .family-services-page {
        padding: 100px 0 40px 0;
    }

    .family-services-content {
        padding: 0 15px;
    }

    .family-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .family-title {
        font-size: 1.8rem;
    }

    .family-intro,
    .family-description {
        font-size: 0.95rem;
    }

    .service-section h3 {
        font-size: 1.2rem;
    }

    .service-section p {
        font-size: 0.9rem;
    }
}