/**
 * Simple Treatment Styles - matches your Services page
 */

/* Hero Section (same style as your Services page) */
.treatment-hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px; /* Account for fixed header */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.treatment-hero h1 {
    color: white !important;
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

/* Content Area */
.treatment-content {
    padding: 60px 0;
    background: white;
}

/* Simple Treatment Info Box */
.treatment-info {
    background: #f8fffe;
    border: 1px solid #e8f5e8;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.1);
}

.treatment-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.treatment-info strong {
    color: #4a7c59;
}

.info-grid .price h3 {
    margin-bottom: 0;
    text-shadow: none !important;
    color: #4a7c59;
}
.info-grid .price {
    font-weight: bold;
    font-size: 1.1rem !important;
    text-shadow: none !important;
    color: #4a7c59;
}
.info-grid .price strike {
    font-size: 1rem !important;
    font-weight: normal;
    color: #000000 !important;
}

.good-for h3 {
    color: #4a7c59;
    margin-bottom: 15px;
}

.good-for ul {
    list-style: none;
    padding: 0;
}

.good-for li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.good-for li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a7c59;
    font-weight: bold;
}

/* Treatments list styling within info-grid */
.info-item .treatments-list {
    line-height: 1.6;
    margin-top: 0;
    width: 100%;
    font-size: 1rem;
}

/* Special layout for treatments - start on new line */
.info-item:has(.treatments-list) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.info-item:has(.treatments-list) h3 {
    margin-bottom: 0;
}

/* Style the ordered list as pill tags */
.treatments-list ol {
    margin: 0 !important;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.treatments-list ol li {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    background: rgba(74, 124, 89, 0.1);
    color: var(--bali-primary, #2d5016);
    border: 1px solid rgba(74, 124, 89, 0.2);
    margin: 0;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.treatments-list ol li:hover {
    background: rgba(74, 124, 89, 0.15);
    border-color: rgba(74, 124, 89, 0.3);
    transform: translateY(-1px);
}

/* Make sure the grid handles the treatments item properly */
.info-grid .info-item:has(.treatments-list) {
    grid-column: 1 / -1; /* Span full width if treatments list is long */
}

/* =================================
   TREATMENT NAVIGATION STYLES - FIXED
   ================================= */

.treatment-navigation-inside {
    margin-bottom: 100px;
    padding: 2rem;
}

.treatment-navigation-inside .nav-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(74, 124, 89, 0.2);
}

.treatment-navigation-inside .nav-header h3 {
    margin: 0;
    color: var(--bali-menu-active, #4a7c59);
    font-size: 1.25rem;
    font-weight: 600;
}

.treatment-navigation-inside .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    min-height: 120px;
}

/* Position the anchor tags, not the inner divs */
.treatment-navigation-inside a[rel="prev"] {
    grid-column: 1; /* Always left side */
}

.treatment-navigation-inside a[rel="next"] {
    grid-column: 2; /* Always right side */
}

/* Base styling for all navigation links */
.treatment-navigation-inside a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(74, 124, 89, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
}

.treatment-navigation-inside a:hover {
    background: rgba(74, 124, 89, 0.05);
    border-color: var(--bali-menu-active, #4a7c59);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.2);
}

/* Style the inner divs */
.treatment-navigation-inside .nav-previous,
.treatment-navigation-inside .nav-next {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.treatment-navigation-inside .nav-direction {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.treatment-navigation-inside .nav-title {
    display: block;
    font-weight: 600;
    color: var(--bali-menu-active, #4a7c59);
    line-height: 1.3;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.treatment-navigation-inside .nav-category {
    display: block;
    font-size: 0.85rem;
    color: #888;
    font-weight: normal;
    font-style: italic;
}

/* Right align the next button content */
.treatment-navigation-inside .nav-next {
    text-align: right;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .treatment-hero {
        min-height: 50vh;
        margin-top: -70px;
        padding-top: 70px;
    }

    .treatment-hero h1 {
        font-size: 2.5rem;
    }

    .treatment-content {
        padding: 40px 0;
    }

    .treatment-info {
        padding: 20px;
        margin: 30px 0;
    }

    /* Mobile treatments grid adjustments */
    .info-item .treatments-list {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .treatments-list ol {
        gap: 6px;
    }

    .treatments-list ol li {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* Ensure treatments layout works on mobile */
    .info-item:has(.treatments-list) {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Navigation mobile styles */
    .treatment-navigation-inside {
        padding: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .treatment-navigation-inside .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }

    /* On mobile, stack vertically but maintain order */
    .treatment-navigation-inside a[rel="prev"] {
        grid-column: 1;
        grid-row: 1;
    }

    .treatment-navigation-inside a[rel="next"] {
        grid-column: 1;
        grid-row: 2;
    }

    .treatment-navigation-inside .nav-next {
        text-align: left; /* Left align on mobile for consistency */
    }

    .treatment-navigation-inside a {
        padding: 1.25rem;
        min-height: 100px;
    }
}

/* Admin bar adjustments */
.admin-bar .treatment-hero {
    margin-top: -112px;
    padding-top: 112px;
}

@media (max-width: 782px) {
    .admin-bar .treatment-hero {
        margin-top: -116px;
        padding-top: 116px;
    }
}