/**
 * Jory News Theme - Main Stylesheet
 * التنسيقات الرئيسية
 *
 * @package flavor-flavor-flavor
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --text-color: #333333;
    --text-light: #666666;
    --link-color: #0066cc;
    --link-hover-color: #004499;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --header-bg-color: #ffffff;
    --footer-bg-color: #1a1a2e;
    --section-title-color: #0066cc;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.top-bar {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right,
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.top-menu-list {
    display: flex;
    gap: 15px;
}

.top-menu-list li a {
    font-size: 0.813rem;
}

/* ==========================================================================
   Main Header
   ========================================================================== */

.main-header {
    background-color: var(--header-bg-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.main-header.sticky-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Site Branding */
.site-branding .site-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.site-branding .site-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.site-title-link {
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.primary-menu {
    display: flex;
    gap: 5px;
}

.primary-menu>li {
    position: relative;
}

.primary-menu>li>a {
    display: block;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--text-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.primary-menu>li:hover>a,
.primary-menu>li.current-menu-item>a {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.primary-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.search-toggle:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.search-toggle .close-icon {
    display: none;
}

.search-toggle.active .search-icon {
    display: none;
}

.search-toggle.active .close-icon {
    display: block;
}

.hidden {
    display: none !important;
}

/* Header Search Form */
.header-search-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 99;
}

.header-search-form .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.header-search-form .search-field {
    flex: 1;
    border-radius: var(--radius) 0 0 var(--radius);
    border-left: none;
}

.header-search-form .search-submit {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 20px;
}

/* ==========================================================================
   Breaking News
   ========================================================================== */

.breaking-news-bar {
    padding: 10px 0;
}

.breaking-news-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    white-space: nowrap;
}

.breaking-news-slider {
    flex: 1;
    overflow: hidden;
}

.breaking-news-track {
    display: flex;
    transition: transform 0.5s ease;
}

.breaking-news-item {
    min-width: 100%;
    padding: 0 10px;
}

.breaking-news-item a {
    color: inherit;
    font-weight: 500;
}

.breaking-news-item a:hover {
    text-decoration: underline;
}

.breaking-news-nav {
    display: flex;
    gap: 5px;
}

.breaking-news-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 5px;
    cursor: pointer;
    color: inherit;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.breaking-news-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-light);
}

/* ==========================================================================
   Homepage Blocks
   ========================================================================== */

.homepage-blocks-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.homepage-blocks-wrapper.has-sidebar .homepage-blocks {
    flex: 1;
    min-width: 0;
}

.homepage-blocks-wrapper.no-sidebar .homepage-blocks {
    width: 100%;
}

.homepage-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Block Header */
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--section-title-color);
    padding-bottom: 10px;
}

.block-title {
    margin: 0;
    font-size: 1.25rem;
}

