

@import url('assets/css/bootstrap.rtl.min.css');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
body {
    font-family: 'Rubik', 'Tajawal', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: #fff;
    color: #222;
    font-size: 1.1rem;
}

/* Custom border radius for all buttons */
button, .btn {
    border-radius: 10px 0px 10px 0px !important;
}
/* Color Palette */

:root {
    /* Mubarakah Project Colors */
    --mubarakah-primary: #3E1E68;
    --mubarakah-secondary: #5D2E8C;
    --mubarakah-accent: #2B3A67;
    --mubarakah-bg: #F5F5F2;
    --mubarakah-text: #000000;

    /* Bootstrap Color Variables Override */
    --bs-primary: #3E1E68;
    --bs-primary-rgb: 62, 30, 104;
    --bs-secondary: #5D2E8C;
    --bs-secondary-rgb: 93, 46, 140;
    --bs-accent: #2B3A67;
    --bs-accent-rgb: 43, 58, 103;
    --bs-body-bg: #F5F5F2;
    --bs-body-bg-rgb: 245, 245, 242;
    --bs-body-color: #000000;
    --bs-body-color-rgb: 0, 0, 0;
    --bs-link-color: #3E1E68;
    --bs-link-hover-color: #2B3A67;
    --bs-btn-hover-bg: #2B1449;
    --bs-btn-active-bg: #1F0E33;
    --bs-form-control-focus-border-color: #3E1E68;
    --bs-form-check-input-checked-bg-color: #3E1E68;
    --bs-alert-bg: #F5F5F2;
    --bs-alert-border-color: #3E1E68;
}

/* Header Bar */
.top-bar {
    background: var(--mubarakah-primary);
    color: #fff;
    font-size: 0.95rem;
    padding: 0.3rem 0;
}

/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 2px solid var(--mubarakah-gray);
    font-weight: 600;
}
.navbar-brand img {
    height: 120px;
}
.navbar-nav .nav-link {
    color: var(--mubarakah-dark);
    margin-left: 1.2rem;
    margin-right: 0;
    transition: color 0.2s;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {
    color: var(--mubarakah-primary);
}

/* Hero Section */
.slugan{
    border:2px dashed #5D2E8C;
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    font-weight: 400;
    font-size: 14px;
    color:#5D2E8C;
    margin-top: 50px;
}
.hero-text{
    font-size: 35px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 20px;
}
.title{
    color:#000;
    font-size: 30px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 20px;
}
.title span{
    color:#5D2E8C;
}

.title-sub{
    color:#4c4c4c;
    font-size: 14px;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 60%;
}
.item-feature{
    position: relative;
    text-align: right;
}
.item-feature .card{
    border-radius: 50px 0px 50px 0px !important;
}
.item-feature h3{
    color: #000;
    font-weight: 600;
    font-size: 16px;
    text-align: right;
    margin-top: 28px;
}
.item-feature .num{
    color: #FFF;
    background-color: #5D2E8C;
    font-size: 70px;
    margin-top: 20px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    float: left;
    position: absolute;
    left: 40px;
}
.item-feature p{
    color:#4c4c4c;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.hero-section {
    background: var(--mubarakah-light);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mubarakah-dark);
}
.hero-section .btn-primary {
    background: var(--mubarakah-primary);
    border: none;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    border-radius: 2rem;
    padding: 0.7rem 2.2rem;
    
}
.hero-section .btn-outline-primary {
    border-color: var(--mubarakah-primary);
    color: var(--mubarakah-primary);
    border-radius: 2rem;
    font-weight: 400 !important;
    padding: 0.7rem 2.2rem;
    font-size: 0.9rem !important;
    
}
.btn-outline-primary {
    border-color: var(--mubarakah-primary);
    color: var(--mubarakah-primary);
    border-radius: 2rem;
    font-weight: 400 !important;
    padding: 0.6rem 2rem;
    font-size: 0.9rem !important;
    border-radius: 30px 10px 30px 10px !important;
}
.hero-section .btn-outline-primary:hover {
    background: var(--mubarakah-primary);
    color: #fff;
}

