@font-face {
    font-family: "Loew-Next-Arabic";
    src: local("Loew-Next-Arabic"),
         url('../fonts/Loew-Next-Arabic.ttf') format('opentype');
    font-display: swap; 
}

:root {
    --primary-color: #2C3B73;
    --secondary-color: #0DA9A6;
    --accent-color: #3D7EB9;
    --text-color: #425396;
    --light-gray: #dbd6d6;
    --disabled-color: #bdc3c7;
}
html{
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}
body {
    font-family: 'Loew-Next-Arabic', sans-serif !important;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
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: var(--primary-color);
    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;
    }
}
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}
/* start header  */
.main-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    z-index: 1;
}
.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);
}
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #2E6497 0%, #011269 100%);
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #244461;
    mix-blend-mode: multiply;
    opacity: 1.48;
    z-index: 3;
}
.main-header .logos{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.top-header {
    padding: 15px 0;
    position: relative;
    z-index: 11;
    border-bottom: 1px solid white;
}

.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;
}
.search-icon {
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 11;
}

.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;
    position: relative;
    z-index: 11;
}

.nav-list {
    display: flex;
    justify-content: start;
    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: #020326;
    color: white;
    position: relative;
    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;
}

.mobile-nav-list a {
    color: var(--third-color);
    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 {
    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;
}

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


.board {
    padding: 4vh 0;
    padding-top: 120px;
    width: 100%;
    z-index: 1;
}
.board::before,
.board::after{
    content: "";
    position: absolute;
    width: 742px;
    height: 742px;
    background-image: url('../imgs/circle.webp');
    background-size: contain;
    z-index: -1;
    top: 200px;
}
.board::before{
    left: -25%;
}
.board::after{
    right: -25%;
}
@media(max-width:992px){
    .board::before,
    .board::after{
        display: none;
}
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 12px;
    flex-wrap: wrap;
    position: relative;
    flex-direction: column;
}
.slider-header::before{
    content: "";
    position: absolute;
    width: 90%;
    height: 100%;
    right: -95%;
    background-color: #425396;
    border-left: 8px solid #73E2B6;
}
.board .section-title {
    font-size: clamp(19px, 3.2vw, 26px);
    color: var(--primary-color);
    margin-bottom: 12px;
    flex: 1;
}

.content-tabs {
    display: flex;
    gap: clamp(6px, 0.8vw, 12px);
    flex-wrap: wrap;
    position: relative;
}

.content-tab {
    padding: 6px clamp(8px, 1.6vw, 16px);
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.content-tab.active {
    color: var(--secondary-color);
}

.active-line {
    position: absolute;
    bottom: -12px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    left: 0;
    width: 0;
}

.content-tab:not(.active):hover {
    color: var(--secondary-color);
}

.slider-nav {
    display: flex;
    gap: 8px;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: absolute;
    left: 0;
    top: 240%;
    transform: translateY(-50%);
    z-index: 11;
}

.slider-nav.flip {
    animation: flipNav 0.6s ease;
}

@keyframes flipNav {
    0% { transform: translateY(-50%) rotateY(0); }
    100% { transform: translateY(-50%) rotateY(180deg); }
}
        
.nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(40px, 4vw, 48px);
    height: clamp(40px, 4vw, 48px);
    border-radius: 50%;
    background-color: transparent;
    padding: 2px;
    border: 2px solid var(--accent-color);
    box-sizing: border-box;
    color: var(--accent-color);
    font-size: clamp(14px, 1.6vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(.disabled) {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border: none;
    color: white;
}

.nav-btn:hover img {
    filter: brightness(0) invert();
    transform: scale(0.8);
}

.nav-btn img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.nav-btn.disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.5;
    border-color: var(--disabled-color);
}

.slider-wrapper {
    position: relative;
    min-height: clamp(320px, 64vh, 640px);
    overflow: hidden;
    margin-top: clamp(32px, 6.4vh, 64px);
}

.slider-content {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    visibility: hidden;
}

.slider-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.content-leaving {
    animation: contentFadeOut 0.5s forwards;
    pointer-events: none;
}

.content-entering {
    animation: contentFadeIn 0.5s forwards;
    pointer-events: auto;
}

@keyframes contentFadeOut {
    from { 
        opacity: 1; 
        transform: translateX(0);
        visibility: visible;
    }
    to { 
        opacity: 0; 
        transform: translateX(400px);
        visibility: hidden;
    }
}

@keyframes contentFadeIn {
    from { 
        opacity: 0; 
        transform: translateX(400px);
        visibility: hidden;
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
        visibility: visible;
    }
}

.slider-item {
    padding: clamp(12px, 2vw, 20px);
    margin-bottom: clamp(8px, 1.6vh, 16px);
    position: relative;
}

.item-active {
    animation: itemFadeIn 0.5s ease;
}

.item-leaving {
    animation: itemFadeOut 0.5s ease;
}

@keyframes itemFadeIn {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes itemFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: clamp(8px, 1.2vw, 12px);
    flex-wrap: wrap;
}

.item-logo img {
    width: clamp(96px, 16vw, 160px);
    height: auto;
    object-fit: contain;
}

.item-number {
    color: var(--text-color);
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: lighter;
    margin: 0;
}

.item-title h3 {
    font-size: clamp(18px, 2.4vw, 24px);
    color: var(--text-color);
    margin-bottom: clamp(8px, 1.2vh, 12px);
    margin-top: 0;
}

.item-title p {
    color: var(--secondary-color);
    font-size: clamp(14px, 1.8vw, 18px);
    margin: 0;
}

.item-body {
    margin-top: clamp(16px, 2.4vh, 24px);
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.name-item {
    color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: clamp(8px, 1.2vw, 12px);
    text-align: center;
    font-size: clamp(14px, 1.4vw, 16px);
    transition: all 0.3s ease;
}

.names-grid .name-item:hover {
    background-color: var(--secondary-color);
    color: white;
}

@media (max-width: 992px) {
    .slider-nav {
        top: auto;
        left: 0;
        transform: none;
        margin-top: 8px;
        margin-left: auto;
    }
    
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    @keyframes flipNav {
        0% { transform: rotateY(0); }
        100% { transform: rotateY(180deg); }
    }
}

@media (max-width: 768px) {
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .content-tabs {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
        padding-bottom: 8px;
    }
    
    .active-line {
        bottom: -13px;
    }
    
    .item-header {
        align-items: flex-start;
    }
    
    .slider-wrapper {
        min-height: 720px;
    }
}

@media (max-width: 576px) {
    .names-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        width: 95%;
        padding: 12px;
    }
    
    .item-title h3 {
        font-size: 16px;
    }

    .item-title p {
        font-size: 14px;
    }
    
    .item-number {
        font-size: 22px;
    }
    
    .content-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .slider-wrapper {
        min-height: 720px;
        margin-top: 24px;
    }
}



/* start why rafed  */
:root {
    --dark-blue: #1c1e48;
    --teal: #26bbc4;
    --lighter-blue: #252863;
}
.why-rafed {
    padding-block: 80px;
    z-index: 1;
}

.why-rafed .tabs-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.why-rafed .tabs-header {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    border-bottom: 1px solid #eee;
    width: fit-content;
}

.why-rafed .tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    position: relative;
    width: 250px;
}

.why-rafed .tab.active {
    color: #0DA9A6;
}

.why-rafed .indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #0DA9A6;
    transition: all 0.3s ease;
}

