/* Modern Clean Endodontie Template */
.wp-template-endodontie-content {
    padding: 60px 0;
    min-height: 100vh;
}

.wp-template-endodontie-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Card Base */
.wp-template-endodontie-intro,
.wp-template-endodontie-benefits,
.wp-template-endodontie-topics,
.wp-template-endodontie-section,
.wp-template-endodontie-table {
    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);
}

/* Intro Section - Gradient Background */
.wp-template-endodontie-intro {
    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-endodontie-intro:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(var(--color-primary), 0.25);
}

.wp-template-endodontie-intro h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.wp-template-endodontie-intro 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-endodontie-intro-text {
    font-size: 1.3em;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.95;
}

/* Benefits Section - Clean White Card */
.wp-template-endodontie-benefits {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.wp-template-endodontie-benefits:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.wp-template-endodontie-benefits h2 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.wp-template-endodontie-benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wp-template-endodontie-benefits-list li {
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.wp-template-endodontie-benefits-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

/* Topics Section - Modern Clean White Card */
.wp-template-endodontie-topics {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
}

.wp-template-endodontie-topics:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Section Title - Centered with Gradient Underline */
.wp-template-endodontie-topics h2 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.wp-template-endodontie-topics h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
    rgba(var(--color-third), 1),
    rgba(var(--color-secondary), 1));
    border-radius: 2px;
}

/* Topics List - Modern Grid Style */
.wp-template-endodontie-topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
}

.wp-template-endodontie-topics-list li {
    padding: 20px 25px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid rgba(var(--color-third), 1);
    transition: all 0.3s ease;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Light Sweep Animation */
.wp-template-endodontie-topics-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(var(--color-third), 0.1),
    transparent);
    transition: left 0.5s ease;
}

.wp-template-endodontie-topics-list li:hover {
    background: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wp-template-endodontie-topics-list li:hover::before {
    left: 100%;
}

/* Detailed Sections */
.wp-template-endodontie-section {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.wp-template-endodontie-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.wp-template-endodontie-section h3 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.wp-template-endodontie-section p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.wp-template-endodontie-section-list {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 20px;
}

/* Table Section */
.wp-template-endodontie-table {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.wp-template-endodontie-table h2 {
    color: rgba(var(--color-primary), 0.95);
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

.wp-template-endodontie-table-wrapper {
    overflow-x: auto;
}

.wp-template-endodontie-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.wp-template-endodontie-table-wrapper th,
.wp-template-endodontie-table-wrapper td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wp-template-endodontie-content {
        padding: 40px 0;
    }

    .wp-template-endodontie-intro,
    .wp-template-endodontie-benefits,
    .wp-template-endodontie-topics,
    .wp-template-endodontie-section,
    .wp-template-endodontie-table {
        padding: 40px 30px;
        margin-bottom: 40px;
    }

    .wp-template-endodontie-topics h2,
    .wp-template-endodontie-benefits h2,
    .wp-template-endodontie-section h3,
    .wp-template-endodontie-table h2 {
        font-size: 1.8em;
    }

    .wp-template-endodontie-topics-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wp-template-endodontie-content .container {
        padding: 0 15px;
    }

    .wp-template-endodontie-intro,
    .wp-template-endodontie-benefits,
    .wp-template-endodontie-topics,
    .wp-template-endodontie-section,
    .wp-template-endodontie-table {
        padding: 30px 20px;
        margin-bottom: 30px;
        border-radius: 16px;
    }

    .wp-template-endodontie-topics h2,
    .wp-template-endodontie-benefits h2,
    .wp-template-endodontie-section h3,
    .wp-template-endodontie-table h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .wp-template-endodontie-intro-text,
    .wp-template-endodontie-topics h2,
    .wp-template-endodontie-benefits h2,
    .wp-template-endodontie-section h3,
    .wp-template-endodontie-table h2 {
        font-size: 1.3em;
    }
}

/* Subtle Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.wp-template-endodontie-intro,
.wp-template-endodontie-benefits,
.wp-template-endodontie-topics,
.wp-template-endodontie-section,
.wp-template-endodontie-table {
    animation: fadeInUp 0.6s ease-out;
}

.wp-template-endodontie-benefits { animation-delay: 0.1s; }
.wp-template-endodontie-topics { animation-delay: 0.2s; }
.wp-template-endodontie-section { animation-delay: 0.3s; }
.wp-template-endodontie-table { animation-delay: 0.4s; }
