html, body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 104px; 
}
@font-face {
    font-family: "Loew-Next-Arabic";
    src: local("Loew-Next-Arabic"),
         url('../fonts/Loew-Next-Arabic.ttf') format('opentype');
    font-display: swap; 
}
body {
    font-family: 'Loew-Next-Arabic', sans-serif !important;
    cursor: none;

}
/* Custom Cursor Styles */
.cursor-inner, .cursor-outer {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: #2C3B73;
    transition: transform 0.15s;
}

.cursor-outer {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    transition: transform 0.3s;
}
@media(max-width:767px){
    .cursor-inner,
    .cursor-outer{
        display: none;
    }
}
:root{
    --primary-color:#07a869;
    --secondary-color: #0da9a6;
    --third-color: #3d7eb9;
    --dark-blue: #1c1e48;
    --teal: #26bbc4;
    --lighter-blue: #252863;
}
::selection {
    color: white;
    background: var(--primary-color);
  }
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
}
.colored-nav{
    background-color: #2D4089;
}
/* start header  */
.main-header .logos{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header-btn{
    font-size: 16px;
    padding: 10px;
    color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 300ms ease-in-out;
}
.header-btn:hover{
    color: white;
    background-color: var(--secondary-color);
}
.logos img {
    width: 100px;
    height: auto;
    object-fit: contain;
}
.main-header .line{
    position: absolute !important;
    width: 1px ;
    height: 100%;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    z-index: 11;
}
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-header {
    padding: 15px 0;
}


.search-icon {
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-icon:hover {
    color: #2E6497;
}

/* Search Modal Styling */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    padding-top: 80px;
    overflow-y: auto;
}

.search-modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 20px;
    direction: rtl;
    animation: fadeIn 0.3s ease-out;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-search {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.search-form {
    margin-bottom: 20px;
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f8f9fa;
}

.result-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.result-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
}

.highlight {
    background-color: #fff3cd;
    padding: 0 2px;
}

/* Animation for search modal */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 40px;
    }
    
    .search-modal-content {
        width: 95%;
        padding: 15px;
    }
    .header-btn{
        display: none;
    }
}
/* Search highlight styles */
.search-highlight {
    background-color: var(--primary-color);
    color: #000;
    padding: 2px 0;
    border-radius: 2px;
}

/* Pulse animation for better visibility */
@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 235, 59, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0);
    }
}

.pulse-highlight {
    animation: pulse-highlight 1s 2;
}
.header-divider {
    height: 1px;
    background-color: #eee;
    margin: 0 auto;
    width: 100%;
}

.main-nav {
    padding: 35px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 35px;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-list a:hover,
.nav-list a.active {
    color: #0DA9A6;
}

.mobile-nav {
    background-color: #020326;
    position: absolute;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.mobile-nav-list a:hover {
    padding-right: 2rem;
    color: var(--primary-color);
}

.navbar-toggler i{
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: all 0.3s;
}

.navbar-toggler:hover {
    color: var(--primary-color);
}

/* تعديلات الشعارات للشاشات المتوسطة (أقل من 992px) */
@media (max-width: 992px) {
    .ministry-logo-img {
        width: 100px;
    }
    
    .main-logo-img {
        height: 40px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 1rem;
    }
}

/* تعديلات للشاشات الصغيرة (أقل من 768px) */
@media (max-width: 768px) {
    .ministry-logo-img {
        width: 80px;
    }
    
    .main-logo-img {
        height: 35px;
    }
    
    .main-content {
        padding-top: 130px;
    }
}

/* تعديلات للشاشات الصغيرة جداً (أقل من 576px) */
@media (max-width: 576px) {
    .ministry-logo-img {
        width: 70px;
    }
    
    .main-logo-img {
        height: 30px;
    }
    
    .top-header {
        padding: 10px 0;
    }
    
    .search-icon {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .main-content {
        padding-top: 120px;
    }
}

/* طبقة الحاوية الجديدة */
.nav-wrapper {
    position: relative;
    z-index: 9999; /* Increased from 1000 to 9999 to be higher than everything */
}

/* Main navigation */
.main-nav {
    position: relative;
    z-index: 9999; /* Add explicit z-index to match parent */
}

.dropdown {
    position: relative;
    z-index: 9999; /* Ensure dropdown has high z-index too */
}

.dropdown-menu,
.dropdown.active .dropdown-menu{
    display: none;
    position: absolute;
    min-width: 250px;
    background-color: #020326;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 10000; /* Even higher than parent elements */
    top: 63px;
    left: 0;
    text-align: right;
    border: 1px solid #ddd;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown.active .dropdown-menu {
    display: block;
    background-color: #020326;
    text-align: right;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}
.dropdown-menu{
    background-color: #020326;
}
.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 1.5rem;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 12px;
    z-index: 9999;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--secondary-color);
}

/* للجوال */
.mobile-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    padding-right: 15px;
}

