*:not(.page-body):not(.page-body *) {

    font-family: "Poppins", "Tajawal", sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: var(--theme-color);
    color: white;
}


a {
    text-decoration: none;
}

.link {
    color: var(--theme-color);
}

.link:hover {
    text-decoration: underline;
}

.btn-white {
    background-color: white;
}

.btn-white:hover {
    background-color: rgba(189, 197, 209, .2) !important;
}

.btn-theme {
    background-color: var(--theme-color);
    color: white;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:focus,
.btn:active {
    box-shadow: none;
}

.btn {
    transition: all 0.3s;
    border-radius: var(--rounded-theme);
}

.btn:hover,
.btn-theme:hover {
    transform: translateY(-1px)
}

.btn,
.btn-theme:active {
    transform: translateY(0)
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted),
.dropdown-item.active,
.dropdown-item:active {
    background-color: #eee !important;
    color: black !important;
}

.select2-container .select2-selection--single {
    border: 1px solid #e7eaed;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
}

.form-group-lg .select2-container .select2-selection--single {
    height: 48px !important;

}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px !important;
}

.form-group-lg .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px !important;
}

.btn-theme:hover {
    background-color: var(--theme-color2);
    color: white;
}

.logo {
    display: flex;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.container {
    max-width: 1500px !important;
}

.row {
    margin: 0;
}

.form-label {
    font-weight: bold;
    color: var(--theme-color)
}

.required::after {
    content: " * ";
    color: red;
}

.form-group {
    margin: 0.5rem 0;
    position: relative;
}

.form-select,
.form-control {
    border-radius: var(--rounded-theme);
}

.form-check-input:focus,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection,
.form-control:focus {
    box-shadow: none !important;
    border-color: var(--theme-color2) !important;
    background-color: white;

}

.form-check-input:checked {
    background-color: var(--theme-color) !important;
    ;
    border-color: var(--theme-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--theme-color) !important;
}

.w-95 {
    width: 95%;
}

.w-limit {
    max-width: 1500px;
}

.w-fit {
    width: fit-content !important;
}

.h-0 {
    height: 0;
}

.h-90 {
    height: 90%;
}

.min-h-100 {
    min-height: 100%;
}

.bg-theme {
    background-color: var(--theme-color) !important;
}

.bg-theme-dark {
    background-color: var(--theme-color-dark) !important;
}

.bg-theme-light {
    background-color: var(--theme-color-light) !important;
}

.bg-theme2 {
    background-color: var(--theme-color2) !important;
}

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

.text-theme2 {
    color: var(--theme-color2) !important;
}

.text-theme3 {
    color: var(--theme-color3) !important;
}


.text-theme-dark {
    color: var(--theme-color-dark) !important;
}

.text-theme-light {
    color: var(--theme-color-light) !important;
}

.selected {
    background-color: var(--theme-color-dark) !important;
}

.of-contain {
    object-fit: contain;
}

.of-cover {
    object-fit: cover;
}

.bg-image {
    background-size: cover;
    background-repeat: no-repeat
}

.space-y {
    margin: 10px 0;
}

.overlay-theme,
.overlay-dark {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.3
}

.overlay-theme {
    background-color: var(--theme-color);
}

.overlay-dark {
    background-color: black
}

.border-theme {
    border-color: var(--theme-color) !important;
}

.border-theme2 {
    border-color: var(--theme-color2) !important;
}

.border-theme3 {
    border-color: var(--theme-color3) !important;
}

.border-theme-width {
    border-width: 8px !important;
}


.no-wrap {
    white-space: nowrap;
}

.hide {
    display: none;
}

.transition {
    transition: all 0.3s;
}

.no-select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



.hide-spin::-webkit-outer-spin-button,
.hide-spin::-webkit-inner-spin-button {
    display: none;
}

.clamp1,
.clamp2,
.clamp3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.clamp1 {
    -webkit-line-clamp: 1;
}

.clamp2 {
    -webkit-line-clamp: 2;
}


.pointer {
    cursor: pointer;
}

.zoom {
    cursor: zoom-in;
}

.grab {
    cursor: grab;
}

.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.733);
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.z-4 {
    z-index: 4;
}

.z-5 {
    z-index: 5;
}

.z-10 {
    z-index: 10;
}

.z-99 {
    z-index: 99;
}

.z-999 {
    z-index: 999;
}

.z-9999 {
    z-index: 9999;
}

