/*
Theme Name: Digital Pylot
Theme URI: https://digitalpylot.com
Description: A modern, responsive WordPress theme with Google Fonts support, designed for digital creators and tech enthusiasts. Features clean typography, fast loading, and excellent user experience.
Author: Digital Pylot Team
Author URI: https://digitalpylot.com
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: digital-pylot
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, blog, news
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: #9b0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7a0000;
}

/* Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-title {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.site-title a {
    color: inherit;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #9b0000;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
}

.content-area {
    max-width: 1400px;
    margin: 0 auto;
}

/* Posts */


.post-title {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-title {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.post-title a,
.entry-title a {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: inherit;
    text-decoration: none;
}

.post-title a:hover,
.entry-title a:hover {
    color: #9b0000;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 15px;
    }
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Blog Archive Layout */
.blog-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Post Card */
.blog-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Image Section */
.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Date Overlay */
.date-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #FFFFFF4D;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    text-align: center;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.date-overlay .day {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}

.date-overlay .month {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author/Category Banner */
.author-banner {
    background: #9b0000;
    color: #fff;
    padding: 8px 15px;
    font-family: 'Exo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

/* Card Content */
.card-content {
    padding: 20px;
}

/* Post Title */
.card-title {
    font-family: 'Exo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #9b0000;
}

/* Excerpt Separator */
.excerpt-separator {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, #9b0000 10%, #9b0000 10px, #D7D7D7 1px, transparent 100%);
    margin-bottom: 15px;
    position: relative;
}

.excerpt-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 1.5px;
    background: #9b0000;
}

.excerpt-separator::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: calc(100% - 20px);
    height: 1px;
    background: linear-gradient(to right, #D7D7D733 0%, transparent 100%);
}

/* Post Excerpt */
.card-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Continue Reading Link */
.read-more-link {
    font-family: 'Exo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9b0000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #7a0000;
}

.read-more-link::after {
    content: '→';
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-archive {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-archive {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Update existing styles */
.content-area {
    max-width: 1400px;
    margin: 0 auto;
}

/* Override default post styles for archive */
.blog .post,
.archive .post {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog .post-title,
.archive .post-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.blog .post-meta,
.archive .post-meta {
    display: none;
}

.blog .post-content,
.archive .post-content {
    margin-bottom: 20px;
}

/* DP Posts Widget Styles */
.dp-posts-grid {
    display: grid;
    /* grid-template-columns controlled by Elementor responsive settings */
    max-width: 1400px;
    margin: 0 auto;
}

/* DP Post Card */
.dp-post-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* DP Card Image Section */
.dp-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.dp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DP Date Overlay */
.dp-date-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #FFFFFF4D;
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    text-align: center;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dp-date-overlay .dp-day {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1;
}

.dp-date-overlay .dp-month {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DP Author/Category Banner */
.dp-author-banner {
    background: #9b0000;
    color: #fff;
    padding: 8px 15px;
    font-family: 'Exo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

/* DP Card Content */
.dp-card-content {
    padding: 20px;
}

/* DP Post Title */
.dp-card-title {
    font-family: 'Exo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dp-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dp-card-title a:hover {
    color: #9b0000;
}

/* DP Excerpt Separator */
.dp-excerpt-separator {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, #9b0000 10%, #9b0000 10px, #D7D7D7 1px, transparent 100%);
    margin-bottom: 15px;
    position: relative;
}

.dp-excerpt-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 1.5px;
    background: #9b0000;
}

.dp-excerpt-separator::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: calc(100% - 20px);
    height: 1px;
    background: linear-gradient(to right, #D7D7D733 0%, transparent 100%);
}

/* DP Post Excerpt */
.dp-card-excerpt {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* DP Continue Reading Link */
.dp-read-more-link {
    font-family: 'Exo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9b0000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.dp-read-more-link:hover {
    color: #7a0000;
}

.dp-read-more-link::after {
    content: '→';
    font-size: 1.1rem;
}

/* DP Posts Widget Responsive */
/* Grid columns and gap are now controlled by Elementor responsive settings */
@media (max-width: 1024px) {
    /* Tablet styles - columns controlled by Elementor */
}

@media (max-width: 768px) {
    /* Mobile styles - columns controlled by Elementor */
    
    .dp-card-content {
        padding: 15px;
    }
    
    .dp-card-title {
        font-size: 1.1rem;
    }
}

/* Page Title Section */
.page-title-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 0;
    background: #9b0000;
    margin-top: -3rem;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.page-title {
    font-family: 'Exo', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive adjustments for page title */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .page-title-section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
}

/* Pagination Section */
.pagination-section {
    margin-top: 4rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: 'Exo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    color: #9b0000;
    border-color: #9b0000;
    background: #fff;
}

.pagination .page-numbers.current {
    color: #fff;
    background: #9b0000;
    border-color: #9b0000;
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
    min-width: auto;
}

.pagination-arrow {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0 12px;
    }
}

/* WordPress Block Editor Boxed Layout */
.wp-block {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block[data-align="wide"] {
    max-width: 1400px;
}

.wp-block[data-align="full"] {
    max-width: none;
}

/* Editor container styles */
.editor-styles-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.editor-styles-wrapper .wp-block {
    background: #fff;
    padding: 2rem;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Content area styling */
.editor-styles-wrapper .wp-block-editor {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

/* Typography in editor */
.editor-styles-wrapper {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.editor-styles-wrapper h1 { font-size: 2.5rem; }
.editor-styles-wrapper h2 { font-size: 2rem; }
.editor-styles-wrapper h3 { font-size: 1.75rem; }
.editor-styles-wrapper h4 { font-size: 1.5rem; }
.editor-styles-wrapper h5 { font-size: 1.25rem; }
.editor-styles-wrapper h6 { font-size: 1rem; }

/* Editor content area */
.editor-styles-wrapper .editor-writing-flow {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

/* Block spacing in editor */
.editor-styles-wrapper .wp-block {
    margin-bottom: 1.5rem;
}

.editor-styles-wrapper .wp-block:last-child {
    margin-bottom: 0;
}

/* Editor responsive design */
@media (max-width: 1200px) {
    .editor-styles-wrapper .wp-block,
    .editor-styles-wrapper .wp-block-editor,
    .editor-styles-wrapper .editor-writing-flow {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 768px) {
    .editor-styles-wrapper .wp-block,
    .editor-styles-wrapper .wp-block-editor,
    .editor-styles-wrapper .editor-writing-flow {
        padding: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}
