:root {
    --vssc-blue: #2a5aa5;
    --vssc-teal: #00a79d;
    --vssc-green: #38b449;
    --vssc-white: #ffffff;
    --vssc-gray: #f4f6f8;
    --vssc-text-dark: #1a202c;
}

/* Treatments List Container */
.vssc-treatments-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Individual Treatment Item */
.vssc-treatment-item {
    margin-bottom: 80px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 160px;
    /* For anchor scrolling - offset for sticky menu */
}

/* Row 1: Two Column Layout */
.vssc-treatment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .vssc-treatment-row {
        grid-template-columns: 1fr;
    }
}

/* Content Column */
.vssc-treatment-content {
    display: flex;
    flex-direction: column;
}

.vssc-treatment-title {
    font-size: 2em;
    color: var(--vssc-blue);
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.vssc-treatment-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--vssc-text-dark);
}

/* Featured Image Column */
.vssc-treatment-featured {
    position: relative;
}

.vssc-treatment-featured img,
.vssc-treatment-featured-video img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.vssc-treatment-featured-video {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.vssc-treatment-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.vssc-treatment-featured-video:hover .vssc-treatment-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.vssc-treatment-play-icon {
    width: 80px;
    height: 80px;
    background: var(--vssc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(56, 180, 73, 0.5);
    transition: transform 0.3s ease;
}

.vssc-treatment-featured-video:hover .vssc-treatment-play-icon {
    transform: scale(1.1);
}

/* Row 2: Image Gallery */
.vssc-treatment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .vssc-treatment-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vssc-treatment-gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.vssc-treatment-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vssc-treatment-gallery-item:hover img {
    transform: scale(1.05);
}

.vssc-treatment-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vssc-treatment-gallery-item:hover .vssc-treatment-image-overlay {
    opacity: 1;
}

.vssc-treatment-image-overlay span {
    font-size: 48px;
    color: #fff;
    font-weight: 300;
}

/* Lightbox */
.vssc-treatment-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vssc-treatment-lightbox.active {
    display: flex;
    opacity: 1;
}

.vssc-treatment-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.vssc-treatment-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.vssc-treatment-lightbox-content {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Video content in lightbox */
.vssc-treatment-lightbox-content.video-content {
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.vssc-treatment-lightbox-content.video-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image content in lightbox */
.vssc-treatment-lightbox-content.image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.vssc-treatment-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.vssc-treatment-lightbox-close:hover {
    color: var(--vssc-green);
}

/* Highlight Effect for Bookmarked Treatments */
.vssc-treatment-highlight {
    animation: treatmentHighlight 2s ease;
    border: 3px solid var(--vssc-green);
}

@keyframes treatmentHighlight {
    0% {
        background-color: rgba(56, 180, 73, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(56, 180, 73, 0.1);
        transform: scale(1.01);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Menu Styling for Treatment Categories */
.menu-item-treatment-category > a {
    position: relative;
}

.menu-item-treatment-category > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vssc-green);
    transition: width 0.3s ease;
}

.menu-item-treatment-category:hover > a::after {
    width: 100%;
}

/* Treatment Menu Items Styling */
.menu-item-treatment-item > a {
    font-size: 0.95em;
    padding-left: 20px;
    position: relative;
}

.menu-item-treatment-item > a::before {
    content: '→';
    position: absolute;
    left: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-item-treatment-item:hover > a::before {
    opacity: 1;
    left: 8px;
}

.menu-item-treatment-item > a:hover {
    color: var(--vssc-green);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Treatment Item Scroll Padding */
.vssc-treatment-item {
    scroll-margin-top: 160px;
}

/* Responsive Menu Adjustments */
@media (max-width: 768px) {
    .menu-item-treatment-item > a {
        padding-left: 15px;
        font-size: 0.9em;
    }
    
    .vssc-treatment-item {
        padding: 20px;
        margin-bottom: 40px;
    }
}
/*
 Bootstrap Theme Menu Integration */
/* Ensure treatment dropdowns work with Bootstrap navwalker */

/* Treatment category dropdown items */
.navbar-nav .menu-item-type-vssc-treatment-cat.dropdown > .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Treatment category dropdown menu positioning */
.navbar-nav .menu-item-type-vssc-treatment-cat .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

/* Treatment items in dropdown */
.navbar-nav .menu-item-type-vssc-treatment .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.navbar-nav .menu-item-type-vssc-treatment .dropdown-item:hover,
.navbar-nav .menu-item-type-vssc-treatment .dropdown-item:focus {
    color: var(--vssc-green);
    background-color: #f8f9fa;
}

/* Nested dropdown for treatment categories */
.navbar-nav .menu-item-type-vssc-treatment-cat.dropdown {
    position: relative;
}

.navbar-nav .menu-item-type-vssc-treatment-cat .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.125rem;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .menu-item-type-vssc-treatment-cat.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile menu adjustments */
@media (max-width: 991px) {
    .navbar-nav .menu-item-type-vssc-treatment-cat .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .navbar-nav .menu-item-type-vssc-treatment .dropdown-item {
        padding-left: 2rem;
    }
}

/* Treatment menu icon/indicator */
.menu-item-type-vssc-treatment-cat > .dropdown-item::before {
    content: '📋';
    margin-right: 8px;
    font-size: 0.9em;
}

.menu-item-type-vssc-treatment > .dropdown-item::before {
    content: '•';
    margin-right: 8px;
    color: var(--vssc-green);
}

/* Active/current treatment highlight */
.menu-item-type-vssc-treatment .dropdown-item.active,
.menu-item-type-vssc-treatment .dropdown-item:active {
    color: #fff;
    background-color: var(--vssc-green);
}
