/*
Theme Name: مركز شنقيط للتحكيم والإستشارات القانونية
Theme URI: https://chinguittycentre.com
Author: Chinguitty Centre
Author URI: https://chinguittycentre.com
Description: قالب موقع مركز شنقيط للتحكيم والإستشارات القانونية - تصميم يعتمد على Tailwind CSS و Swiper.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: chinguittycentre
Tags: rtl-language-support, blog, one-column, custom-menu
*/

/* Legal Articles Section Styles */

.article-card {
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
    padding: 1rem; /* Add padding around the content */
    position: relative; /* Make article-card a positioning container for absolute elements */
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-icon {
    font-size: 1.5rem; /* Adjust the icon size */
    color: #a0aec0;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem; /* Position the icon at the top right */
    z-index: 1; /* Ensure the icon appears above other content */
}


/* Cairo Font Class */
.font-cairo {
  font-family: 'Cairo', sans-serif;
}

/* Hide arrows above article titles */
#legal-articles .cycloneslider-prev,
#legal-articles .cycloneslider-next {
    display: none !important;
}

/* Adjust slider dots position for articles */
#legal-articles .cycloneslider-pager {
    position: relative;
    bottom: 0;
     margin-top: 20px; /* Add some spacing */
    width: 100%;
    height: auto;
    text-align: center;
}
#legal-articles .article-dots {
    position: absolute;
    bottom: -15px; /* Adjust as needed to place dots under the cards */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem; /* Add some spacing */
}

#legal-articles .article-dots span {
     display: inline-block;
    margin: 0 4px;
    width: 12px;
    height: 12px;
    background: #333;
    vertical-align: top;
    font-size: 0;
    line-height: 0;
    -webkit-box-shadow: 1px 1px 2px 0px #000;
    box-shadow: 1px 1px 2px 0px #000;
     cursor: pointer;
}

#legal-articles .article-dots span.cycle-pager-active {
    background-color: #ccc;
}
/* adjust margins */
.cycloneslider-slide {
    margin-bottom: 30px;
}

/* تنسيقات قسم المكتبة القانونية */
.font-cairo {
    font-family: 'Cairo', sans-serif;
}

.articles-slider {
    padding-bottom: 40px;
}

.articles-slider .swiper-slide {
    height: auto;
}

.articles-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #CBD5E0;
    opacity: 1;
}

.articles-slider .swiper-pagination-bullet-active {
    background-color: #3B82F6;
}

.articles-slider .swiper-button-next,
.articles-slider .swiper-button-prev {
    top: 40%;
    color: #3B82F6;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.articles-slider .swiper-button-next::after,
.articles-slider .swiper-button-prev::after {
    font-size: 1.5rem;
}

/* تنسيقات صورة الملف الشخصي لأفراد هيئة التحكيم */
.post-author-avatar,
.author-avatar,
.authorphoto,
.avatar.photo,
.wp-block-post-author__avatar img,
.author-bio .avatar,
.post-author-info .avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #3B82F6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 15px !important;
}

/* حاوية صورة الملف الشخصي */
.post-author,
.author-bio,
.author-info,
.post-author-info,
.wp-block-post-author {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
}

/* تحسين مظهر اسم الكاتب */
.post-author-name,
.author-name,
.wp-block-post-author__byline,
.post-author-info h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 10px 0 5px !important;
}

/* تحسين مظهر وصف الكاتب */
.post-author-bio,
.author-bio p,
.author-description {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 8px 0 0 !important;
}

/* تنسيقات أيقونات التواصل الاجتماعي للمؤلف */
.author-social {
    margin-top: 12px !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
}

.author-social a {
    color: #3B82F6 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.author-social a:hover {
    color: #1d4ed8 !important;
    transform: translateY(-2px) !important;
}

/* تصميم متجاوب للصورة الشخصية */
@media (max-width: 768px) {
    .post-author-avatar,
    .author-avatar,
    .avatar.photo,
    .wp-block-post-author__avatar img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .post-author,
    .author-bio {
        padding: 15px !important;
    }
    
    .post-author-name,
    .author-name {
        font-size: 16px !important;
    }
}

textarea#comment

/* تنسيقات الصورة البارزة - صغيرة ودائرية */
.post-thumbnail,
article .wp-post-image,
.single-post .wp-post-image,
.featured-image img,
.post-featured-image img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #3B82F6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    margin: 0 auto 20px !important;
    display: block !important;
}

/* تنسيقات مقالات هيئة التحكيم */
.category-arbitration-members .post-thumbnail,
.category-arbitration .post-thumbnail,
.post-type-arbitrator .post-thumbnail {
    width: 100px !important;
    height: 100px !important;
    border-width: 3px !important;
}

/* إزالة الهامش من الصورة البارزة في المقالات الفردية */
.single-post .entry-content > .post-thumbnail:first-of-type,
.single-post .entry-content > img:first-of-type {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* تصميم متجاوب للصورة البارزة */
@media (max-width: 768px) {
    .post-thumbnail,
    article .wp-post-image,
    .single-post .wp-post-image {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .post-thumbnail,
    article .wp-post-image,
    .single-post .wp-post-image {
        width: 80px !important;
        height: 80px !important;
        border-width: 2px !important;
    }
}

/* ---------- Base & layout fallbacks ---------- */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
    color: #1e293b;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Horizontal primary navigation */
.nav-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-container ul,
.nav-container ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-container li {
    list-style: none;
    display: inline-block;
}

.nav-container a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-container a:hover {
    color: #eab308;
}

/* Hero slider */
#hero-slider {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #1e3a8a;
    background-size: cover;
    background-position: center;
}

/* WordPress alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }

/* Widgets */
.widget {
    margin-bottom: 1.5rem;
}

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

/* Comments / pagination links */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    color: #1d4ed8;
    text-decoration: none;
    background: #ffffff;
}

.page-numbers.current {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}