/*
Theme Name: Rezzaid GP
Theme URI: https://generatepress.com
Description: Custom GeneratePress child theme with modern design
Author: Rezzaid
Author URI: https://generatepress.com
Template: generatepress
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rezzaid-gp
*/

/* ========================================
   GLOBAL STYLES
   ======================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a202c;
    --text-medium: #2d3748;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: var(--text-medium);
    background: var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   HEADER CUSTOMIZATION
   ======================================== */

a {
	text-decoration: none;
}

.site-header {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.inside-header {
    padding: 1rem 0;
}

.main-title a {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    padding: 15px;
}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-search input:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Category Pills */
.category-pills {
    max-width: 1200px;
    margin: -30px auto 3rem;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pill {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-gradient);
    color: white;
}

/* Featured Post */
.featured-post-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease;
}

.featured-post-wrapper:hover {
    transform: translateY(-5px);
}

.featured-image {
    height: 400px;
    position: relative;
    overflow: hidden;
}

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

.featured-content-wrapper {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-content-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.featured-content-wrapper .post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 1rem;
}

/* ========================================
   POST GRID STYLES
   ======================================== */

.post-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.post-card .post-thumbnail {
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

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

.post-card .post-body {
    padding: 1.5rem;
}

.post-card .post-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-card .post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* ========================================
   SINGLE POST STYLES
   ======================================== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Post Header */
.single-post-header {
    background: white;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.post-excerpt-header {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Author Info */
.author-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.author-name a:hover {
    color: var(--primary-color) !important;
}

.post-date-info {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* Featured Image */
.featured-image-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.single .featured-image-single {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

/* Post Content */
.single .entry-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 3rem auto;
}

.single .entry-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.single .entry-content h3 {
    font-size: 1.4rem;
    color: var(--text-medium);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.single .entry-content h4 {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single .entry-content li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.single .entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.single .entry-content a:hover {
    background: var(--primary-color);
    color: white;
}

.single .entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--bg-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #4a5568;
}

.single .entry-content code {
    background: #2d3748;
    color: #68d391;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.single .entry-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.6;
}

.single .entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

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

/* Social Share Buttons */
.social-share-wrapper {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text-medium);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

/* Author Box */
.author-box-wrapper {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

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

.author-box-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.author-box-bio {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   ARCHIVE PAGE STYLES - OPTION 1 + FEATURED
   ======================================== */

/* Archive Body Class */
body{
	background: #f5f7fa;
}

.inside-article {
	background: transparent;
}

.site-content {
	padding-top: 40px;
	padding-bottom: 40px;
}

/* Archive Header Modern */
.archive-header-modern {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 2rem 0.5rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 15px;
}

.archive-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.archive-description-modern {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   FEATURED POST IN ARCHIVE
   ================================ */

.archive-featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: all 0.3s ease;
}

.archive-featured-image img {
    border-radius: 0 !important;
}

.archive-featured-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.archive-featured-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.archive-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.archive-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-featured-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.archive-featured-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-featured-title a:hover {
    color: var(--primary-color);
}

.archive-featured-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.archive-featured-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.archive-featured-meta .author-link {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-featured-meta .author-link:hover {
    color: var(--primary-color);
}

.archive-featured-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.archive-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.3s;
}

.archive-featured-link:hover {
    gap: 1rem;
}

.archive-featured-link .arrow {
    transition: transform 0.3s;
}

.archive-featured-link:hover .arrow {
    transform: translateX(5px);
}

/* ================================
   FILTER BAR
   ================================ */

.archive-filter-bar {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-left {
    display: flex;
    align-items: center;
}

.archive-results-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.archive-results-count strong {
    color: var(--text-dark);
    font-weight: 600;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle-wrapper {
    display: flex;
    gap: 0.5rem;
    background: #f0f2f5;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid #e0e4ea;
}

.view-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.view-btn:hover {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.view-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
    font-weight: 600;
}

.view-btn svg {
    transition: all 0.2s ease;
}

.view-btn:active {
    transform: scale(0.95);
}

.archive-sort-dropdown {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-medium);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.archive-sort-dropdown:hover {
    border-color: var(--primary-color);
}

.archive-sort-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ================================
   POSTS GRID
   ================================ */

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    transition: opacity 0.3s;
}

.archive-posts-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Archive Post Card */
.archive-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.archive-post-thumbnail {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.archive-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.archive-post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.archive-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.archive-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.archive-post-meta .author-link {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-post-meta .author-link:hover {
    color: var(--primary-color);
}

.archive-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
}

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

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

.archive-post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.archive-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.archive-read-more:hover {
    gap: 0.75rem;
}

.archive-read-more .arrow {
    transition: transform 0.3s;
}

.archive-read-more:hover .arrow {
    transform: translateX(3px);
}

.meta-comments {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* ================================
   VIEW MODES
   ================================ */

/* List View */
.archive-posts-grid.list-view {
    grid-template-columns: 1fr;
}

.archive-posts-grid.list-view .archive-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.archive-posts-grid.list-view .archive-post-thumbnail {
    height: 100%;
    min-height: 250px;
}

.archive-posts-grid.list-view .archive-post-content {
    padding: 2rem;
}

.archive-posts-grid.list-view .archive-post-title {
    font-size: 1.5rem;
}

/* Compact View */
.archive-posts-grid.compact-view {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.archive-posts-grid.compact-view .archive-post-card {
    font-size: 0.9rem;
}

.archive-posts-grid.compact-view .archive-post-thumbnail {
    height: 180px;
}

.archive-posts-grid.compact-view .archive-post-content {
    padding: 1.25rem;
}

.archive-posts-grid.compact-view .archive-post-title {
    font-size: 1.1rem;
}

.archive-posts-grid.compact-view .archive-post-excerpt {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* All pagination links and spans */
.paging-navigation {
    text-align: center;
}

.archive-grid-style .paging-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    flex-wrap: wrap;
    background: #f5f7fa;
}

.paging-navigation a,
.paging-navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hover state for links */
.paging-navigation a:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border: 2px solid #e2e8f0;
}

/* Current page */
.paging-navigation .current,
.paging-navigation span[aria-current="page"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: default;
}

.paging-navigation .current:hover {
    transform: none;
}

/* Dots */
.paging-navigation .dots {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 2px;
}

.paging-navigation .dots:hover {
    transform: none;
    background: transparent !important;
}

/* Previous and Next buttons */
.paging-navigation .nav-previous a,
.paging-navigation .nav-next a,
.paging-navigation a.prev,
.paging-navigation a.next {
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    font-weight: 700;
}

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

.inside-right-sidebar,
.inside-left-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget-title {
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.breadcrumbs {
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #667eea;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: #667eea;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #764ba2;
}

.search-modal-form {
    border-radius: 20px;
}

/* ========================================
   PAGE TEMPLATE STYLES
   ======================================== */

.page-header-custom {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ========================================
   404 ERROR PAGE STYLES
   ======================================== */

.error-404-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-number {
    font-size: 10rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 4rem 0;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #2d3748;
    transform: scale(1.05);
}

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

.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 3rem 2rem 2rem;
}

.footer-widgets {
    background-color: #1a202c;
    color: #a0aec0;
}

.footer-widgets .widget-title {
    color: #fff;
}

.footer-widgets a {
    color: #a0aec0;
}

.footer-widgets a:hover {
    color: #667eea;
}

.footer-widgets .footer-widget-1 {
    flex-basis: 50%;
}

.footer-widgets .footer-widget-2 {
    flex-basis: 20%;
}

.footer-widgets .footer-widget-3 {
    flex-basis: 30%;
}

.footer-widget h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget p {
    color: var(--text-lighter);
    line-height: 1.8;
}

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

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #2e3440;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

.site-info {
    background-color: #1a202c;
}

/* ========================================
   HOMEPAGE REDESIGN
   ======================================== */

/* Featured Post Card - Horizontal Layout */
.featured-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.featured-post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.3;
}

.featured-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-title a:hover {
    color: #667eea;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-excerpt {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    font-size: 0.95rem;
}

.featured-link:hover {
    gap: 1rem;
}

/* Section Titles */
.homepage-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    margin-top: 4rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.homepage-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Homepage Posts Grid */
.homepage-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.homepage-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.homepage-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.homepage-post-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-emoji {
    font-size: 3rem;
    opacity: 0.9;
}

.homepage-post-body {
    padding: 1.5rem;
}

.homepage-post-category {
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.homepage-post-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
    line-height: 1.4;
}

.homepage-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s;
}

.homepage-post-title a:hover {
    color: #667eea;
}

.homepage-post-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.homepage-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #a0aec0;
}

.post-date {
    font-size: 0.85rem;
}

.post-author {
    font-size: 0.85rem;
}

/* Random Posts Grid */
.homepage-random-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.homepage-random-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.homepage-random-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.homepage-random-thumbnail {
    height: 180px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.random-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.random-emoji {
    font-size: 3rem;
    opacity: 0.95;
}

.homepage-random-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.homepage-random-body .homepage-post-title {
    font-size: 1.1rem;
    flex-grow: 0;
}

.homepage-random-body .homepage-post-excerpt {
    flex-grow: 1;
    font-size: 0.9rem;
}

.homepage-random-body .homepage-post-footer {
    margin-top: auto;
}

/* Shuffle Button */
.homepage-shuffle-action {
    text-align: center;
    margin-bottom: 4rem;
}

.homepage-shuffle-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.homepage-shuffle-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.homepage-shuffle-btn:active {
    transform: translateY(0) scale(0.98);
}

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

@media (max-width: 1200px) {
    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-posts-grid.compact-view {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .homepage-random-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .homepage-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Archive Responsive */
    .archive-header-modern {
        padding: 2rem 1rem;
    }
    
    .archive-title-modern {
        font-size: 2rem;
    }
    
    .archive-featured-post {
        grid-template-columns: 1fr;
    }
    
    .archive-featured-image {
        min-height: 250px;
    }
    
    .archive-featured-content {
        padding: 2rem 1.5rem;
    }
    
    .archive-featured-title {
        font-size: 1.6rem;
    }
    
    .archive-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-left,
    .filter-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .archive-sort-dropdown {
        width: 100%;
    }
    
    .archive-posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .archive-posts-grid.list-view .archive-post-card {
        grid-template-columns: 1fr;
    }
    
    .archive-posts-grid.list-view .archive-post-thumbnail {
        height: 220px;
        min-height: auto;
    }
    
    .archive-posts-grid.list-view .archive-post-content {
        padding: 1.5rem;
    }
    
    /* Homepage Responsive */
    .hero-content h1 {
        font-size: 2rem;
    }

    .featured-post-wrapper,
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 300px;
    }

    .post-grid-wrapper,
    .homepage-posts-grid,
    .homepage-random-grid {
        grid-template-columns: 1fr;
    }

    /* Single Post Responsive */
    .single .entry-title {
        font-size: 2rem;
    }

    .single .entry-content {
        padding: 2rem 1.5rem;
    }

    .author-box-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .error-number {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Single Post Layout */
    .single article > div[style*="grid-template-columns: 80px 1fr 80px"] {
        display: block !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .single article > div[style*="grid-template-columns: 80px 1fr 80px"] > aside:first-child {
        display: none !important;
    }

    .single article > div[style*="grid-template-columns: 80px 1fr 80px"] > .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .single article > div[style*="grid-template-columns: 80px 1fr 80px"] > aside:last-child {
        display: none !important;
    }

    .social-share-mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin: 2rem 0;
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.06);
        flex-wrap: wrap;
    }

    .social-share-mobile .share-button {
        position: static !important;
        margin: 0 !important;
    }
    
    .social-share-mobile .social-share-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem;
    }

    .single .post-navigation {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .single .related-grid {
        grid-template-columns: 1fr !important;
    }

    .featured-image-container {
        padding: 0 1rem !important;
    }

    .single-post-header {
        padding: 2rem 1rem !important;
    }

    .single-post-header .container-custom {
        padding: 0 !important;
    }

    .author-info-wrapper {
        flex-wrap: wrap;
    }

    .author-info-wrapper .post-stats {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 1rem;
        justify-content: flex-start !important;
    }

    .container-custom {
        padding: 0 1rem !important;
    }
    
    .category-pills-wrapper {
        padding: 1.5rem 0 1rem;
        margin-top: -20px;
    }
    
    .homepage-shuffle-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .site-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .inside-right-sidebar,
    .inside-left-sidebar {
        margin-top: 40px;
        padding: 20px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.post-card,
.featured-post-wrapper,
.archive-post-card,
.archive-featured-post {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: 15px;
}

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

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */

@media print {
    .sidebar,
    .site-header,
    .site-footer,
    .paging-navigation,
    .archive-filter-bar {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .archive-post-card,
    .archive-featured-post {
        border: 2px solid #000;
    }
    
    .archive-post-category-badge,
    .archive-read-more {
        border: 1px solid currentColor;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .archive-post-category-badge {
        background: #ffffff;
        backdrop-filter: none;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* ========================================
   SEARCH RESULTS PAGE - LIST STYLE
   ======================================== */

.search-results-wrapper {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Search Header Compact */
.search-header-compact {
    background: white;
    padding: 2rem 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.search-box-large {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.search-box-large .search-form input[type="search"] {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.search-box-large .search-form input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.6rem 1.25rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.chip:hover,
.chip.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Search Layout */
.search-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Results List */
.results-list {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.results-count {
    color: #718096;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1rem;
}

.results-count strong {
    color: #1a202c;
    font-weight: 700;
}

/* Result Item */
.result-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s, border-left 0.3s;
    border-left: 3px solid transparent;
}

.result-item:hover {
    background: #f7fafc;
    border-left-color: #667eea;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-thumbnail {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.result-item:hover .result-item-thumbnail img {
    transform: scale(1.05);
}

.thumbnail-placeholder-search {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Relevance Badge */
.relevance-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.relevance-badge.high {
    background: #d1fae5;
    color: #065f46;
}

.relevance-badge.medium {
    background: #fed7aa;
    color: #92400e;
}

.relevance-badge.low {
    background: #e5e7eb;
    color: #374151;
}

/* Result Item Content */
.result-item-content h2.result-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
    line-height: 1.4;
    font-weight: 600;
}

.result-item-content h2.result-item-title a {
    color: #1a202c;
    text-decoration: none;
    transition: none;
}

.result-item:hover .result-item-content h2.result-item-title a {
    color: #1a202c;
}

.result-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.result-excerpt .highlight {
    background: #fef5e7;
    color: #f39c12;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.result-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #a0aec0;
}

.result-meta .author-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.result-meta .author-link:hover {
    color: #667eea;
}

/* Search Sidebar */
.search-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.sidebar-section h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.sidebar-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
}

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

.sidebar-list li a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    font-size: 0.95rem;
}

.sidebar-list li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.no-results p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.search-suggestions-box {
    max-width: 500px;
    margin: 2rem auto;
}

.popular-searches {
    margin-top: 3rem;
}

.popular-searches h3 {
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

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

.popular-tag {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.popular-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Pagination */
.search-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.search-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-pagination .page-numbers:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: default;
}

.search-pagination .page-numbers.current:hover {
    transform: none;
}

.search-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 2px;
}

.search-pagination .page-numbers.dots:hover {
    transform: none;
    background: transparent;
}

.search-pagination .page-numbers.prev,
.search-pagination .page-numbers.next {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    font-weight: 700;
}

.search-pagination .page-numbers.prev:hover,
.search-pagination .page-numbers.next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }

    .result-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        margin: 0 -1.5rem;
    }

    .result-item-thumbnail {
        width: 100%;
        height: 200px;
    }

    .filter-chips {
        gap: 0.5rem;
    }

    .chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .results-list {
        padding: 1.5rem;
    }

    .search-sidebar {
        padding: 1.5rem;
    }

    .search-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}