/*
 Theme Name:   Twenty Twenty-Five Child
 Theme URI:    https://tecexplr.mawtny.com/
 Description:  قالب فرعي لتعديلات القالب الأساسي
 Author:       اسمك
 Author URI:   https://mawtny.com/
 Template:     twentytwentyfive
 Version:      1.0.0
*/


 :root {
  --tajawal-size-adjust: 100%;
  --tajawal-ascent-override: 90%;
  --tajawal-descent-override: 20%;
  --tajawal-line-gap-override: 0%;
}

@font-face {
  font-family: 'Tajawal';
  font-display: swap;
  src: url('fonts/Tajawal-Regular.woff2') format('woff2');
  size-adjust: var(--tajawal-size-adjust);
  ascent-override: var(--tajawal-ascent-override);
  descent-override: var(--tajawal-descent-override);
  line-gap-override: var(--tajawal-line-gap-override);
}

body {
  font-family: 'Tajawal', sans-serif;
  font-display: swap;
}

a {
text-decoration: none !important;
}



.entry-content h2 {
border-bottom: 2px solid #c4302b;
padding-bottom: 8px;
}



.entry-content h3 {
  border-bottom: 2px solid #117864;
  padding-bottom: 8px;
  display: inline-block;
}

/* خريطة RSS */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.card {
    flex: 1 1 220px;
    min-width: 250px;
    border: 1px solid #cc0000;
    border-radius: 10px;
    overflow: hidden;
}
.card-header {
    padding: 15px;
background: linear-gradient(90deg, #cc0000, #ff1a1a);
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header a {
    background-color: black;
    color: white !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}
.card-header a:hover {
    background-color: #333 !important;
}
.card-desc {
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
}
.card-section-title {
    padding: 12px 15px;
    background-color: #f8f8f8;
    font-weight: bold;
    font-size: 17px;
    color: #cc0000;
}
.card-content {
    padding: 10px;

}
.wp-block-rss__item-title a,.wp-block-latest-posts a {
  border: 2px solid #ddd !important;
display: block;
  padding: 5px;
  margin-bottom: 5px;
}


.wp-block-rss__item-publish-date,.wp-block-latest-posts__post-date {
  font-size: 12px !important;
  color: #6c757d;
  display: block;
}

/* تنسيق صندوق المقتطف */
.wp-block-rss__item-excerpt,.wp-block-latest-posts__post-excerpt {
  font-size: 16px;
  color: #333; /* لون أسود خفيف */
  background-color: #fafafa; /* خلفية فاتحة */
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  
}







@media (max-width:768px) {
  .wp-block-group.alignwide {
    padding: 15px !important;
  }
  .wp-block-navigation {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}




/* مسافة بين main و footer */
main {
  margin-bottom: 40px; /* 40px مسافة تحت الـ main */
}

/* أو بدلاً من ذلك تضيف مسافة فوق الفوتر */
footer {
  margin-top: 40px; /* مسافة فوق الفوتر */
}




  
  

  h1 {
    text-align: center;
    color: #cc0000;
    margin-bottom: 25px;
    font-size: 28px;
  }





/* تنسيق الحقول */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}




/* تنسيق حقل الرسالة */
.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

/* رسائل الاستجابة */
.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.wpcf7-validation-errors {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba !important;
}

.wpcf7-spinner {
    margin: 0 auto;
    display: block;
}



.wpcf7-submit {
  /* التنسيق الأساسي */
  background-color: #007cba;
  color: #ffffff;
  border: 2px solid #007cba;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  
  /* لتحسين الأداء */
  will-change: transform, background-color, border-color;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  
  /* للتأكد من التوافق مع جميع المتصفحات */
  display: inline-block;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  user-select: none;
  line-height: 1.5;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus {
  background-color: #005a87;
  border-color: #005a87;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wpcf7-submit:disabled {
  background-color: #cccccc;
  border-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* للتركيز على إمكانية الوصول */
.wpcf7-submit:focus {
  outline: 2px solid #005a87;
  outline-offset: 2px;
}

/* لتحسين الأداء على الأجهزة التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
  .wpcf7-submit:hover {transform: none;}
}
@media (max-width: 768px) {
  .wpcf7-submit {padding: 14px 20px;width: 100%;max-width: 100%;}
}  



.entry-content {
  font-size: 1.2rem;
}


/* روابط داخل المقالات */
.entry-content a {
  color: #1a0dab; /* أزرق واضح */
  text-decoration: underline; /* خط سفلي */
  font-weight: 500; /* زيادة الوزن قليلاً */
  transition: all 0.3s ease;
}

/* تأثير عند مرور الماوس */
.entry-content a:hover {
  color: #0d47a1; /* لون أغمق عند التمرير */
  background-color: #e3f2fd; /* خلفية خفيفة */
  text-decoration: none; /* إزالة الخط إذا أردت */
  border-bottom: 2px solid #0d47a1;
  padding-bottom: 2px;
}


/* أيقونة التصنيف والتاريخ في الصفحة الرئيسية*/
.post-meta {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.post-meta span,
.post-meta span a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: 4px;
}

.post-meta span::before {
  font: normal 16px/1 dashicons; /* يحدد خط Dashicons */
  display: inline-block;          /* مهم جداً ليكون بجانب النص */
  margin-right: 6px;              /* مسافة بين الأيقونة والنص */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: none;
}

.post-category::before {
  content: "\f318";      /* أيقونة التصنيف */
  color: #3498db;
}

.post-date::before {
  content: "\f469";      /* أيقونة التقويم */
  color: #0073aa;
}


.taxonomy-category a,.wp-block-post-author-name a,.wp-block-query-pagination a {
    font-weight:600;
    color:#34495e;
    background-color:#ecf0f1;
    transition:.3s;
    display:inline-block;
    text-decoration:none;
}

.taxonomy-category a,.wp-block-post-author-name a {
    font-size:16px;
    padding:4px 10px;
    border-radius:5px
}
.taxonomy-category a:hover {
    color:#34495e;
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0,0,0,.1)
}



.wp-block-query-pagination .wp-block-query-pagination__next,.wp-block-query-pagination .wp-block-query-pagination__previous,body,h3 {
    font-weight:700
}
.wp-block-comments h2 {
    font-size:28px;
    font-weight:700;
    color:#e74c3c;
    margin-bottom:25px;
    line-height:1.3;
    position:relative;
    display:inline-block
}

.wp-block-comments h2::after {
    content:"";
    display:block;
    width:60px;
    height:3px;
    background-color:#e74c3c;
    margin-top:8px;
    border-radius:2px
}

.wp-block-query-pagination {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:35px;
    flex-wrap:wrap
}
.wp-block-query-pagination a {
    padding:10px 18px;
    font-size:15px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.06)
}
.wp-block-query-pagination a:hover {
    color:#fff;
    background-color:#e74c3c;
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,.1)
}
.wp-block-query-pagination .is-active a {
    color:#fff;
    background-color:#e74c3c;
    cursor:default;
    transform:none;
    box-shadow:0 4px 12px rgba(0,0,0,.08)
}
.wp-block-query-pagination .wp-block-query-pagination__previous::before {
    content:"← "
}
.wp-block-query-pagination .wp-block-query-pagination__next::after {
    content:" →"
}
.wp-block-post-title a {
    display:inline-block;
    font-size:24px;
    font-weight:700;
    color:#2c3e50;
    text-decoration:none;
    position:relative;
    transition:color .3s
}
.wp-block-post-title a::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:3px;
    background-color:#e74c3c;
    transition:width .3s
}
.wp-block-post-title a:hover {
    color:#e74c3c
}
.wp-block-post-title a:hover::after {
    width:100%
}




