/* Font faces and * reset are defined in main-style.css (loaded after this file) */

body {
    overflow-x: hidden !important;
    background-color: var(--base-color) !important;
    font-size: var(--fs-16);
    color: var(--text-color) !important;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
}

.text-gray-tint {
    color: var(--gray) !important;
}

ul {
    list-style: none;
}


.header-padding {
    padding: 0 40px;
}

.main-topbar {
    background-color: var(--light-gray);
}

.topbar-ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.topbar-general-info li:not(:last-child) {
    margin-left: 15px;
}

.topbar-general-info li img {
    width: 24px;
    height: 24px;
}

.topbar-general-info li span {
    font-size: var(--fs-16);
    display: inline-block;
    padding: 0 3px;
    color: var(--gray);
}

.topbar-general-actions li:not(:first-child) {
    margin-right: 20px;
}

.topbar-general-actions img {
    width: 20px;
    height: 20px;
}

.govsa-header {
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.govsa-header__bg {
    background: var(--white);
    box-shadow: 0 0 2px 1px var(--shadow);
}

.nav-item.govsa-tabs__dropdown .nav-link,
.nav-item.govsa-tabs__dropdown .nav-link:hover,
.nav-item.govsa-tabs__dropdown .nav-link:focus,
.nav-item.govsa-tabs__dropdown .nav-link.active,
.nav-item.govsa-tabs__dropdown .nav-link.active:hover,
.nav-item.govsa-tabs__dropdown .nav-link.active:focus,
.nav-item.govsa-tabs__dropdown.show .nav-link {
    background-color: var(--white);
    color: var(--dark-blue);
}

.nav-item.govsa-tabs__dropdown.show {
    background-color: var(--white) !important;
    color: var(--dark-blue);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: var(--white);
}

.nav-item.govsa-tabs__dropdown:hover .nav-link,
.nav-item.govsa-tabs__dropdown:active .nav-link,
.nav-item.govsa-tabs__dropdown:focus .nav-link {
    border-color: var(--white);
    background-color: var(--white);
    color: var(--dark-blue);
}

.govsa-tabs .nav-item:active {
    border-color: none;
    box-shadow: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--white);
    color: var(--dark-blue);
}

.dropdown-item {
    color: var(--dark-blue);
}

/*.darkmode .govsa-header__logo img {*/
/*    filter: brightness(12);*/
/*}*/

.govsa-header__navigation-d .nav-item:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: var(--white);
    color: var(--dark-blue);
    border-color: var(--base-color);
}

.govsa-header__search-input {
    background-color: var(--white);
    color: var(--dark-gray);
    border-color: var(--dark-gray);
}

.govsa-header__search-input::placeholder {
    color: var(--dark-gray);
}

.govsa-header__search__results-container {
    background-color: var(--white);
    color: var(--dark-gray);
    border: none !important;
    color: var(--dark-blue);
}

.govsa-header__search__result {
    background-color: var(--white);
    color: var(--dark-gray);
    border: none !important;
    color: var(--dark-blue);
}

.govsa-header__search__result p,
.govsa-header__search__result span {
    color: var(--dark-blue);
}

.darkmode .govsa-header__search__result:hover {
    background: var(--gray-400);
}

.dropdown-menu {
    background-color: var(--white);
    color: var(--dark-blue);
}

.govsa-footer-bg {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 80px 48px 48px;
}

.govsa-footer-bg .quick-links li,
.govsa-footer-bg .quick-links li a {
    color: var(--gray);
    font-size: var(--fs-14);
    font-weight: 400 !important;
}


.govsa-footer-bg .quick-links li:first-child {
    border-bottom: 1px solid var(--border-color2);
    padding-bottom: 12px;
    color: var(--dga-black);
    font-weight: 400 !important;
    font-size: var(--fs-16);

}

/* .govsa-footer-bg .quick-links li .footer-link {
    color: var(--gray);
} */

.home-video {
    min-height: 95vh;
    height: 100%;
}

.home-video video {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}

.home-video__slogan {
    padding: 160px 80px 48px;
}

.home-video__slogan h1 {
    /* color: var(--white); */
    color: var(--white);
    font-size: var(--fs-60);
    font-weight: 500;
}

