/* --- Independent Treatment Showcase Module --- */
.tm-showcase {
    padding: 60px 0;
    background: #fdfdfd;
    font-family: 'Montserrat', sans-serif;
    clear: both;
}

.tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}

.tm-card {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.tm-wrapper {
    display: flex;
    min-height: 550px; /* Established height for premium feel */
}

/* Image Side */
.tm-visual {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.tm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 33, 71, 0.8);
    color: #fff;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Content Side */
.tm-content-area {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
}

.tm-header {
    padding: 25px 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-header.blue { background: #0056b3; }
.tm-header.navy { background: #002147; }

.tm-inner {
    padding: 40px;
    flex-grow: 1;
}

/* Mirror Logic for Z-Pattern */
.tm-card.mirrored .tm-wrapper {
    flex-direction: row-reverse;
}

/* Meta & Step Styling */
.tm-meta { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 25px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 20px; 
}
.tm-label { display: block; font-size: 0.7rem; color: #999; text-transform: uppercase; font-weight: 700; }
.tm-val { font-size: 0.95rem; color: #002147; font-weight: 600; }

.tm-step { margin-bottom: 20px; }
.tm-step h5 { color: #FF9900; margin-bottom: 5px; font-size: 1rem; font-weight: 700; }
.tm-step p { font-size: 0.9rem; color: #555; margin: 0; line-height: 1.5; }

.tm-footer {
    background: #f8faff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF9900;
    font-style: italic;
    font-size: 0.95rem;
    color: #444;
}

/* Responsive Stack for Tablets/Mobile */
@media (max-width: 992px) {
    .tm-grid {
        gap: 40px; /* Reduces the massive 80px gap between the separate treatment cards */
        margin-top: 30px;
    }
    
    .tm-wrapper, 
    .tm-card.mirrored .tm-wrapper { 
        flex-direction: column !important;
        min-height: auto; /* CRITICAL: Kills the 550px desktop height requirement */
    }
    
    .tm-visual { 
        flex: none; /* CRITICAL: Stops the browser from calculating height based on the desktop 45% */
        width: 100%; 
        height: 280px; /* Locks in a perfect, proportional height for mobile images */
        min-height: auto;
    }
    
    .tm-content-area { 
        flex: none; /* Resets the text area flex behavior */
        width: 100%; 
    }
    
    .tm-header {
        padding: 20px; /* Tighter blue header on mobile */
    }
    
    .tm-inner {
        padding: 25px 20px; /* Removes the excessive desktop whitespace around the text */
    }
}