/*
Theme Name: EncryptCentral Clean
Theme URI: https://encryptcentral.com
Author: EncryptCentral
Author URI: https://encryptcentral.com
Description: Clean professional healthcare AI security blog theme matching demo design
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: encryptcentral-clean
*/

/* ===================================
   GLOBAL STYLES - CLEAN PROFESSIONAL
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
}

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-description {
    font-size: 0.9em;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.main-navigation {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95em;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #2563eb;
}

/* ===================================
   BLOG POST SINGLE - MATCHING DEMO
   =================================== */

.blog-post-article {
    background: white;
}

.post-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.post-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 60px 40px 40px;
}

.post-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.post-hero-title {
    font-size: 3em;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.post-hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-hero-meta span {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.post-hero-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.post-hero-info span {
    color: rgba(255,255,255,0.85);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   POST CONTENT LAYOUT
   =================================== */

.post-content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 60px 40px;
}

.post-content-wrapper {
    max-width: 800px;
}

/* ===================================
   POST CONTENT TYPOGRAPHY - DEMO STYLE
   =================================== */

.post-content {
    font-family: 'Georgia', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content h2 {
    color: #1e40af;
    font-size: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
    font-weight: 700;
}

.post-content h3 {
    color: #1e40af;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h4 {
    color: #374151;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.post-content strong {
    font-weight: 700;
    color: #1f2937;
}

.post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1d4ed8;
}

/* Lead paragraph style */
.post-content > p:first-of-type {
    font-size: 1.25em;
    font-weight: 500;
    color: #4b5563;
    padding: 20px;
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* ===================================
   SIDEBAR
   =================================== */

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: color 0.2s;
}

.sidebar-widget a:hover {
    color: #2563eb;
}

/* Table of Contents */
.toc-widget {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.toc-widget h3 {
    color: #1e40af;
}

.toc-widget a {
    color: #1e40af;
}

/* ===================================
   POST NAVIGATION
   =================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.nav-previous:hover,
.nav-next:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav-title {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   BLOG LIST PAGE
   =================================== */

.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.blog-title {
    font-size: 3em;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-description {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.blog-list {
    display: grid;
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.blog-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.blog-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.read-more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* ===================================
   BLOG SIDEBAR
   =================================== */

.blog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.widget {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-footer p {
    margin: 5px 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .post-content-container,
    .blog-content-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar,
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation {
        gap: 15px;
        font-size: 0.9em;
    }
    
    .post-hero-section {
        height: 350px;
    }
    
    .post-hero-title {
        font-size: 2em;
    }
    
    .post-content-container {
        padding: 40px 20px;
    }
    
    .blog-header {
        padding: 60px 20px;
    }
    
    .blog-title {
        font-size: 2em;
    }
    
    .blog-content-area {
        padding: 40px 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
}



/* ===================================
   SERVICE PAGE CONTENT FORMATTING
   =================================== */

.service-main-content .entry-content {
    font-family: Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #2d3748;
}

.service-main-content .entry-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-main-content .entry-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-main-content .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.service-main-content .entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-main-content .entry-content ul,
.service-main-content .entry-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    line-height: 1.9;
}

.service-main-content .entry-content li {
    margin-bottom: 0.75rem;
}

.service-main-content .entry-content strong {
    font-weight: 700;
    color: #1a202c;
}

.service-main-content .entry-content em {
    font-style: italic;
}

.service-main-content .entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
}

.service-main-content .entry-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.service-main-content .entry-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.service-main-content .entry-content a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.3s;
}

.service-main-content .entry-content a:hover {
    color: #1e40af;
}

.service-main-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.service-main-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.service-main-content .entry-content table th,
.service-main-content .entry-content table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.service-main-content .entry-content table th {
    background: #f9fafb;
    font-weight: 700;
    color: #1f2937;
}

.service-main-content .entry-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

/* Responsive adjustments for service content */
@media (max-width: 768px) {
    .service-main-content .entry-content {
        font-size: 1rem;
    }
    
    .service-main-content .entry-content h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }
    
    .service-main-content .entry-content h3 {
        font-size: 1.35rem;
        margin-top: 1.75rem;
    }
    
    .service-main-content .entry-content ul,
    .service-main-content .entry-content ol {
        margin-left: 1.5rem;
    }
}