.mobile-nav .dropdown.active .dropdown-menu {
    display: block;
}

/* start hero section  */
.hero {
    position: relative;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #2E6497 0%, #011269 100%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/heroBg.webp');
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #244461;
    mix-blend-mode: multiply;
    opacity: 1.48;
    z-index: 3;
}
.hero .right-circle,
.hero .left-circle{
    position: absolute;
    z-index: 4;
    width: 742px;
    height: 741px;
    object-fit: contain;
}
.hero .right-circle{
    right: -400px;
    bottom: -100px;
    animation: rotate 60s linear infinite; /* دوران لا نهائي */
}
.hero .left-circle{
    width: 874px;
    height: 873px;
    left: -300px;
    bottom: -300px;
    animation: rotateReverse 60s linear infinite; /* دوران لا نهائي */
}
@keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
@keyframes rotateReverse {
    from {
      transform: rotate(360deg);
    }
    to {
      transform: rotate(0deg);
    }
  }
.hero-content > * {
    transition: all 0.8s ease-in-out;
    opacity: 1;
    transform: translateX(300px) !important;
    scale: 0.6 !important;
}

[data-aos].aos-animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
    scale: 1 !important;
}

.hero-content {
    position: relative;
    z-index: 5;
    color: white;
    padding-top: 120px;
}

.hero .rafed-logo {
    width: 480px;
    height: auto;
    transition-delay: 0.1s !important;
}

.hero h1 {
    font-weight: bolder;
    transition-delay: 0.1.5s !important;
}

.hero h4 {
    transition-delay: 0.3s !important;
}

.hero .btns-box {
    transition-delay: 0.4s !important;
}

.hero .btn {
    color: white;
    padding: 15px;
    border-radius: 5px;
    transition: all 300ms ease-in-out;
}
.btn:not(:hover){
    transition: all 300ms ease-in-out;
}
.hero .info-btn{
    border: 2px solid var(--secondary-color);
}
.hero .info-btn:hover{
    background-color: var(--secondary-color);
}
.hero .contact-btn{
    background-color: var(--secondary-color);
    border: 2px solid transparent;
}
.hero .contact-btn:hover{
    background-color: transparent;
    border: 2px solid var(--secondary-color);

}
@media(max-width:1200px){
    .hero .right-circle,
    .hero .left-circle{
        width: 500px;
        height: 500px;
    }
    .hero .right-circle{
        right: -200px;
    }
    .hero .left-circle{
        left: -300px;
        bottom: -100px;
    }
}

@media(max-width:767px){
    .hero .rafed-logo{
        width: 350px;
    }
    .hero h1{
        font-size: 24px;
    }
    .hero h4{
        font-size: 18px;
    }
    .hero .right-circle,
    .hero .left-circle{
    display: none;
    }
    .hero .btn{
        font-size: 14px;
    }
}


/* start royal sider  */
.royal-slider-section {
    background-color: #5B86AD;
    position: relative;
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

.spotlight {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    top: 0;
    left: 0;
    z-index: 0;
}

.royal-slider {
    position: relative;
}

.slider-item {
    padding: 20px 0;
}

.image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
}

.circle-frame {
    position: absolute;
    width: 150%;
    height: 150%;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}
.king-image {
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 1.5s ease-in-out;
}

.royal-slider-section {
    background-color: #5B86AD;
    position: relative;
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

.spotlight {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 70%);
    top: 0;
    left: 0;
    z-index: 0;
}

.royal-slider {
    position: relative;
}

.slider-item {
    padding: 20px 0;
}

.image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
}

