:root {
    --theme-color: hsl(259, 25%, 49%);
    --theme-color-light: hsl(259, 30%, 85%); /*hsl(259, 25%, 69%);*/
    --theme-color-dark: hsl(259, 45%, 35%); /*hsl(259, 25%, 29%);*/
    --theme-color-white: hsl(0, 0%, 100%);
    --theme-color-light-gray: hsl(0, 0%, 97%);
    --ribbon-color: #fc5185;

    /*theme for judge*/
    /*--theme2-color: hsl(359, 100%, 43%);*/
    /*--theme2-color-light: hsl(359deg 100% 63% / 26%);*/
    /*--theme2-color-dark: hsl(359, 100%, 23%);*/

    --theme2-color: hsl(211, 100%, 52%);
    --theme2-color-light: hsl(211, 100%, 37%);
    --theme2-color-dark: hsl(197, 75%, 33%);
    --theme2-white-pale: #e9f1ff;

    --body-color: #F8F8F8;
}
@font-face {
    font-family: 'Almarai';
    font-style: normal;
    font-display: swap;
    src: url("../fonts/Almarai.woff2") format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
    /*font-family: 'Almarai';*/
    /*font-size: 14px;*/
    /*line-height: 1.5;*/
    /*font-weight: 400;*/
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--body-color)
}

img {
    max-width: 100%;
}

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

::-webkit-scrollbar {
    width: 7px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eee;
}

::-webkit-scrollbar-thumb {
    background: #222;
}

a {
    text-decoration: none;
}

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

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

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

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

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

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

.btn-theme2 {
    background-color: var(--theme2-color);
    color: white;
    transition: all 0.3s;
}

.btn-theme2:hover {
    background-color: var(--theme2-color-dark);
    color: white;
}

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

.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: var(--theme-color) !important;
    color: white;
}

.select2-container {
    width: 100% !important;
}

.logo {
    display: flex;
}

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

.row {
    margin: 0;
}

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

.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-select:focus,
.form-control:focus {
    box-shadow: none !important;
    border-color: var(--theme-color) !important;
}

.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;
    z-index: 99999 !important;
}

.w-95 {
    width: 95%;
}

.h-95 {
    height: 95%;
}

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

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

.h-0 {
    height: 0;
}

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

.btn-blue {
    background-color: #0060df !important;
    color: white !important;
}

.btn-blue:hover {
    background-color: #0250bb !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

.scrollbar-0::-webkit-scrollbar {
    width: 0px;
    height: 0;
}

.scrollbar-5::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

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

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

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

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

.overlay {
    background-color: rgba(0, 0, 0, 0.5)
}

.overlay-theme {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--theme-color);
    opacity: 0.3;
}