.home-statistics {
    background: url(../images/Hcis-bg.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    overflow-x: hidden !important;
}

.home-section__padding {
    padding: 80px var(--container-padding-desktop);
}

.home-statistics__items {
    max-width: 70%;
    margin: 64px auto 80px;
}

.home-statistics__number {
    color: var(--green);
    font-weight: 400 !important;
}

.home-statistics__desc {
    /* color: var(--dark-gray); */
    color: var(--dark-gray) !important;
    font-size: var(--fs-16);
    font-weight: 400;
}

.govsa-header__bg .nav-item .nav-link {
    color: var(--dark-blue);
    font-size: var(--fs-16);
    font-weight: 400;

}

.govsa-header__bg .govsa-header__search-button i {
    color: var(--dark-blue);
}

.govsa-header__bg .govsa-header__navigation-m .govsa-header__navigation__button span {
    background-color: var(--dark-gray);
}

.govsa-header__navigation .govsa-header__navigation__button span {
    width: 22px;
    height: 2px;
}

.govsa-header__navigation-m {
    display: none !important;
}

.home-sectors {
    background-color: var(--lighter-gray);
    padding-bottom: 64px;
}

.home-section__subdescription {
    color: var(--gray);
    font-size: var(--fs-16);
    font-weight: 400 !important;
}

.all-sectors__item,
.eservice-item__card {
    box-shadow: 0px 0px 3px var(--shadow);
    border: 0;
    min-height: 240px;
}

.all-sectors__item__icon {
    display: inline-block;
    width: 48px !important;
    height: 48px !important;
}

.home-eservices {
    /* background:c url(../images/white-pattern.svg); */
    background: var(--lighter-gray) url(../images/Hcis-bg.svg);
    background-repeat: no-repeat;
    background-position: top right 40%;
    background-size: contain;
}

.home-news {
    background: var(--white) url(../images/news-bg.svg);
    background-repeat: no-repeat;
    background-position: top left;
}

.home-news .owl-theme .owl-dots .owl-dot span {
    width: 15px;
    height: 15px;
}

.news-card__item {
    background-color: var(--dark-gray);
    background-image: url(../images/white-pattern-5.svg);
    background-repeat: no-repeat;
    background-position: left bottom;
    padding: 32px 16px 16px;
    border-radius: 16px;
    margin: 24px 0;
    height: 100%;
    min-height: 525px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: end;
}

.news-card__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, var(--dga-black) 0%, rgba(22, 22, 22, 0.76) 100%);
}

.news-card__item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    left: 0;
    top: 0;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: multiply;

}

.news-card__content h4 {
    line-height: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    position: relative;
    z-index: 2;
    width: 90%;
    font-size: var(--fs-20);
    font-weight: 700 !important;
}

.news-card__content h4::after {
    content: "“";
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--fs-36);
    color: var(--white);
    z-index: 2;
    font-weight: 500;
    line-height: inherit;
}

.news-card__content h5 {
    position: relative;
    z-index: 2;
    line-height: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 90%;
    font-size: var(--fs-16);
    font-weight: 400 !important;
}

.news-item-action__wrapper .btn-primary {
    margin-top: 30px;
}

.owl-dots button:focus {
    outline: none !important;
}

.news-item-action__wrapper {
    display: block;
    text-align: end;
    z-index: 2;
    position: relative;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--green-success-800) !important;
}

.owl-nav {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
}

