@import "./addFonts.css";

* {
    margin: 0px;
    padding: 0px;
}

p {
    margin: 0;
}

a,
a:hover,
a:visited,
a:focus {
    text-decoration: none;
    color: unset;
}

li {
    list-style: none;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
}

/* Variable */
:root {
    --White: white;
    --Black: black;
    --Blue: #2a5687;
    --LigthBlue: #10548b;
    --LightGray: #f0f0f0;
    --Gray: #999999;
    --DarkGray: #4f4f4f;
    --LightGreen: #539ba5;
    --Green: #00ffd3;
    --Yellow: #ffc000;
    --DarkestGray: #232323;
    --IconSize: 20px;
    --FaceBook: #3b5999;
    --Twitter: #55acee;
    --Instagram: #e4405f;
    --Whatsapp: #25d366;
    --YouTube: #cd201f;
    --telegram: #0088cc;
}

/* Color */
.Blue {
    color: var(--Blue);
}

.DarkGray {
    color: var(--DarkGray);
}

.White {
    color: var(--White);
}

.Yellow {
    color: var(--Yellow);
}

.Gray {
    color: var(--LightGray) !important;
}

/* FontSize */
.H1 {
    font-size: 40px;
}

.H2 {
    font-size: 30px;
}

.T1 {
    font-size: 22px;
}

.T2 {
    font-size: 18px;
}

.T3 {
    font-size: 15px;
}

.IconSize {
    font-size: 20px;
}

