:root {
    --moh-blue-primary: #0e91a1; /* لون وقاية الرسمي - لون أزرق أساسي */
    --moh-white: #ffffff;
    --moh-light-gray: #f8f8f8; /* رمادي فاتح للخلفيات */
    --moh-text-color: #333333;
    --moh-text-light: #666666;
    --moh-border-color: #e0e0e0;
}

html,body {
    font-family: "Alexandria", serif;
    scroll-behavior: smooth;
    color: var(--moh-text-color);
    background-color: var(--moh-white);
}


html[lang="ar"] .faq-section {
    direction: rtl; 
}

html[lang="ar"] .faq-section .accordion-button {
    text-align: right;       
    padding-left: 20px;     
    padding-right: 50px;     
}

html[lang="ar"] .faq-section .accordion-body {
    text-align: right;       
}
/* -------------------------------------------------------------------------- */
/*                                   Header                                   */
/* -------------------------------------------------------------------------- */

.header {
    position: relative;
    min-height: 60vh; 
    background-image: url(../img/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    background-blend-mode: overlay;
    background-color: #0a545e; 
}

.header-content-right {
    position: relative;
    text-align: right;
    z-index: 1;
    padding-top: clamp(120px, 18vh, 180px);
    padding-bottom: 60px;
}

.header-main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.6;
    color: var(--moh-white);
    font-weight: 700;
    margin: 0 0 12px;
}

.header-sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--moh-light-gray);
    /* font-weight: 400; */
}

.header-inner {
    max-width: 1200px;
    margin-inline: auto; 
    padding-inline: 24px;
    text-align: start; 
    max-width: 1200px;       
    width: 100%;
    padding-inline: 24px;    
    margin: 0 auto;          
    text-align: center;
}
/* -------------------------------------------------------------------------- */
/*                                    Logo                                    */
/* -------------------------------------------------------------------------- */

.image-vision {
    width: 100px;
    transition: width 0.3s ease;
}

.img-centered {
    width: 100px;
}
#mainLogo {
    transition: 0.3s;
    filter: brightness(0) invert(1);
}
.scrolled #mainLogo {
    filter: none; 
}

.logo-wrapper {
    gap: 16px; 
}
html[lang="ar"] #mainLogo {
    margin-left: 16px;
}

html[lang="en"] #mainLogo {
    margin-right: 16px;
}
/* -------------------------------------------------------------------------- */
/*                                   Navbar                                   */
/* -------------------------------------------------------------------------- */

.navbar {
    transition: all 0.3s ease-in-out;
}

