/**
 * Jory News Theme - Mobile Responsive Styles
 * تحسينات نسخة الموبايل والتابلت
 * 
 * Breakpoints:
 * - Tablet: < 1024px
 * - Mobile: < 768px
 * - Small Mobile: < 480px
 * - Extra Small: < 360px
 * 
 * @package jory-news-theme
 */

/* ============================================
   CSS Variables للموبايل
   ============================================ */
:root {
    --mobile-header-height: 60px;
    --mobile-topbar-height: 0px;
    --mobile-breaking-height: 36px;
    --mobile-section-gap: 24px;
    --mobile-card-gap: 12px;
    --mobile-padding: 15px;
    --touch-target-min: 44px;
}

/* ============================================
   1. إعدادات عامة - أساسيات RTL
   ============================================ */
@media (max-width: 1024px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* منع السكرول الأفقي */
    #page,
    .site,
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }

    /* تحسين أحجام الخطوط الأساسية */
    body {
        font-size: 15px;
        line-height: 1.65;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.05rem;
    }

    p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* أهداف اللمس - Minimum Touch Targets */
    a,
    button,
    input[type="submit"],
    .clickable,
    [role="button"] {
        min-height: var(--touch-target-min);
    }
}

/* ============================================
   2. الهيدر والتوب بار - Tablet
   ============================================ */
@media (max-width: 1024px) {

    /* إخفاء التوب بار على التابلت والموبايل */
    .top-bar-premium {
        display: none !important;
    }

    /* تحسين الهيدر */
    .main-header-premium {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        background: #fff;
    }

    .header-content-premium {
        padding: 12px 15px;
        min-height: 65px;
        gap: 15px;
    }

    /* شعار الموقع */
    .site-branding-premium {
        flex: 1;
    }

    .site-title-premium {
        font-size: 1.5rem;
        font-weight: 800;
        color: #1a365d;
    }

    .site-tagline-premium {
        display: none;
    }

    .site-logo-premium img {
        height: 45px;
    }

    /* إخفاء القائمة الرئيسية على الموبايل */
    .main-nav-premium {
        display: none;
    }

    /* زر الهامبورجر محسن */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #1a365d 0%, #2d5a8e 100%);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(26, 54, 93, 0.3);
    }

    .hamburger-icon span {
        background: #fff;
    }

    /* أزرار الهيدر */
    .header-actions-premium {
        gap: 10px;
    }

    .header-action-btn {
        width: 44px;
        height: 44px;
        background: #f1f5f9;
        border-radius: 12px;
    }

    .header-action-btn:hover {
        background: #1a365d;
        color: #fff;
    }

    .header-action-btn svg {
        width: 20px;
        height: 20px;
    }

    /* إخفاء زر CTA على الموبايل */
    .header-cta-btn {
        display: none;
    }

    /* إخفاء dropdown البحث على الموبايل */
    .header-search-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.9);
        z-index: 10000;
    }

    .search-dropdown-content {
        width: 100%;
        max-width: 400px;
    }

    .search-input-premium {
        font-size: 16px !important;
        /* منع التكبير التلقائي على iOS */
        padding: 15px !important;
    }
}

/* ============================================
   2. الهيدر والتوب بار - Mobile
   ============================================ */