@media only screen and (max-width: 768px) {
    .H1 {
        font-size: 30px;
    }

    .H2 {
        font-size: 25px;
    }

    .T1 {
        font-size: 20px;
    }

    .T2 {
        font-size: 15px;
    }

    .T3 {
        font-size: 13px;
    }

    .button-container {
        bottom: 74px !important;
        left: 33px !important;
    }

    /* Fix horizontal scrolling on question category page */
    .categoryQuestion {
        display: none !important;
    }

    .selectQuestion {
        display: flex !important;
    }

    .News .container .row .col-md-11,
    .News .container .row .col-lg-10 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Footer Mobile Styles */
    .footer-container {
        position: relative;
        padding: 30px 15px 15px 15px;
        background-color: var(--DarkestGray);
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Logo and Description Section */
    .footer-section.footer-about {
        text-align: center;
        order: 1;
    }

    .footer-logo img {
        max-width: 180px;
        height: auto;
        margin-bottom: 15px;
    }

    .footer-description {
        color: var(--Gray);
        font-size: 13px;
        line-height: 1.6;
        padding: 0 20px;
        margin: 0;
    }

    .read-more-link {
        color: var(--White) !important;
        text-decoration: none;
    }

    /* Social Media Section */
    .footer-section.footer-social {
        text-align: center;
        order: 2;
    }

    .footer-center-logo {
        margin-bottom: 20px;
    }

    .footer-center-logo img {
        max-width: 140px;
        height: auto;
    }

    .social-media-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
    }

    .social-link {
        color: var(--White);
        opacity: 0.7;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .social-link:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .social-link i {
        font-size: 22px;
    }

    /* Navigation Links Section */
    .footer-section.footer-links {
        order: 3;
    }

    .footer-menu-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
    }

    .footer-menu-column {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        text-align: center;
    }

    .menu-title {
        margin-bottom: 15px;
    }

    .menu-title a {
        color: var(--Gray);
        font-family: "AlmaraiBold";
        font-size: 14px;
        text-decoration: none;
        border-bottom: 2px solid var(--Gray);
        padding-bottom: 5px;
        display: inline-block;
    }

    .menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-items li {
        margin: 8px 0;
    }

    .menu-items a {
        color: var(--Gray);
        font-family: "AlmaraiRegular";
        font-size: 12px;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .menu-items a:hover {
        color: var(--Green);
    }

    /* Copyright Section */
    .footer-copyright {
        background-color: var(--LightGray);
        margin-top: 30px;
        padding: 15px 10px;
        text-align: center;
    }

    .copyright-content {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .copyright-link,
    .website-link {
        color: var(--DarkGray);
        font-size: 10px;
        text-decoration: underline;
        line-height: 1.4;
    }

    .website-link {
        font-family: "Tajawal";
        font-size: 11px;
    }
}

/* Some Personal Style Start */
.Flex {
    display: flex;
}

.HCenter {
    justify-content: center;
}

.VCenter {
    align-items: center;
}

.Col {
    flex-direction: column;
}

.Row {
    flex-direction: row;
}

.Rtl {
    direction: rtl;
}

.Ltr {
    direction: ltr;
}

.TRight {
    text-align: right;
}

.TLeft {
    text-align: left;
}

.TCenter {
    text-align: center;
}

.TJus {
    text-align: justify;
}

.W100 {
    width: 100%;
}

.H100 {
    height: 100%;
}

.Pointer {
    cursor: pointer;
}

.Transition {
    transition: 0.5s;
}

/* Some Personal Style End */

/* Mobile responsive fixes */
@media only screen and (max-width: 991px) {

    /* Prevent horizontal scrolling */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Question page mobile fixes */
    .News .container .row {
        margin-left: 0;
        margin-right: 0;
    }

    .News .container .row>[class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure dropdown doesn't cause overflow */
    .dropdownItemContainer {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border: 1px solid #ddd;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Fix breadcrumb overflow */
    .breadcrumb {
        flex-wrap: wrap;
        word-break: break-word;
    }

    .breadcrumb-item {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Ensure all content stays within viewport */
    * {
        box-sizing: border-box;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Header Start */
.TopSocialHeader {
    width: 100%;
    background-color: var(--Blue);
    height: 50px;
    transition: 0.5s;
    position: sticky;
    top: 0px;
    z-index: 700;
}

.SocialLink>a {
    color: var(--White);
    opacity: 0.5;
    margin-right: 15px;
    cursor: pointer;
}

.ChangeLanguage>a {
    margin-left: 15px;
    color: var(--White);
    opacity: 0.5;
    cursor: pointer;
}

.SocialLink>a:hover,
.ChangeLanguage>a:hover {
    opacity: 1;
}

.HeaderImg>img {
    /* background-image: url("../assets/imgs/header.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center; */
    width: 100%;
}

.MenuBar {
    width: 100%;
    background-color: var(--LightGray);
    display: flex;
    justify-content: center;
    /* border-bottom: 5px solid var(--Blue); */
    padding: 5px 0px;
    z-index: 700;
    position: sticky;
    top: 50px;
}

.MenuBar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    /* بیشترین ضخامت */
    background: var(--Blue);
    clip-path: polygon(0% 80%, 100% 100%, 100% 100%, 0% 100%);

    /* فلیپ شده عمودی - از سمت چپ 20% ضخامت، به راست 100% */
}

.MenuBar>ul {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    margin: 2px 0;
    padding: 10px 0px;
}

.MenuBar>ul>li {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.5s;
    display: flex;
    align-items: center;
}

/* .MenuBar > ul > li:last-child {
  border-bottom: none !important;
} */
.MenuBar>ul>li:hover {
    border-bottom: 2px solid var(--LightGreen) !important;
}

/* .MenuBar > ul > li.Active{
  border-bottom: 2px solid var(--Yellow) !important;
} */
.MenuBar>ul>li>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--DarkGray);
}

.MenuBar>ul>li>a>i {
    font-size: 30px !important;
}

.MenuBar>ul>li:hover>a {
    color: var(--Blue);
}

.MenuBar>ul>li>a>p {
    margin-top: 5px;
    font-size: 12px;
}

.MenuBar>ul>li>img {
    display: none;
    margin-top: 3px;
}

.MenuBar>ul>li:hover>a>p {
    color: var(--Blue);
}

.MenuBar>ul>li:hover>img {
    display: block;
}

.MenuBar>ul>li:first-child {
    display: none;
    border-bottom: none !important;
}

.MenuBar>ul>li.Active::after {
    display: block;
    border-top-color: var(--Yellow);
}

.MenuBar>ul>li.Active>a>p {
    color: var(--Blue) !important;
}

.MenuBar>ul>li.Active>a {
    color: var(--Blue) !important;
    border-bottom: 2px solid var(--Blue);
    line-height: 2.5;
}

.LogoMenu {
    animation-duration: 0.5s;
    -webkit-animation-duration: 0.5s;
}

.Icon-Search {
    fill: var(--DarkGray);
}

.MenuBar>ul>li:hover .Icon-Search {
    fill: var(--Blue);
}

.SearchView {
    position: fixed;
    height: 100vh;
    width: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.7);
    overflow-y: auto;
    padding-top: 100px;
    display: none;
    z-index: 900;
}

/* LogoSView - Fixed positioning for mobile logo */
.LogoSView {
    position: fixed !important;
    z-index: 750 !important;
    top: 50px !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: none;
}

.inputSearchContainer {
    display: flex;
    align-items: center;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 10px 25px;
}

.inputSearch {
    border: none;
    outline: none;
    color: var(--DarkGray);
    background-color: transparent;
    width: 100%;
    padding: 0px 20px;
}

.world-times:hover {
    color: #539ba5 !important;
    cursor: pointer;
}

.inputSearchContainer>i {
    color: var(--DarkGray);
}

.CloseSearchView {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--DarkGray);
    transition: 0.7s;
}

.CloseSearchView>i:hover {
    color: var(--LigthBlue);
}

/* Header End */
/* News Start */
.News {
    margin-bottom: 30px;
}

.containerNews {
    background-color: var(--White);
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* margin-bottom: 15px; */
}

.containerNews:hover .headerCard {
    background-color: var(--Blue);
}

.containerNews:hover .headerCard>small {
    color: var(--White);
}

.containerNews.Active .headerCard {
    background-color: var(--Blue);
}

.containerNews.Active .headerCard>small {
    color: var(--White);
}

.tp-AppSection-1 {
    direction: ltr;
    height: 600px;
    background: rgb(50, 146, 191);
    background: radial-gradient(circle,
            rgba(50, 146, 191, 1) 0%,
            rgba(29, 106, 157, 1) 0%,
            rgba(29, 106, 157, 1) 41%,
            rgba(50, 146, 191, 1) 86%);
}

.tp-AppSection-2 {
    direction: rtl;
    padding: 40px 0;
    padding-top: 150px;
}

.tp-AppSectionText-2 {
    position: relative;
}

.tp-AppSectionText-2::before {
    content: " ";
    position: absolute;
    top: -15px;
    right: 0;
    height: 6px;
    border-radius: 15px;
    width: 70px;
    background-color: #02fdd3;
}

.tp-AppSection-3 {
    direction: ltr;
    padding: 40px 0;
}

.tp-AppSection-4 {
    direction: rtl;
    padding: 40px 0;
    position: relative;
    padding-bottom: 300px;
    overflow: hidden;
}

.tp-AppSection-4 img {
    width: 800px;
    position: absolute;
    right: -250px;
    top: -150px;
}

.tp-AppSection-4::after {
    content: " ";
    position: absolute;
    bottom: -150px;
    left: -120px;
    border-radius: 15px;
    height: 500px;
    width: 500px;
    border: 2px solid var(--DarkGray);
    opacity: 0.3;
}

.tp-AppSection-4::before {
    content: " ";
    position: absolute;
    top: calc(100% - 200px);
    left: -600px;
    height: 3000px;
    width: 3000px;
    transform: rotateZ(-8deg);
    -webkit-transform: rotateZ(-8deg);
    background-color: var(--LigthBlue);
}

.tp-AppSection-5 {
    background-color: var(--LigthBlue);
}

.tp-AppSection-6 {
    direction: rtl;
    background-color: var(--LigthBlue);
}

.tp-AppSection-7 {
    background-color: var(--LigthBlue);
    padding-bottom: 100px;
}

#AppDownload {
    cursor: pointer;
}

.tp-ShahidSection-4,
.tp-ShahidSection-11 {
    position: relative;
}

.tp-ShahidSection-4>div,
.tp-ShahidSection-11>div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.tp-ShahidSection-4 img {
    min-height: 250px;
}

.tp-ShahidSection-7,
.tp-ShahidSection-13 {
    background-image: url("../assets/imgs/BgVectorShahid.svg");
    background-size: cover;
}

.tp-item-app {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 2px solid white;
    padding: 10px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.5s;
}

.tp-item-app svg {
    fill: white;
}

.tp-item-app i {
    color: white;
}

.tp-item-app:hover {
    border: 2px solid var(--LigthBlue);
    background-color: var(--White);
    opacity: 1;
}

.tp-item-app:hover p {
    color: var(--Blue);
}

.tp-item-app:hover svg {
    fill: var(--LigthBlue);
}

.tp-item-app:hover i {
    color: var(--LigthBlue);
}

.headerCard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 10px 15px;
    transition: 0.5s;
}

