:root {
    --bg-red: #faebd7;
    --red: #b80202;
    --grey: #f3f3f9;
    --mainFont: "Zain", sans-serif;
    --darkblue: #303590;
    --p:25px;
    --font-medium:20px;
    --background-color:#f0f8ff;
}

/* Fonts and sizes */
body {
    font-family: var(--mainFont) !important;
    background-color: var(--grey) !important;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mainFont) !important;
}

/* Colors */
.red {
    color: var(--red) !important;
}

/* ............................ */

.auth-one-bg .bg-overlay {
    background: linear-gradient(to left, #2f3590, #313791) !important;
    opacity: 0.9;
}
.auth-one-bg .shape > svg {
    width: 100%;
    height: auto;
    fill: var(--grey) !important;
}
.loading {
    display: none;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url("/images/core/loader.gif") 50% 50% no-repeat
        rgba(255, 255, 255, 0.7);
}
.categoryCard:hover {
    background-color: var(--vz-vertical-menu-item-hover-color);
    cursor: pointer;
}
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 57px;
    left: 21px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.pagination {
    justify-content: end;
}

.ticker-container {
    background: linear-gradient(to right, #2f3590, #1a1e5b);
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 15px;
    text-align: center;
    /* border-radius: 10px; */
}

.ticker-wrap {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
    animation-fill-mode: forwards;
}

.ticker {
    display: inline-block;
}
#back-to-top {
    left: unset !important;
    right: 28px;
}
.ticker span {
    display: inline-block;
    padding: 0 2rem;
    color: white;
    font-size: 20px;
    /* Increased font size */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Added text shadow */
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

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

.ticker-wrap:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

input.readonly {
    background-color: darkgray;
}

/* Card styling */
.category-card {
    background-color: rgba(5, 123, 190, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 200px;
}

.category-card {
    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);

        h5,
        p {
            color: white;
        }
    }
}

/* Card   styling */

.category-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Card Image Section */
.category-card-image-wrapper {
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding-bottom: 70%;
    position: relative;
    height: 0;
    margin-bottom: 16px;
}
img.image__content {
    max-height: 100%;
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    margin: 0 auto;
    text-align: center;
    width: 70%;
    height: 100%;
    right: 0;
    padding: 4%;
    background-color: unset;
}

.category-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-title-overlay {
    opacity: 1;
}

.category-card-hover-title {
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Card Title */
.category-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* Card description */
.category-card-description {
    font-size: 1rem;
    color: #777;
}

/* Styling the image itself */
.category-card-image {
    border-radius: 50%;
    transition: transform 0.3s ease;
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.category-card:hover .category-card-image {
    transform: scale(1.1); /* Image zoom effect on hover */
}

.form-control {
    direction: rtl;
}

.badge-soft-check {
    color: #530202;
    background-color: rgba(189, 1, 1, 0.5);
}
.navbar-menu {
    background: linear-gradient(
        to bottom,
        rgb(26, 30, 91),
        rgb(47, 53, 144)
    ) !important;
}

.navbar-menu.navbar-menu-user .navbar-nav .nav-link {
    color: white;
    font-family: var(--mainFont) !important;
    font-size: var(--font-medium)!important;
    margin-top: 15px;
}
[data-layout="vertical"][data-sidebar-size="sm"] .navbar-brand-box {
    background: unset !important;
}
[data-layout="vertical"][data-sidebar-size="sm"]
    .navbar-menu
    .navbar-nav
    .nav-item:hover
    > a.menu-link {
    background: linear-gradient(
        to bottom,
        rgb(26, 30, 91),
        rgb(47, 53, 144)
    ) !important;
}
#page-topbar {
    background: linear-gradient(
        to bottom,
        rgb(26, 30, 91),
        rgb(47, 53, 144)
    ) !important;
    color: white !important;
}
.hamburger-icon span {
    background-color: white !important;
}
.user-name-text {
    color: white !important;
}
.topbar-user {
    background-color: unset !important;
}
 
.btn-primary {
    color: #fff;
    background-color: #42479a !important;
    border-color: #43489b !important;
}
.white {
    color: #fff !important;
}
 .main-swipper {
    height: 50vh;
    max-height: 400px;
    position: relative;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
        background: unset;

}

.swiper-slide1 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
background: linear-gradient(170deg, #272c7c36, #252a77d1, #272c7c);
    padding: 1rem; /* adds spacing around image */
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.03); /* soft inner glow */
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1)); /* subtle outer glow */
}

.slide-img:hover {
    transform: scale(1.03);
}

.slide-img:hover {
    transform: scale(1.03);
}

/* Pagination Dots */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    border-radius: 50%;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #42479a !important;
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

 
  .swiper-rtl .swiper-button-prev {
    left: 10px!important;
    right: auto!important;
}
  .swiper-rtl .swiper-button-next {
    right : 10px!important;
   left: auto!important;
}
.page-content {
    background-color:var(--background-color);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0 15px;
}

.category-app-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: unset;
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); */
    /* padding: 7px; */
}

.category-app-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.category-app-icon {
 position: relative;
    width: 71%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-app-icon:hover .hover-overlay {
    opacity: 1;
}

.category-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.category-app-card:hover img {
    transform: scale(1.05);
}

.category-app-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-top: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(rgb(254 255 255), #96d0ed)!important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 7px;
}
.card-animate {
 
    background: linear-gradient(rgba(254, 255, 255, 0.411), #96d0ed)!important;
}
.only-mob{
    display: none;

}
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    [data-layout="vertical"] .navbar-brand-box {
        display: block !important;
    }
    .navbar-brand-box {
        display: block !important;
    }
    .mainLogo{
        width: 100px;
        height: 100px;
    }
     .main-swipper {
    height: 30vh;
 
}
.only-mob{
    display: block;

}
    
}

@media (max-width: 480px) {
    :root {
 
    --p:20px;
}
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-app-title {
    font-size: 1rem;
}

.category-app-price{
        font-size: 1rem;

}
input{
    font-size: 1.3rem!important;
}
table.dataTable td, table.dataTable th{
    font-size: 1.2rem;
}
}

.footer{
    background-color:var(--background-color)!important;
    color: black!important;
}
.input-group-text.blue {
    background-color: var(--darkblue);
    color: white;
}