/* =========== Treatment Section Styles ============= */

[data-aos] {
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

/* Mobile optimization */
@media (max-width: 767px) {
    .treatment-card {
        animation-delay: 0s !important; /* Remove delays on mobile */
    }

    [data-aos] {
        transition-duration: 0.6s !important;
    }
}
/* General Section Styling */
.treatment-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8fafc, #edf2f7);
    margin: 0 auto;
    max-width: 1400px;
}

/* Treatment Grid */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

/* Treatment Card */
.treatment-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Image Styling */
.image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}
/* Button Styling */
.buttonebru-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
}

.buttonebru {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #2890B4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2890B4;
    box-shadow: 0 4px 6px rgba(40, 144, 180, 0.2);
    width: auto;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
}

.buttonebru:hover {
    background: #2073a3;
    border-color: #2073a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 144, 180, 0.25);
    color: white;
    text-decoration: none;
}

.buttonebru:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 144, 180, 0.3);
}
.treatment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-image {
    transform: scale(1.05);
}

.image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Content Styling */
.treatment-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.75rem;
    flex-grow: 1;
}

.treatment-title {
    font-size: 1.5rem;
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: left;
}

.treatment-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2890B4;
    border-radius: 2px;
}

.treatment-description {
     min-height: 80px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: left;
}

/* Treatment List */
.treatment-list {
     min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    text-align: left;
}

.treatment-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    color: #2d3748;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.treatment-list li:last-child {
    border-bottom: none;
}

.treatment-list i {
     margin-top: 2px;
    color: #2890B4;
    margin-right: 0.8rem;
    font-size: 1rem;
    min-width: 20px;
}

/* Preparation Info */
.preparation-info {
     min-height: 160px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #e6f7ff, #eaf6fc);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    border-left: 4px solid #2890B4;
    text-align: left;
}

.preparation-info h3 {
        margin-bottom: 10px;
    color: #2c5282;
    font-size: 1.15rem;
    font-weight: 600;
}

.preparation-info p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Button Styling */
.buttonebru {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2890B4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #2890B4;
    box-shadow: 0 4px 6px rgba(40, 144, 180, 0.2);
}

.buttonebru:hover {
    background: #2073a3;
    border-color: #2073a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 144, 180, 0.25);
}

.buttonebru:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 144, 180, 0.3);
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid #2890B4;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .treatment-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .treatment-section {
        padding: 40px 15px;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .treatment-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .image-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .treatment-title {
        font-size: 1.25rem;
    }

    .treatment-content {
        padding: 1.25rem;
    }

    .image-container {
        height: 180px;
    }

    .preparation-info {
        padding: 1rem;
    }
}


/* For screenreaders only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}