/**
 * Jory News Theme - Responsive Stylesheet
 * التنسيقات المتجاوبة
 *
 * @package flavor-flavor-flavor
 */

/* ==========================================================================
   Large Desktops (max-width: 1400px)
   ========================================================================== */

@media (max-width: 1400px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .homepage-sidebar,
    .sidebar {
        width: 280px;
    }
}

/* ==========================================================================
   Desktops (max-width: 1200px)
   ========================================================================== */

@media (max-width: 1200px) {
    .primary-menu>li>a {
        padding: 10px 12px;
    }

    .slide-image img {
        height: 400px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

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

/* ==========================================================================
   Tablets (max-width: 992px)
   ========================================================================== */

@media (max-width: 992px) {

    /* Header */
    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-wrapper {
        flex-wrap: wrap;
    }

    /* Homepage */
    .homepage-blocks-wrapper {
        flex-direction: column;
    }

    .homepage-sidebar,
    .sidebar {
        width: 100%;
    }

    /* Single Post */
    .single-post .content-wrapper,
    .archive-page .content-wrapper {
        flex-direction: column;
    }

    /* Mixed Block */
    .block-style-mixed .block-content {
        flex-direction: column;
    }

    .block-style-mixed .posts-small-list {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .block-style-mixed .posts-small-list .post-small {
        width: calc(50% - 10px);
    }

    /* Slider */
    .slide-image img {
        height: 350px;
    }

    .slide-content {
        padding: 25px;
    }

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

    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Small Tablets (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Typography */
    h1,
    .entry-title {
        font-size: 1.5rem;
    }

    h2,
    .page-title {
        font-size: 1.25rem;
    }

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar-right,
    .top-bar-left {
        justify-content: center;
    }

    /* Header */
    .site-branding .site-title {
        font-size: 1.5rem;
    }

    /* Slider */
    .slide-image img {
        height: 300px;
    }

    .slide-title {
        font-size: 1.25rem;
    }

    .slide-excerpt {
        display: none;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
    }

    /* Posts Grid */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .post-card .post-thumbnail img {
        height: 160px;
    }

    /* Post List */
    .post-list {
        flex-direction: column;
    }

    .post-list .post-thumbnail {
        width: 100%;
    }

    .post-list .post-thumbnail img {
        height: 200px;
    }

    /* Category Block */
    .category-block {
        padding: 20px;
    }

    /* Single Article */
    .single-article .entry-header,
    .single-article .entry-content,
    .single-article .entry-footer {
        padding: 20px;
    }

    .single-article .entry-title {
        font-size: 1.5rem;
    }

    /* Author Box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box .author-avatar {
        margin: 0 auto;
    }

    /* Related Posts */
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-widgets-wrapper.footer-col-4,
    .footer-widgets-wrapper.footer-col-3,
    .footer-widgets-wrapper.footer-col-2 {
        grid-template-columns: 1fr;
    }

    .footer-info {
        flex-direction: column;
        gap: 15px;
    }

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Breaking News */
    .breaking-news-wrapper {
        flex-wrap: wrap;
    }

    .breaking-news-label {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .breaking-news-slider {
        order: 3;
        width: calc(100% - 60px);
    }

    .breaking-news-nav {
        order: 2;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    /* Comments */
    .comment-content {
        margin-right: 0;
        margin-top: 10px;
    }

    /* 404 Page */
    .error-code {
        font-size: 5rem;
    }

    .suggested-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Mobile Phones (max-width: 576px)
   ========================================================================== */

@media (max-width: 576px) {

    /* General */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Top Bar */
    .top-bar-right,
    .top-bar-left {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-date {
        width: 100%;
        justify-content: center;
    }

    /* Header */
    .site-branding .site-title {
        font-size: 1.25rem;
    }

    .site-branding .site-description {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    /* Slider */
    .slide-image img {
        height: 250px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-title {
        font-size: 1.1rem;
    }

    .slide-meta {
        font-size: 0.75rem;
    }

    .slider-nav button {
        width: 35px;
        height: 35px;
    }

    .slider-prev {
        right: 10px;
    }

    .slider-next {
        left: 10px;
    }

    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card .post-thumbnail img {
        height: 200px;
    }

    /* Block Header */
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Mixed Block */
    .block-style-mixed .posts-small-list .post-small {
        width: 100%;
    }

    /* Most Read */
    .most-read-item {
        flex-wrap: wrap;
    }

    .most-read-item .item-number {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .most-read-item .post-thumbnail {
        width: 100%;
    }

    .most-read-item .post-thumbnail img {
        width: 100%;
        height: 150px;
    }

    /* Single Article */
    .single-article .entry-header,
    .single-article .entry-content,
    .single-article .entry-footer {
        padding: 15px;
    }

    .single-article .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Social Share */
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Related Posts */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    /* Post Navigation */
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Widgets */
    .widget {
        padding: 15px;
    }

    /* Sidebar Widgets */
    .recent-posts-widget .post-thumb,
    .popular-posts-widget .post-thumb {
        width: 60px;
    }

    .recent-posts-widget .post-thumb img,
    .popular-posts-widget .post-thumb img {
        width: 60px;
        height: 60px;
    }

    /* Footer */
    .footer-widgets {
        padding: 30px 0;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    /* 404 Page */
    .error-code {
        font-size: 4rem;
    }

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

    .suggested-posts {
        grid-template-columns: 1fr;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 0.8rem;
    }

    /* Search */
    .search-results-count {
        font-size: 0.9rem;
    }

    /* Comments */
    .comments-area {
        padding: 15px;
    }

    .comment-form input,
    .comment-form textarea {
        width: 100%;
    }
}

/* ==========================================================================
   Extra Small (max-width: 400px)
   ========================================================================== */

@media (max-width: 400px) {
    .site-branding .site-title {
        font-size: 1.1rem;
    }

    .slide-image img {
        height: 200px;
    }

    .slide-title {
        font-size: 1rem;
    }

    .category-block {
        padding: 15px;
    }

    .block-title span {
        padding: 5px 12px;
        font-size: 0.9rem;
    }

    .single-article .entry-title {
        font-size: 1.25rem;
    }

    .error-code {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .top-bar,
    .main-header,
    .breaking-news-bar,
    .breadcrumbs,
    .sidebar,
    .site-footer,
    .back-to-top,
    .social-share,
    .related-posts,
    .post-navigation,
    .comments-area,
    .ad-container {
        display: none !important;
    }

    .single-post .content-wrapper {
        display: block;
    }

    .single-article {
        box-shadow: none;
    }

    .single-article .entry-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    img {
        max-width: 100% !important;
    }
}