.why-rafed .tabs-content {
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease;
}

.why-rafed .tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
}

.why-rafed .tab-content.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
    transition-delay: 0.2s;
}

.why-rafed .tab-content.leaving {
    opacity: 0;
    transform: translateY(-30px);
    transition-delay: 0s;
}

.why-rafed .tab-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.why-rafed .tab-content p {
    color: #666;
    line-height: 1.6;
}

.why-rafed::after,
.why-rafed::before {
    position: absolute;
    content: "";
    width: 740px;
    height: 740px;
    background-image: url('imgs/circle.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.why-rafed::after {
    top: 20px;
    left: -250px;
}

.why-rafed::before {
    top: 220px;
    right: -550px;
}

.why-rafed-top {
    position: relative;
    z-index: 1;
    width: fit-content;
}

.why-rafed-top .section-title {
    font-weight: bolder;
    font-size: 32px;
}

.why-rafed-top::before {
    position: absolute;
    content: "";
    width: 300px;
    height: 100%;
    right: -320px;
    background-color: #425396;
    border-left: 8px solid #77ddb5;
}

.why-rafed .feature-box {
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #0DA9A6;
    position: relative;
}

.why-rafed .feature-box::before {
    position: absolute;
    content: attr(number);
    color: #0DA9A6;
    font-size: 30px;
    background-color: white;
    border-radius: 50%;
    right: -20px;
}

.why-rafed .feature-box .feature-title {
    color: #29275F;
    font-weight: 800;
    margin-bottom: 20px;
}

.why-rafed .feature-box .feature-description {
    color: #676588;
    line-height: 2;
}

.why-rafed .section-head {
    position: relative;
    margin-block: 20px;
}

.why-rafed .section-head::before {
    position: absolute;
    content: "";
    width: 3px;
    height: 100%;
    right: -15px;
    background-color: #0DA9A6;
}

.why-rafed .section-head .title {
    color: #29275F;
    font-weight: bold;
    margin-bottom: 15px;
}

.why-rafed .section-head .sub-title {
    color: #0DA9A6;
    font-weight: 600;
}

.point-title-head {
    position: relative;
    z-index: 1;
    margin-right: 30px;
    width: fit-content;
}

 .point-title {
    color: #29275F;
    font-weight: 700;
    margin-bottom: 20px;
}

 .point-title-head .title-line {
    position: absolute;
    right: -45px;
    top: 66%;
    transform: translateY(-55%);
    z-index: 11;
}

.description {
    color: #676588;
    line-height: 2;
}

.why-rafed .systems img {
    aspect-ratio: 4/2;
    width: 300px;
    height: 160px;
    object-fit: contain;
}

.why-rafed .system-title {
    color: #29275F;
    font-weight: 700;
    position: relative;
    margin-right: 20px;
    margin-bottom: 20px;
}

.why-rafed .system-title::before {
    position: absolute;
    content: "";
    background-color: #0DA9A6;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.why-rafed .system-description {
    color: #676588;
    text-align: justify;
}

.simulation-box {
    padding: 20px;
    position: relative;
}

.simulation-box1::before,
.simulation-box4::before {
    position: absolute;
    content: "";
    width: 3px;
    height: 95%;
    background-color: #0DA9A6;
}

.simulation-box2::before,
.simulation-box3::before {
    position: absolute;
    content: "";
    width: 95%;
    height: 3px;
    background-color: #0DA9A6;
}

.simulation-box1::before {
    left: -13px;
    top: 0;
}

.simulation-box4::before {
    right: -15px;
    bottom: -15px;
}

.simulation-box2::before {
    bottom: 0;
    left: 0;
}

.simulation-box3::before {
    top: -2px;
    right: 0;
}

.simulation-box .number {
    color: transparent;
    font-size: 58px; 
    -webkit-text-stroke: 1.2px #0DA9A6;
    display: inline-block; 
}

.simulation-box .simulation-title {
    color: #29275F;
    font-weight: 700;
}

.simulation-box .description {
    color: #676588;
    text-align: justify;
    line-height: 2.5;
}

.simulation .point {
    position: absolute;
    width: 22px;
    height: 24px;
    background: #0DA9A6;
    border-radius: 50%;
    top: 48%;
    left: 50%;
    transform: translate(-50%, 0);
}

.contact-text{
    color: #0DA9A6;
    font-weight: 600;
    font-size: 20px;
}
.contact-btn{
    border: 2px solid #0DA9A6;
    color: #0DA9A6;
    border-radius: 35px;
    padding: 10px 25px;
    text-decoration: none;
    transition: all 300ms ease-in-out;
}
.contact-btn:hover{
    color: white;
    background-color: #0DA9A6;
}
.why-rafed .description{
    line-height: 2;
}
@media (max-width: 992px) {
    .simulation .point,
    .simulation-box1::before,
    .simulation-box2::before,
    .simulation-box3::before,
    .simulation-box4::before {
        display: none;
    }
    .simulation-box {
        border-bottom: 2px solid #0DA9A6;
    }
}

@media (max-width: 767px) {
.why-rafed::after,
.why-rafed::before {
    display: none;
}
.why-rafed .tab {
    font-size: 13px;
    padding: 15px 0;
}
.why-rafed-top .section-title {
    font-size: 24px;
}
.why-rafed .feature-box {
    padding: 20px;
}
.why-rafed .feature-box::before {
    font-size: 24px;
}
.why-rafed .feature-box .feature-title {
    font-size: 18px;
}
.why-rafed .feature-box .feature-description {
    font-size: 12px;
    text-align: justify;
}
.why-rafed .section-head .title{
    font-size: 20px;
}
.why-rafed .section-head .sub-title{
    font-size: 16px;
}
.why-rafed .system-title,
.why-rafed .point-title{
    font-size: 18px;
}
.why-rafed .simulation-title{
    font-size: 16px;
}
.why-rafed .description{
    font-size: 14px;
}
.contact-text{
    font-size: 18px;
}
}
.quote-box{
position: relative;
text-align: center;
width: fit-content;
margin: auto;
z-index: 1;
}
.quote .quote-text{
font-size: 23px;
color: #29275F !important;
font-weight: 700;
line-height: 1.7;
}
.quote-icon1{
position: absolute;
top: -50px;
right: -18px;
z-index: -1;
}
.quote-icon2{
position: absolute;
top: -50px;
right: 24px;
z-index: -1;
}
@media(max-width:767px){
     .quote .quote-text{
        font-size: 18px;
    }
    .quote-icon1,
    .quote-icon2{
        width: 25px;
        top: -34px;
    }
    .quote-icon2{
        
        right: 15px;
    }
}


.process-flow-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    height: 120px;
    position: relative;
    gap: 25px;
}

