/*!
Theme Name: Preneurs Urdu
Author: Preneurs Team
Description: Fast, SEO-optimized Urdu news theme with RTL support
Version: 1.0.0
Text Domain: preneurs-urdu
*/

/* --------------------------------------------------------------
   # RESET & BASE STYLES
-------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --accent-color: #2980b9;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Calibri', 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

body.rtl {
    font-family: 'Noto Nastaliq Urdu', 'Calibri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.loading * {
    transition: none !important;
}

/* --------------------------------------------------------------
   # TYPOGRAPHY
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Nastaliq Urdu', 'Calibri', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.7rem;
    border-right: 3px solid var(--secondary-color);
    padding-right: 15px;
    margin: 25px 0 20px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #444444;
}

.lead {
    font-size: 1.2rem;
    color: #555555;
    font-weight: 500;
    line-height: 1.7;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

blockquote {
    border-right: 4px solid var(--secondary-color);
    padding-right: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------
   # LAYOUT
-------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --------------------------------------------------------------
   # HEADER
-------------------------------------------------------------- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding {
    flex: 1;
    min-width: 300px;
}

.custom-logo-link {
    display: inline-block;
    max-width: 300px;
}

.custom-logo {
    max-width: 100%;
    height: auto;
}

.site-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-top: -5px;
    margin-bottom: 0;
}

.date-display {
    font-size: 0.95rem;
    color: #7f8c8d;
    border: 1px solid #eeeeee;
    padding: 8px 15px;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    font-family: 'Noto Nastaliq Urdu', sans-serif;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .site-branding {
        min-width: auto;
        width: 100%;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .date-display {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* --------------------------------------------------------------
   # NAVIGATION
-------------------------------------------------------------- */
.main-navigation {
    background-color: var(--primary-color);
    padding: 0;
    margin-bottom: 30px;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-size: 1.05rem;
    transition: var(--transition);
    font-family: 'Noto Nastaliq Urdu', sans-serif;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus,
.nav-links > li.current-menu-item > a {
    background-color: #34495e;
    color: #ffffff;
}

/* Submenu */
.nav-links ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: var(--shadow-dark);
    border-radius: var(--border-radius);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.nav-links li:hover > ul.sub-menu {
    display: block;
}

.nav-links ul.sub-menu li {
    width: 100%;
}

.nav-links ul.sub-menu a {
    color: var(--primary-color);
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.nav-links ul.sub-menu a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
}

.nav-links ul.sub-menu li:last-child a {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

.menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-toggle .menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
}

.menu-toggle.active .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: -40px;
        right: 20px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links > li > a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links > li:last-child > a {
        border-bottom: none;
    }
    
    .nav-links ul.sub-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        margin-top: 0;
        border-radius: 0;
    }
    
    .nav-links ul.sub-menu a {
        padding-right: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* --------------------------------------------------------------
   # ARTICLES & POSTS
-------------------------------------------------------------- */
.article-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.article-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-decoration: none;
    align-self: flex-start;
}

.article-category:hover {
    background: #a93226;
    color: #ffffff;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--secondary-color);
}

.article-summary {
    color: #666666;
    font-size: 1rem;
    margin: 15px 0;
    flex: 1;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eeeeee;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    font-size: 0.9em;
}

/* --------------------------------------------------------------
   # SINGLE POST
-------------------------------------------------------------- */
.single-post {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.post-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
}

.post-category:hover {
    background: #a93226;
    color: #ffffff;
}

.entry-header {
    margin-bottom: 25px;
}

.entry-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.95rem;
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    flex-wrap: wrap;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    font-size: 1em;
    width: 16px;
    text-align: center;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444444;
}

.entry-content p {
    margin-bottom: 1.8rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 25px 0;
}

.entry-content h2 {
    margin-top: 40px;
}

.entry-content h3 {
    margin-top: 30px;
}

.entry-content ul,
.entry-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
    padding-right: 10px;
}

/* --------------------------------------------------------------
   # AUTHOR BIO
-------------------------------------------------------------- */
.author-bio {
    display: flex;
    gap: 25px;
    margin: 40px 0;
    padding: 25px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    align-items: center;
    flex-wrap: wrap;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-light);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
    min-width: 200px;
}

.author-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.author-info p {
    margin-bottom: 0;
    color: #666666;
}

@media (max-width: 576px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
    }
}