.headerCard>small {
    color: var(--DarkGray);
}

.headerCard>small>i {
    margin: 0px 5px;
}

.imgCard {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.imgCard>img {
    width: 100%;
    border-radius: 15px;
}

.contentCard {
    margin-top: 10px;
    padding: 15px 15px 25px 15px;
}

.NewsItem:not(:first-child) .contentCard>h2 {
    color: black;
}

.NewsItem:not(:first-child) .contentCard>h2::before {
    background-color: Black;
}

.NewsItem:hover .contentCard>h2 {
    color: var(--Blue);
}

.NewsItem:hover .contentCard>h2::before {
    background-color: var(--Blue);
}

.contentCard>h2 {
    position: relative;
    padding: 10px 0px;
    max-height:75px;
    min-height:70px;

}

.contentCard>h2::before {
    content: " ";
    position: absolute;
    right: -30px;
    top: 0px;
    height: 100%;
    width: 20px;
    border-radius: 30px;
    background-color: var(--Blue);
}

.contentCard>p {
    margin-top: 15px;
    text-align: justify;
}

.Mybtn {
    outline: none;
    border: 1.5px solid var(--Gray);
    color: var(--Gray);
    border-radius: 12px;
    padding: 12px 15px;
    font-family: "AlmaraiBold";
    background-color: transparent;
    transition: 0.5s;
}

.Mybtn:hover {
    border: 1.5px solid var(--Blue);
    color: var(--White);
    background-color: var(--Blue);
}

/* News End */
/* Sound Start */
.Sounds {
    margin: 50px 0px;
}

.SoundBtn {
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: 15px;
    justify-content: space-between;
    align-items: center;
    background-color: var(--LightGray);
    padding: 10px;
    border: 1px solid #cecccc;
    cursor: pointer;
    transition: 0.5s;
    margin-bottom: 10px;
}

.SoundBtn:hover {
    background-color: var(--Blue);
}

.SoundBtn:hover>p {
    color: var(--White);
}

.SoundBtnActive {
    background-color: var(--Blue) !important;
}

.SoundBtnActive>p {
    color: var(--White) !important;
}

.SoundBtnActive>div.downloadIcon>i,
.SoundBtnActive>div.downloadIcon>a {
    color: var(--White) !important;
}

.SoundBtnActive>.progress {
    display: block !important;
}

.SoundBtnActive>.TimeSound {
    display: block !important;
}

.SoundBtn>div.downloadIcon {
    display: flex;
    flex-wrap: nowrap;
}

.SoundBtn>div.downloadIcon>i {
    color: var(--DarkGray);
    margin: 0px 7px;
}

.SoundBtn>div.downloadIcon>i.fa-pause-circle {
    display: none;
}

.SoundBtn>div.downloadIcon>a {
    color: var(--Blue);
}

.SoundBtn:hover>div.downloadIcon>i,
.SoundBtn:hover>div.downloadIcon>a {
    color: var(--White);
}

.SoundBtn:hover>.progress {
    display: block;
}

.SoundBtn>div.downloadIcon>i.fa-play-circle:hover,
.SoundBtn>div.downloadIcon>i.fa-pause-circle:hover {
    color: var(--Gray) !important;
}

.SoundBtn>div.downloadIcon>a>i.fa-cloud-download-alt:hover {
    color: var(--Gray) !important;
}

.SoundBtn>div.downloadIcon>a>i.fa-share-alt:hover {
    color: var(--Gray) !important;
}

.SocialIconsSound {
    background-color: var(--LightGray);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    align-items: center;
    direction: ltr;
    transform: rotateY(90deg);
    -webkit-transform: rotateY(90deg);
    transform-origin: left;
    -webkit-transform-origin: left;
    transition: 0.6s;
    border-radius: 15px;
    display: flex;
}

.SocialIconsSoundOpen {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.SocialIconsSound>div:first-child {
    padding: 10px 15px;
}

.SocialIconsSound>div:first-child>i:hover {
    color: var(--Yellow);
}

.SocialIconsSound>div:last-child {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.SocialIconsSound>div:last-child>a>i {
    display: none;
}

.SocialIconsSoundOpen>div:last-child>a>i {
    display: block !important;
}

.SocialIconsSound>div:last-child>a>i {
    font-size: 30px;
    transition: 0.3s;
    color: #4f4f4f;
    animation-delay: 200ms !important;
}

.SocialIconsSound>div:last-child>a>i:hover {
    color: #2a5687;
}

.progress {
    display: none;
    width: 100px;
    height: 5px;
    border-radius: 15px;
    background-color: var(--LightGray);
    overflow: hidden;
    position: relative;
}

.TimeSound {
    display: none;
}

.progress>span {
    content: " ";
    position: absolute;
    left: 0px;
    top: 0px;
    height: 8px;
    background-color: var(--LightGreen);
}

/* Sound End */
/* Album Start */
.SlickSliderImg {
    width: 100%;
}

.SlickSliderImg>a>img {
    margin: 0px;
}

/* Album End */

/* .documents-slider .slick-track,
.documents-slider .slick-track a {
    width: 180px !important;
    height: 180px !important;
} */

/* footer Start - Base Styles */
footer {
    position: relative;
    background-color: var(--DarkestGray);
    padding: 30px 15px 15px 15px;
}

/* Legacy Footer Classes - Keep for compatibility */
.FooterLink {
    list-style: none;
}

.FooterLink>li {
    border-bottom: solid 1.5px var(--Gray);
    color: var(--Gray);
    font-family: "AlmaraiBold";
}

.FooterLink>a {
    color: var(--Gray);
    font-family: "AlmaraiRegular";
}

.FooterLink>a>li {
    margin: 7px 0px;
}

.FooterLink>a:hover {
    color: var(--Green);
}

/* New Footer Container Styles */
.footer-container {
    position: relative;
    background-color: var(--DarkestGray);
    padding: 30px 15px 15px 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Base Footer Section Styles */
.footer-section.footer-about {
    text-align: center;
    order: 1;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--Gray);
    font-size: 13px;
    line-height: 1.6;
    padding: 0 20px;
    margin: 0;
}

.read-more-link {
    color: var(--White) !important;
    text-decoration: none;
}

.footer-section.footer-social {
    text-align: center;
    order: 2;
}

.footer-center-logo {
    margin-bottom: 20px;
}

.footer-center-logo img {
    max-width: 140px;
    height: auto;
}

.social-media-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: var(--White);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 22px;
}

.footer-section.footer-links {
    order: 3;
}

.footer-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.footer-menu-column {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    text-align: center;
}

.menu-title {
    margin-bottom: 15px;
}

.menu-title a {
    color: var(--Gray);
    font-family: "AlmaraiBold";
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid var(--Gray);
    padding-bottom: 5px;
    display: inline-block;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin: 8px 0;
}

.menu-items a {
    color: var(--Gray);
    font-family: "AlmaraiRegular";
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: var(--Green);
}

.footer-copyright {
    background-color: var(--LightGray);
    margin-top: 30px;
    padding: 15px 10px;
    text-align: center;
}

.copyright-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.copyright-link,
.website-link {
    color: var(--DarkGray);
    font-size: 10px;
    text-decoration: underline;
    line-height: 1.4;
}

.website-link {
    font-family: "Tajawal";
    font-size: 11px;
}

/* footer End */

.Hadis {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

.ImgContainer {
    max-width: 85%;
    position: relative;
    padding: 10px 15px;
    border-bottom: 2px solid #2b5b89;
}

.rightImgHadis {
    position: absolute;
    right: -20px;
    top: 2.2px;
    height: 100%;
    z-index: -1;
}

.leftImgHadis {
    position: absolute;
    left: -20px;
    top: 2.2px;
    height: 100%;
    z-index: -1;
}

.accordion {
    direction: rtl;
    text-align: right;
}

.accordion-header {
    width: 100%;
    background-color: var(--LightGray);
}

.accordion-button {
    padding: 20px 15px;
    border: none;
    height: 100%;
    background-color: var(--Gray);
    color: var(--LightGray);
    font-size: 15px;
    width: 280px;
}

.accordion-button[aria-expanded="true"] {
    background-color: var(--Blue);
}

.accordion-button span {
    border-left: 2px solid var(--LightGray);
    padding: 0 10px;
}

.accordion-button i {
    margin: 0 10px;
    transition: 0.3s;
}

.accordion-button[aria-expanded="true"]>i {
    transform: rotateZ(180deg);
    -webkit-transform: rotateZ(180deg);
}

.accordion-body {
    background-color: var(--White);
    display: flex;
    overflow: hidden;
}

.accordion-body p {
    padding: 10px 15px;
    width: calc(100% - 280px);
}

.accordion-body>.img-shahid-2 {
    background-color: var(--Blue);
    width: 280px;
}

.CoverFirst {
    /* height: 400px; */
}

.CoverSecond {
    /* height: 525px; */
}


.Monasebat-scrollable-div {
    height: 250px;
    direction: ltr;
    color: #FFFFFF;
    overflow-y: auto;
}

/* استایل اسکرول‌بار */
.Monasebat-scrollable-div::-webkit-scrollbar {
    width: 5px;
}

.Monasebat-scrollable-div::-webkit-scrollbar-track {
    background: transparent;
}

.Monasebat-scrollable-div::-webkit-scrollbar-thumb {
    background-color: #00ffd3;
    border-radius: 4px;
}


.Questions-scrollable-div {
    height: 250px;
    direction: ltr;
    color: #FFFFFF;
    overflow-y: auto;
}

/* استایل اسکرول‌بار */
.Questions-scrollable-div::-webkit-scrollbar {
    width: 5px;
}

.Questions-scrollable-div::-webkit-scrollbar-track {
    background: transparent;
}

.Questions-scrollable-div::-webkit-scrollbar-thumb {
    background-color: var(--Blue);
    border-radius: 4px;
}



.Monasebat {
    /* width: 100%; */
    /* height: 100%; */
    background-image: url(../assets/imgs/cn-1.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5% 5%;
}

.Monasebat>h3 {
    margin-bottom: 40px;
}

.Monasebat>div {
    /*position: relative;*/
}

.Monasebat>div>p {
    color: white;
    margin: 10px 25px;
}

.Monasebat>div>p:first-child {
    color: white;
    margin: 10px 25px;
    margin-top: 0px;
}

.Monasebat>div>p>small:last-child {
    margin: 0px 15px;
}

.LineMonasebat {
    background-color: var(--Green);
    width: 5px;
    height: 100px;
    border-radius: 15px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.Today {
    font-size: 25px;
    font-family: "AlmaraiBold";
    color: var(--Green) !important;
}

.OghateShareeee {
    /* width: 100%; */
    /* height: 100%; */
    background-image: url(../assets/imgs/cn-2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5% 5%;
}

.OghateShareeeeTime {
    /*margin-top: 35px;*/
}

.OghateShareeeeTime>small {
    margin: 0px 10px;
}

.OghateShareeeeTime>small>span {
    margin: 0px 5px;
}

.ShahidRight:hover,
.ShahidLeft:hover {
    opacity: 1 !important;
    cursor: pointer;
}

.esteftat {
    /* width: 100%; */
    /* height: 100%; */
    background-image: url(../assets/imgs/cn-3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5%;
    position: relative;
}

.esteftat>img {
    position: absolute;
    left: 0;
    top: 50%;
    /*margin-right: 650px;*/
    /*margin-top: 193px;*/
    transform: translateY(-50%) rotateZ(180deg);
    opacity: 0.7;
    filter: grayscale(70%);
}

.esteftat>div {
    position: relative;
    margin-top: 25px;
    padding-right: 15px;
    overflow-y: auto;
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
}

.LineEsteftat {
    background-color: var(--Blue);
    width: 5px;
    height: 50px;
    border-radius: 15px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.esteftatImg {
    height: 15px;
    display: block;
    margin: 0 auto;
}

.esteftatBtn {
    outline: none !important;
    border: 1px solid var(--Gray);
    border-radius: 13px;
    padding: 12px 15px;
    font-family: "AlmaraiBold";
    transition: 0.5s;
    width: 100%;
    color: var(--Gray);
}

.esteftatBtn2:hover {
    box-shadow: 2px 5px 15px var(--Gray);
    background-color: transparent !important;
    color: var(--Blue) !important;
}

.esteftatBtn1:hover,
.esteftatBtn1.active {
    /*box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);*/
    background-color: var(--Blue) !important;
    border-color: var(--Blue) !important;
    /*color: #2A5687 !important;*/
    color: white;
    /*border-color: #2A5687 !important;*/
}

.ra-khoei {
    /* width: 100%; */
    /* height: 100%; */
    background-image: url(../assets/imgs/cn-4.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5%;
    position: relative;
}

.ra-khoei>img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.ra-khoeiItem>div {
    border: 1.5px solid var(--LightGreen);
    padding: 5px 15px;
    border-radius: 10px;
    margin: 10px 0px;
    transition: 0.5s;
}

.ra-khoeiItem>div:hover {
    background-color: var(--LightGreen);
    cursor: pointer;
}

.ra-khoeiItem>div>p {
    font-family: "AlmaraiRegular";
    color: var(--White);
    text-align: right;
}

.ra-khoeiItem>div>p>span {
    margin: 0px 5px;
}

.application {
    width: 100%;
    height: 800px;
    background-image: url(../assets/imgs/alkhoei_app.jpg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.Book {
    background-color: var(--LightGray);
    margin-top: 30px;
    padding: 30px 0;
}

.VideoItem {
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: 0.5s;
    display: block;
}

.VideoItem:hover {
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.VideoItem>div {
    transition: 0.5s;
}

.VideoItem:hover>div {
    background-color: var(--Blue);
    color: white !important;
}

#my-video {
    /*height: 400px !important;*/
}

.BtnVideoPlayer {
    border: 1.5px solid var(--Blue);
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    padding: 5px 15px;
    background-color: transparent;
    transition: 0.5s;
}

.BtnVideoPlayer:hover {
    background-color: var(--Blue);
}

.BtnVideoPlayer:hover>i,
.BtnVideoPlayer:hover>a>i,
.BtnVideoPlayer:hover>small,
.BtnVideoPlayer:hover>a>small {
    color: var(--White) !important;
}

.ContactUsInput[type="text"],
.ContactUsInput[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

.selectQuestion {
    display: none;
}

/* Mobile specific styles for question page */
@media only screen and (max-width: 991px) {
    .selectQuestion {
        display: flex !important;
    }

    .categoryQuestion {
        display: none !important;
    }

    /* Ensure proper spacing on mobile */
    .News .container .row .col-md-11,
    .News .container .row .col-lg-10 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        position: relative;
    }

    /* Fix button positioning on mobile */
    .News .container .row .col-md-11>div[style*="position: absolute"],
    .News .container .row .col-lg-10>div[style*="position: absolute"] {
        position: relative !important;
        left: auto !important;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Specific fix for the send question button */
    #addQuestion {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto 20px;
        display: block;
        width: auto;
        max-width: 200px;
    }

    /* Fix the line element positioning */
    .LineEsteftat {
        position: relative !important;
        right: auto !important;
        margin: 0 auto 20px;
        display: block;
    }
}

.SelectInput {
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
}

.Select {
    border: 2px solid var(--Blue);
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    position: relative;
}

.dropdownItemContainer {
    width: 100%;
    margin-top: 10px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: absolute;
}

.dropdownItemContainer>div.dropdownItem,
.dropdownItemContainer>a.dropdownItem {
    padding: 5px 15px;
    text-align: right;
    font-family: "AlmaraiBold";
    font-size: 15px;
    color: var(--Blue);
    border-radius: 15px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.dropdownItemContainer>div.dropdownItem:hover,
.dropdownItemContainer>a.dropdownItem:hover {
    background-color: var(--Blue);
    color: var(--White);
    text-decoration: none;
}

.subFooterItem {
    border-radius: 100%;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: 0.3s;
}

.subFooterItem:hover {
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
}

.subFooterItem:hover>i,
.subFooterItem:hover>small {
    color: var(--Blue);
}

.downloadAppSm {
    display: none;
}

.sidenav {
    z-index: 800;
    position: fixed;
    top: 0px;
    right: 0px;
    height: 100%;
    background-color: rgba(83, 116, 165, 0.502);
    padding: 50px 100px;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    overflow-y: auto;
    direction: ltr;
    display: none;
}

.sidenav::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: var(--White);
    width: 3px;
}

.sidenav::-webkit-scrollbar {
    width: 3px;
    background-color: var(--Blue);
}

.sidenav::-webkit-scrollbar-thumb {
    background-color: var(--Blue);
    /* background-image: url('./assets/images/scrollbar.png'); */
}

.sidenav>div {
    position: relative;
}

.sidenav>div>i {
    position: absolute;
    top: -50px;
    right: -70px;
    color: black;
    padding: 10px;
    transition: 0.5s;
    cursor: pointer;
    border-radius: 100%;
    background-color: var(--White);
}

.sidenav>div>i:hover {
    color: var(--Blue);
}

.sidenavUl {
    list-style: none;
}

.sidenavUl>li>a {
    display: flex;
}

.sidenavUl>li>a {
    display: flex;
    align-items: center;
    background-color: var(--White);
    padding: 7px 10px;
    margin-top: 15px;
    border-radius: 15px;
    border-bottom-right-radius: 0px !important;
    border: 1.5px solid var(--Blue);
    transition: 0.3s;
    direction: rtl;
}

.sidenavUl>li>a>i,
.sidenavUl>li>a>p {
    display: flex;
    margin: 0px 5px;
    color: var(--Blue);
    white-space: nowrap;
}

.sidenavUl>li:hover>a {
    background-color: var(--LigthBlue);
    border: 1.5px solid var(--White);
}

.sidenavUl>li:hover>a>i,
.sidenavUl>li:hover>a>p {
    color: var(--White);
}

.sidenavUl>li.Active>a {
    background-color: var(--LigthBlue);
    border: 1.5px solid var(--White);
}

.sidenavUl>li.Active>a>i,
.sidenavUl>li.Active>a>p {
    color: var(--White);
}

.openBtnSideNav {
    display: none;
    font-size: 25px;
    margin: 5px 7px;
    cursor: pointer;
}

.TopSocialHeaderSView {
    display: none;
    width: 100%;
    background-color: var(--Blue);
    height: 50px;
    transition: 0.5s;
    position: sticky;
    top: 0px;
    z-index: 700;
}

.SocialLinkSView>a {
    display: none;
    z-index: 780;
}

.SocialLinkSView>a:last-child {
    display: block;
}

.SocialLinkSView:hover a {
    display: block;
}

.ChangeLanguageSView>a {
    display: none;
}

.ChangeLanguageSView>a:first-child {
    display: block;
}

.ChangeLanguageSView:hover a {
    display: block;
}

.MenuBarSView {
    display: none;
}

.DarolelmSView {
    height: 200px;
}

.Mybtn-group {
    margin: 0px 0px 20px 0px;
}

.Mybtn-group>a {
    display: inline-block;
    flex: 1 1 auto;
}

.Mybtn-group>a>button {
    background-color: var(--White);
    color: var(--Blue);
    border-color: var(--Blue);
    transition: 0.5s;
    width: 100%;
}

.Mybtn-group>a>button:hover {
    background-color: var(--Blue);
    color: var(--White);
}

.BtngroupActive {
    background-color: var(--Blue) !important;
    color: var(--White) !important;
}

/* Meida */
@media only screen and (max-width: 1228px) {
    .Madrese {
        height: 40px;
    }

    .DarolelmSView {
        right: 28vw !important;
    }
}

@media only screen and (max-width: 1024px) {

    .CoverFirst,
    .CoverSecond {
        height: unset !important;
    }
}

@media only screen and (max-width: 992px) {
    .accordion-body p {
        width: 100%;
    }

    .img-shahid-2 {
        display: none !important;
    }

    .tp-AppSection-4 img {
        position: relative;
        top: unset;
        width: 100%;
        right: unset;
    }

    .tp-AppSection-4::after {
        display: none;
    }

    .tp-AppSection-4::before {
        display: none;
    }

    .tp-AppSection-1 {
        height: unset;
    }

    .CoverFirst,
    .CoverSecond {
        height: unset !important;
    }

    .DwAndroid,
    .DwIOS {
        height: 50px;
    }

    .DwAndroid {
        right: unset !important;
        left: 240px !important;
    }

    .DwIOS {
        right: unset !important;
        left: 45px !important;
    }

    .ShahidRight,
    .ShahidLeft {
        height: 60px;
    }

    .downloadAppLg {
        display: none;
    }

    .downloadAppSm {
        display: block;
    }

    .slick-slide img {
        height: 135px;
    }

    .esteftatImg {
        height: 10px !important;
    }

    .selectQuestion {
        display: flex;
    }

    .categoryQuestion {
        display: none !important;
    }

    .openBtnSideNav {
        display: flex;
        color: var(--Blue);
        border: 1.5px solid var(--Blue);
        padding: 5px 6px;
        border-radius: 100%;
    }

    .MenuBar {
        justify-content: flex-start;
    }

    .TopSocialHeaderSView {
        display: flex;
    }

    .TopSocialHeader {
        display: none;
    }

    .LogoSView {
        display: block;
    }

    .MenuBarSView {
        display: flex;
    }

    .NewsItem:last-child {
        display: none;
    }

    .Madrese {
        height: 30px;
    }

    .DarolelmSView {
        right: 20vw !important;
        height: 150px !important;
    }

    .bgDarolelm {
        height: 260px !important;
    }
}

@media only screen and (max-width: 670px) {

    .DwAndroid,
    .DwIOS {
        height: 40px !important;
    }

    .DwAndroid {
        right: unset !important;
        left: 210px !important;
    }

    .DwIOS {
        right: unset !important;
        left: 45px !important;
    }

    .tg-postbook {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .tg-featureimg {
        width: 65%;
    }

    .Madrese {
        height: 40px;
    }

    .DarolelmSView {
        right: 20vw !important;
    }

    .bgDarolelm {
        height: 217px !important;
    }
}

@media only screen and (max-width: 500px) {

    .CoverFirst,
    .CoverSecond {
        height: unset !important;
    }

    .progress {
        display: none !important;
    }

    .Monasebat,
    .OghateShareeee,
    .esteftat {
        padding: 7%;
    }

    .DwAndroid,
    .DwIOS {
        height: 30px !important;
    }

    .DwAndroid {
        right: unset !important;
        left: 150px !important;
    }

    .DwIOS {
        right: unset !important;
        left: 25px !important;
    }

    #my-video {
        height: 350px !important;
    }

    .LogoMenu {
        display: none !important;
    }

    .DarolelmSView {
        right: 10vw !important;
        height: 120px !important;
    }

    .Madrese {
        height: 25px;
    }
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden;
    /* Hidden by default. Visible on click */
    min-width: 250px;
    /* Set a default minimum width */
    margin-left: -125px;
    /* Divide value of min-width by 2 */
    background-color: #333;
    /* Black background color */
    color: #fff;
    /* White text color */
    text-align: center;
    /* Centered text */
    border-radius: 2px;
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 1;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the snackbar */
    bottom: 30px;
    /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible;
    /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.BgImg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.containerNews {
    height: 100%;
}

.containerNewsItem {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.containerNewsItem>div.BgImg {
    border-radius: 10px;
    overflow: hidden;
}

.ContentItemNews {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 2px 10px 15px rgba(0, 0, 0, 0.3);
    margin-top: -20px;

    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.containerNewsItem:hover button {
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
}

.ContentItemNews>a {
    margin-top: auto;
}

.ContentItemNews>a>button {
    transform: rotateX(90deg);
    -webkit-transform: rotateX(90deg);
    transition: 0.5s;
    transform-origin: bottom;
    -webkit-transform-origin: bottom;
    width: 100%;
    padding: 10px 15px;
    background-color: var(--Blue);
    color: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 15px;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.headerCardNews {
    position: absolute;
    width: 100%;
    background-color: var(--LigthBlue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

button {
    outline: none !important;
}

.form-group.required .col-form-label:after {
    content: " *";
    color: red;
}

.loader {
    display: none;
    border: 3px solid #f3f3f3;
    /* Light grey */
    border-top: 3px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.formResult {
    display: none;
}

.newssummary {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* number of lines to show */
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.videoarchivetitle {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pagination {
    --bs-pagination-active-bg: #2a5687;
    --bs-pagination-color: var(--bs-pagination-active-bg);
}

/* Additional mobile styles for smaller screens */
@media only screen and (max-width: 480px) {
    .footer-container {
        padding: 25px 10px 10px 10px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-logo img {
        max-width: 160px;
    }

    .footer-description {
        font-size: 12px;
        padding: 0 15px;
    }

    .footer-center-logo img {
        max-width: 120px;
    }

    .social-media-container {
        gap: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .social-link i {
        font-size: 24px;
    }

    .footer-menu-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .footer-menu-column {
        width: 100%;
        max-width: 200px;
    }

    .menu-title a {
        font-size: 15px;
    }

    .menu-items a {
        font-size: 13px;
    }

    .footer-copyright {
        padding: 12px 8px;
    }

    .copyright-link,
    .website-link {
        font-size: 9px;
    }
}

/* Desktop Footer Styles */
@media only screen and (min-width: 769px) {
    .footer-container {
        padding: 60px 0 0 0 !important;
        position: relative;
        background-color: var(--DarkestGray) !important;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
        align-items: flex-start;
        margin-bottom: 80px;
        flex-direction: row !important;
    }

    /* Left Column - Logo and Description */
    .footer-section.footer-about {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 0 !important;
    }

    .footer-section.footer-about .footer-logo img {
        max-width: 280px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 25px !important;
    }

    .footer-section.footer-about .footer-description {
        color: var(--Gray) !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
        text-align: justify !important;
        padding: 0 20px !important;
        margin: 0 !important;
        display: block !important;
    }

    .read-more-link {
        color: var(--White) !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .read-more-link:hover {
        color: var(--Green) !important;
    }

    /* Center Column - Logo and Social Media */
    .footer-section.footer-social {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 0 !important;
    }

    .footer-section.footer-social .footer-center-logo {
        margin-bottom: 30px !important;
    }

    .footer-section.footer-social .footer-center-logo img {
        max-width: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .social-media-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 0;
    }

    .social-link {
        color: var(--White);
        opacity: 0.6;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .social-link:hover {
        opacity: 1;
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .social-link i {
        font-size: 20px;
    }

    /* Right Column - Navigation Links */
    .footer-section.footer-links {
        display: flex !important;
        justify-content: center !important;
        order: 0 !important;
    }

    .footer-section.footer-links .footer-menu-container {
        display: flex !important;
        justify-content: space-between !important;
        gap: 40px !important;
        width: 100% !important;
        max-width: 400px !important;
    }

    .footer-section.footer-links .footer-menu-column {
        flex: 1 !important;
        text-align: left !important;
        min-width: 120px !important;
    }

    .menu-title {
        margin-bottom: 20px;
    }

    .menu-title a {
        color: var(--Gray);
        font-family: "AlmaraiBold";
        font-size: 16px;
        text-decoration: none;
        border-bottom: 2px solid var(--Gray);
        padding-bottom: 8px;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .menu-title a:hover {
        color: var(--White);
        border-bottom-color: var(--Green);
    }

    .menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-items li {
        margin: 12px 0;
    }

    .menu-items a {
        color: var(--Gray);
        font-family: "AlmaraiRegular";
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s ease;
        display: block;
        padding: 4px 0;
    }

    .menu-items a:hover {
        color: var(--Green);
        padding-left: 8px;
    }

    /* Copyright Section */
    .footer-copyright {
        background-color: var(--LightGray);
        padding: 20px 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .copyright-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .copyright-link,
    .website-link {
        color: var(--DarkGray);
        font-size: 12px;
        text-decoration: underline;
        line-height: 1.4;
        transition: color 0.3s ease;
    }

    .copyright-link:hover,
    .website-link:hover {
        color: var(--Blue);
    }

    .website-link {
        font-family: "Tajawal";
        font-size: 13px;
    }
}

/* Tablet Footer Styles */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .footer-container {
        padding: 50px 20px 15px 20px;
        position: relative;
    }

    .footer-content {
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-logo img {
        max-width: 220px;
    }

    .footer-description {
        font-size: 14px;
        padding: 0 30px;
        line-height: 1.7;
    }

    .footer-center-logo img {
        max-width: 170px;
    }

    .social-media-container {
        gap: 18px;
        margin-top: 25px;
    }

    .social-link {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }

    .social-link i {
        font-size: 23px;
    }

    .footer-menu-container {
        gap: 25px;
        justify-content: center;
    }

    .footer-menu-column {
        min-width: 130px;
        max-width: 160px;
        text-align: center;
    }

    .menu-title a {
        font-size: 15px;
    }

    .menu-items a {
        font-size: 13px;
    }

    .footer-copyright {
        background-color: var(--LightGray);
        padding: 18px 20px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .copyright-content {
        display: flex;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .copyright-link,
    .website-link {
        font-size: 11px;
    }
}

/* Large Desktop Footer Styles */
@media only screen and (min-width: 1200px) {
    .footer-container {
        padding: 80px 0 0 0;
    }

    .footer-content {
        max-width: 1400px;
        gap: 80px;
        margin-bottom: 100px;
    }

    .footer-logo img {
        max-width: 320px;
    }

    .footer-description {
        font-size: 16px;
        padding: 0 30px;
    }

    .footer-center-logo img {
        max-width: 240px;
    }

    .social-media-container {
        gap: 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link i {
        font-size: 22px;
    }

    .footer-menu-container {
        gap: 50px;
        max-width: 500px;
    }

    .menu-title a {
        font-size: 18px;
    }

    .menu-items a {
        font-size: 15px;
    }

    .copyright-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .copyright-link,
    .website-link {
        font-size: 13px;
    }
}

/* Fix for RTL text alignment */
@media only screen and (min-width: 769px) {
    .footer-description.Rtl {
        text-align: justify;
        direction: rtl;
    }

    .menu-items a {
        text-align: right;
        direction: rtl;
    }

    .menu-title a {
        text-align: right;
        direction: rtl;
    }
}

/* Force visibility of all footer sections on desktop */
@media only screen and (min-width: 769px) {
    .footer-container .footer-content .footer-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-container .footer-content .footer-section.footer-about,
    .footer-container .footer-content .footer-section.footer-social,
    .footer-container .footer-content .footer-section.footer-links {
        display: flex !important;
    }

    /* Ensure all content is visible */
    .footer-container .footer-logo,
    .footer-container .footer-description,
    .footer-container .footer-center-logo,
    .footer-container .social-media-container,
    .footer-container .footer-menu-container {
        display: block !important;
        visibility: visible !important;
    }

    .footer-container .social-media-container {
        display: flex !important;
    }

    .footer-container .footer-menu-container {
        display: flex !important;
    }
}

/* FINAL FOOTER OVERRIDE - DESKTOP ONLY */
@media screen and (min-width: 769px) {

    /* Reset any conflicting styles */
    footer.footer-container {
        padding: 35px 0 0 0 !important;
        position: relative !important;
        background-color: #232323 !important;
        min-height: 520px !important;
        display: block !important;
    }

    /* Create a container similar to header */
    footer.footer-container::before {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        max-width: 1140px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 100% !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    footer.footer-container .footer-content {
        width: 100% !important;
        max-width: 1242px !important;
        margin: 0 auto !important;
        padding: 0 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 50px !important;
        position: relative !important;
    }

    /* All footer sections base styles */
    footer.footer-container .footer-section {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 350px;
        overflow: visible !important;
        position: relative !important;
        padding: 18px 15px !important;
        /*border: 1px solid rgba(255, 255, 255, 0.1) !important;*/
        border-radius: 8px !important;
        background-color: rgba(255, 255, 255, 0.02) !important;
    }

    /* Left section - Logo and description */
    footer.footer-container .footer-section.footer-about {
        flex: 0 0 414px !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: flex-start !important;
        /*border-color: rgba(255, 255, 255, 0.15) !important;*/
    }

    footer.footer-container .footer-section.footer-about .footer-logo {
        display: block !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    footer.footer-container .footer-section.footer-about .footer-logo img {
        max-width: 220px !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    footer.footer-container .footer-section.footer-about .footer-description {
        color: #999999 !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        padding: 0 10px !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        direction: rtl !important;
    }

    footer.footer-container .footer-section.footer-about .read-more-link {
        color: white !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }

    footer.footer-container .footer-section.footer-about .read-more-link:hover {
        color: #00ffd3 !important;
    }

    /* Center section - Logo and social */
    footer.footer-container .footer-section.footer-social {
        flex: 0 0 auto !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 260px !important;
        top: 0 !important;
        z-index: 2 !important;
    }

    footer.footer-container .footer-section.footer-social .footer-center-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 25px !important;
        width: 100% !important;
    }

    footer.footer-container .footer-section.footer-social .footer-center-logo img {
        max-width: 160px !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }

    footer.footer-container .footer-section.footer-social .social-media-container {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 180px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        align-content: center !important;
    }

    footer.footer-container .social-link {
        color: white !important;
        opacity: 0.8 !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 35px !important;
        height: 35px !important;
        border-radius: 6px !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        text-decoration: none !important;
    }

    footer.footer-container .social-link:hover {
        opacity: 1 !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-1px) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    footer.footer-container .social-link i {
        font-size: 16px !important;
        color: inherit !important;
    }

    /* Right section - Navigation links */
    footer.footer-container .footer-section.footer-links {
        flex: 0 0 320px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    footer.footer-container .footer-section.footer-links .footer-menu-container {
        display: flex !important;
        justify-content: space-between !important;
        gap: 20px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    footer.footer-container .footer-section.footer-links .footer-menu-column {
        flex: 1 !important;
        text-align: right !important;
        min-width: 80px !important;
        display: block !important;
    }

    footer.footer-container .footer-section.footer-links .menu-title {
        margin-bottom: 12px !important;
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-bottom: 8px !important;
    }

    footer.footer-container .footer-section.footer-links .menu-title a {
        color: #cccccc !important;
        font-family: "AlmaraiBold" !important;
        font-size: 14px !important;
        text-decoration: none !important;
        display: inline-block !important;
        transition: all 0.3s ease !important;
        direction: rtl !important;
    }

    footer.footer-container .footer-section.footer-links .menu-title a:hover {
        color: white !important;
    }

    footer.footer-container .footer-section.footer-links .menu-items {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    footer.footer-container .footer-section.footer-links .menu-items li {
        margin: 6px 0 !important;
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-bottom: 4px !important;
    }

    footer.footer-container .footer-section.footer-links .menu-items li:last-child {
        border-bottom: none !important;
    }

    footer.footer-container .footer-section.footer-links .menu-items a {
        color: #999999 !important;
        font-family: "AlmaraiRegular" !important;
        font-size: 12px !important;
        text-decoration: none !important;
        display: block !important;
        padding: 2px 0 !important;
        transition: all 0.3s ease !important;
        text-align: right !important;
        direction: rtl !important;
    }

    footer.footer-container .footer-section.footer-links .menu-items a:hover {
        color: #00ffd3 !important;
        padding-right: 6px !important;
    }

    /* Copyright section */
    footer.footer-container .footer-copyright {
        background-color: #f0f0f0 !important;
        padding: 12px 0 !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: block !important;
        width: 100% !important;
        border-top: 1px solid #e0e0e0 !important;
    }

    footer.footer-container .copyright-content {
        max-width: 1140px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    footer.footer-container .copyright-link,
    footer.footer-container .website-link {
        color: #4f4f4f !important;
        font-size: 10px !important;
        text-decoration: underline !important;
        line-height: 1.3 !important;
        transition: color 0.3s ease !important;
    }

    footer.footer-container .copyright-link:hover,
    footer.footer-container .website-link:hover {
        color: #2a5687 !important;
    }

    footer.footer-container .website-link {
        font-family: "Tajawal" !important;
        font-size: 11px !important;
    }
}

/* Mobil
e responsive fixes for horizontal scrolling */
@media only screen and (max-width: 991px) {

    /* Prevent horizontal scrolling */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Question page mobile fixes */
    .News .container .row {
        margin-left: 0;
        margin-right: 0;
    }

    .News .container .row>[class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure dropdown doesn't cause overflow */
    .dropdownItemContainer {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border: 1px solid #ddd;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Fix breadcrumb overflow */
    .breadcrumb {
        flex-wrap: wrap;
        word-break: break-word;
    }

    .breadcrumb-item {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Ensure all content stays within viewport */
    * {
        box-sizing: border-box;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure LogoSView stays fixed - IMPORTANT FIX */
    .LogoSView {
        position: fixed !important;
        z-index: 750 !important;
        top: 50px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* Mobile specific styles for question page */
@media only screen and (max-width: 991px) {
    .selectQuestion {
        display: flex !important;
    }

    .categoryQuestion {
        display: none !important;
    }

    /* Ensure proper spacing on mobile */
    .News .container .row .col-md-11,
    .News .container .row .col-lg-10 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        position: relative;
    }

    /* Fix button positioning on mobile */
    .News .container .row .col-md-11>div[style*="position: absolute"],
    .News .container .row .col-lg-10>div[style*="position: absolute"] {
        position: relative !important;
        left: auto !important;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Specific fix for the send question button */
    #addQuestion {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        margin: 0 auto 20px;
        display: block;
        width: auto;
        max-width: 200px;
    }

    /* Fix the line element positioning */
    .LineEsteftat {
        position: relative !important;
        right: auto !important;
        margin: 0 auto 20px;
        display: block;
    }
}

/* Additional mobile fixes for tablets */
@media only screen and (max-width: 768px) {

    /* Fix horizontal scrolling on question category page */
    .categoryQuestion {
        display: none !important;
    }

    .selectQuestion {
        display: flex !important;
    }

    .News .container .row .col-md-11,
    .News .container .row .col-lg-10 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