.border-theme {
    border-color: var(--theme-color) !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.translate-y-100 {
    transform: translateY(100%);
}

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

.hover-border {
    border-color: transparent !important;
}

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

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

.pointer {
    cursor: pointer;
}

.zoom {
    cursor: zoom-in;
}

.grab {
    cursor: grab;
}

.clamp1,
.clamp2,
.clamp3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.clamp3 {
    -webkit-line-clamp: 3;
}

.flatpickr-input {
    background-color: white !important;
}

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

[data-ribbon] {
    position: relative;
    background-color: #eee;
}

[data-ribbon]::before {
    position: absolute;
    content: '';
    background-color: var(--ribbon-color);
    height: 35px;
    width: 35px;
    top: 2rem;
    transform: rotate(45deg);
    z-index: -1;
}

[data-ribbon]::after {
    position: absolute;
    content: attr(data-ribbon);
    top: 4px;
    padding: 10px;
    min-width: 8rem;
    background-color: var(--ribbon-color);
    z-index: 2;
    color: #fff;
}

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

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

.hover-effect-button {
    background: var(--theme-color);
    color: white;
    font-family: inherit;
    padding: 0.35em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.25rem;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 2.8em;
}

.hover-effect-button .icon {
    background: white;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.hover-effect-button:hover .icon {
    width: calc(100% - 0.6em);
}

.hover-effect-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #7b52b9;
}

.hover-effect-button:hover .icon svg {
    transform: translateX(0.1em);
}

.hover-effect-button:active .icon {
    transform: scale(0.95);
}

.file-input {
    background-color: white;
}

.close.fileinput-remove {
    background-color: transparent;
    border: none;
    display: none;
}

.close.fileinput-remove span {
    font-size: 2rem;
}

.file-drag-handle {
    display: none;
}

.bg-grey {
    background-color: #F3F3F8;
}

.layer-dark {
    background-color: #00000042;
}

.min-width {
    min-width: 120px;
}

.animate-rotate-y {
    animation: 0.5s animate-rotate-y ease-in-out forwards;
}

@keyframes animate-rotate-y {
    0% {
        transform: rotateY(-100deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.animate-fade-in {
    animation: 0.5s animate-fade-in ease-in-out forwards;
}

@keyframes animate-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: 0.5s animate-slide-up ease-in-out forwards;
}

@keyframes animate-slide-up {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.flex-1 {
    flex: 1;
}

.horizontal-child * {
    display: flex !important;
    flex-direction: row !important;
    position: relative !important;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

iframe {
    max-width: 100%;
}

.show-content .show-content-child {
    display: flex !important;
}

.show-content .rotate-content-child {
    transform: rotateZ(180deg);
}

.translate-100 {
    transform: translateX(-100%);
}

.translate-0 {
    transform: translateX(0);
}

.rtl {
    direction: rtl;
}

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

.disabled {
    cursor: not-allowed;
}

.disabled * {
    opacity: 0.8;
    pointer-events: none;
}

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

.title-style {
    position: relative;
}

.title-style::before {
    content: "";
    width: 100px;
    height: 5px;
    display: flex;
    position: absolute;
    right: 100%;
    top: 45%;
    background-color: var(--theme-color);
}


.bg-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.app-sidebar-minified:not(.app-without-sidebar) .app-sidebar:not(.app-sidebar-end) .menu>.menu-item.active>.menu-link svg {
    color: white;
}

.select2.select2-container .selection .select2-selection.select2-selection--multiple {
    flex-direction: column;
}

.select2.select2-container .selection .select2-selection.select2-selection--multiple,
.select2.select2-container .selection .select2-selection.select2-selection--single {
    padding-left: 0;
    padding-right: 0;
}
.html5-qrcode-element {
    background-color: #e3e3e3;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    margin:  10px 0;
    text-decoration: none !important;
    width: 90%;
}

@media screen and (min-width:1000px) {
    .position-md-absolute {
        position: absolute !important;
    }
}


@media screen and (max-width:700px) {
    .title-style::before {
        left: 0 !important;
        right: 0 !important;
        top: 100%;
        margin: auto;
    }
}

.splitter-msg {
    background: linear-gradient(135deg, var(--theme-color), var(--theme-color-dark));
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.splitter-msg::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.splitter-msg::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.splitter-title {
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.splitter-subtitle {
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 180px;
    }

    .splitter-msg {
        padding: 3rem 0;
    }

    .filter-btn {
        margin: 5px;
        padding: 6px 15px;
    }
}

@media (max-width: 576px) {
    .gallery-item img {
        height: 150px;
    }
}

.contactus-header {
    background-color: var(--theme-color-light);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.contactus-header .btn-primary {
    background-color: var(--theme-color);
    border-color: var(--theme-color-dark);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.contactus-header .btn-primary:hover {
    background-color: var(--theme-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

.gallery-filter {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    margin: 0 8px;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(103, 58, 183, 0.3);
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--theme-color-white);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(103, 58, 183, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

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

.gallery-item .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(103, 58, 183, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .img-overlay {
    opacity: 1;
}

.img-overlay h5 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.img-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.img-overlay .view-btn {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 10px;
    transition: all 0.3s;
    border: none;
    font-size: 1.2rem;
}

.img-overlay .view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.1);
}