.circle-frame {
    position: absolute;
    width: 150%;
    height: 150%;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.king-image {
    position: absolute;
    width: 340px;
    height: 340px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity; 
}

.quote-content p {
    will-change: transform, opacity; 
    transition-property: transform, opacity;
}

.color-bg {
    position: absolute;
    width:200px;
    height: 200px;
    background: linear-gradient(to right, #3D7EB9 0%, #0DA9 100%);
    border-radius: 50%;
    z-index: 1;
    left: 60%;
    top: 40%;
    transform: translate(-50%, -50%);
}

.quote-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
}

.quote-container {
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.royal-quote {
    color: #2D4089;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.royal-name {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.royal-title {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
}

.royal-slider-section .owl-nav{
    display: none !important;
}
.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    opacity: 1;
    transition: opacity 0.5s;
}

.owl-carousel .owl-item.active {
    opacity: 1;
}

.owl-theme .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
}

.owl-theme .owl-dots .owl-dot span {
    background: var(--secondary-color);
    transition: all 0.3s;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: white !important;
    transform: scale(1.3);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .image-wrapper {
        min-height: 300px;
        padding: 40px 0;
    }
    
    .image-container {
        height: 300px;
    }
    
    .king-image {
        width: 260px;
        height: 260px;
    }
    
    .color-bg {
        width: 180px;
        height: 180px;
    }
    
    .quote-wrapper {
        padding: 0 20px 40px;
    }
    
    .quote-container {
        padding: 30px 10px;
    }
    
    .royal-quote {
        font-size: 1.2rem;
    }
    
    .royal-name, .royal-title {
        font-size: .8rem;
    }
}



/* start mission vission section  */
.mission-vission{
    padding-block: 20px;
    background-color: #6E97BC;
}
.mission-vission .box{
    transform: translateY(-40px);
    max-width: 300px;
    margin: auto;
}
.mission-vission .title{
    color: var(--secondary-color);
    background-color: white;
    padding: 5px 35px;
    border-radius: 35px;
    width: fit-content;
    margin: auto;
    margin-bottom: 30px;
    transition: all 300ms ease-in-out;
    cursor: pointer;
}
.mission-vission .title:hover{
    background-color: var(--secondary-color);
    color: white;
}
.mission-vission .title:not(:hover){
    transition: all 300ms ease-in-out;

}
.mission-vission .text{
    color: white;
    text-align: justify;
}

/* start about-us section */
.about-us {
    background-color: #5B86AD;
    padding-top: 80px;
    padding-bottom: 180px;
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.about-us .title {
    color: #73E2B6;
    font-size: 50px;
    transform: scale(.5);
    transition: all 1.5s ease;
}

.about-us .title span img {
    width: 80px;
    transition: all 1.5s ease;
    margin-inline: 10px;
}

.about-us .sub-title {
    color: #73E2B6;
    font-size: 30px;
    font-weight: 600;
    transform: scale(.5);
    transition: all 1.5s ease;
}

.about-us .description {
    color: white;
    text-align: justify;
    line-height: 2;
    font-size: 16px;
    transform:  scale(.5);
    transition: all 1.5s ease;
}

.about-us .hand {
    position: relative;
    right: -20%;
    bottom: 0px;
    opacity: .2;
    scale: .5;
    transition: all 1.5s ease;
    mix-blend-mode: screen;
}

.about-us .circle {
    position: absolute;
    bottom: 0;
    right: -30%;
    transform: translateY(-100%);
    transition: all 1.5s ease;
}

.about-us .watermark {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%);
    opacity: 1;
    transition: opacity 1.5s ease;
}
.about-us .why-rafed{
    color: var(--secondary-color);
    background-color: white;
    padding: 10px 35px;
    border-radius: 35px;
    font-size: 24px;
    cursor: pointer;
    width: fit-content;
    margin: auto;
    transform: scale(0);
    transition: all 1.5s ease;
    position: relative;
    z-index: 1;
    transition: all 1.5s ease;

}
.about-us .why-rafed:hover{
    color: white;
    background-color: var(--secondary-color);
    transition: all .3s ease;
}
.about-us .why-rafed img{
    position: absolute;
    width: 30px;
    height: 30px;
    left: 0;
    bottom: 120px;
    z-index: -1;
    transition: all 1.5s ease;

}
/* عند التفعيل */
.about-us.show .title,
.about-us.show .title span img,
.about-us.show .sub-title,
.about-us.show .description,
.about-us.show .hand,
.about-us.show .circle,
.about-us.show .why-rafed
{
    transform: none;
}
.about-us.show .title{
    margin-bottom: 0;
}
.about-us.show .title span img{
    width: 200px;
    scale: 1;
}
.about-us.show .sub-title{
    margin-block: 10px;
}
.about-us.show .hand{
    right: 0%;
    opacity: 1;
    scale: 1;

}
.about-us.show .watermark{
    opacity: 0;
}
.about-us.show .why-rafed img{
    bottom: -20px;
}

