/* Modern Clean Prophylaxis Template */
.wp-template-profilaxie-content {
    padding: 60px 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.wp-template-profilaxie-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Section Base */
.wp-template-profilaxie-section {
    margin-bottom: 50px;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Description Section - Gradient Background */
.wp-template-profilaxie-description {
    background: linear-gradient(135deg,
    rgba(var(--color-primary), 0.95) 0%,
    rgba(var(--color-secondary), 0.85) 100%);
    color: white;
    box-shadow: 0 20px 40px rgba(var(--color-primary), 0.15);
}

.wp-template-profilaxie-description:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(var(--color-primary), 0.25);
}

.wp-template-profilaxie-description h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.wp-template-profilaxie-description h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: rgba(var(--color-white), 0.8);
    border-radius: 2px;
}

.wp-template-profilaxie-description p {
    font-size: 1.3em;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    opacity: 0.95;
}

/* Services Section - Clean White Card */
.wp-template-profilaxie-services {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.wp-template-profilaxie-services:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.wp-template-profilaxie-services h3 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.wp-template-profilaxie-services h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg,
    rgba(var(--color-third), 1),
    rgba(var(--color-secondary), 1));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 30px 25px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid rgba(33, 150, 243, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(33, 150, 243, 0.05),
    transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card h4 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 25px;
}

.service-card h4::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(33, 150, 243, 0.9);
    font-size: 1.5em;
}

.service-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 1.1em;
    padding-left: 25px;
}

/* Benefits Section - Soft Gradient */
.wp-template-profilaxie-benefits {
    background: linear-gradient(135deg,
    rgba(33, 150, 243, 0.05) 0%,
    rgba(var(--color-third), 0.08) 50%,
    rgba(var(--color-secondary), 0.05) 100%);
    border: 1px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.wp-template-profilaxie-benefits:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.wp-template-profilaxie-benefits h3 {
    color: rgba(var(--color-secondary), 0.95);
    font-size: 2em;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.wp-template-profilaxie-benefits h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
    rgba(33, 150, 243, 0.8),
    rgba(var(--color-third), 1));
    border-radius: 2px;
}

.wp-template-profilaxie-benefits p {
    font-size: 1.3em;
    line-height: 1.7;
    color: #4a5568;
    font-weight: 500;
    font-style: italic;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Oral Hygiene Section */
.wp-template-profilaxie-hygiene {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.wp-template-profilaxie-hygiene:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.wp-template-profilaxie-hygiene h3 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.wp-template-profilaxie-hygiene h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg,
    rgba(var(--color-third), 1),
    rgba(var(--color-secondary), 1));
    border-radius: 2px;
}

.hygiene-routines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.routine-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.routine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
    rgba(33, 150, 243, 0.8),
    rgba(76, 175, 80, 0.8));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.routine-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

.routine-card:hover::before {
    transform: scaleX(1);
}

.routine-card h4 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.routine-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.routine-steps li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid rgba(33, 150, 243, 0.6);
    transition: all 0.3s ease;
    color: #4a5568;
    font-weight: 500;
    position: relative;
    padding-left: 45px;
}

.routine-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 600;
    color: rgba(33, 150, 243, 0.9);
}

.routine-steps li:hover {
    transform: translateX(5px);
    border-left-color: rgba(33, 150, 243, 0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.routine-steps li:last-child {
    margin-bottom: 0;
}

/* Color coding for different routines */
.hygiene-routines .routine-card:nth-child(1) .routine-steps li::before {
    background: rgba(33, 150, 243, 0.1);
    color: rgba(33, 150, 243, 0.9);
}

.hygiene-routines .routine-card:nth-child(2) .routine-steps li::before {
    background: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 0.9);
}

.hygiene-routines .routine-card:nth-child(3) .routine-steps li::before {
    background: rgba(156, 39, 176, 0.1);
    color: rgba(156, 39, 176, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wp-template-profilaxie-content {
        padding: 40px 0;
    }

    .wp-template-profilaxie-section {
        padding: 40px 30px;
        margin-bottom: 40px;
    }

    .wp-template-profilaxie-description h2 {
        font-size: 2.2em;
    }

    .wp-template-profilaxie-services h3,
    .wp-template-profilaxie-benefits h3,
    .wp-template-profilaxie-hygiene h3 {
        font-size: 1.8em;
    }

    .services-grid,
    .hygiene-routines {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wp-template-profilaxie-content .container {
        padding: 0 15px;
    }

    .wp-template-profilaxie-section {
        padding: 30px 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .wp-template-profilaxie-description h2 {
        font-size: 1.8em;
    }

    .wp-template-profilaxie-services h3,
    .wp-template-profilaxie-benefits h3,
    .wp-template-profilaxie-hygiene h3 {
        font-size: 1.5em;
    }

    .services-grid,
    .hygiene-routines {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card,
    .routine-card {
        padding: 25px 20px;
    }

    .service-card h4,
    .service-card p {
        padding-left: 20px;
    }

    .routine-steps li {
        padding-left: 40px;
    }

    .routine-steps li::before {
        left: 12px;
    }
}

@media (max-width: 480px) {
    .wp-template-profilaxie-description h2 {
        font-size: 1.6em;
    }

    .wp-template-profilaxie-services h3,
    .wp-template-profilaxie-benefits h3,
    .wp-template-profilaxie-hygiene h3 {
        font-size: 1.3em;
    }

    .wp-template-profilaxie-description p,
    .wp-template-profilaxie-benefits p {
        font-size: 1.1em;
    }

    .service-card h4,
    .routine-card h4 {
        font-size: 1.1em;
    }

    .service-card p,
    .routine-steps li {
        font-size: 1em;
    }
}

/* Subtle Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-template-profilaxie-section {
    animation: fadeInUp 0.6s ease-out;
}

.wp-template-profilaxie-services {
    animation-delay: 0.1s;
}

.wp-template-profilaxie-benefits {
    animation-delay: 0.2s;
}

.wp-template-profilaxie-hygiene {
    animation-delay: 0.3s;
}

/* Counter reset for routine steps */
.hygiene-routines {
    counter-reset: step;
}