/* ===== PAGE CONTENT THEME STYLES ===== */

/* Page Container */
.ecs-page-container {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Page Header */
.ecs-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--ecs-primary) 0%, var(--ecs-secondary) 100%);
    border-radius: var(--ecs-radius-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.ecs-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.ecs-page-breadcrumb {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ecs-page-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ecs-radius-md);
    padding: 0.75rem 1rem;
    margin: 0;
    backdrop-filter: blur(10px);
}

.ecs-page-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--ecs-transition);
}

.ecs-page-breadcrumb .breadcrumb-item a:hover {
    color: var(--ecs-primary-light);
    transform: translateY(-2px);
}

.ecs-page-breadcrumb .breadcrumb-item.active {
    color: var(--ecs-primary-light);
    font-weight: 600;
}

.ecs-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ecs-page-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--ecs-primary-light) 0%, white 100%);
    margin: 1rem auto 0;
    border-radius: var(--ecs-radius-full);
    position: relative;
    z-index: 1;
}

/* Page Content */
.ecs-page-content {
    background: white;
    border-radius: var(--ecs-radius-lg);
    padding: 3rem;
    box-shadow: var(--ecs-shadow-xl);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.ecs-page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ecs-primary) 0%, var(--ecs-secondary) 100%);
}

/* Headings */
.ecs-heading {
    color: var(--ecs-gray-800);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

.ecs-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, var(--ecs-primary) 0%, var(--ecs-secondary) 100%);
    border-radius: var(--ecs-radius-sm);
}

.ecs-heading-1 {
    font-size: 2.25rem;
    color: var(--ecs-secondary);
    border-bottom: 2px solid var(--ecs-gray-200);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.ecs-heading-2 {
    font-size: 1.875rem;
    color: var(--ecs-primary);
}

.ecs-heading-3 {
    font-size: 1.5rem;
    color: var(--ecs-gray-700);
}

.ecs-heading-4 {
    font-size: 1.25rem;
    color: var(--ecs-gray-600);
}

/* Paragraphs */
.ecs-paragraph {
    color: var(--ecs-gray-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.ecs-paragraph:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ecs-gray-800);
}

/* Lists */
.ecs-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.ecs-list-unordered {
    list-style: none;
}

.ecs-list-ordered {
    counter-reset: ecs-counter;
}

.ecs-list-item {
    margin: 0.75rem 0;
    padding: 1rem 1.5rem;
    background: var(--ecs-gray-50);
    border-radius: var(--ecs-radius-md);
    border-left: 4px solid var(--ecs-primary);
    transition: var(--ecs-transition);
    position: relative;
}

.ecs-list-item:hover {
    background: var(--ecs-gray-100);
    transform: translateX(5px);
    box-shadow: var(--ecs-shadow-md);
}

.ecs-list-unordered .ecs-list-item::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ecs-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.ecs-list-ordered .ecs-list-item {
    counter-increment: ecs-counter;
    padding-left: 3rem;
}

.ecs-list-ordered .ecs-list-item::before {
    content: counter(ecs-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ecs-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Images */
.ecs-image {
    border-radius: var(--ecs-radius-md);
    box-shadow: var(--ecs-shadow-lg);
    margin: 2rem 0;
    transition: var(--ecs-transition);
    max-width: 100%;
    height: auto;
}

.ecs-image:hover {
    transform: scale(1.02);
    box-shadow: var(--ecs-shadow-xl);
}

/* Links */
.ecs-link {
    color: var(--ecs-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--ecs-transition);
}

.ecs-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ecs-primary);
    transition: var(--ecs-transition);
}

.ecs-link:hover {
    color: var(--ecs-primary-dark);
    transform: translateY(-1px);
}

.ecs-link:hover::after {
    width: 100%;
}

/* Tables */
.ecs-table-responsive {
    margin: 2rem 0;
    border-radius: var(--ecs-radius-md);
    overflow: hidden;
    box-shadow: var(--ecs-shadow-md);
}

.ecs-table {
    margin: 0;
    background: white;
}

.ecs-table thead th {
    background: linear-gradient(135deg, var(--ecs-primary) 0%, var(--ecs-secondary) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-align: center;
}

.ecs-table tbody tr {
    transition: var(--ecs-transition);
}

.ecs-table tbody tr:hover {
    background: var(--ecs-gray-50);
    transform: scale(1.01);
}

.ecs-table tbody td {
    padding: 1rem;
    border-color: var(--ecs-gray-200);
    vertical-align: middle;
}

/* Blockquotes */
.ecs-blockquote {
    background: linear-gradient(135deg, var(--ecs-gray-50) 0%, var(--ecs-gray-100) 100%);
    border-left: 4px solid var(--ecs-primary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--ecs-radius-md) var(--ecs-radius-md) 0;
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ecs-gray-700);
}

.ecs-blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--ecs-primary);
    font-family: serif;
    line-height: 1;
}

/* Call to Action Section */
.ecs-cta-section {
    margin-top: 3rem;
}

.ecs-cta-card {
    background: linear-gradient(135deg, var(--ecs-primary) 0%, var(--ecs-secondary) 100%);
    border-radius: var(--ecs-radius-xl);
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ecs-shadow-2xl);
}

.ecs-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: ecs-float 6s ease-in-out infinite;
}

@keyframes ecs-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.ecs-cta-content {
    position: relative;
    z-index: 1;
}

.ecs-cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ecs-cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ecs-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ecs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--ecs-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ecs-transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.ecs-btn::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: var(--ecs-transition);
}

.ecs-btn:hover::before {
    left: 100%;
}

.ecs-btn-primary {
    background: white;
    color: var(--ecs-primary);
    box-shadow: var(--ecs-shadow-lg);
}

.ecs-btn-primary:hover {
    background: var(--ecs-gray-50);
    transform: translateY(-2px);
    box-shadow: var(--ecs-shadow-xl);
}

.ecs-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ecs-btn-outline:hover {
    background: white;
    color: var(--ecs-primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecs-page-container {
        padding: 1rem 0;
    }
    
    .ecs-page-content {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .ecs-page-title {
        font-size: 2rem;
    }
    
    .ecs-heading-1 {
        font-size: 1.875rem;
    }
    
    .ecs-heading-2 {
        font-size: 1.5rem;
    }
    
    .ecs-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .ecs-cta-title {
        font-size: 1.5rem;
    }
    
    .ecs-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ecs-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Animation Enhancements */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Print Styles */
@media print {
    .ecs-cta-section {
        display: none;
    }
    
    .ecs-page-header {
        background: none !important;
        color: black !important;
    }
    
    .ecs-page-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