@media(max-width:767px){
    .about-us .title{
        font-size: 25px;
    }
    .about-us.show .title span img{
        width: 100px;
    }
    .about-us .sub-title{
        font-size: 18px;
        margin-block: 10px;
    }
    .about-us .description{
        font-size: 14px;
    }
    .about-us .why-rafed{
        font-size: 16px;
    }
    .about-us .why-rafed img{
        width: 25px;
        height: 25px;
    }
    .about-us .circle{
        width: 300px;
    }
    .about-us .watermark{
        top: 40%;
    }
    .about-us .hand{
        right: -35%;
    }
    .about-us.show .hand{
        right: -12%;
    }
}



/* start rafed privacy section  */
.header-section{
    position: relative;
}
.header-section::after{
    position: absolute;
    content: "";
    width: 50%;
    height: 70%;
    right: -50%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #425396;
    border-left: 10px solid #73e2b6;
}
.header-section .title{
    color: #425396;
    font-size: 50px;
    font-weight: 800;
}
.header-section .sub-title{
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
}

.rafed-privacy{
    padding-block: 80px;
}
.rafed-privacy ul li{
    margin-bottom: 20px;
}
.rafed-privacy ul li i{
    color: #73e2b6;
}
.rafed-privacy ul li img{
    aspect-ratio: 3/2;
    object-fit: contain;
    max-width: 250px;
}
.rafed-privacy .know-more-btn{
    color: #0DA9A6;
    border: 2px solid #0DA9A6;
    border-radius: 35px;
    padding: 5px 30px;
    font-size: 20px;
}
.rafed-privacy .know-more-btn:hover{
    border: 2px solid #0DA9A6;
    background-color: #0DA9A6;
    color: white;
}
@media(max-width:767px){
    .header-section .title{
        font-size: 26px;
    }
    .header-section .sub-title{
        font-size: 18px;
    }
    .rafed-privacy ul li img{
        max-width: 280px;
    }
}


/* start elctronic-bag  */
.elctronic-bag{
    padding-block: 45px;
}
.elctronic-bag .note{
    color: #425396;
    font-size: 20px;
    margin-top: 30px;
}
.elctronic-bag ul li{
    margin-bottom: 25px;
}
.elctronic-bag ul li a{
    text-decoration: none;
    color: #425396;
    font-size: 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 330px;
    font-weight: bold;
    transition: all 300ms ease-in-out;
    border: 2px solid #00a69c;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .4);
}
.elctronic-bag ul li a:hover{
    color: #00a69c;
}
.elctronic-bag ul li a img{
    object-fit: contain;
}
.elctronic-bag ul li a .icons{
    display: flex;
    gap: 15px;
}
.elctronic-bag ul li a .download-icon{
    width: 30px;
}
@media(max-width:767px){
    .elctronic-bag .header-section{
        margin-bottom: 30px;
    }
    .elctronic-bag ul li a{
        font-size: 20px;
    }
}
/* start golas section  */
.goals {
    padding: 80px 0;
    background-color: #F5F5F5;
    position: relative;
    overflow: hidden;
}
.goals .goals-circle{
    position: absolute;
    right: 0;
    top: -25%;
    width: 305px;
    height: 1080px;
}
/* تنسيقات السلايدر */
.goals-slider {
    position: relative;
    padding: 0 50px;
    padding-top: 180px;
    overflow: hidden;
}

