/*
 Theme Name:   LoyolaPound Modern Child
 Theme URI:    https://loyolapound.info/
 Description:  Ultra Modern, SEO Optimized Hindi News Theme - Complete Package
 Author:       LoyolaPound Team
 Author URI:   https://loyolapound.info/
 Template:     generatepress
 Version:      7.0.0
*/

/* === CSS VARIABLES === */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #ffffff;
    font-size: 16px;
    overflow-x: hidden;
}

/* === FORCE COMPLETE OVERRIDE === */
.site, .site-content, .content-area, .inside-article, 
.generate-columns-container, .container, .inside-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* === DISABLE GENERATEPRESS LAYOUT === */
.generate-columns-container,
.generate-columns,
.generate-main-content,
.generate-sidebar-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

/* === FORCE FULL WIDTH FOR ALL PAGES === */
body.home .site-content,
body.archive .site-content,
body.category .site-content,
body.tag .site-content,
body.search .site-content,
body.single .site-content,
body.page .site-content {
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* === CUSTOM CONTAINER SYSTEM === */
.modern-homepage,
.archive-page,
.single-post-page,
.search-page,
.error-404-page {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: clamp(2rem, 4vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

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

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

/* === MODERN HEADER === */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo a {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* === NAVIGATION === */
.main-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover::before {
    width: 100%;
}

.main-nav a:hover {
    color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.05);
}

/* === SEARCH BAR === */
.header-search {
    position: relative;
    margin-left: 2rem;
}

.search-input {
    width: 300px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--light-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

/* === MOBILE MENU === */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* === HERO SECTION === */
.modern-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* === TRENDING TAGS === */
.trending-section {
    margin-top: 3rem;
}

.trending-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.trending-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trend-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.trend-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* === MAIN CONTENT LAYOUTS === */
.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.single-post-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.archive-wrapper,
.search-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.content-main,
.single-post-content,
.archive-content,
.search-content {
    min-width: 0;
    width: 100%;
}

/* === SIDEBAR POSITIONING === */
.modern-sidebar,
.single-post-sidebar,
.archive-sidebar,
.search-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    width: 100%;
}

/* === SECTIONS === */
.content-section {
    margin-bottom: 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.view-all-btn {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* === NEWS GRID === */
.news-grid {
    display: grid;
    gap: 2rem;
}

.news-grid.featured {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.news-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

/* === NEWS CARDS === */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.news-card.featured {
    grid-row: span 2;
}

.news-card-image {
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card.featured .news-card-image img {
    height: 350px;
}

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

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.news-card-content {
    padding: 1.8rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.news-card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-card.featured .news-card-title {
    font-size: 1.6rem;
}

.news-card-title a {
    color: var(--primary-color);
    transition: var(--transition);
}

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

.news-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}

/* === NO POSTS MESSAGE === */
.no-posts-message {
    text-align: center;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    grid-column: 1 / -1;
}

.no-posts-message h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-posts-message p {
    color: #666;
    margin-bottom: 1.5rem;
}

.add-post-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.add-post-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sidebar-post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.sidebar-post-content h4 a:hover {
    color: var(--secondary-color);
}

.sidebar-post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* === NEWSLETTER WIDGET === */
.newsletter-widget {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* === SINGLE POST STYLES === */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-category {
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

.post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.author-info .author {
    color: #555;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 20px;
}

.reading-time,
.post-views,
.comments-count {
    color: #666;
    font-size: 0.9rem;
}

.share-buttons-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.share-label {
    font-weight: 500;
    color: #555;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

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

.post-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    margin-bottom: 50px;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.content-wrapper h3 {
    font-size: 1.5rem;
}

.content-wrapper p {
    margin-bottom: 20px;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-wrapper li {
    margin-bottom: 8px;
}

.content-wrapper blockquote {
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.tags-label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background: #f1f3f4;
    color: #555;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #e74c3c;
    color: white;
}

.share-buttons-bottom {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.share-buttons-bottom h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn-large.facebook {
    background: #1877f2;
    color: white;
}

.share-btn-large.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-large.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-large.email {
    background: #6b7280;
    color: white;
}

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

/* === COMMENTS SECTION === */
.comments-section {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.comments-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1rem;
}

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

.comment-list .comment {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
}

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

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

.comment-meta {
    font-size: 0.9rem;
    color: #666;
}

.comment-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reply-link {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.reply-link:hover {
    color: var(--accent-color);
}

.comment-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    box-shadow: var(--shadow-light);
}

.comment-form-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.comment-form input,
.comment-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    justify-self: start;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

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

.comments-closed {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    color: #666;
}

/* === RELATED POSTS === */
.also-read-section {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.also-read-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
}

.also-read-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.also-read-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    position: relative;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-category-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card:hover .related-post-title {
    color: var(--secondary-color);
}

.related-post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-post-excerpt {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-related-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.no-related-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-related-content p {
    color: #666;
    margin-bottom: 2rem;
}

.related-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-btn,
.category-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.home-btn {
    background: var(--secondary-color);
    color: white;
}

.home-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.category-btn {
    background: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === POST NAVIGATION === */
.post-navigation {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 3rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-previous,
.nav-next {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.nav-next {
    text-align: right;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f39c12;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* === ARCHIVE PAGE STYLES === */
.archive-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.archive-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.archive-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.archive-post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.archive-post-card:hover .archive-post-image img {
    transform: scale(1.05);
}

.archive-post-content {
    padding: 2rem;
}

.archive-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.archive-post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

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

.read-more-btn {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--accent-color);
}

.no-posts-found {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.back-home-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.back-home-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* === SEARCH PAGE STYLES === */
.search-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: center;
}

.search-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-query {
    color: var(--accent-color);
    font-weight: 800;
}

.search-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-form-large {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-input-large {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.search-btn-large {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn-large:hover {
    background: var(--accent-color);
    color: white;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-result-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    transition: var(--transition);
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.search-result-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.result-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.search-result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

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

.search-result-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.search-result-excerpt mark {
    background: yellow;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.no-search-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.search-suggestions {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.search-suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #666;
}

.alternative-search {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.alternative-search h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.alt-search-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.alt-search-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
}

.alt-search-btn {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* === FOOTER === */
.modern-footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-widget h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.social-link.facebook { background: #1877f2; color: white; }
.social-link.twitter { background: #1da1f2; color: white; }
.social-link.youtube { background: #ff0000; color: white; }
.social-link.instagram { background: #e4405f; color: white; }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* === CATEGORY LIST === */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.category-item a:hover {
    background: var(--secondary-color);
    color: white;
}

.category-item span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* === PAGINATION === */
.archive-pagination,
.search-pagination {
    text-align: center;
    margin: 3rem 0;
}

.archive-pagination .page-numbers,
.search-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination .page-numbers li,
.search-pagination .page-numbers li {
    margin: 0;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span,
.search-pagination .page-numbers a,
.search-pagination .page-numbers span {
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.archive-pagination .page-numbers a:hover,
.archive-pagination .page-numbers .current,
.search-pagination .page-numbers a:hover,
.search-pagination .page-numbers .current {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-30px); }
    60% { transform: translate(-50%, -50%) translateY(-15px); }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .main-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
    
    .single-post-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }
    
    .news-grid.four-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-wrapper,
    .single-post-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }
    
    .archive-wrapper,
    .search-wrapper {
        grid-template-columns: 1fr 260px;
        gap: 2rem;
    }
    
    .news-grid.three-col,
    .news-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-search {
        display: none;
    }
}

@media (max-width: 968px) {
    .main-wrapper,
    .single-post-wrapper,
    .archive-wrapper,
    .search-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .modern-sidebar,
    .single-post-sidebar,
    .archive-sidebar,
    .search-sidebar {
        position: static;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        gap: 1rem;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .news-grid.featured,
    .news-grid.three-col,
    .news-grid.four-col {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-row: span 1;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .share-buttons-top {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-btn-large {
        justify-content: center;
    }
    
    .also-read-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-result-image {
        order: -1;
    }
    
    .alt-search-form {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .main-wrapper,
    .single-post-wrapper,
    .archive-wrapper,
    .search-wrapper {
        padding: 1.5rem 0.5rem;
    }
    
    .news-card-content {
        padding: 1.2rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .content-wrapper {
        font-size: 1rem;
    }
    
    .share-buttons-bottom {
        padding: 20px;
    }
    
    .archive-header,
    .search-header {
        padding: 2rem;
    }
    
    .archive-title,
    .search-title {
        font-size: 2rem;
    }
    
    .archive-post-content {
        padding: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .error-search-input {
        border-radius: 25px;
        border-right: 2px solid var(--border-color);
    }
    
    .error-search-btn {
        border-radius: 25px;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .main-wrapper,
    .single-post-wrapper,
    .archive-wrapper,
    .search-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e9ecef;
        --light-gray: #2c3e50;
        --border-color: #495057;
    }
    
    body {
        background: #1a1a1a;
        color: var(--text-color);
    }
    
    .news-card,
    .sidebar-widget,
    .archive-post-card,
    .search-result-item,
    .related-post-card {
        background: #2c3e50;
        border-color: #495057;
    }
}

/* === PRINT STYLES === */
@media print {
    .modern-header,
    .modern-sidebar,
    .single-post-sidebar,
    .archive-sidebar,
    .search-sidebar,
    .modern-footer,
    .share-buttons-top,
    .share-buttons-bottom,
    .post-navigation {
        display: none;
    }
    
    .main-wrapper,
    .single-post-wrapper,
    .archive-wrapper,
    .search-wrapper {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .news-card,
    .archive-post-card,
    .related-post-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.news-card-image,
.archive-post-image,
.related-post-image {
    contain: layout style paint;
}

.news-card,
.archive-post-card,
.related-post-card {
    contain: layout style;
}

/* Force single post layout specifically */
body.single .single-post-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 3rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
}

body.single .single-post-content {
    min-width: 0 !important;
}

body.single .single-post-sidebar {
    display: block !important;
    position: sticky !important;
    top: 120px !important;
    height: fit-content !important;
}

/* Mobile fix for single post */
@media (max-width: 968px) {
    body.single .single-post-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 1rem !important;
    }
    
    body.single .single-post-sidebar {
        position: static !important;
    }
}