.block-title span {
    display: inline-block;
    padding: 8px 20px;
    background: var(--section-title-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

.view-more {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.view-more:hover {
    color: var(--secondary-color);
}

/* Category Block */
.category-block {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mixed Style */
.block-style-mixed .block-content {
    display: flex;
    gap: 20px;
}

.block-style-mixed .post-featured {
    flex: 1;
}

.block-style-mixed .posts-small-list {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   Post Cards
   ========================================================================== */

.post-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.posts-grid .post-card {
    box-shadow: var(--shadow);
}

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

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

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-card .category-label {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-title {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 10px;
}

.post-card .post-title a {
    color: var(--text-color);
}

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

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

.post-card .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

/* Post List Style */
.post-list {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.post-list .post-thumbnail {
    width: 250px;
    flex-shrink: 0;
}

.post-list .post-thumbnail img {
    height: 180px;
    border-radius: var(--radius);
}

.post-list .post-content {
    padding: 0;
    flex: 1;
}

/* Post Small Style */
.post-small {
    display: flex;
    gap: 15px;
    padding: 0;
}

.post-small .post-thumbnail {
    width: 80px;
    flex-shrink: 0;
}

.post-small .post-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
}

.post-small .post-content {
    padding: 0;
}

.post-small .post-title {
    font-size: 0.95rem;
    margin: 0 0 5px;
}

.post-small .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   Main Slider
   ========================================================================== */

.main-slider-section {
    margin-bottom: 30px;
}

.main-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide-image {
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8));
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px;
    color: #ffffff;
}

.slide-content .category-label {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.slide-title {
    font-size: 1.75rem;
    margin: 0 0 15px;
}

.slide-title a {
    color: #ffffff;
}

.slide-excerpt {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.slide-meta {
    display: flex;
    gap: 20px;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Slider Navigation */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-nav button:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: #ffffff;
}

/* ==========================================================================
   Most Read Block
   ========================================================================== */

.most-read-block {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.most-read-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.most-read-item .item-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.most-read-item .post-thumbnail {
    width: 80px;
    flex-shrink: 0;
}

.most-read-item .post-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.most-read-item .post-content {
    flex: 1;
}

.most-read-item .post-title {
    font-size: 0.95rem;
    margin: 0 0 5px;
}

.most-read-item .post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post .content-wrapper {
    display: flex;
    gap: 30px;
}

.single-post .content-area {
    flex: 1;
    min-width: 0;
}

.single-article {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.single-article .entry-header {
    padding: 30px 30px 0;
}

.single-article .post-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.single-article .post-categories .category-label {
    padding: 5px 15px;
    font-size: 0.813rem;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.single-article .entry-title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.single-article .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.single-article .reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 15px;
}

.single-article .post-thumbnail-wrapper {
    margin: 20px 0;
}

.single-article .post-thumbnail-wrapper img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-article .thumbnail-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    padding: 10px;
    background: var(--bg-light);
}

.single-article .entry-content {
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-article .entry-content p {
    margin-bottom: 1.5em;
}

.single-article .entry-content h2,
.single-article .entry-content h3,
.single-article .entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.single-article .entry-footer {
    padding: 0 30px 30px;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.post-tags .tags-label {
    font-weight: 600;
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 0.813rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

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

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.copy-link {
    background: var(--text-light);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 30px 0;
}

.author-box .author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-name {
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.author-box .author-bio {
    color: var(--text-light);
    margin-bottom: 10px;
}

.author-posts-link {
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 30px;
}

.related-posts .section-title {
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.related-post-item .post-thumbnail img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.related-post-item .post-title {
    font-size: 0.95rem;
    padding: 15px;
    margin: 0;
}

.related-post-item .post-date {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Post Navigation */
.post-navigation {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--text-color);
}

/* ==========================================================================
   Sidebar / Widgets
   ========================================================================== */

.sidebar,
.widget-area {
    width: 320px;
    flex-shrink: 0;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.widget-title span {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
    margin-bottom: -13px;
}

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

.recent-posts-widget li,
.popular-posts-widget li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts-widget li:last-child,
.popular-posts-widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-widget li:first-child,
.popular-posts-widget li:first-child {
    padding-top: 0;
}

.recent-posts-widget .post-thumb,
.popular-posts-widget .post-thumb {
    width: 70px;
    flex-shrink: 0;
}

.recent-posts-widget .post-thumb img,
.popular-posts-widget .post-thumb img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.recent-posts-widget .post-info,
.popular-posts-widget .post-info {
    flex: 1;
}

.recent-posts-widget .post-title,
.popular-posts-widget .post-title {
    font-size: 0.9rem;
    margin: 0 0 5px;
    line-height: 1.4;
}

.recent-posts-widget .post-date,
.popular-posts-widget .post-views {
    font-size: 0.8rem;
    color: var(--text-light);
}

.popular-posts-widget .post-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Social Links Widget */
.social-links-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-widget .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    transition: var(--transition);
}

.social-links-widget .social-link.facebook {
    background: #1877f2;
}

.social-links-widget .social-link.twitter {
    background: #1da1f2;
}

.social-links-widget .social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links-widget .social-link.youtube {
    background: #ff0000;
}

.social-links-widget .social-link.tiktok {
    background: #000000;
}

.social-links-widget .social-link.telegram {
    background: #0088cc;
}

.social-links-widget .social-link:hover {
    transform: translateX(-5px);
}

/* Newsletter Widget */
.newsletter-widget .newsletter-description {
    margin-bottom: 15px;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
}

.newsletter-form button {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--footer-bg-color);
    color: #ffffff;
    margin-top: 50px;
}

/* Footer Widgets */
.footer-widgets {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-wrapper {
    display: grid;
    gap: 30px;
}

.footer-widgets-wrapper.footer-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-widgets-wrapper.footer-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-widgets-wrapper.footer-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.footer-widget-area .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.footer-widget-area .widget-title {
    color: #ffffff;
    border-color: var(--secondary-color);
}

.footer-widget-area .widget-title span {
    background: var(--secondary-color);
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
}

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

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
}

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

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.developer-credit {
    margin-top: 5px !important;
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.developer-name {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

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

.footer-menu {
    display: flex;
    gap: 20px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-menu li a:hover {
    color: #ffffff;
}

/* Social Links in Footer */
.footer-info .social-links {
    display: flex;
    gap: 10px;
}

.footer-info .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-info .social-link:hover {
    background: var(--secondary-color);
}

/* ==========================================================================
   Archive Pages
   ========================================================================== */

.archive-page .content-wrapper {
    display: flex;
    gap: 30px;
}

.archive-page .content-area {
    flex: 1;
    min-width: 0;
}

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

.page-title {
    font-size: 1.75rem;
    color: var(--text-color);
}

.archive-description {
    margin-top: 10px;
    color: var(--text-light);
}

.posts-container {
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-white);
    color: var(--text-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-page {
    text-align: center;
    padding: 60px 0;
}

.error-404-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    margin: 20px 0;
}

.error-message {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-search {
    margin-bottom: 30px;
}

.error-links {
    margin-bottom: 40px;
}

.error-suggestions h3 {
    margin-bottom: 20px;
}

.suggested-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   Ads
   ========================================================================== */

.ad-container {
    margin: 25px 0;
    text-align: center;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ad-content {
    background: var(--bg-light);
    padding: 10px;
    border-radius: var(--radius);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
    font-size: 1.25rem;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--section-title-color);
}

.section-title span {
    display: inline-block;
    padding: 8px 20px;
    background: var(--section-title-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.mobile-menu-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-search .search-form {
    display: flex;
}

.mobile-menu-search .search-field {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: var(--radius) 0 0 var(--radius);
}

.mobile-menu-search .search-submit {
    padding: 10px 15px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.mobile-navigation {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-menu-list .sub-menu {
    padding-right: 20px;
}

.mobile-menu-list .sub-menu li a {
    font-weight: 400;
    font-size: 0.9rem;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

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

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

.comment-author .fn {
    font-weight: 600;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    margin-right: 75px;
    line-height: 1.7;
}

.reply a {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.comment-respond {
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    margin-bottom: 15px;
}

.comment-form .form-submit {
    margin-top: 10px;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    border-radius: var(--radius) 0 0 var(--radius);
    border-left: none;
}

.search-submit {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Mixed Layout for Archives */
.posts-mixed {
    display: flex;
    gap: 20px;
}

.posts-mixed .post-featured {
    flex: 1;
}

.posts-mixed .posts-small-list {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 991px) {

    .block-style-mixed .block-content,
    .posts-mixed {
        flex-direction: column;
    }

    .block-style-mixed .posts-small-list,
    .posts-mixed .posts-small-list {
        width: 100%;
    }
}