/* --------------------------------------------------------------
   # SOCIAL SHARING
-------------------------------------------------------------- */
.social-sharing {
    margin: 40px 0;
    padding: 25px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.sharing-title {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sharing-title i {
    font-size: 1.2em;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.facebook:hover { background: #2d4373; }

.share-btn.twitter { background: #1da1f2; }
.share-btn.twitter:hover { background: #0d8bd9; }

.share-btn.instagram { background: #e4405f; }
.share-btn.instagram:hover { background: #d0314f; }

.share-btn.linkedin { background: #0077b5; }
.share-btn.linkedin:hover { background: #005582; }

.share-btn.whatsapp { background: #25d366; }
.share-btn.whatsapp:hover { background: #1da851; }

.share-btn.link-share { 
    background: var(--accent-color); 
    color: #ffffff;
}
.share-btn.link-share:hover { 
    background: #1a6899; 
}

.share-btn.qr-code { 
    background: #7f8c8d; 
    color: #ffffff;
}
.share-btn.qr-code:hover { 
    background: #667273; 
}

.qr-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.qr-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--border-radius);
    display: inline-block;
    box-shadow: var(--shadow-light);
    margin-top: 10px;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qr-placeholder canvas {
    width: 100% !important;
    height: 100% !important;
}

.qr-container small {
    display: block;
    color: #666666;
    font-size: 0.85rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
}

/* --------------------------------------------------------------
   # RELATED POSTS
-------------------------------------------------------------- */
.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.related-card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-right: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.related-card h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-card h4 a:hover {
    color: var(--secondary-color);
}

.related-card p {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------
   # SIDEBAR & WIDGETS
-------------------------------------------------------------- */
.sidebar {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    border-right: 2px solid var(--secondary-color);
    padding-right: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

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

.widget li {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
    transition: var(--transition);
}

.widget li:hover {
    padding-right: 5px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.widget a:hover {
    color: var(--secondary-color);
}

/* Newsletter Widget */
.newsletter-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.newsletter-description {
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #dddddd;
    border-radius: var(--border-radius);
    margin: 15px 0;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.subscribe-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.subscribe-btn:hover {
    background: #34495e;
}

.subscribe-btn:active {
    transform: translateY(1px);
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--border-radius);
    display: none;
    font-size: 0.95rem;
    text-align: center;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Recent/Popular Posts Widget */
.preneurs-recent-posts,
.preneurs-popular-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-item,
.popular-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
    align-items: flex-start;
}

.recent-post-item:last-child,
.popular-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumbnail,
.popular-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.recent-post-thumbnail a,
.popular-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-post-thumbnail img,
.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-thumbnail:hover img,
.popular-post-thumbnail:hover img {
    transform: scale(1.05);
}

.recent-post-content,
.popular-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title,
.popular-post-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post-title a,
.popular-post-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.recent-post-title a:hover,
.popular-post-title a:hover {
    color: var(--secondary-color);
}

.recent-post-meta,
.popular-post-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recent-post-meta span,
.popular-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Categories Widget */
.preneurs-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.preneurs-categories li {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.preneurs-categories li:last-child {
    border-bottom: none;
}

.preneurs-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 0;
}

.preneurs-categories a:hover {
    color: var(--secondary-color);
}

.preneurs-categories .count {
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #666666;
    min-width: 30px;
    text-align: center;
}

/* --------------------------------------------------------------
   # FOOTER
-------------------------------------------------------------- */
.site-footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    border-bottom: 1px solid #4a6572;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-right: none;
}

.footer-section p {
    color: #ecf0f1;
    text-align: right;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links a i {
    font-size: 0.9em;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-contact-info i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.footer-read-more {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    margin-top: 15px;
    transition: var(--transition);
    font-weight: 500;
}

.footer-read-more:hover {
    background: #a93226;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social-icons {
    margin-top: 25px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.site-info {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #4a6572;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.copyright {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
}

/* --------------------------------------------------------------
   # ARCHIVE PAGES
-------------------------------------------------------------- */
.archive-header {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.archive-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: none;
}

.archive-description {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.7;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------
   # PAGINATION
-------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.page-numbers:hover:not(.current):not(.dots) {
    background: var(--light-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-numbers.current {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-numbers.dots {
    background: transparent;
    border: none;
    min-width: auto;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 20px;
}

/* --------------------------------------------------------------
   # COMMENTS
-------------------------------------------------------------- */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: var(--light-bg);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    border-right: 3px solid var(--accent-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-metadata {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444444;
}

.comment-reply-link {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 15px;
    transition: var(--transition);
}

.comment-reply-link:hover {
    background: #1a6899;
    color: #ffffff;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.comment-form .submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.comment-form .submit:hover {
    background: #34495e;
}

/* --------------------------------------------------------------
   # UTILITY CLASSES
-------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: var(--border-radius);
}

.img-circle {
    border-radius: 50%;
}

/* --------------------------------------------------------------
   # ANIMATIONS
-------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-card,
.featured-item,
.related-card {
    animation: fadeIn 0.6s ease-out;
}

/* --------------------------------------------------------------
   # ACCESSIBILITY
-------------------------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 500;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* --------------------------------------------------------------
   # PRINT STYLES
-------------------------------------------------------------- */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .social-sharing,
    .site-footer,
    .menu-toggle,
    .share-buttons,
    .author-bio,
    .related-posts,
    .comment-form,
    .pagination {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
    
    .article-card,
    .single-post {
        box-shadow: none !important;
        border: 1px solid #dddddd !important;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
    }
    
    .article-image-container {
        height: auto !important;
    }
    
    .article-image {
        max-height: 300px !important;
    }
}

/* --------------------------------------------------------------
   # CUSTOMIZER OVERRIDES
-------------------------------------------------------------- */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --accent-color: #2980b9;
}

/* Dynamic colors from customizer */
body {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --accent-color: #2980b9;
}