.goal-box {
    background: transparent;
    border-radius: 25px;
    border: 2px solid var(--secondary-color);
    margin: 0 15px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.goal-box .cover {
    position: absolute;
    top: -155px;
    left: 50px;
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.goal-box .cover img {
    max-width: 180px;
    height: auto;
    position: relative;
    z-index: 2;
}

.goal-box .cover .number {
    font-size: 150px;
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary-color);
    text-stroke: 1px var(--secondary-color);
    line-height: 1;
    margin-right: -30px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.goal-box .content {
    padding: 40px 15px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.goal-box .content .title {
    color: #2D4089;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.goal-box .content .description {
    color: #6c757d;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.6;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.goal-box .content .description.show {
    max-height: 500px; 
    opacity: 1;
}

.goal-box .read-more {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    padding: 5px 0;
    text-align: right;
    display: flex;
    align-items: center;
    align-self: flex-end;
    position: relative;
}
.goal-box .read-more::after {
    position: absolute;
    content: "";
    width: 130%;
    height: 2px;
    background-color: var(--secondary-color);
    right: -140%;
    top: 50%;
    transform: translateY(-50%);
}
.goal-box .read-more i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.goal-box .read-more.active i {
    transform: rotate(180deg);
}

/* تنسيقات Owl Carousel */
.owl-carousel .owl-stage-outer {
    overflow: visible !important;
}

.owl-btns {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.slider-nav-container {
    position: relative;
    margin-right: 20px;
    display: flex;
}

.owl-nav {
    position: static !important;
    display: flex !important;
    gap: 10px;
    transform: none !important;
    margin-right: 20px;
}

.owl-prev, 
.owl-next {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.owl-prev:hover, 
.owl-next:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.owl-prev i, 
.owl-next i {
    font-size: 18px;
}

.owl-dots {
    margin-top: 30px !important;
    text-align: center;
    bottom: -5px !important;
}

.owl-dots .owl-dot span {
    background: rgba(45, 64, 137, 0.3) !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
}

.owl-dots .owl-dot.active span {
    background: var(--third-color) !important;
    transform: scale(1.2);
}

.goals .row .box h4{
    color: #2D4089;
    margin-bottom: 20px;
}
.goals .row .box ul li  {
    margin-bottom: 10px;
}
.goals .row .box ul li i{
    color: #73E2B6;
}
.goals .row .box ul li a{
    font-size: 24px;
    color: #2D4089;
    font-weight: 600;
}
/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .goal-box {
        height: auto;
    }
    
    .goal-box .cover {
        left: 30px;
    }
    
    .goal-box .cover .number {
        font-size: 120px;
    }
    
    .goal-box .content {
        padding-top: 120px;
    }
    .goals .goals-circle{
        display: none;
    }
}

@media (max-width: 768px) {

    .header-section:after{
        display: none;
    }
    .goal-box .cover {
        left: 20px;
        top: -115px;
    }
    
    .goal-box .cover img {
        max-width: 140px;
    }
    
    .goal-box .cover .number {
        font-size: 100px;
    }
    
    .goal-box .content {
        padding-top: 60px;
    }
    
    .goals-slider {
        padding: 0 30px;
        padding-top: 120px;
    }
     .goals-logo{
        width: 200px;
    }
    .owl-prev, 
    .owl-next{
        width: 40px !important;
        height: 40px !important;
    }
    .goal-box .read-more::after{
        width: 80%;
        right: -90%;
    }
    
}

@media (max-width: 576px) {
    .goals {
        padding: 60px 0;
    }
    
    .goal-box .content .title {
        font-size: 16px;
    }
    
    .goal-box .content .description {
        font-size: 0.8rem;
    }
    
    .owl-nav {
        display: none;
    }
    .goals .row .box h4{
        font-size: 16px;
    }
    .goals .row .box ul li a{
        font-size: 18px;
    }
}


/* start partners section  */
.partners-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.dot-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e6f0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #374b7c;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title h3 {
    color: #00a69c;
    font-weight: 500;
    font-size: 1.5rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    opacity: .8;
    height: 180px;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .partner-logo {
        height: 120px;
        margin: 8px auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .partner-logo {
        height: 140px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .partner-logo {
        height: 160px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .partner-logo {
        height: 180px;
    }
}


/* start ownres section  */
.owners{
    height: 752px;
    background-image: url('../imgs/business-concept-glass-world-laptop\ 1.png');
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ease-in-out;
}
.owners::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(19, 43, 65, .81);
    mix-blend-mode: multiply;
    z-index: -1;
}
.owners .logo-box{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.owners .logo-box .logo{
    width: 200px;
    height: auto;
}
.owners::after{
    content: "";
    height: 50px;
    width: 1px;
    background-color: white;
    position: absolute;
    top: 70%;
    left: 50%;
    z-index: 2;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ;

}
.owners .logo-box .title{
    color: white;
    font-size: 30px;
    font-weight: 700;
    text-align: left;
    line-height: 2;
}
.owners .logo-box .safi{
    transform: translate(-170px, 0);
    display: inline-block;
    position: relative;
    z-index: 11;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ;

}
.owners .logo-box .public{
    transform: translate(170px, 0);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ;
}

.owners .logo-box .safi-title{
    transform: translateX(-300px);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ;
}
.owners .logo-box .public-title{
    transform: translateX(300px);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) ;
}
.owners.show::after{
    top: 38%;
    height: 200px;
}
.owners.show .logo-box .safi,
.owners.show .logo-box .public{
    transform: none;
}
.owners.show .logo-box .safi-title,
.owners.show .logo-box .public-title{
    transform: none;
    opacity: 1;
}

@media(max-width:992px){
    .owners .logo-box .logo{
        width: 150px;
    }
    .owners .logo-box .safi-title{
        font-size: 24px;
    }
    .owners .logo-box .public-title{
        width: 140px;
    }
}
@media(max-width:767px){
    .owners{
        height: 400px;
    }
    .owners.show::after{
        height: 100px;
    }
    .owners .logo-box .logo{
        width: 100px;
    }
    .owners .logo-box .safi{
        transform: translate(-75px, 0);
    }
    .owners .logo-box .public{
        transform: translate(60px, 0);
    }
    .owners .logo-box .safi-title,
    .owners .logo-box .public-title{
        display: none;
    }

}
/* Password Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background-color: var(--primary-color); */
    backdrop-filter: blur(85px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1006;
    transition: all 0.5s ease;
}

.password-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.password-logo {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.password-title {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.password-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.password-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-btn {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
}

.password-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    display: none;
}



/* start news and footer sections  */


.news-section {
    padding: 40px 20px;
    background-color: var(--dark-blue);
}

/* Add root font size that scales with viewport */
:root {
    font-size: 16px;
}

/* Mobile first approach */
@media (max-width: 576px) {
    :root {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    :root {
        font-size: 18px;
    }
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
}

.rafed-logo {
    height: 5rem;
    margin-left: 1.25rem;
}

.ministry-logo {
    height: 6.25rem;
}

.divider {
    display: inline-block;
    width: 1px;
    height: 3.75rem;
    background-color: var(--teal);
    margin: 0 1.25rem;
}

.tagline {
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    margin-top: 0.625rem;
}

.email-signup {
    max-width: 500px;
    text-align: right;
    margin-bottom: 1.25rem;
}

.email-signup h3 {
    color: var(--teal);
    margin-bottom: 0.625rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.email-signup p {
    margin-bottom: 0.9375rem;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.email-input-container {
    position: relative;
    margin-top: 0.625rem;
}

.email-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-arrow {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--teal);
    color: var(--dark-blue);
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.footer-section {
    background-color: var(--lighter-blue);
    padding: 1.875rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: var(--teal);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: bold;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.625rem;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: normal;
}

.footer-links a:hover {
    color: var(--teal);
}

.app-stores {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
}

.app-badge {
    height: 2.5rem;
}

.social-icons {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.9375rem;
}

.social-icon {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 0.625rem;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--teal);
}

.copyright-section {
    padding: 0.9375rem 0;
    border-top: 1px solid rgba(38, 187, 196, 0.3);
    margin-top: 1.25rem;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .tagline {
        font-size: 1rem;
    }
    
    .email-signup h3 {
        font-size: 1.3rem;
    }
    
    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .rafed-logo {
        height: 4rem;
    }
    
    .ministry-logo {
        height: 5rem;
    }
}

@media (max-width: 576px) {
    .logo-container {
        align-items: flex-start;
    }
     
    .copyright {
        flex-direction: column;
        gap: 0.5rem;
    }
}
footer .lined{
    position: relative;
    z-index: 1;
}
footer .line{
    position: absolute;
    height: 100%;
    width: 1px ;
    background-color: white;
    left: 5px;
    z-index: 1;
}

@media(max-width:992px){
    footer .line{
        height: 1px;
        width: 100%;
        bottom: 0;
    }
footer .line.third-line {
  display: none;
}
}
@media(max-width:767px){
    footer .line{
        height: 1px;
        width: 100%;
        bottom: 0;
    }
footer .line.third-line {
  display: block;
}
}