.owl-prev,
.owl-next {
    margin: 12px 12px !important;
    width: 32px;
    height: 32px;
    border-radius: 9999px !important;
    text-align: center;
    box-shadow: unset !important;
    outline: unset !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

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

/* Hide default Owl text arrows */
.owl-prev span,
.owl-next span {
    display: none !important;
}

/* Inject custom SVG icons via ::after */
.owl-prev::after,
.owl-next::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* RTL: next navigates forward → left arrow; prev navigates back → right arrow */
[dir="rtl"] .owl-next::after,
.owl-next::after {
    background-image: url('../images/arrow-left-01.svg');
}

[dir="rtl"] .owl-prev::after,
.owl-prev::after {
    background-image: url('../images/arrow-right-01.svg');
}

.tags-list li {
    margin-top: 5px;
    margin-bottom: 5px;
}

.tags-list li:not(:first-child) {
    margin-right: 5px;
    margin-left: 5px;
}

.footer-social__icon img {
    width: 40px;
    height: 40px;
}


.footer-second ul li {
    margin-bottom: 10px;
}

.footer-second ul li a {
    color: var(--dark-gray) !important;
}

.footer-second h6:first-child {
    font-size: var(--fs-14);
    font-weight: 600 !important;
}

.footer-second h6 {
    font-size: var(--fs-14);
    font-weight: 400 !important;
}

.footer-other_links li a {
    text-decoration: underline;
    font-size: var(--fs-14);
    font-weight: 400;
}

.home-section__title h2 {
    font-size: var(--fs-36);
    font-weight: 500 !important;
}

/* .news-card__item:hover {
    transform: translateY(10px);
    transition: .3s ease all;
} */

.footer-social__icon {
    display: block;
}

/**** Darkmode Changes ****/

/*.darkmode .footer-social__icon img,*/
/*.darkmode img.footer-image-one,*/
/*.darkmode .govsa-header__language img,*/
/*.darkmode .home-section__title-img,*/
/*.darkmode .topbar-general-actions img,*/
/*.darkmode .topbar-general-info li img {*/
/*    filter: invert(1);*/
/*}*/

.darkmode .card-header,
.darkmode .card,
.darkmode .card-footer,
.darkmode .home-statistics__item>div {
    background-color: var(--gray-200) !important;
}

.darkmode .card-header h4,
.darkmode .card h4,
.darkmode .card-footer h4,
.darkmode .home-statistics__item>div h4 {
    color: var(--dark-gray) !important;
}

.darkmode .card-header p,
.darkmode .card h5,
.darkmode .card h6,
.darkmode .card p,
.darkmode .card-footer p,
.darkmode .home-statistics__item>div p {
    color: var(--dark-gray) !important;
}

.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    border-radius: var(--btn-radius) !important;
    font-size: var(--fs-14) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    line-height: 20px !important;
}

.card-header h5,
.card-body h5 {
    color: var(--dga-black) !important;
    font-size: var(--fs-18);
    font-weight: 500;
}

.governor-speech-ul {
    list-style: disc;
}

/* .darkmode .home-eservices , .darkmode .home-statistics  {
    background: none;
} */


@media only screen and (max-width: 1241px) {
    .header-padding {
        padding: 0 15px;
    }

    .govsa-header__navigation-m {
        display: block !important;
        padding: 0 0 0 16px;
    }

    .govsa-header__logo {
        margin: 0 auto;
    }

    .govsa-header__navigation-d {
        display: none;
    }

    .home-statistics__items {
        max-width: 85%;
    }
}

/* @media only screen and (min-width: 990px) {

    .home-news,
    .home-news-section {
        padding-left: 0 !important;
    }

} */

@media only screen and (max-width: 991px) {
    .govsa-header__search-input {
        width: calc(81vw - 7.5rem) !important;
    }
}

@media only screen and (max-width: 992px) {
    .topbar-general-info li span {
        font-size: var(--fs-12);
    }

    .all-sectors__item,
    .eservice-item__card {
        min-height: 240px;
    }

    .topbar-general-info li img {
        width: 18px;
        height: 18px;
    }

    .home-section__padding {
        padding: 50px var(--container-padding-mobile) !important;
    }

    .home-video {
        min-height: 50vh;
    }

    .home-video__slogan {
        padding: 48px 32px;
    }

    .home-video__slogan h1 {
        font-size: var(--fs-30);
    }

    .home-statistics__items {
        max-width: 100%;
        margin: 40px auto;
    }

    .stat-number {
        font-size: var(--fs-36);
    }

    .metric-card {
        padding: 24px 20px;
    }

    .home-statistics__item {
        margin-bottom: 16px;
    }

    .home-statistics__item:last-child {
        margin-bottom: 0;
    }

    .news-card__item {
        min-height: 450px;
    }

    .home-section__title h2 {
        font-size: var(--fs-30);
    }
}

@media only screen and (max-width: 576px) {
    .stat-number {
        font-size: var(--fs-30);
    }

    .metric-card {
        padding: 20px 16px;
    }
}

