/*
Theme Name: Muhtawa Theme
Theme URI: https://muhtawa.org.sa/
Author: Ahmed Qotb
Author URI: #
Description: Custom WordPress theme for جمعية محتوي للإعلام الرقمي with Bootstrap and RTL support
Version: 1.0
License: GPLv2 or later
Text Domain: Muhtawa-theme
*/
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Almarai', sans-serif;  
}

html,
body {
    background-image: url('assets/images/greyzz.webp');
    background-repeat: repeat;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

body {
    color: #222422;
    line-height: 1.6;
}

main {
  flex: 1;
}

a {
    color: #222422;
    text-decoration: none;
}

header {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.sub-navbar {
    background: #f4f7fb;
    padding: 0.5rem 2rem;
}

.sub-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* Main navbar and highlights */
.main-navbar-bg {
    background-color: #006e61 !important;
}

.main-navbar-color {
    color: #006e61 !important;
}

.hero-section {
    background-image: url('https://muhtawa.org.sa/wp-content/uploads/2026/01/HeroBanner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section .overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, #006e61 100%);
}

.btn-primary-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: #006e61;
    --bs-btn-border-color: #006e61;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00574d;
    --bs-btn-hover-border-color: #00574d;
    --bs-btn-focus-shadow-rgb: 130, 22, 71, .5;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00574d;
    --bs-btn-active-border-color: #00574d;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #006e61;
    --bs-btn-disabled-border-color: #006e61;
}

.btn-outline-custom {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-custom:hover {
    background-color: #fff;
    color: #006e61;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .hero-section .position-relative.z-2.d-flex.flex-column.align-items-right.w-50.p-5 {
        width: 100% !important;
        padding: 2rem 1rem !important;
        align-items: flex-start !important;
    }

    .hero-section {
        min-height: 50vh;
        background-position: center top;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {

    .top-bar .container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .hero-section {
        min-height: 40vh;
        background-position: center top;
        padding: 1rem 0;
    }

    .hero-section .position-relative.z-2.d-flex.flex-column.align-items-right.w-50.p-5 {
        width: 100% !important;
        padding: 1rem !important;
        align-items: flex-start !important;
    }

    .main-navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 30vh;
        background-position: center top;
        padding: 0.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.1rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
    }

    .top-bar img {
        height: 40px !important;
    }
}

/* Utility for overlay z-index fix */
.overlay {
    z-index: 1;
}

.position-relative.z-2 {
    z-index: 2;
}

/* Icons Section Responsive Styles */

  
.img-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px 15px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: all 0.35s ease;
    height: 100%;
  }
  
  .img-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.25);
    cursor: pointer;
  }
  
  .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e9f7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #198754;
    transition: all 0.35s ease;
  }
  
  .img-card:hover .icon-box {
    background: #198754;
    color: #fff;
    transform: scale(1.1);
  }
  
  .img-card h6 {
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .img-card a {
    font-size: 13px;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    position: relative;
  }
  
  .img-card a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #198754;
    transition: width 0.3s ease;
  }
  
  .img-card:hover a {
    color: #198754;
  }
  
  .img-card:hover a::after {
    width: 100%;
  }
  
  
  
/* News Section Responsive Styles */

.news {
    background: #01463E;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.news .row {
    row-gap: 2.5rem;
}

.news-card {
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    background-color: #ebe4e7 !important;
}

