/*
Theme Name: Jory News Theme
Theme URI: https://jooeri.com
Author: رحيييم
Author URI: https://jooeri.com
Description: قالب جوري نيوز - قالب ووردبريس إخباري احترافي باللغة العربية مع دعم كامل لاتجاه RTL ولوحة تحكم شاملة. Jory News Theme - Professional Arabic RTL News/Magazine WordPress Theme.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-flavor-flavor
Domain Path: /languages
Tags: news, magazine, blog, rtl-language-support, right-to-left, arabic, custom-logo, custom-menu, featured-images, theme-options, translation-ready, one-column, two-columns, grid-layout

قالب جوري نيوز
==============
قالب ووردبريس إخباري ومجلات احترافي مصمم خصيصًا للمواقع العربية.
يتميز بلوحة تحكم شاملة للتحكم في كل جزء من أجزاء القالب.

المطور: رحيييم
رقم الهاتف: 01024561824
*/

/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */

/* Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset Margins and Paddings */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

/* Base HTML Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #f5f5f5;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ol,
ul {
    list-style: none;
}

/* Blockquotes */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1em;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

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

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

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

button,
input[type="button"],
input[type="submit"],
.button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #0066cc;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
    background-color: #004499;
    transform: translateY(-2px);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

/* Alignments */
.alignleft {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 1.5em auto;
}

.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    padding: 10px 0;
}

/* Galleries */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.gallery-item {
    margin: 0;
    padding: 5px;
}

.gallery-columns-2 .gallery-item {
    width: 50%;
}

.gallery-columns-3 .gallery-item {
    width: 33.333%;
}

.gallery-columns-4 .gallery-item {
    width: 25%;
}

/* Page Links */
.page-links {
    clear: both;
    margin: 2em 0;
}

.page-links a {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    margin: 0 3px;
    border-radius: 3px;
}

/* ==========================================================================
   Site Structure
   ========================================================================== */

#page {
    overflow-x: hidden;
}

.site-content {
    padding: 30px 0;
}

.content-area {
    width: 70%;
    float: right;
}

.widget-area {
    width: 28%;
    float: left;
}

.no-sidebar .content-area {
    width: 100%;
    float: none;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
    position: fixed;
    top: -100%;
    right: 0;
    background: #0066cc;
    color: #fff;
    padding: 10px 20px;
    z-index: 99999;
    transition: top 0.3s ease;
}

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

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004499;
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Post Cards Premium Styles
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.post-card-premium {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.post-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #1a365d;
}

.post-card-premium .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.post-card-premium:hover .card-image img {
    transform: scale(1.1);
}

.post-card-premium .card-image .no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.post-card-premium .card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.post-card-premium .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 15px;
    color: #1a202c;
}

.post-card-premium .card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.post-card-premium:hover .card-title a {
    color: #1a365d;
}

.post-card-premium .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
}

.post-card-premium .card-date,
.post-card-premium .card-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-premium .card-date svg,
.post-card-premium .card-views svg {
    opacity: 0.7;
}

/* ==========================================================================
   Post List Premium Styles
   ========================================================================== */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-list-item {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 20px;
}

.post-list-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #1a365d;
}

.post-list-item .list-thumbnail {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-list-item .list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-list-item .list-thumbnail .no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.post-list-item .list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-list-item .list-category {
    display: inline-block;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.post-list-item .list-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #1a202c;
}

.post-list-item .list-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-list-item:hover .list-title a {
    color: #1a365d;
}

.post-list-item .list-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-list-item .list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 15px;
}

.post-list-item .list-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-list-item .list-meta svg {
    opacity: 0.7;
}

.post-list-item .list-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a365d;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.post-list-item .list-read-more:hover {
    color: #e53e3e;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .post-list-item .list-thumbnail {
        width: 200px;
        height: 150px;
    }
}

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

    .post-list-item {
        flex-direction: column;
    }

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