/* ============================================================
   HCIS UI/UX Enhancement — DGA National Design System
   ============================================================ */

/* 1. Skip Navigation Link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: var(--space-16, 16px);
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--btn-radius);
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease-in-out;
}

.skip-to-main:focus {
    top: 16px;
}

/* 2. Focus visible ring — every interactive element */
:focus-visible {
    outline: 3px solid var(--primary-green) !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}

/* 3. Section title with green accent underline */
.section-header {
    text-align: center;
}

.section-title {
    font-size: var(--fs-30);
    font-weight: 600;
    color: var(--dark-gray);
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* 4. DGA Metric Card (Fix 8) */
.metric-card {
    text-align: center;
    padding: var(--space-32, 32px) var(--space-24, 24px);
    border: 1px solid var(--border-color1);
    border-radius: 8px;
    background: var(--white);
    transition: box-shadow var(--dga-motion-standard, 0.3s) var(--dga-ease, ease-in-out);
}

.metric-card:hover {
    box-shadow: var(--shadow-xl);
}

.metric-icon {
    margin-bottom: var(--space-16, 16px);
}

/* 5. Statistics count-up numbers */
.stat-number {
    display: block;
    font-size: var(--fs-48);
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: var(--fs-16);
    color: var(--dark-gray);
    margin-top: 8px;
}

/* 5. Unified card base */
.hcis-card {
    background: var(--white);
    border: 1px solid var(--border-color1);
    border-radius: 8px;
    overflow: hidden;
    transition:
        box-shadow 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        border-color 0.2s ease-in-out;
}

.hcis-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

/* 6. E-service card hover */
.e-service-card {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
}

.e-service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.e-service-icon {
    display: block;
}

.e-service-icon img {
    width: 100%;
    height: 48px;
    max-width: 35px!important;
}   

.e-service-title {
    font-size: var(--fs-24)!important;
    font-weight: 600;
}

.btn-link-green {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--fs-14);
}

.btn-link-green:hover {
    color: var(--darker-green);
    text-decoration: underline;
}

/* 7. News card structure */
.news-card-enhanced {
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-color1);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.news-card-enhanced:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.news-card__img-link {
    display: block;
    overflow: hidden;
}

.news-card__img-enhanced {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
    display: block;
}

.news-card-enhanced:hover .news-card__img-enhanced {
    transform: scale(1.04);
}

.news-card__body-enhanced {
    padding: 16px;
}

.news-card__tag {
    display: inline-block;
    background: var(--light-mint);
    color: var(--primary-green);
    font-size: var(--fs-12);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.news-card__title-enhanced {
    font-size: var(--fs-16);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-card__title-enhanced a {
    color: inherit;
    text-decoration: none;
}

.news-card__title-enhanced a:hover {
    color: var(--primary-green);
}

.news-card__date {
    font-size: var(--fs-12);
    color: var(--light-gray);
}

/* 8. Banner tiles hover */
.banner-item {
    position: relative;
    overflow: hidden;
}

.banner-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.banner-item:hover::after {
    background: rgba(0, 0, 0, 0.20);
}

.banner-item__arrow {
    font-size: 20px;
    color: var(--white);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    line-height: 1;
}

.banner-item:hover .banner-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

[dir="rtl"] .banner-item__arrow {
    right: auto;
    left: 12px;
    transform: scaleX(-1) translateX(-8px);
}

[dir="rtl"] .banner-item:hover .banner-item__arrow {
    transform: scaleX(-1) translateX(0);
}

/* 9. Breadcrumb */
.hcis-breadcrumb {
    padding: 12px 48px;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--border-color1);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: var(--fs-14);
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
    font-size: var(--fs-14);
}

.breadcrumb-separator {
    color: var(--light-gray);
}

[dir="rtl"] .breadcrumb-separator {
    transform: scaleX(-1);
    display: inline-block;
}

/* 10. Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out,
        background 0.2s ease-in-out,
        transform 0.2s ease-in-out;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--darker-green);
    transform: translateY(-3px);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 32px;
}

/* 11. Touch target min size for icon-only buttons */
.dga-touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* 12. Sticky header shrink */
.hcis-main-header-wrapper {
    transition: padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
}

.header-scrolled {
    box-shadow: var(--shadow-md) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}