.news-card .card-img-top {
    border-radius: 1rem !important;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.news-card .card-title {
    color: #2a2929;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-card .card-text {
    color: #2a2929;
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .news h2 {
        font-size: 2rem;
    }

    .news-card .card-img-top {
        height: 180px;
    }

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

    .news-card .card-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .news h2 {
        font-size: 1.3rem;
    }

    .news {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .news-card .card-img-top {
        height: 120px;
    }

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

    .news-card .card-text {
        font-size: 0.9rem;
    }

    .news .row {
        row-gap: 1.5rem;
    }
}
/* Evets Section Responsive Styles */
.events {
    width: 100%;
    padding: 0;
    height: auto;
    display: flex;
    align-items: stretch;
    margin: 0;
    box-sizing: border-box;
}
/* Membership Section Responsive Styles */
/* ===== Membership Section ===== */
.membership-section {
    background-image: url("assets/images/membershipBackground.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
  }
  
  /* Title */
  .section-title {
    font-size: 2.6rem;
  }
  
  /* Text Card */
  .membership-text-col {
    background: linear-gradient(135deg, #399e5a, #2f8f4a);
    border-radius: 1.4rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  }
  
  .membership-text-col h3,
  .membership-text-col h5,
  .membership-text-col p,
  .membership-text-col li {
    color: #fff;
  }
  
  /* Benefits list */
  .benefits-list li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .benefits-list li::before {
    content: "✔";
    position: absolute;
    right: 0;
    top: 0;
    color: #e8ffef;
    font-weight: bold;
  }
  
  /* Price */
  .price-box {
    background: rgba(255,255,255,0.15);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(6px);
  }
  
  .price-box span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
  }
  
  .price-box strong {
    font-size: 1.15rem;
  }
  
  /* Button */
  .btn-primary-custom {
    background: #ffffff;
    color: #006e61;
    border-radius: 2rem;
    border: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
  }
  
  .btn-primary-custom:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
  }
  
  /* Video Frame */
  .video-frame {
    background: #ffffff;
    padding: 14px;
    border-radius: 1.8rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  }
  
  .video-frame video {
    width: 100%;
    border-radius: 1.4rem;
    display: block;
    object-fit: cover;
  }
  
  /* ===== Responsive ===== */
  
  /* Tablets */
  @media (max-width: 991.98px) {
    .section-title {
      font-size: 2rem;
    }
  
    .membership-text-col {
      padding: 2rem 1.5rem;
    }
  
    .video-frame {
      max-width: 100%;
    }
  }
  
  /* Mobile */
  @media (max-width: 575.98px) {
    .membership-section {
      border-radius: 0.8rem;
    }
  
    .section-title {
      font-size: 1.6rem;
    }
  
    .membership-text-col {
      padding: 1.5rem 1rem;
      border-radius: 1rem;
    }
  
    .benefits-list li {
      font-size: 0.85rem;
    }
  
    .price-box strong {
      font-size: 1rem;
    }
  }
  

/* Start of Stats Section */
/* روابط تهمك */

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.quicklink-box {
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;

}

.quicklink-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.quicklink-img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.quicklink-box:hover .quicklink-img {
  transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 1200px) {
  .quicklink-img {
    max-height: 90px;
  }
}

@media (max-width: 992px) {
  .quicklink-img {
    max-height: 80px;
  }
}

@media (max-width: 768px) {
  .row-cols-4 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .quicklink-img {
    max-height: 70px;
  }
}

@media (max-width: 576px) {
  .quicklink-img {
    max-height: 60px;
  }
}
/* Footer css */
/* Start of Footer Section*/
footer{
    margin-top: auto !important;
}
.main-footer {
    background: #006e61;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    margin-top: 2rem;
    overflow: hidden;
}

.main-footer .footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.main-footer .footer-line {
    border: none;
    border-top: 2px solid #fff;
    width: 80%;
    opacity: 1;
}

.main-footer .footer-list a li {
    margin-bottom: 0.5rem;
	color:#fff;
}
.main-footer .footer-list a li:hover {
	color:#ccc;
}
.main-footer .footer-list {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 2.1;
    padding: 0;
}

.main-footer .footer-list li {
    margin-bottom: 0.5rem;
}

.main-footer .footer-social {
    gap: 1.5rem !important;
}

.main-footer .footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.95rem;
    border-radius: 50%;
    background: #fff;
    color: #006e61;
    transition: background 0.2s, color 0.2s;
    border: 2px solid #fff;
}

.main-footer .footer-icon:hover {
    background: #006e61;
    color: #fff;
    border: 2px solid #fff;
}

.main-footer .footer-copyright {
    background: #01463e;
    color: #fff;
    font-size: .7rem;
    width: 60%;
    margin: 2rem auto 0 auto;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.main-footer,
.main-footer .footer-list,
.main-footer .footer-contact {
    text-align: right !important;
}

@media (min-width: 992px) {
    .main-footer .row>div:not(:last-child) {
        border-left: 2px solid #fff;
    }

    .main-footer .row>div:not(:first-child) {
        border-right: 2px solid #006e61;
    }
}

@media (max-width: 991.98px) {
    .main-footer .footer-title {
        font-size: 1rem;
    }

    .main-footer .footer-list {
        font-size: 0.85rem;
    }

    .main-footer .footer-icon {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.8rem;
    }

    .main-footer .row>div {
        border: none !important;
        margin-bottom: 1.5rem;
    }

    .main-footer .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .main-footer {
        padding-top: 2rem;
    }

    .main-footer .footer-copyright {
        width: 90%;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .main-footer {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        padding-top: 1rem;
    }

    .main-footer .footer-title {
        font-size: 0.9rem;
    }

    .main-footer .footer-list {
        font-size: 0.75rem;
    }

    .main-footer .footer-icon {
        width: 1rem;
        height: 1rem;
        font-size: 0.6rem;
    }

    .main-footer .footer-line {
        width: 50%;
    }

    .main-footer .footer-contact {
        margin-bottom: 1.5rem;
    }

    .main-footer .footer-copyright {
        width: 98%;
        font-size: 0.9rem;
        border-top-left-radius: 0.7rem;
        border-top-right-radius: 0.7rem;
        margin-top: 1rem;
    }

    .main-footer .row {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: right !important;
    }

    .main-footer .row>div {
        margin-bottom: 1rem;
    }
}

/* Start of Stats Section */
.stats-section{
    background-image: url('assets/images/statBackground.png'); 
    background-size: cover; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
    min-height: 450px; 
    position: relative;
}

/*disable featured image */
/* eventin */
.css-1xopvnz {
	display: none;
}
/*Event Title*/
.etn-event-single-content-wrap .etn-event-entry-title {
        CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
        font-size: 42px;
        line-height: 1.7;
    }

    /*For custome bullet in Elementor
Restore bullets in Elementor (Bootstrap RTL compatible) */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  list-style-position: inside;
  padding-right: 0; /* for RTL */
  padding-left: 1.5rem; /* fallback for LTR */
  margin: 1em 0;
}

.elementor-widget-text-editor ul {
  list-style-type: disc;
}

.elementor-widget-text-editor ol {
  list-style-type: decimal;
}

.elementor-widget-text-editor li {
  margin-bottom: 0.5rem;
}

body.rtl .elementor-widget-text-editor ul,
body.rtl .elementor-widget-text-editor ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

/* End of Custome Bullet */

/*UMP css */
form[class*="ihc-form"],
.ihc-login-form-wrap,
.impu-form-line-fr,
.iump-form-line-register {
    direction: rtl !important;
    text-align: right !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    direction: rtl !important;
    text-align: right !important;
}

/* إزالة أيقونة إظهار كلمة المرور 👁 */
.ihc-hide-login-pw,
.ihc-hide-pw {
    display: none !important;
}

.ihc-register-9 .iump-labels-register {
    text-align: right;
}
/* Forms css */
.forminator-iti-input.iti.iti--allow-dropdown .iti__country-container{
right:auto !important;
left:0 !important;
}
span.forminator-icon-calendar {
position: absolute;
left: 0;
}
span.forminator-radio-bullet {
margin: 0px 5px;
}
/* Event Section */
.event-tab-wrapper ul li a.etn-tab-a, .event-tab-wrapper ul li a.etn-tab-a.etn-active{
font-size:1.8rem;
}

/* For blog page*/
article h2 {
    line-height: 1.6;
}

.pagination {
    direction: ltr; /* مهم للأرقام */
}

.pagination .page-numbers {
    margin: 0 4px;
}

.bi {
    vertical-align: middle;
}

/*for Post news*/
.wppsac-post-carousel.design-1 .wppsac-post-title a {
    color: #fff;
}
.wppsac-post-content-position {
    color: #fff;
}
.wppsac-post-content .wppsac-readmorebtn {
    padding: 4px 12px;
    margin: 8px 0 8px 0;
    border: 1px solid #e7e7e7;
    color: #888;
    display: inline-block;
    font-size: 12px;
    -webkit-transition: all 0.5s ease-out 0s;
    transition: all 0.5s ease-out 0s;
    background-color: #ccc;
}
/*Display Stat*/
.stats-section{
	display:none !important;
}

/*3d Flib*/
.ctrls .prev, .ctrls .next {
    background-color: #006e61;
    padding: 5px;
    margin: 0px 30px;
}
/*END 3d Flib*/