.process-flow-row .box {
    position: relative;
    width: 167px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 1;
    margin: 0 -5px;
}

.process-flow-row .box-text {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    color: #29275F;
}

/* Correct sequence from right to left */
.process-flow-row .box-1 {
    background-color: #8BF3B1;
    border: 2px solid #8BF3B1;
    z-index: 5;
    transform: translateY(-20px);
}

.process-flow-row .box-2 {
    background-color: #BEF4DF;
    border: 2px solid #BEF4DF;
    z-index: 4;
    transform: translateY(0px);
}

.process-flow-row .box-3 {
    background-color: #A9E0DF;
    border: 2px solid #A9E0DF;
    z-index: 3;
    transform: translateY(20px);
}

.process-flow-row .box-4 {
    background-color: #C8ECEC;
    border: 2px solid #C8ECEC;
    z-index: 2;
    transform: translateY(40px);
}

.process-flow-row .box-5 {
    background-color: #EBF3F3;
    border: 2px solid #EBF3F3;
    z-index: 1;
    transform: translateY(60px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-flow-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        height: auto;
        padding: 30px 10px;
    }
    
    .process-flow-row .box {
        min-width: 100px;
        height: 70px;
        transform: none !important;
        margin: 0 -5px;
    }
    
    .process-flow-row .box-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .process-flow-row {
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    
    .process-flow-row .box {
        width: 150px;
        margin: -10px 0;
        transform: none !important;
    }
}
/* 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;
}
}



/* start bolgs Page  */
.blogs{
    padding-block: 50px;
}
.blogs h1{
    color: #29275F;
    margin-bottom: 25px;
}
.blogs .rafed{
    width: 230px;
    height: auto;
}
.blogs-grid{
    padding-block: 50px;
}
.blogs-grid a{
    text-decoration: none;
}
.blogs-grid .box .blog-cover{
    margin-bottom: 15px;
}
.blogs-grid .box .title{
    color: #29275F;
    margin-bottom: 15px;
}
.blogs-grid .box ul li{
    color: #747474;
    margin-bottom: 8px;
}
@media(max-width:767px){
    .blogs-grid .box ul{
        width: fit-content;
        margin: auto;
    }
}

/* start blog pages  */
.blog{
    padding-block: 50px;
    overflow-x: hidden;

}
.blog .section-title .path{
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    color: #29275F;
    font-size: 14px;
}
.blog .section-title a{
    text-decoration: none;
    color: #29275F;
}
.blog .section-title .path img{
    width: 25px;
    height: auto;
    display: inline-block;
    margin-bottom: 15px
}
.blog .section-title{
    position: relative;
    z-index: 1;
    width: fit-content;
}
.blog .section-title::before{
    content: "";
    position: absolute;
    width: 300px;
    height: 100%;
    background-color: #425396;
    border-left: 5px solid #73E2B6;
    right: -310px;
    z-index: -1;
}
.blog .section-title .title{
    color: #252863;
}
.points-grid{
    overflow-x: hidden;

}
.points-grid .point-box{
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 25px;
    border: 2px solid #d9d9d9;
}
.points-grid .point-box .number{
    color: transparent;
    font-size: 58px; 
    -webkit-text-stroke: 1.2px #0DA9A6;
    display: inline-block; 
}



/* start members and plans page  */
.members,
.plans{
    padding-block: 40px;
}
.styled_title{
    position: relative;
    z-index: 1;
    width: fit-content;
}
.styled_title::before{
    position: absolute;
    content: "";
    width: 300px;
    height: 100%;
    background-color: #425396;
    right: -310px;
    border-left: 8px solid #73E2B6;
}
.styled_title .title{
    font-size: 35px;
    color: #2C3B73;
    font-weight: bold;
}
.styled_title .sub-title{
    font-size: 23px;
    color: #2C3B73;
}
@media(max-width:767px){
    .styled_title .title{
        font-size: 24px;
    }
    .styled_title .sub-title{
        font-size: 16px;
    }
}



/* start organizational-governance  */
.organizational-governance .main-box{
    background-color: #CFFFF1;
    padding: 20px;
    border-radius: 20px;
    border:  2px solid #0DA9A6;
    margin-bottom: 30px;

}
.organizational-governance .main-box h6{
    line-height: 2 ;
    color: #29275F;

}
.organizational-governance .step{
    border-radius: 20px;
    border:  2px solid #0DA9A6;
    color: #29275F;
    padding: 15px 15px 25px 15px;
    font-size: 14px;
    line-height: 2;
    position: relative;
    height: 100%;
}
.organizational-governance .step::before{
    position: absolute;
    content: attr(number);
    color: #0DA9A6;
    font-size: 16px;
    left: 10px;
    bottom: 10px;

}


/* start community_entrepreneurship page  */
.room-img-box{
    position: relative;
    z-index: 1;
}
.room-img-box .img-label{
    position: absolute;
    content: "";
    width: 30%;
    height: 50%;
    background-color: #425396;
    border-left:  8px solid #57dcb7;
    border-top-right-radius: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    right: 0;
    top: -10px;
    z-index: -1;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}
@media(max-width:992px){
    .room-img-box .img-label{
        font-size: 16px;
        top: -5px;
    }
}
@media(max-width:767px){
    .room-img-box .img-label{
        font-size: 12px;
        top: -0;
        width: 40%;
    }
}


.tech-box{
    border-radius: 12px;
    padding-block: 15px;
    border: 2px solid #0DA9A6;
    margin-bottom: 20px;
    text-align: center;
}
.tech-box.colored{
    background-color: #8CE1EA;
}
.tech-box h6{
    color: #29275F;
    font-size: 16px;
    font-weight: bold;
}
@media(max-width:767px){
    .tech-box h6{
    font-size: 10px;
}
}