/* Section Titles */
h2, .h2, h3, .h3 {
    font-weight: 800;
    color: var(--mubarakah-dark);
}

/* Cards */
.card {
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: none;
}
.card-title {
    color: var(--mubarakah-primary);
    font-weight: 700;
}

/* Features Section */
.feature-icon {
    color: var(--mubarakah-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Carousel */
.carousel-indicators [data-bs-target] {
    background-color: var(--mubarakah-primary);
}

/* Section backgrounds */
.section-bg {
    background: var(--mubarakah-light);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #3E1E68;
    color: #fff;
    font-weight: 400;
    border-top: 4px solid var(--mubarakah-primary);
}
footer a {
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s;
}
footer a:hover {
    opacity: 1;
    color: var(--mubarakah-accent);
}
.footer-copyright {
    background:#1F6AA5;
    color: #fff;
    padding: 0.8rem 0;
    font-size: 0.9rem;
}
.footer-copyright p{
    font-size: 12px;
    color:#FFF;
}
.list-unstyled li {
    margin-bottom: 0.5rem;
    font-weight: 300;
    margin-top: 20px;
    font-size: 15px;
}
/* Buttons */
.btn-primary {
    background: var(--mubarakah-primary);
    border: none;
    border-radius: 10px 30px 10px 30px !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 2rem;
    color: #fff;
    margin: auto;
}
.btn-primary:hover {
    background: #2B1449;
}
.btn-secondary {
    background: var(--mubarakah-secondary);
    border: none;
    border-radius: 2rem;
    font-weight: 400 !important;
    padding: 0.6rem 2rem;
    color: #fff;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
}
.btn-secondary:hover {
    background: #4A2570;
}
.btn-accent, .bg-accent {
    background: var(--mubarakah-accent) !important;
    border: none;
    color: #fff !important;
}
.btn-accent:hover {
    background: #1E2847 !important;
}

/* Bootstrap Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--mubarakah-primary);
    box-shadow: 0 0 0 0.25rem rgba(62, 30, 104, 0.15);
}
.form-check-input:checked {
    background-color: var(--mubarakah-primary);
    border-color: var(--mubarakah-primary);
}

/* Bootstrap Alerts */
.alert-primary {
    background-color: rgba(62, 30, 104, 0.08);
    border-color: var(--mubarakah-primary);
    color: var(--mubarakah-primary);
}
.alert-secondary {
    background-color: rgba(93, 46, 140, 0.08);
    border-color: var(--mubarakah-secondary);
    color: var(--mubarakah-secondary);
}

/* Bootstrap Links */
a, .link-primary {
    color: var(--mubarakah-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, .link-primary:hover {
    color: var(--mubarakah-accent);
}

body {
    background: var(--mubarakah-bg);
    color: var(--mubarakah-text);
}

.btn-primary:hover {
    background: #d32f2f;
}

/* Rounded images */
.img-rounded {
    border-radius: 1.5rem;
}

/* Custom utility classes */
.text-accent {
    color: var(--mubarakah-accent) !important;
}
.bg-accent {
    background: var(--mubarakah-accent) !important;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .hero-section {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .card {
        border-radius: 1rem;
    }
}

/* Add more custom styles as needed for sections, icons, and layout blocks */

/* Animations & Styles for About Us Page */


/* Timeline Styles - Cleaned and Fixed */

/* Timeline Styles - Horizontal */
.timeline-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
    margin-bottom: 100px;
}
.timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0 0 0;
}
.timeline:before {
    content: '';
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    height: 4px;
    /* background: #eee; */
    z-index: 0;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    position: relative;
    margin-bottom: 0;
    min-width: 180px;
    z-index: 1;
}
.timeline-icon {
    min-width: 60px;
    height: 60px;
    background: #f7b018;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(93,46,140,0.08);
    font-size: 32px;
    color: #FFF;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 2;
    box-shadow: 10px 10px 30px 0px rgba(42, 67, 113, 0.3);
    -webkit-box-shadow: 10px 10px 30px 0px rgba(42, 67, 113, 0.3);
    position: relative;
}

.timeline-icon::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 100%;
    width: 150px;
    height: 24px;
    background: url('assets/images/arrow.svg') no-repeat center center;
    background-size: contain;
    transform: translateY(-50%);
    z-index: 1;
}
.timeline-item:nth-child(2n) .timeline-icon::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 100%;
    width: 150px;
    height: 24px;
    background: url('assets/images/arrow.svg') no-repeat center center;
    background-size: contain;
    transform: translateY(-50%);
    z-index: 1;
}
.timeline-item:last-child .timeline-icon::before {
    display: none;
}

.timeline-icon .num {
    font-size: 1.5rem;
    color: #FFF;
    opacity: 1;
    font-weight: bold;
}
.timeline-content {
    /*
    background: #fff;
    border-radius: 30px 10px 30px 10px;
    box-shadow: 0 2px 12px rgba(43,58,103,0.07); */
    padding: 18px 0px 12px 0px;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    margin-top: 10px;
    min-height: 80px;
}
.timeline-content h3 {
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    max-width: 114px;
    display: block;
    margin: auto;
}
.timeline-svg {
    margin-bottom: 10px;
    margin-top: 22px;
    text-align: center;
}
@media (max-width: 991px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
    }
    .timeline:before {
        display: none;
    }
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 32px;
        min-width: unset;
    }
    .timeline-content {
        text-align: right;
        margin-top: 0;
       /* margin-right: 16px; */
        max-width: 100%;
    }
}
.timeline {
  position: relative;
  margin-left: 20px;
  /* border-right: 2px solid #eee; */
  position: relative;
  margin-right: 20px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s cubic-bezier(.4,2,.3,1);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-dot {
  width: 18px;
  height: 18px;
  background: #5D2E8C;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: -9px;
  left: auto;
  z-index: 2;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #eee;
}
.timeline-content {
  margin-left: 0;
  border-radius: 12px;
  padding: 18px 24px;
  /*   background: #fff;
  box-shadow: 0 2px 12px rgba(62,30,104,0.06);
  margin-right: 40px; */
}
.box-submit{
    background: #1F6AA5; padding: 40px 0; margin-bottom: 0px;
    position: relative;
    z-index: 1;

    background-image:
    linear-gradient(to right,rgba(31,106,165,0.95), rgba(31,106,165,0.5)),
    url('assets/images/bg-home.png');

  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;

}
/*
.box-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/bg-home.png');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: -1;
}
*/
html[dir="ltr"] .timeline-dot {
  left: -9px;
  right: auto;
}
html[dir="ltr"] .timeline-content {
  margin-left: 40px;
  margin-right: 0;
}

.section-divider {
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.curve-bottom {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
}
.curve-bottom:before {
  content: "";
  display: block;
  width: 100%;
  height: 60px;
  background: linear-gradient(120deg, #3E1E68 0%, #5D2E8C 100%);
  border-radius: 0 0 60px 60px / 0 0 60px 60px;
  opacity: 0.08;
}
.curve-top {
  position: absolute;
  left: 0; right: 0; top: -1px;
}
.curve-top:before {
  content: "";
  display: block;
  width: 100%;
  height: 60px;
  background: linear-gradient(120deg, #3E1E68 0%, #5D2E8C 100%);
  border-radius: 60px 60px 0 0 / 60px 60px 0 0;
  opacity: 0.08;
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(.4,2,.3,1);
}
.animate-fade-in.visible {
  opacity: 1;
  transform: none;
}
.animate-slide-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(.4,2,.3,1);
}
.animate-slide-up.visible {
  opacity: 1;
  transform: none;
}
.animate-hover {
  transition: transform 0.3s cubic-bezier(.4,2,.3,1), box-shadow 0.3s;
}
.animate-hover:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(62,30,104,0.10);
}
.animate-zoom {
  transition: transform 0.4s cubic-bezier(.4,2,.3,1);
}
.animate-zoom:hover {
  transform: scale(1.07);
}
.animate-scroll {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.7s cubic-bezier(.4,2,.3,1);
}
.animate-scroll.visible {
  opacity: 1;
  transform: scale(1);
}

.value-icon-box {
  background: linear-gradient(120deg, #f5f5f2 0%, #f8f8fc 100%);
}
.counter-box {
  background: linear-gradient(120deg, #f5f5f2 0%, #f8f8fc 100%);
}

.about-hero-bg {
  background: radial-gradient(circle at 80% 20%, #fff3 0%, #3E1E68 100%);
  opacity: 0.15;
  z-index: 1;
}

@media (max-width: 767px) {
  .timeline-content {
    padding: 12px 10px;
    font-size: 15px;
    margin-right: 20px;
  }
  .about-hero {
    min-height: 220px;
  }
  .timeline-icon::before{
    transform: rotate(-90deg) translateX(-60%);
    top: 5%;
    right: -80%;
    max-width: auto;
  }
  .timeline-item:nth-child(2n) .timeline-icon::before{
    transform: rotate(-90deg) translateX(-60%);
    top: 5%;
    right: -80%;
    max-width: auto;
  }
  
}   
@media (max-width: 600px) {
 #upper-footer img{
    display: block;
    margin: auto;
  }
#upper-footer p , #upper-footer h6{
    text-align: center;
}
}

.list-checked{
    list-style: none;
    padding-left: 0;
    text-align: right;
}
.list-checked .data{
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 20px;
    margin: 1%;
    background-color: #FFF;
    border-radius: 30px 10px 30px 10px !important;
    text-align: center;
    min-height: 268px;
}
.list-checked .icon{
    width: 150px;
    display: block;
    margin: auto;
    margin-bottom: 20px;
}

.list-checked li svg{
    background-color: #FFF;
    padding: 4px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    padding-top: 10px;
}
html[dir="rtl"] .accordion .btn-link { text-align: right; }
.accordion-arrow { transition: transform 0.3s; }
.card { border-radius: 1.2rem; }
.card-header { background: #fff; border-bottom: 0; }
.card-body { background: #f8f8fc; border-radius: 0 0 1.2rem 1.2rem; }
.btn-link { color: #3E1E68; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.btn-link:hover, .btn-link:focus { color: #5D2E8C; text-decoration: underline; }
.nav-pills .nav-link.active { background: #3E1E68; color: #fff; }
.nav-pills .nav-link { color: #3E1E68; font-weight: 600; }
.nav-pills .nav-link:hover { color: #5D2E8C; }
.faq-hero { background: linear-gradient(120deg, #f5f5f2 0%, #e5e5e5 100%); }
.faq-cta .btn-primary { box-shadow: 0 2px 12px rgba(62,30,104,0.10); }
.faq-cta .btn-primary:hover { animation: pulse 0.7s; }
@media (max-width: 767px) {
  .faq-hero h1 { font-size: 2rem; }
  .faq-section .card { font-size: 1rem; }
}

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0); }
}
.floating-img {
    animation: floatY 3.5s ease-in-out infinite;
    z-index: 1;
}

.assessment-box.card-body {
    border-radius: 50px 0px 50px 0px !important;
}

html[dir="rtl"] .card, html[dir="rtl"] .accordion, html[dir="rtl"] .btn, html[dir="rtl"] .form-label { text-align: right; }
.card { border-radius: 1.2rem; }
.card-header { background: #fff; border-bottom: 0; }
.card-body { background: #f8f8fc; border-radius: 0 0 1.2rem 1.2rem; }
.btn-primary { transition: box-shadow 0.2s, transform 0.2s; }
.btn-primary:hover { box-shadow: 0 4px 24px rgba(62,30,104,0.10); transform: scale(1.05); animation: pulse 0.7s; }
.alert { border-radius: 1.2rem; }
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  .card { font-size: 1rem; }
}
.form-control{
    text-align: right;
    border:1px solid #ddd;
    border-radius: 10px 30px !important;
    background-color: #FFF;
    padding: 10px 20px !important;
}