/*--------------------------------------------------------------
# Premium Care Sections - Beautiful Design for Restorative & Transition Care
--------------------------------------------------------------*/

/* Premium Services Section */
.premium-services-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.premium-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(75, 0, 130, 0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    background: url('../img/box-bg.svg');
    opacity: 0.5;
    z-index: 0;
}

.premium-services-section .container {
    position: relative;
    z-index: 1;
}

/* Premium Care Grid */
.premium-care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Care Cards */
.premium-care-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 128, 128, 0.1);
}

.premium-care-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4B0082 0%, #008080 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.premium-care-card:hover::before {
    transform: scaleX(1);
}

.premium-care-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Restorative Card Styling */
.restorative-card:hover {
    /* background: linear-gradient(135deg, rgba(75, 0, 130, 0.02) 0%, rgba(0, 128, 128, 0.02) 100%); */
    background: #fff;
}

/* Transition Card Styling */
.transition-card:hover {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.02) 0%, rgba(106, 90, 205, 0.02) 100%);
}

/* Card Header */
.care-card-header {
    padding: 15px 10px 8px;
    text-align: center;
    position: relative;
}

.premium-service-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.premium-care-card:hover .premium-service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(75, 0, 130, 0.2));
}

/* Card Content */
.care-card-content {
    padding: 0 12px 8px;
    flex-grow: 1;
    text-align: center;
}

.premium-service-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4B0082;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.restorative-card:hover .premium-service-title {
    color: #008080;
}

.transition-card:hover .premium-service-title {
    color: #6A5ACD;
}

.premium-service-description {
    font-family: 'Times New Roman', Times, serif;
    color: #8B4513;
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.premium-care-card:hover .premium-service-description {
    color: #4B0082;
}

/* Service Highlights */
.service-highlights {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.highlight-badge {
    background: linear-gradient(135deg, #008080 0%, #4B0082 100%);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 128, 128, 0.2);
}

.restorative-card:hover .highlight-badge {
    background: linear-gradient(135deg, #4B0082 0%, #6A5ACD 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 0, 130, 0.3);
}

.transition-card:hover .highlight-badge {
    background: linear-gradient(135deg, #008080 0%, #40E0D0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

/* Card Footer */
.care-card-footer {
    padding: 5px 10px 12px;
    text-align: center;
}

.premium-learn-more {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.7) 0%, rgba(0, 128, 128, 0.7) 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(75, 0, 130, 0.15);
    position: relative;
    overflow: hidden;
}

.premium-learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.premium-learn-more:hover::before {
    left: 100%;
}

.premium-learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2);
    color: white;
}

.restorative-card .premium-learn-more:hover {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.8) 0%, rgba(75, 0, 130, 0.8) 100%);
}

.transition-card .premium-learn-more:hover {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.8) 0%, rgba(0, 128, 128, 0.8) 100%);
}

/* Adaptive UI for Different Device Screen Sizes */

/* Extra Large Devices (Large Desktops, 1400px and up) */
@media (min-width: 1400px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        max-width: 1600px;
    }
    
    .premium-care-card {
        min-height: 200px;
    }
    
    .premium-service-icon {
        width: 45px;
        height: 45px;
    }
    
    .premium-service-title {
        font-size: 1rem;
    }
    
    .premium-service-description {
        font-size: 0.75rem;
    }
}

/* Large Devices (Desktops, 1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 14px;
    }
    
    .premium-care-card {
        min-height: 190px;
    }
}

/* Medium Devices (Tablets, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .premium-care-card {
        min-height: 185px;
    }
}

/* Small Devices (Large Tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .premium-care-card {
        min-height: 180px;
    }
    
    .care-card-header {
        padding: 12px 8px 6px;
    }
    
    .premium-service-icon {
        width: 35px;
        height: 35px;
    }
    
    .premium-service-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .premium-service-description {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }
    
    .highlight-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
    }
    
    .premium-learn-more {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
}

/* Extra Small Devices (Phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .premium-care-card {
        min-height: 170px;
        border-radius: 15px;
    }
    
    .care-card-header {
        padding: 10px 6px 5px;
    }
    
    .premium-service-icon {
        width: 32px;
        height: 32px;
    }
    
    .care-card-content {
        padding: 0 8px 6px;
    }
    
    .premium-service-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .premium-service-description {
        font-size: 0.6rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .service-highlights {
        gap: 3px;
        margin-bottom: 6px;
    }
    
    .highlight-badge {
        font-size: 0.5rem;
        padding: 2px 4px;
        border-radius: 8px;
    }
    
    .care-card-footer {
        padding: 4px 6px 8px;
    }
    
    .premium-learn-more {
        font-size: 0.55rem;
        padding: 3px 8px;
        border-radius: 12px;
    }
}

/* Very Small Devices (Small Phones, 320px to 575px) */
@media (max-width: 575px) {
    .premium-care-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
        margin-top: 20px;
    }
    
    .premium-care-card {
        min-height: 160px;
        border-radius: 12px;
    }
    
    .care-card-header {
        padding: 8px 4px 4px;
    }
    
    .premium-service-icon {
        width: 28px;
        height: 28px;
    }
    
    .care-card-content {
        padding: 0 6px 4px;
    }
    
    .premium-service-title {
        font-size: 0.8rem;
        margin-bottom: 3px;
        line-height: 1.1;
    }
    
    .premium-service-description {
        font-size: 0.55rem;
        margin-bottom: 4px;
        line-height: 1.1;
    }
    
    .service-highlights {
        gap: 2px;
        margin-bottom: 4px;
    }
    
    .highlight-badge {
        font-size: 0.45rem;
        padding: 1px 3px;
        border-radius: 6px;
        letter-spacing: 0.1px;
    }
    
    .care-card-footer {
        padding: 3px 4px 6px;
    }
    
    .premium-learn-more {
        font-size: 0.5rem;
        padding: 2px 6px;
        border-radius: 10px;
        letter-spacing: 0.1px;
    }
}

/* Ultra Small Devices (Very Small Phones, below 320px) */
@media (max-width: 319px) {
    .premium-care-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .premium-care-card {
        min-height: 140px;
        border-radius: 10px;
    }
    
    .premium-service-icon {
        width: 24px;
        height: 24px;
    }
    
    .premium-service-title {
        font-size: 0.7rem;
    }
    
    .premium-service-description {
        font-size: 0.5rem;
    }
    
    .highlight-badge {
        font-size: 0.4rem;
        padding: 1px 2px;
    }
    
    .premium-learn-more {
        font-size: 0.45rem;
        padding: 2px 4px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .premium-services-section {
        padding: 40px 0;
    }
    
    .premium-care-grid {
        margin-top: 20px;
    }
    
    .premium-care-card {
        min-height: 150px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .premium-service-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .premium-care-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    }
}