/**
 * Page Templates Styling
 * Styles for page templates to ensure proper formatting of headers, paragraphs, and content elements
 *
 * @package BoostifySEO_Theme
 */

/* Page Template General Styles */
.page-template {
    margin-bottom: 2rem;
}

/* Entry Header Styling */
.page-template .entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-template .entry-title,
.page-template .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

/* Content Area Styling */
.page-template .entry-content,
.page-template .page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Headers within content */
.page-template .entry-content h1,
.page-template .page-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 3px solid #007cba;
    padding-bottom: 0.5rem;
}

.page-template .entry-content h2,
.page-template .page-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.25rem;
}

.page-template .entry-content h3,
.page-template .page-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-template .entry-content h4,
.page-template .page-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.page-template .entry-content h5,
.page-template .page-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.page-template .entry-content h6,
.page-template .page-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Paragraph Styling */
.page-template .entry-content p,
.page-template .page-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Lists Styling */
.page-template .entry-content ul,
.page-template .page-content ul,
.page-template .entry-content ol,
.page-template .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-template .entry-content li,
.page-template .page-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.page-template .entry-content ul li,
.page-template .page-content ul li {
    list-style-type: disc;
}

.page-template .entry-content ol li,
.page-template .page-content ol li {
    list-style-type: decimal;
}

/* Nested lists */
.page-template .entry-content ul ul,
.page-template .page-content ul ul,
.page-template .entry-content ol ol,
.page-template .page-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

/* Blockquotes */
.page-template .entry-content blockquote,
.page-template .page-content blockquote {
    border-left: 4px solid #007cba;
    padding: 1rem 0 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 0 4px 4px 0;
}

.page-template .entry-content blockquote p,
.page-template .page-content blockquote p {
    margin-bottom: 0.5rem;
}

/* Tables */
.page-template .entry-content table,
.page-template .page-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.page-template .entry-content table th,
.page-template .page-content table th,
.page-template .entry-content table td,
.page-template .page-content table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.page-template .entry-content table th,
.page-template .page-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.page-template .entry-content table tr:nth-child(even),
.page-template .page-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Images */
.page-template .entry-content img,
.page-template .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.page-template .entry-content .wp-block-image,
.page-template .page-content .wp-block-image {
    margin: 2rem 0;
}

.page-template .entry-content .wp-block-image figcaption,
.page-template .page-content .wp-block-image figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Code blocks */
.page-template .entry-content pre,
.page-template .page-content pre {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
    border-left: 4px solid #007cba;
}

.page-template .entry-content code,
.page-template .page-content code {
    background-color: #f4f4f4;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.page-template .entry-content pre code,
.page-template .page-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Links */
.page-template .entry-content a,
.page-template .page-content a {
    color: #007cba;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-template .entry-content a:hover,
.page-template .page-content a:hover {
    color: #005a87;
    text-decoration: none;
}

/* Page Links (pagination) */
.page-template .page-links {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.page-template .page-links .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007cba;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-template .page-links .page-numbers:hover,
.page-template .page-links .page-numbers.current {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Entry Footer */
.page-template .entry-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.page-template .entry-footer .edit-link a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-template .entry-footer .edit-link a:hover {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-template .entry-title,
    .page-template .page-title {
        font-size: 2rem;
    }
    
    .page-template .entry-content h1,
    .page-template .page-content h1 {
        font-size: 1.75rem;
    }
    
    .page-template .entry-content h2,
    .page-template .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-template .entry-content h3,
    .page-template .page-content h3 {
        font-size: 1.25rem;
    }
    
    .page-template .entry-content,
    .page-template .page-content {
        font-size: 1rem;
    }
    
    .page-template .entry-content ul,
    .page-template .page-content ul,
    .page-template .entry-content ol,
    .page-template .page-content ol {
        padding-left: 1.5rem;
    }
    
    .page-template .entry-content blockquote,
    .page-template .page-content blockquote {
        padding: 0.75rem 0 0.75rem 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .page-template .entry-title,
    .page-template .page-title {
        font-size: 1.75rem;
    }
    
    .page-template .entry-content,
    .page-template .page-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .page-template .entry-content table,
    .page-template .page-content table {
        font-size: 0.85rem;
    }
    
    .page-template .entry-content table th,
    .page-template .page-content table th,
    .page-template .entry-content table td,
    .page-template .page-content table td {
        padding: 0.5rem;
    }
}