.icon {
    width: 1em;
    height: 1em;
    color: #3498db;
vertical-align:middle;
margin-right:0.3em}





.section {
    margin: 20px 20px 30px;
  padding-bottom: 30px;
  position: relative;
}

.section:after {
  content: "";
  display: table;
  clear: both;
}

.section-title {
  background: #fff;
  padding:15px;
  border-radius:8px;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


.section a {
  text-decoration: none;
}

/* مسافات أكبر بين الأقسام */
.section + .section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* منع تداخل العناصر */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}


.footer-links ul li a,.menu-links a {
    text-decoration:none
}
.menu-links a,.more-link {
    display:block
}
a {
    text-decoration-thickness:1px!important;
    text-underline-offset:.1em
}
:where(.wp-site-blocks :focus) {
    outline-width:2px;
    outline-style:solid
}
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom:3px
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset:4px
}
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset:0
}
a,blockquote,caption,figcaption,h1,h2,h3,h4,h5,h6,li,p {
    text-wrap:pretty
}
.site-footer {
    background-color:#111;
    color:#fff;
    padding-top:40px
}
.footer-container {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:30px;
    max-width:1200px;
    margin:auto;
    padding:0 20px
}
.footer-brand {
    flex:1 1 250px;
    text-align:center
}
.footer-logo img {
    border-radius:50%;
    margin-bottom:10px
}
.footer-title {
    font-size:1.5rem;
    margin:5px 0
}
.footer-tagline {
    font-size:.9rem
}
.footer-links ul {
    list-style:none;
    padding:0
}
.footer-links ul li {
    margin:5px 0
}
.footer-links ul li a:hover {
    color:#ff9800
}
.footer-bottom {
    border-top:1px solid #333;
    margin-top:20px;
    padding:15px;
    text-align:center;
    font-size:.85rem
}
.social-icons {
    display:flex;
    gap:10px
}
.social-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:50%;
    color:#fff;
    transition:.3s
}
.social-icon.facebook {
    background:#1877f2
}
.social-icon.telegram {
    background:#08c
}
.social-icon:hover {
    transform:scale(1.1);
    opacity:.9
}
.main-header {
    background:#fff;
    border-bottom:1px solid #eee;
    padding:10px 15px;
    position:sticky;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    box-shadow:0 2px 5px rgba(0,0,0,.05);
    box-sizing:border-box
}
.main-header .container {
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1200px;
    margin:0 auto;
    width:100%
}
.logo img {
    height:60px;
    width:auto;
    max-width:250px
}
.header-actions {
    display:flex;
    align-items:center
}
.menu-toggle,.search-toggle {
    font-size:22px;
    background:0 0;
    border:none;
    cursor:pointer;
    color:#1a1a1a;
    padding:5px;
    margin-left:15px;
    position:absolute;
    left:15px;
    -webkit-tap-highlight-color:transparent
}
.screen-reader-text {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
#wpadminbar {
    z-index:99999!important
}
.offcanvas-menu {
    position:fixed;
    top:0;
    right:-100%;
    width:90%;
    max-width:320px;
    height:100vh;
    background:#1a1a1a;
    color:#fff;
    transition:.4s cubic-bezier(.23, 1, .32, 1);
    padding:20px 15px;
    display:flex;
    flex-direction:column;
    z-index:99999;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box
}
.offcanvas-menu.active {
    right:0
}
.close-btn {
    background:0 0;
    border:none;
    font-size:20px;
    color:#fff;
    cursor:pointer;
    align-self:flex-end;
    margin-bottom:15px;
    padding:5px
}
.search-box {
    display:flex;
    margin:15px 0;
    width:100%
}
.search-box input {
    flex:1;
    padding:12px 15px;
    border-radius:0 25px 25px 0;
    border:none;
    outline:0;
    font-size:16px;
    background:#f5f5f5;
    color:#333;
    -webkit-appearance:none
}
.search-box button {
    padding:12px 15px;
    border:none;
    border-radius:25px 0 0 25px;
    background:#0073aa;
    color:#fff;
    cursor:pointer;
    font-size:16px
}
.menu-links {
    list-style:none;
    padding:0;
    margin:7px 0;
    flex:1
}
.menu-links li {
    margin:5px 0;
    padding:4px 0;
    border-bottom:1px solid rgba(255,255,255,.1)
}
.menu-links a {
    color:#fff;
    font-size:17px;
    transition:color .3s;
    padding:8px 0;
    -webkit-tap-highlight-color:transparent
}
.menu-links a:hover {
    color:#0073aa
}
.offcanvas-overlay {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition:.3s
}
.offcanvas-overlay.active {
    opacity:1;
    visibility:visible
}
@media (max-width:768px) {
    .main-header {
        padding:10px
    }
    .logo img {
        height:45px
    }
    .menu-toggle,.search-toggle {
        font-size:18px;
        margin-left:10px
    }
    .offcanvas-menu {
        width:85%;
        padding:15px
    }
    .menu-links a {
        font-size:15px
    }
}
@media (max-width:480px) {
    .logo img {
        height:38px
    }
    .offcanvas-menu {
        width:90%;
        max-width:300px;
        padding:12px
    }
    .search-box button,.search-box input {
        padding:5px 12px
    }
    .menu-links li {
        margin:5px 0;
        padding:5px 0
    }
}
@media (hover:none) {
    .menu-links a:hover {
        color:#fff
    }
}
* {
    -webkit-text-size-adjust:100%;
    -moz-text-size-adjust:100%;
    -ms-text-size-adjust:100%
}




/* بانر الكوكيز */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
#cookie-banner p {
    margin: 0;
    flex: 1 1 60%;
}
#cookie-banner a {
    color: #0000ff;
    text-decoration: underline;
    margin-left: 10px;
}
.cookie-btn {
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* الزر الذي يحمل كلاسي cookie-btn و yes */
.cookie-btn.yes {
    background: #0000ff;
    color: #fff;
}

@media(max-width:768px){
    #cookie-banner { flex-direction: column; text-align:center; }
    #cookie-banner p { flex:1 1 100%; margin-bottom:10px; }
}