/* Page Template Styles */

.page-main {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

/* Content Section */
.page-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.content-wrapper {
    padding: 0;
}

.page-article {
    margin: 0;
}

.content {
    padding: 3rem 2rem;
    line-height: 1.7;
    color: #333;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.5rem;
    color: #667eea;
}

.content h3 {
    font-size: 1.3rem;
    color: #764ba2;
}

.content h4 {
    font-size: 1.1rem;
    color: #555;
}

.content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.content ul,
.content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: #2c3e50;
    font-weight: 600;
}

.content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.content a:hover {
    border-bottom-color: #667eea;
}

.content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.content code {
    background-color: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.content pre {
    background-color: #f1f3f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content pre code {
    background: none;
    padding: 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content th,
.content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.content hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 2rem 0;
}

/* No Content Message */
.no-content-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-style: italic;
}

/* Footer Section */
.page-footer {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
}

.page-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.page-actions {
    margin-top: 1rem;
}

.back-to-home-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 0 0.5rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
    
    .content h1 {
        font-size: 1.5rem;
    }
    
    .content h2 {
        font-size: 1.3rem;
    }
    
    .content h3 {
        font-size: 1.1rem;
    }
    
    .page-footer {
        padding: 1.5rem;
    }
    
    .page-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-main {
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    .content ul,
    .content ol {
        padding-left: 1.5rem;
    }
}
