/* ==========================================================================
   TREATMENT FLOATING PANEL WITH INTEGRATED IMAGE LAYOUT
   ========================================================================== */
.treatment-floating-panel {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 850px; /* Perfectly scales wide landscape cards on desktop */
    margin: 20px auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.treatment-floating-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(11, 94, 215, 0.12);
}

/* Structural Colored Accent Strip */
.panel-accent-strip.blue-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #0B5ED7;
    z-index: 3;
}

/* Internal Row Splitter */
.treatment-flex-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* Premium Image Engine Layer */
.panel-image-container {
    width: 40%; /* Image takes 40% of horizontal space on desktop */
    position: relative;
    overflow: hidden;
    background-color: #F5F7FA;
}

.treatment-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-floating-panel:hover .treatment-panel-img {
    transform: scale(1.05); /* Soft, luxurious cinematic hover expansion zoom */
}

/* Content Panel Layout Constraints */
.panel-content-core {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-header-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-numeric-id {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0B5ED7;
    opacity: 0.7;
}

.panel-item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1E1E1E;
    margin: 0;
}

.panel-item-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Tag Pills Component Row */
.panel-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.treatment-pill {
    background: #F1F5F9;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #E2E8F0;
    white-space: nowrap;
}

/* Interactive Medical "Learn More" Action Interface */
.static-read-more {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0B5ED7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.static-read-more .arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.treatment-floating-panel:hover .static-read-more {
    color: #024DB5;
}

.treatment-floating-panel:hover .static-read-more .arrow-icon {
    transform: translateX(4px); /* Moves arrow outward continuously on hover */
}

/* ==========================================================================
   BREAKPOINTS FOR COMPACT DESIGN RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .treatment-flex-layout {
        flex-direction: column; /* Flips horizontally into stack configuration cleanly */
    }

    .panel-image-container {
        width: 100%;
        height: 220px; /* Gives image explicit height landscape proportion on smaller screens */
    }

    .panel-content-core {
        width: 100%;
        padding: 30px 24px;
    }

    /* Repositions accent strip layout execution pattern for top loading view */
    .panel-accent-strip.blue-strip {
        width: 100%;
        height: 5px;
    }
}