/*
Theme Name: Muealimun Theme
Theme URI: http://muealimun.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: muealimun-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 {
    overflow-x: hidden;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
  flex: 1;
}

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

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

header {
    background: #fff;
    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: #6d1647 !important;
}

.main-navbar-color {
    color: #6d1647 !important;
}

.hero-section {
    background-image: url('https://muealimun.org.sa/wp-content/uploads/2025/08/HeroBanner.webp');
    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%, #6D1647 100%);
}

.btn-primary-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6d1647;
    --bs-btn-border-color: #6d1647;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5a133a;
    --bs-btn-hover-border-color: #541236;
    --bs-btn-focus-shadow-rgb: 130, 22, 71, .5;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #541236;
    --bs-btn-active-border-color: #4d1031;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6d1647;
    --bs-btn-disabled-border-color: #6d1647;
}

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

.btn-outline-custom:hover {
    background-color: #fff;
    color: #6d1647;
}

/* 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 */
.icons-section {
  background-color: #fdfdf6;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each Icon Box */
.icon-box {
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 0 transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Icon Image */
.icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.icon-box:hover .icon-img {
  transform: scale(1.1);
}

/* Text Label */
.icon-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
}

/* Responsive Scaling */
@media (max-width: 1200px) {
  .icon-img {
    width: 75px;
    height: 75px;
  }
  .icon-label {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .icon-img {
    width: 70px;
    height: 70px;
  }
  .icon-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .icon-img {
    width: 60px;
    height: 60px;
  }
  .icon-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .icon-img {
    width: 50px;
    height: 50px;
  }
  .icon-label {
    font-size: 0.9rem;
  }
}

/* تأكد أن السلايدر نفسه لا يخرج من section */
section.news {
  background: #6d1647;
  overflow: hidden;
  position: relative;
}

/* منع الصورة من الخروج */
.recent-post-carousel img,
.recent-post-slider img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* منع عناصر السلايدر من تجاوز العرض */
.recent-post-carousel .post-carousel-item,
.recent-post-slider .post-carousel-item {
  box-sizing: border-box;
  padding: 10px;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* خاصية RTL للسلايدر في حال كان يخرب التنسيق */
.recent-post-carousel .slick-track,
.recent-post-slider .slick-track {
  direction: rtl !important;
}

/* ضبط أسهم التنقل */
.recent-post-carousel .slick-prev,
.recent-post-carousel .slick-next,
.recent-post-slider .slick-prev,
.recent-post-slider .slick-next {
  z-index: 99;
  top: 50% !important;
  transform: translateY(-50%);
}

/* posts css slider */
.wppsac-post-carousel.design-1  .wppsac-post-title a {
    color: #fff;
}

.wppsac-sub-content{
    color: #fff;

}
.wppsac-post-date{
    color: #fff;
}
.wppsac-readmorebtn{
    background-color: #fff;
}

.wppsac-carousel-slides .slick-slide .slick-current .slick-active{
    background-color: #eeeded !important;
    padding: 10px;
}

/*Start Events Section*/
.events {
    width: 100%;
    padding: 0;
    background: #fff;
    height: auto;
    display: flex;
    align-items: stretch;
    margin: 0;
    box-sizing: border-box;
}

/*Start Mempership Section*/
.membership-section {
    background: #ffffff;
    border-radius: 1.5rem;
}

.membership-section ul {
    padding-right: 1.5rem;
}

.membership-section .btn-primary-custom {
    background: #6d1647;
    border: none;
    color: #fff;
    border-radius: 2rem;
    transition: background 0.2s;
}

.membership-section .btn-primary-custom:hover {
    background: #9e2063;
}

.membership-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.membership-section .membership-text-col {
    background: #2881a0;
    color: #fffdfd;
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    margin-bottom: 1rem;
}

.membership-section .membership-text-col h2,
.membership-section .membership-text-col h4,
.membership-section .membership-text-col h5,
.membership-section .membership-text-col p,
.membership-section .membership-text-col ul,
.membership-section .membership-text-col li {
    color: #fffdfd !important;
}

.membership-section .membership-text-col .btn-primary-custom {
    background: #fffdfd;
    color: #6d1647;
    border: none;
}

.membership-section .membership-text-col .btn-primary-custom:hover {
    background: #e5e5e5;
    color: #6d1647;
}

@media (max-width: 991.98px) {
    .membership-section {
        border-radius: 1rem;
        padding: 1.5rem 0.5rem;
    }

    .membership-section h2 {
        font-size: 1.5rem;
    }

    .membership-section h4,
    .membership-section h5 {
        font-size: 1.1rem;
    }

    .membership-section p,
    .membership-section ul {
        font-size: 0.95rem;
    }

    .membership-img {
        max-width: 400px;
    }

    .membership-section .membership-text-col {
        padding: 1.5rem 1rem;
        border-radius: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .membership-section {
        border-radius: 0.7rem;
        padding: 1rem 0.2rem;
    }

    .membership-section h2 {
        font-size: 1.1rem;
    }

    .membership-section h4,
    .membership-section h5 {
        font-size: 0.9rem;
    }

    .membership-section p,
    .membership-section ul {
        font-size: 0.8rem;
    }

    .membership-img {
        max-width: 250px;
    }

    .membership-section .membership-text-col {
        padding: 1rem 0.5rem;
        border-radius: 0.5rem;
    }
}

/* Start of Stats Section */
.stats-section{
    background-image: url('https://muealimun.org.sa/wp-content/uploads/2025/08/statBackground.webp'); 
    background-size: cover; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
    min-height: 450px; 
    position: relative;
}

/* Start of Stats Section */
/* روابط تهمك */
.quicklinks-section {
  background-color: #f3f2f2;
}

.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;
  }
}

/* Start of Footer Section*/
footer{
    margin-top: auto !important;
}
.main-footer {
    background: #6d1647;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    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 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 2.1;
    padding: 0;
}

.main-footer .footer-list a li {
    margin-bottom: 0.5rem;
	color:#fff;
}
.main-footer .footer-list a li:hover {
	color:#ccc;
}

.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: #6d1647;
    transition: background 0.2s, color 0.2s;
    border: 2px solid #fff;
}

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

.main-footer .footer-copyright {
    background: #9e2063;
    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 #6d1647;
    }
}