@media (max-width: 768px) {
    .header-content-premium {
        padding: 8px 12px;
    }

    .site-title-premium {
        font-size: 1.2rem;
    }

    .site-logo-premium img {
        height: 35px;
    }

    .header-action-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .header-content-premium {
        padding: 8px 10px;
    }

    .site-title-premium {
        font-size: 1.1rem;
    }

    .site-logo-premium img {
        height: 32px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .header-action-btn {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   3. شريط الأخبار العاجلة
   ============================================ */
@media (max-width: 1024px) {
    .breaking-news-bar {
        padding: 0;
    }

    .breaking-inner {
        min-height: var(--mobile-breaking-height);
    }

    .breaking-label {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
    }

    .breaking-content {
        padding: 8px 12px;
    }

    .ticker-item {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .breaking-label {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .ticker-item {
        font-size: 13px;
        padding: 0 15px;
    }

    .item-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .breaking-label {
        padding: 6px 10px;
    }

    .breaking-content {
        padding: 6px 10px;
    }

    .ticker-item {
        font-size: 12px;
    }
}

/* ============================================
   4. السلايدر / Hero Section
   ============================================ */
@media (max-width: 1024px) {
    .hero-section-premium {
        padding: 15px 0 25px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* المقال الرئيسي */
    .hero-main {
        height: auto;
        min-height: 280px;
        max-height: 350px;
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    .hero-main-content {
        padding: 20px;
    }

    .hero-main-title {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-main-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
        margin-bottom: 15px;
    }

    .hero-main-category {
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .hero-meta-item {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-read-more {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Gradient overlay محسن */
    .hero-main-overlay {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.2) 40%,
                rgba(0, 0, 0, 0.85) 100%);
    }

    /* المقالات الجانبية */
    .hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-sidebar-post {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .hero-sidebar-image {
        width: 100%;
        height: 100px;
        border-radius: 8px;
    }

    .hero-sidebar-title {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-sidebar-category {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .hero-sidebar-date {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-section-premium {
        padding: 12px 0 20px;
    }

    .hero-main {
        min-height: 220px;
        max-height: 280px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .hero-main-content {
        padding: 15px;
    }

    .hero-main-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .hero-main-excerpt {
        display: none;
    }

    .hero-main-meta {
        gap: 8px;
    }

    .hero-meta-item {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .hero-read-more {
        display: none;
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-sidebar-post {
        flex-direction: row;
        padding: 10px;
    }

    .hero-sidebar-image {
        width: 100px;
        height: 75px;
    }

    .hero-sidebar-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero-main {
        min-height: 180px;
        max-height: 220px;
        border-radius: 10px;
    }

    .hero-main-content {
        padding: 12px;
    }

    .hero-main-title {
        font-size: 1rem;
    }

    .hero-main-category {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .hero-sidebar-post {
        padding: 8px;
    }

    .hero-sidebar-image {
        width: 80px;
        height: 60px;
    }

    .hero-sidebar-title {
        font-size: 0.8rem;
    }
}

/* ============================================
   5. شبكة الأخبار / Cards
   ============================================ */
@media (max-width: 1024px) {

    /* قسم 40 خبر */
    .all-news-section {
        padding: var(--mobile-section-gap) 0;
    }

    .all-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .news-card-mini {
        border-radius: 12px;
    }

    .news-card-mini .card-image {
        height: 120px;
    }

    .news-card-mini .card-content {
        padding: 12px;
    }

    .news-card-mini .card-category {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .news-card-mini .card-title {
        font-size: 0.85rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-mini .card-meta {
        font-size: 0.7rem;
    }

    /* بطاقات Grid العامة */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .post-card-premium {
        border-radius: 12px;
    }

    .post-card-premium .card-image {
        height: 140px;
    }

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

    .post-card-premium .card-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .post-card-premium .card-meta {
        font-size: 0.75rem;
    }

    /* Placeholder للصور المفقودة */
    .card-image .no-thumbnail,
    .post-card-premium .card-image .no-thumbnail {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .no-thumbnail svg {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .all-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .news-card-mini .card-image {
        height: 100px;
    }

    .news-card-mini .card-content {
        padding: 10px;
    }

    .news-card-mini .card-title {
        font-size: 0.8rem;
    }

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

    .post-card-premium .card-image {
        height: 120px;
    }

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

    .post-card-premium .card-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .all-news-grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-card-gap);
    }

    .news-card-mini {
        display: flex;
        flex-direction: row;
    }

    .news-card-mini .card-image {
        width: 100px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 10px 0 0 10px;
    }

    .news-card-mini .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .news-card-mini .card-category {
        position: static;
        margin-bottom: 6px;
        width: fit-content;
    }

    .news-card-mini .card-title {
        font-size: 0.85rem;
    }

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

    .post-card-premium {
        display: flex;
        flex-direction: row;
    }

    .post-card-premium .card-image {
        width: 110px;
        height: 90px;
        flex-shrink: 0;
        border-radius: 12px 0 0 12px;
    }

    .post-card-premium .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================
   6. أقسام "آخر الأخبار" و"الأقسام"
   ============================================ */
@media (max-width: 1024px) {
    .section-header-premium {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .section-title-premium {
        font-size: 1.1rem;
        gap: 8px;
    }

    .section-title-premium svg {
        width: 22px;
        height: 22px;
    }

    .section-more-link {
        font-size: 0.8rem;
    }

    /* فصل بين الأقسام */
    section+section,
    .homepage-section+.homepage-section {
        margin-top: var(--mobile-section-gap);
    }

    /* Most Read & Editor's Picks */
    .dual-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .most-read-list,
    .editors-picks-list {
        gap: 12px;
    }

    .most-read-item,
    .editors-pick-item {
        padding: 12px;
        gap: 12px;
    }

    .most-read-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .most-read-title,
    .editors-pick-title {
        font-size: 0.9rem;
    }

    /* Video Section */
    .video-section .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .video-card .video-thumbnail {
        height: 120px;
    }

    .video-card .video-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .section-title-premium {
        font-size: 1rem;
    }

    section+section {
        margin-top: 20px;
    }

    .video-section .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .video-card .video-thumbnail {
        width: 140px;
        height: 90px;
        flex-shrink: 0;
    }

    .video-card .video-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .section-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-more-link {
        width: 100%;
        justify-content: center;
        padding: 10px;
        background: #f7fafc;
        border-radius: 8px;
    }
}

/* ============================================
   7. Typography - تحسينات الخطوط
   ============================================ */
@media (max-width: 768px) {

    /* أحجام الخط الأساسية */
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.2rem;
        line-height: 1.35;
    }

    h3 {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    h4 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    p,
    .content,
    .excerpt {
        font-size: 14px;
        line-height: 1.7;
    }

    /* تفاصيل صغيرة */
    .post-date,
    .post-category,
    .post-views,
    .meta-item,
    time,
    .author-name {
        font-size: 12px;
    }

    /* أزرار */
    button,
    .btn,
    a.button,
    input[type="submit"] {
        font-size: 14px;
        min-height: 44px;
        padding: 12px 20px;
    }

    /* منع الخط أقل من 12px */
    small,
    .small-text,
    .caption {
        font-size: 12px !important;
    }
}

/* ============================================
   8. Spacing - المسافات
   ============================================ */
@media (max-width: 768px) {

    /* المسافات بين الأقسام */
    .site-content {
        padding-top: 15px;
        padding-bottom: 30px;
    }

    section,
    .section {
        padding: 20px 0;
    }

    /* المسافات داخل الكروت */
    .card,
    .post-card,
    article.card {
        padding: 12px;
    }

    /* المسافات الجانبية */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* إزالة المسافات الزائدة */
    .hero-container,
    .section-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

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

    section,
    .section {
        padding: 16px 0;
    }
}

/* ============================================
   9. القائمة الجانبية / Mobile Menu
   ============================================ */
@media (max-width: 1024px) {
    .mobile-menu-panel {
        width: 280px;
    }

    .mobile-nav-list a {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-search input {
        font-size: 16px;
        /* منع التكبير على iOS */
        padding: 14px;
    }

    .mobile-phone-link {
        min-height: 48px;
    }

    .mobile-social a {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 260px;
    }

    .mobile-nav-list a {
        padding: 14px 16px;
        font-size: 14px;
    }

    .mobile-social a {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   10. الفوتر
   ============================================ */
@media (max-width: 1024px) {
    .footer-wave svg {
        height: 50px;
    }

    .footer-content {
        padding: 40px 0 30px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 14px;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .copyright,
    .developer {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .footer-wave svg {
        height: 40px;
    }

    .footer-content {
        padding: 30px 0 25px;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-title {
        justify-content: center;
        font-size: 0.95rem;
    }

    .footer-links a {
        justify-content: center;
        font-size: 13px;
    }

    .link-arrow {
        display: none;
    }

    .footer-contact li {
        justify-content: center;
        font-size: 13px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 25px 0 20px;
    }

    .footer-top {
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .footer-links-grid {
        gap: 20px;
    }

    .footer-title {
        margin-bottom: 14px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-contact li {
        margin-bottom: 12px;
    }

    .copyright,
    .developer {
        font-size: 12px;
    }
}

/* ============================================
   11. زر العودة للأعلى
   ============================================ */
@media (max-width: 768px) {
    .back-to-top-btn {
        left: 15px;
        bottom: 15px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        left: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

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

/* ============================================
   12. صفحة المقال الواحد
   ============================================ */
@media (max-width: 1024px) {
    .single-post .content-wrapper {
        grid-template-columns: 1fr;
    }

    .single-post .sidebar {
        margin-top: 30px;
    }

    .premium-article .entry-header {
        padding: 25px 20px 0;
    }

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

    .premium-article .entry-content {
        padding: 25px 20px;
        font-size: 15px;
    }

    .post-meta-box {
        flex-direction: column;
        gap: 15px;
    }

    .floating-share-buttons {
        display: none;
    }

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

@media (max-width: 768px) {
    .premium-article .entry-header {
        padding: 20px 15px 0;
    }

    .premium-article .entry-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .premium-article .category-label {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .premium-article .entry-content {
        padding: 20px 15px;
        font-size: 14px;
        line-height: 1.8;
    }

    .premium-article .entry-content h2 {
        font-size: 1.2rem;
    }

    .premium-article .entry-content h3 {
        font-size: 1.1rem;
    }

    .premium-article .entry-content blockquote {
        padding: 20px;
        font-size: 1rem;
    }

    .author-avatar-small img {
        width: 45px;
        height: 45px;
    }

    .stat-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

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

    .related-post-item {
        display: flex;
        flex-direction: row;
    }

    .related-thumbnail {
        width: 100px;
        flex-shrink: 0;
    }

    .related-thumbnail .related-img {
        height: 80px;
    }

    .related-content {
        padding: 10px;
    }

    .related-title {
        font-size: 0.9rem;
    }

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

    .nav-previous,
    .nav-next {
        width: 100%;
    }

    .nav-thumb {
        width: 60px;
        height: 50px;
    }

    .nav-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   13. صفحة الأرشيف والبحث
   ============================================ */
@media (max-width: 768px) {
    .archive-page .content-wrapper {
        grid-template-columns: 1fr;
    }

    .archive-page .sidebar {
        margin-top: 30px;
    }

    .page-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

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

    .archive-description {
        font-size: 14px;
    }

    /* Posts List */
    .posts-list {
        gap: 15px;
    }

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

    .post-list-item .list-thumbnail {
        width: 100%;
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .post-list-item .list-content {
        padding: 15px;
    }

    .list-title {
        font-size: 1.05rem;
    }

    .list-excerpt {
        font-size: 13px;
    }
}

/* ============================================
   14. Widgets / Sidebar
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        padding: 20px;
        background: #f8fafc;
        border-radius: 16px;
    }

    .widget {
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid #e2e8f0;
    }

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

    .widget-title {
        font-size: 1.05rem;
        margin-bottom: 15px;
    }
}

/* ============================================
   15. أزرار ومدخلات
   ============================================ */
@media (max-width: 768px) {

    /* جميع الأزرار */
    .btn,
    button,
    input[type="submit"],
    input[type="button"],
    a.button {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* الحقول النصية */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        min-height: 44px;
        padding: 12px 15px;
        font-size: 16px;
        /* منع التكبير على iOS */
        border-radius: 10px;
    }

    /* زر تحميل المزيد */
    .load-more-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ============================================
   16. تحسينات الأداء
   ============================================ */
@media (max-width: 768px) {

    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين الأنيميشن على الموبايل */
    .animate-slide-up,
    .animate-fade-in,
    [data-aos] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* تقليل الظلال للأداء */
    .card,
    .post-card,
    article {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* تقليل blur للأداء */
    .mobile-menu-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ============================================
   17. Print Styles (اختياري)
   ============================================ */
@media print {

    .top-bar-premium,
    .breaking-news-bar,
    .mobile-menu-toggle,
    .header-actions-premium,
    .back-to-top-btn,
    .footer-modern,
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none !important;
    }
}