/*
Theme Name: Insurance Wises
Description: A professional WordPress theme for insurance companies
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-top-bar {
    background-color: #0f2a4a;
    padding: 8px 0;
    font-size: 14px;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-contact {
    display: flex;
    gap: 30px;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: #4CAF50;
}

.main-header {
    padding: 20px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.site-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.site-description {
    font-size: 14px;
    color: #b3d9ff;
    margin-top: 5px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a,
.main-menu .menu-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-menu a:hover,
.main-menu .menu-link:hover {
    color: #4CAF50;
    transform: translateY(-2px);
}

.main-menu a::after,
.main-menu .menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu .menu-link:hover::after {
    width: 100%;
}

/* Current menu item styling */
.main-menu .current-menu-item .menu-link {
    color: #4CAF50;
}

.main-menu .current-menu-item .menu-link::after {
    width: 100%;
}

.header-cta {
    margin-left: 30px;
}

.cta-button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .header-cta {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .main-menu {
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 24px;
    }
    
    .site-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .header-content {
        padding: 0 15px;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    margin-top: 50px;
}

.footer-content {
    padding: 50px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget h3,
.footer-widget h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-widget h3 {
    font-size: 24px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-widget p {
    color: #b3d9ff;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #b3d9ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #4CAF50;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #4CAF50;
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: #4CAF50;
    width: 16px;
}

.footer-bottom {
    background: #0f2a4a;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #b3d9ff;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #b3d9ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

/* Main Content Styles */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.page-title {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Grid - 4 Columns */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.default-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.article-content {
    padding: 20px;
}

.article-category {
    margin-bottom: 12px;
}

.category-tag {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-title a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #4CAF50;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta i {
    color: #4CAF50;
    font-size: 10px;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.read-more-btn {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #45a049;
    transform: translateX(3px);
}

.read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Legacy Post Styles (for backward compatibility) */
.posts-container {
    display: grid;
    gap: 30px;
}

.post-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.entry-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.entry-title a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #4CAF50;
}

.entry-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta i {
    color: #4CAF50;
}

.entry-content {
    color: #555;
    line-height: 1.8;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #45a049;
    transform: translateX(5px);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #4CAF50;
    color: white;
}

/* Responsive Articles Grid */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 15px;
    }
}

/* Single Post Layout */
.single-post {
    padding: 40px 0;
}

.single-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 40px;
    padding: 0 20px;
}

/* Left Sidebar - Table of Contents */
.left-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.table-of-contents {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.table-of-contents h3 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.toc-navigation {
    font-size: 14px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover,
.toc-link.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
    transform: translateX(5px);
}

/* TOC styling for H2 headings only */

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.single-article {
    padding: 0;
}

.article-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.article-meta i {
    color: #4CAF50;
}

.article-title {
    font-size: 32px;
    color: #1e3c72;
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 700;
}

.article-featured-image {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1e3c72;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
    background: rgba(76, 175, 80, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-footer {
    padding: 30px 40px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.article-tags {
    margin-bottom: 25px;
}

.article-tags h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #e9ecef;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #4CAF50;
    color: white;
}

.article-share h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    padding: 40px;
    border-top: 1px solid #f0f0f0;
}

.related-articles h3 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin-bottom: 10px;
}

.related-content h4 a {
    color: #1e3c72;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.related-content h4 a:hover {
    color: #4CAF50;
}

.related-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Right Sidebar - Latest Articles */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.latest-articles {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.latest-articles h3 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.latest-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-content {
    flex: 1;
}

.latest-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.latest-content h4 a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-content h4 a:hover {
    color: #4CAF50;
}

.latest-date {
    color: #888;
    font-size: 12px;
}

/* Responsive Single Post */
@media (max-width: 1200px) {
    .single-container {
        grid-template-columns: 250px 1fr 250px;
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .single-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .left-sidebar,
    .right-sidebar {
        position: static;
        max-height: none;
    }
    
    .article-header {
        padding: 30px 30px 20px;
    }
    
    .article-content {
        padding: 30px;
    }
    
    .article-footer {
        padding: 25px 30px;
    }
    
    .related-articles {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .single-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .article-header {
        padding: 20px 20px 15px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .related-articles {
        padding: 20px;
    }
    
    .table-of-contents,
    .latest-articles {
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Template Styles */
.page-content {
    padding: 40px 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 0 20px;
}

.page-main-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-article {
    padding: 0;
}

.page-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-title {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.page-featured-image {
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-body {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5,
.page-content-body h6 {
    color: #1e3c72;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-content-body h2 {
    font-size: 24px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.page-content-body h3 {
    font-size: 20px;
}

.page-content-body h4 {
    font-size: 18px;
}

.page-content-body p {
    margin-bottom: 20px;
}

.page-content-body ul,
.page-content-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content-body li {
    margin-bottom: 8px;
}

.page-content-body blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #666;
    background: rgba(76, 175, 80, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.page-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-footer {
    padding: 30px 40px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.page-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-meta i {
    color: #4CAF50;
}

/* Page Table of Contents */
.page-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.page-toc h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.page-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-toc .toc-item {
    margin-bottom: 8px;
}

.page-toc .toc-link {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-toc .toc-link:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* Page Sidebar */
.page-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.widget h3 {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

/* Page Navigation Widget */
.page-nav-menu {
    font-size: 14px;
}

.page-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-nav-list li {
    margin-bottom: 8px;
}

.page-nav-list a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.page-nav-list a:hover,
.page-nav-list .current-menu-item a {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
    transform: translateX(5px);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-content {
    flex: 1;
}

.recent-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.recent-content h4 a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-content h4 a:hover {
    color: #4CAF50;
}

.recent-date {
    color: #888;
    font-size: 12px;
}

/* Contact Info Widget */
.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.contact-details i {
    color: #4CAF50;
    width: 16px;
}

/* Page Links (for paginated content) */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-number:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Page Template */
@media (max-width: 900px) {
    .page-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-sidebar {
        position: static;
        max-height: none;
    }
    
    .page-header {
        padding: 30px 30px 20px;
    }
    
    .page-content-body {
        padding: 30px;
    }
    
    .page-footer {
        padding: 25px 30px;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 0 15px;
        gap: 20px;
    }
    
    .page-header {
        padding: 20px 20px 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-content-body {
        padding: 20px;
        font-size: 15px;
    }
    
    .page-footer {
        padding: 20px;
    }
    
    .widget {
        padding: 20px;
    }
    
    .page-toc {
        padding: 15px;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