@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: 1.5rem;
        height: 1.5rem;
        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.6rem;
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        margin-top: .5rem;
    }

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

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

/*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 */
/* button login*/
.user-dropdown .dropdown-toggle {
  background-color: transparent;
  color: #fff;
  border: none;
  font-weight: bold;
}

.user-dropdown .dropdown-menu {
  min-width: 180px;
  font-size: 14px;
}

.custom-login-btn {
  background-color: #6c1647;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  padding: 8px 16px;
  text-decoration: none;
  transition: 0.3s;
}

.custom-login-btn:hover {
  background-color: #9e2063;
  color: #fff;
}

/*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;
}

/*video section*/
        .video-section {
            background: url('https://muealimun.org.sa/wp-content/uploads/2025/08/HeroBanner.webp') no-repeat center center/cover;
            background-attachment: fixed;
            position: relative;
            color: white;
            padding: 50px 0;
        }

        .video-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 1;
        }

        .video-section .container {
            position: relative;
            z-index: 2;
        }

        .glass-text {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            padding: 20px;
            backdrop-filter: blur(10px);
            animation: fadeInUp 0.9s ease forwards;
        }

        .glass-text h3 {
            padding: 10px 0;
            margin-bottom: 15px;
            color: #fff;
            background-color: #6d1647;
            padding: 15px;
			border-radius:10px;
        }

        .glass-text p {
            font-size: 16px;
            line-height: 1.8;
            text-align: justify;
        }

        video {
            width: 100%;
            border-radius: 15px;
            animation: fadeInUp 0.9s ease forwards;
            animation-delay: 0.3s;
        }

        /* Animation keyframes */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
/*end of video section*/
/*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;
    }