.navbar .nav-item {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar .nav-item .nav-link {
    color: var(--moh-white);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active {
    color: var(--moh-light-gray);
}

.navbar.scrolled {
    background-color: var(--moh-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.navbar.scrolled .nav-link {
    color: var(--moh-text-color);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--moh-blue-primary);
}

.navbar.scrolled .image-vision {
    filter: none; 
    width: 80px;
}

.navbar.scrolled .navbar-brand img {
    width: 80px;
}

.lang-switcher li a {
    color: var(--moh-white);
    text-decoration: none;
    font-weight: 600;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper img,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px 25px;
    pointer-events: none; 
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.video-wrapper:hover .play-icon {
    background-color: rgba(0, 0, 0, 0.7);
}

.navbar.scrolled .lang-switcher li a {
    color: var(--moh-text-color);
}

.dropdown-menu {
    border: 1px solid var(--moh-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--moh-white);
}

.dropdown-item {
    color: var(--moh-text-color);
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--moh-light-gray);
    color: var(--moh-blue-primary);
}

.main-video-container {
    width: 100%;
    padding: 20px;
    background-color: var(--moh-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;

}

.mainvid {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* -------------------------------------------------------------------------- */
/*                                 About Section                              */
/* -------------------------------------------------------------------------- */

.about {
    background-image: url('../img/banner-2.jpg');
    background-size: cover;
    background-color: var(--moh-light-gray); 
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-position: center;
    height: auto;
    padding-top: 5rem;
    padding-bottom: 6rem;
    margin-bottom: 50px; /* Add margin to separate from the next section */
}

.about-text-box {
    background-color: var(--moh-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-right: 5px solid var(--moh-blue-primary);
}

.about-us-main {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--moh-text-color);
    padding: 0;
    background-color: transparent;
}

.notice-banner {
    background-color: var(--moh-blue-primary);
    padding: 15px 20px;
    color: var(--moh-white);
    text-align: right;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
}

.notice-banner i {
    margin-left: 10px;
}

.sponser-heading {
    font-size: 2rem;
    color: var(--moh-text-color);
    text-align: center;
    font-weight: 700;
}

.img-sponsers {
    justify-content: center;
}

.sponser-img {
    border: 1px solid var(--moh-border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 10px;
    width: 140px;
    height: auto;
    background-color: var(--moh-white);
    margin-left: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    object-fit: contain;
}

.sponser-img:hover {
    transform: translateY(-5px);
}

/* -------------------------------------------------------------------------- */
/*                                Section Heading                             */
/* -------------------------------------------------------------------------- */

.section-heading {
    font-size: 2.5rem;
    color: var(--moh-blue-primary);
    text-align: start;
    margin-bottom: 50px;
    margin-top: 50px;
    font-weight: 700;
    position: relative;
    display: block;
}

.section-heading i {
    color: var(--moh-blue-primary);
    margin-left: 10px;
}

/* -------------------------------------------------------------------------- */
/*                                 Goals Section                              */
/* -------------------------------------------------------------------------- */

.program-goals-section {
    padding: 5rem 0;
    background-color: var(--moh-light-gray);
}

.goal-card {
    background-color: var(--moh-white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s;
    border-bottom: 3px solid var(--moh-blue-primary);
}

.goal-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.goal-card i {
    font-size: 3rem;
    color: var(--moh-blue-primary);
    margin-bottom: 15px;
}

.goal-card-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--moh-blue-primaryk);
}

/* -------------------------------------------------------------------------- */
/*                                 Steps Section                              */
/* -------------------------------------------------------------------------- */

.scan-steps-section {
    padding: 5rem 0;
    background-color: var(--moh-white);
}

.scan-steps-timeline {
    position: relative;
    padding: 20px 0;
}

.scan-steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 4px;
    background-color: var(--moh-border-color);
    margin-right: -2px;
    display: none; 
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    text-align: center;
}

.timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: center;
    right: 0;
}

.timeline-item:nth-child(even) {
    padding-left: 0;
    text-align: center;
    left: 0;
}

.timeline-icon {
    position: static;
    margin: 0 auto 15px auto;
    width: 60px;
    height: 60px;
    background-color: var(--moh-blue-primary);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px var(--moh-white), 0 5px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease-in-out;
}

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

.timeline-item:nth-child(even) .timeline-icon {
    left: auto;
    right: auto;
}

.timeline-icon img {
    width: 35px; 
    filter: brightness(0) invert(1);
}

.timeline-content {
    background-color: var(--moh-white); 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); 
    max-width: 600px;
    margin: 0 auto;
    text-align: right;
    border-right: 5px solid var(--moh-blue-primary); 
    transition: box-shadow 0.3s ease-in-out;
}

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: var(--moh-blue-primary);
    font-weight: 700; 
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--moh-text-color); 
    line-height: 1.8;
    margin-bottom: 0;
}

html[lang="en"] .timeline-content {
    text-align: left;
    direction: ltr;
    border-left: 5px solid var(--moh-blue-primary);
    border-right: none;
}
/* -------------------------------------------------------------------------- */
/*                                  FAQ Section                               */
/* -------------------------------------------------------------------------- */

.faq-section {
    padding: 5rem 0;
    background-color: var(--moh-light-gray);
}

.faq-section .row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;         
    align-items: stretch;  
}

.faq-section .accordion {
    width: 100%;
}


.faq-section .col-lg-6 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background-color: var(--moh-white);
    color: var(--moh-blue-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--moh-blue-primary);
    color: var(--moh-white);
    box-shadow: none;
}

.accordion-body {
    background-color: var(--moh-white);
    color: var(--moh-text-color);
    padding: 15px 20px 20px;
    border-top: 1px solid var(--moh-border-color);
    line-height: 1.7;
}

.faq-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0px;
}

.faq-image-container img {
    max-height: 800px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite; 
}
.my-img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.accordion-button {
    font-weight: 600;
    color: var(--moh-text-color);
    background-color: var(--moh-light-gray);
    border-radius: 5px !important;
    transition: all 0.3s;
    position: relative;
    padding-right: 50px; 
    padding-left: 15px; 
}

.accordion-button:not(.collapsed) {
    color: var(--moh-white);
    background-color: var(--moh-blue-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 145, 255, 0.25); 
    border-color: var(--moh-blue-primary);
}

.accordion-button::after {
    /* Remove default Bootstrap arrow */
    background-image: none !important;
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg); 
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--moh-text-color); 
    border-bottom: 2px solid var(--moh-text-color);
    transition: transform 0.3s;
    filter: none;
}
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid #999999;
    border-bottom: 2px solid #999999;
    transition: transform 0.3s;
    background: none;
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    border-right-color: var(--moh-white);
    border-bottom-color: var(--moh-white);
    transform: translateY(-50%) rotate(-135deg);
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--moh-border-color);
    border-radius: 5px !important;
}

.accordion-body {
    background-color: var(--moh-light-gray);
    color: var(--moh-text-light);
    line-height: 1.7;
}

.faq-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* -------------------------------------------------------------------------- */
/*                                 Footer Section                             */
/* -------------------------------------------------------------------------- */