.gradiant-bottom {
    background-image: linear-gradient(0deg, #000, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.gradiant-top {
    background-image: linear-gradient(0deg, #0d0d0d00, rgba(0, 0, 0, 0.7), rgb(0, 0, 0));
}


@keyframes shimmer {
    100% {
        -webkit-mask-position: left
    }
}

.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.paragraph p,
.paragraph {
    font-family: sans-serif !important;
    line-height: 1.7
}

.center,
.center-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.center-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.layer-dark {
    background-color: #0000004d;
}

.layer-light {
    background-color: #ffffff9e;
}

.rounded-theme {
    border-radius: var(--rounded-theme);
}

.text-justify {
    text-align: justify;
}

.fs-7 {
    font-size: 14px;
}

*::placeholder {
    color: #a4acad !important;
}

.shadow-0 {
    box-shadow: none !important
}

.radio-selected {
    background-color: var(--theme-color) !important;
    color: white !important;
}

.hover-splash:hover {
    background-color: rgb(165 165 165 / 20%) !important;
}

.hover-shadow {
    transition: box-shadow 0.5s;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%) !important;
}

.hover-scale {
    transition: transform 0.5s;
}

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

.hover-slide-up {
    transition: transform 0.5s;
}

.hover-slide-up:hover {
    transform: translateY(-20px);
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px !important;
    bottom: 0;
    background-color: var(--theme-color);
    transition: all 0.25s ease-out;
}

.hover-underline-animation:hover::before {
    width: 100%;
}

.hover-bg-theme:hover {
    background-color: var(--theme-color) !important;
    color: white !important;

}

.hover-bg-theme:hover span {
    color: white !important;
}

.hover-bg-theme2:hover {
    background-color: var(--theme-color2) !important;
    color: white !important;

}

.hover-bg-theme2:hover span {
    color: white !important;
}

.hover-text-theme:hover {
    color: var(--theme-color) !important;
}

.hover-text-theme2:hover {
    color: var(--theme-color2) !important;
}

.hover-border {
    border: 1px solid transparent !important;
    transition: all 0.3s;
}

.hover-border:hover {
    border-bottom-color: var(--theme-color) !important;
}

.hover-border-bottom {
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s;
}

.hover-border-bottom:hover {
    border-bottom-color: var(--theme-color) !important;
}

.hover-shimmer:hover,
.shimmer {
    -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/300% 100%;
    background-repeat: no-repeat;
    animation: shimmer 2.5s infinite;
}

.hover-shimmer:hover {
    animation: shimmer 0.7s forwards;
}

.loader {
    height: 5px;
    background-color: black;
    width: 40%;
    border-radius: 20px;
    animation: 0.8s loader_animation linear infinite;
}


[data-invalid-input] {
    border-color: red !important;
}

[data-invalid-message] {
    font-weight: bold;
    font-size: 0.8rem;
    color: red !important;
}

.floating {
    animation: floating 0.5s infinite alternate;
}

@keyframes floating {
    0% {
        transform: translateY(5px)
    }

    100% {
        transform: translateY(0px)
    }
}

.htmx-indicator {
    display: none
}

.htmx-request.htmx-indicator {
    display: flex
}

.change_lang {
    color: white !important;
}

.change_lang svg {
    color: white !important;
}

.text-large {
    font-size: 6rem
}

.disabled {
    opacity: 0.5;
    pointer-events: none
}

@media (max-width: 1000px) {
    .text-large {
        font-size: 3rem
    }
}

.splide__pagination__page.is-active {
    background: var(--theme-color);
}

@media (max-width: 700px) {
    .text-large {
        font-size: 2rem
    }
}

.rpl {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rpl .span-rpl {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    transform: scale(0);
    animation: rple 1s;
    opacity: 0;
    pointer-events: none;
}

@keyframes rple {
    from {
        opacity: 0.5;
        transform: scale(0);
    }

    to {
        opacity: 0;
        transform: scale(4);
    }
}

.bg-grey {
    background-color: var(--grey) !important;
}


.dropdown-menu {
    background-color: transparent;
    border: none
}

.dropdown-menu.show .dropdown-menu-animated {
    animation: dropdown-animation 0.3s;
}

.dropdown-menu.show div {
    background-color: white;
}

.dropdown-menu.show .dropdown-menu-animated {
    animation: dropdown-animation 0.3s;
}


@keyframes dropdown-animation {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.sub-menu-active {
    color: var(--theme-color)
}

.menu-active {
    background-color: var(--theme-color-light) !important;
    color: var(--theme-color) !important;
}

.modal-backdrop.show {
    z-index: 20
}


.bg-blure {
    backdrop-filter: blur(5px);
}

.modal-backdrop,
.offcanvas-backdrop {
    background-color: #0000003b !important;
}


.is-invalid {
    margin-block: 0 !important;
}

.is-invalid {
    border-color: #dc3545 !important
}

.link-btn{
    background-color: white;
    border: 1px solid var(--theme-color2);
    color: var(--theme-color2);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.18s linear 0s;

}
.b-lazy {
    opacity: 0.2;
    transition: all 0.5s;
}

.b-lazy.b-loaded {
    opacity: 1;
}

.link-btn:hover{
    background-color: var(--theme-color2);
}

.card-description{
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    height: 44px;
    line-height: 23px;
    font-size: 1rem;
}

.card:hover {
    transform: scale(1.05);
}

.card {
    transition: transform 0.3s
}


.link-btn svg{
    width: 20px !important;
    height: 20px important;
}


.sum-description{
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp:3;
}



.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: var(--theme-color);
    text-decoration: none;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    white-space: nowrap;
    margin: 2px;
    border-color: var(--theme-color);
    font-weight: bolder;

}



.tag-link.tag-size-1 {
    font-size: 13px;
    padding: 3px 10px;
}

.tag-link.tag-size-2 {
    font-size: 14px;
    padding: 4px 12px;
}

.tag-link.tag-size-3 {
    font-size: 15px;
    padding: 5px 14px;
}

.tag-link.tag-size-4 {
    font-size: 16px;
    padding: 6px 16px;
    font-weight: bold;
}

.tag-link.tag-size-5 {
    font-size: 18px;
    padding: 8px 20px;
    border-color: var(--theme-color);
}

.tag-link:hover {
    background-color: var(--theme-color);
    color:white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-header {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color3));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-media {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-section {
    margin: 3rem 0;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border:1px solid var(--theme-color)
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.related-articles-sidebar {
    position: static;
    overflow: visible;

}

@media (min-width: 992px) {
    .related-articles-sidebar {
        position: sticky;
        top: 60px;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .related-articles-sidebar::-webkit-scrollbar {
        display: none;
    }
}

.floating-wpp-button{
    width: 50px !important;
    height: 50px !important
}

.social-links{
    display: flex;
    width: 45px;
    height: 45px;
    background: rgb(39 164 103 / 0.22);
    border-radius: 100%;
    color: var(--theme-color2);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-inline-end: 9px;
    font-size: 22px;
    transition: all 0.18s linear 0s;
}
.social-links:hover{
    background: var(--theme-color2);
}

[x-cloak] {
    display: none !important;
}