/* Signature Treatments Section Styling */
:root {
    --primary-green: #1b5e20;
    --light-green: #e6f4ea;
    --accent-green: #43a047;
    --hover-green: #2e7d32;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow-color: rgba(60, 120, 60, 0.15);
    --transition-speed: 0.3s;
}

/* Section Container */
.featured-treatments {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* Section Title */
.featured-treatments .display-5 {
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: color var(--transition-speed) ease;
}

.featured-treatments .display-5:hover {
    color: var(--hover-green);
}

/* Decorative Separator */
.separator-line {
    width: 120px;
    height: 4px;
    background-color: var(--accent-green);
    margin: 0 auto 2rem auto;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.separator-line::before,
.separator-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    top: -2px;
}
/* Treatment Cards */
.treatment-highlight-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 var(--shadow-color);
    overflow: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    height: calc(100% - 1rem); /* Adjust for consistent height with some bottom margin */
    margin-bottom: 1rem;
}

.treatment-highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 var(--shadow-color);
    border-color: var(--accent-green);
}

/* Treatment Image Container */
.treatment-highlight-img {
    position: relative;
    overflow: hidden;
    height: 250px; /* Reduced from 300px */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Treatment Image */
.treatment-highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
    filter: brightness(0.95);
}

.treatment-highlight-card:hover .treatment-highlight-img img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Treatment Badge */
.treatment-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 3px 12px rgba(27, 94, 32, 0.2);
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
    z-index: 3;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
    animation: badgePulse 3s ease-in-out infinite;
    will-change: transform, box-shadow;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(27, 94, 32, 0.2);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 4px 15px rgba(27, 94, 32, 0.25);
        transform: translateX(-50%) scale(1.01);
    }
}

.treatment-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.treatment-highlight-card:hover .treatment-badge {
    transform: translateX(-50%) translateY(-2px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.25);
    animation: none;
}

.treatment-highlight-card:hover .treatment-badge::before {
    opacity: 1;
    transform: scale(1.02);
}

/* Treatment Content */
.treatment-highlight-content {
    padding: 1.5rem 1.25rem; /* Reduced padding */
    text-align: center;
    background: #ffffff;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.treatment-highlight-content h3 {
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem; /* Reduced margin */
    transition: color var(--transition-speed) ease;
    position: relative;
    display: inline-block;
}

.treatment-highlight-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width var(--transition-speed) ease;
}

.treatment-highlight-card:hover .treatment-highlight-content h3::after {
    width: 100%;
}

.treatment-highlight-content p {
    font-size: 0.95rem; /* Slightly smaller text */
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .treatment-highlight-img { height: 220px; }
    .treatment-highlight-content { padding: 1.8rem 1.2rem; }
    .treatment-highlight-content h3 { font-size: 1.4rem; }
}

@media (max-width: 991px) {
    .treatment-highlight-img { height: 180px; }
    .treatment-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
        min-width: 90px;
        letter-spacing: 0.8px;
    }
    .treatment-highlight-content { padding: 1.5rem 1rem; }
    .treatment-highlight-content h3 { font-size: 1.3rem; }
    .treatment-highlight-content p { font-size: 1rem; }
}

@media (max-width: 767px) {
    .treatment-highlight-card { margin-bottom: 2rem; }
}

@media (max-width: 575px) {
    .treatment-highlight-img { height: 160px; }
    .treatment-highlight-content { padding: 1.2rem 0.8rem; }
    .treatment-highlight-content h3 { font-size: 1.2rem; }
    .treatment-highlight-content p { font-size: 0.95rem; }
    .treatment-badge { font-size: 0.85rem; min-width: 100px; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .featured-treatments {
        background: linear-gradient(135deg, #1a1a1a 60%, #133018 100%);
    }
    
    .treatment-highlight-card {
        background: #2d2d2d;
    }
    
    .treatment-highlight-content {
        background: #2d2d2d;
    }
    
    .treatment-highlight-content h3,
    .treatment-highlight-content p {
        color: #e0e0e0;
    }
    
    .featured-treatments .display-5 {
        color: #4caf50;
    }
    
    .separator-line {
        background: linear-gradient(90deg, #2e7d32, #1b5e20);
    }
}