.footer-section {
    background-color: var(--moh-blue-primary);
    color: var(--moh-white);
}

.footer-section a {
    color: var(--moh-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--moh-blue-primary);
}

.footer-section h5 {
    color: var(--moh-white);
    font-weight: 600;
    border-bottom: 2px solid var(--moh-blue-primary);
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

.footer-contacts i {
    margin-left: 10px;
    color: var(--moh-light-gray);
}

.social-icons .social-icon {
    font-size: 1.5rem;
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons .social-icon:hover {
    transform: translateY(-3px);
    color: var(--moh-blue-primary);
}

.copyright {
    background-color: #0e91a1; 
    text-align: center;
    padding: 15px;
    color: var(--moh-white);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--moh-white);
    text-decoration: none;
}

footer #mainlogo2 {
    filter: brightness(0) saturate(100%) invert(1) !important;
}

/* -------------------------------------------------------------------------- */
/*                                Floating Button                             */
/* -------------------------------------------------------------------------- */

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--moh-blue-primary);
    color: var(--moh-white);
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    width: 57px;
    height: 57px;
    font-size: 39px;
    line-height: 0.5;
    border: 2px solid var(--moh-white);
    transition: background-color 0.3s;
}

.floating-btn:hover {
    background-color: var(--moh-blue-primary);
}

/* -------------------------------------------------------------------------- */
/*                                  Media Queries                             */
/* -------------------------------------------------------------------------- */

@media only screen and (max-width: 992px) {
    html,body {
        overflow-x: hidden;
    }
    .header {
        min-height: 70vh;
        background-position: center;
    }
    .header-content-right {
        position: static;
        transform: none;
        text-align: center;
        max-width: 100%;
        padding: 50px 20px;
    }
    .header-main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .header-sub-title {
        font-size: 1.2rem;
    }
    .about-text-box {
        margin-bottom: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        right: auto;
        left: auto;
        text-align: center !important;
    }
    .scan-steps-timeline::before {
        display: none;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 0;
        right: auto;
        left: auto;
    }
    .timeline-item:nth-child(even) {
        padding-left: 0;
        left: auto;
    }
    .timeline-icon {
        position: static;
        margin: 0 auto 15px auto;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: auto;
        right: auto;
    }
    .timeline-content {
        max-width: 100%;
        margin: 0 auto;
    }
    /* نهاية أنماط Timeline الجديدة في الجوال */
    .sponser-img {
        width: 48%;
        margin-left: 1%;
        margin-right: 1%;
    }
    .img-sponsers {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
    }
}

/* -------------------------------------------------------------------------- */
/*                                  Original CSS Cleanup    */
/* -------------------------------------------------------------------------- */

.img-nav-top, .img-nav-left, .about-heading, .about-sub-heading, .about-year-number, .scan-goals-main-heading, .scan-goals-main-heading-2, .scan-box-icon, .scan-box-heading, .scan-goals-inner, .faq, .footer {
  
}


.img-centered {
    width: 100px;
}

.nav-desktop {
    display: block;
}
.nav-mobile {
    display: none;
}

@media only screen and (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
    }
    .faq-image-container {
        height: auto;
        margin-top: 30px;
    }
    .faq-image-container img {
        max-height: 300px;
    }
}

/* -------------------------------------------------------------------------- */
/*                        Nest Hub & Nest Hub Max Fixes                      */
/* -------------------------------------------------------------------------- */

/* Nest Hub (600x1024) and iPad Pro (1024x1366) */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
    .header {
        min-height: 65vh;
        background-position: center;
        background-size: cover;
    }
    
    .header-content-right {
        padding: 40px 20px;
    }
    
    .header-main-title {
        font-size: 2.2rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .header-sub-title {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .nav-item {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    
    .image-vision {
        width: 90px;
    }
    
    .navbar.scrolled .image-vision {
        width: 70px;
    }
}

@media only screen and (min-width: 900px) and (max-width: 1100px) and (max-height: 1000px) {
    .header {
        min-height: 60vh;
        background-position: center;
    }
    
    .header-content-right {
        position: static;
        transform: none;
        text-align: center;
        max-width: 100%;
        padding: 35px 20px;
        margin-top: 20px;
    }
    
    .header-main-title {
        font-size: 2rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .header-sub-title {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar .nav-item {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar .nav-item .nav-link {
        font-size: 0.95rem;
    }
    
    .image-vision {
        width: 80px;
    }
    
    .navbar.scrolled .image-vision {
        width: 65px;
    }
}

/* Additional spacing fix between About and Partners sections */
@media only screen and (max-width: 1200px) {
    .about {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .section-heading {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
}

/* FAQ and Image Container alignment */
@media only screen and (max-width: 1200px) {
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
    
    .faq-image-container img {
        max-height: 400px;
        width: auto;
    }
    
    .accordion {
        min-height: auto;
    }
}
