*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-decoration: none !important;
	list-style: none;
	font-family: tajawal;
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  #preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
  }
  
  .spinner-ring {
    position: relative;
    width: 100px;
    height: 100px;
  }
  
  .ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 8px solid #e0e0e0;
    border-top: 8px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
  }
  
  .spinner-ring .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 50px;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 1;
  }
    
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* header logo */
.header-logo{
    height: 100px;
}
.header-user-name {
    position: absolute;
    top: 95px;
    left: 12px;
    z-index: 10;
}
.header-user-name .user-img{
    border-radius: 50%;
    height: 24px;
    width: 24px;
    object-fit: cover;
}
.profile-user_image{
    border-radius: 50%;
    height: 80px;
    width: 80px;
    object-fit: cover; 
}
.latest-article-image{
    border-radius: 50%;
    height: 50px !important;
    width: 50px !important;
    object-fit: cover; 
}
.header-user-name a{
    padding: 2px;
}
#update_img_btn{
    display: none;
}

.custom-nav::-webkit-scrollbar {
    height: 4px;
}

.custom-nav::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 10px;
}
.custom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.custom-nav li{
    display: inline-block;
    vertical-align: middle; 
    margin: 0 10px;
    text-align: center;
    line-height: 50px;
}
.custom-nav li a{
    color: #212529;
}
.active-nav {
    border-bottom: 3px solid #dc3545;
}


/*marque*/
.marquee-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #f5f5f5;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.marquee-label {
    font-weight: bold;
    padding: 5px 10px;
    flex-shrink: 0; /* Keeps it fixed */
    z-index: 2;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-right-rtl 40s linear infinite;
    font-size: 1.1rem;
}
.marquee-content .mrquee-item {
    color: #4e4e4e;
    font-weight: bold;
    text-decoration: none;
    margin: 0 20px;
}

/* Animation for scrolling content */
@keyframes scroll-right-rtl {
    0% {
        transform: translateX(-40%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pause animation when hovering over any link */
.marquee-content:hover {
    animation-play-state: paused;
}


.carousel-inner{
    height: 500px;
}
.carousel-inner .carousel-item img{
    height: 500px;
    width: 100%;
    object-position: center !important;
    object-fit: cover;
}
.carousel-caption {
    text-align: right;
    right: 0; 
    left: auto; 
    bottom: 50px; 
    padding-left: 20px; 
    padding-right: 20px; 
    background: rgba(0, 0, 0, 0.4); 
}
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    padding: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 100%;
}

.carousel-aside div {
    height: 245px;
    position: relative;
}

.carousel-aside div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-aside-overly-text{
    padding-top: 150px !important;
}
.latest-news-aside-details div img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}
.latest-news-aside-details-overly-text{
    padding-top: 150px !important;
    height: 245px;
}




.title-bottom-border{
    height: 0.6px;
}
.title-bottom-border > div:first-of-type{
    width: 120px;
}
.show-only-5-lines{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical
}
.main-news img{
    max-height: 400px;
    object-fit: cover;
}

.latest-news-aside {
    display: flex;
    align-items: center;
    gap: 10px;
}
.latest-news-aside img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    aspect-ratio: 4/3;
    background-color: #f0f0f0;
}
.latest-news-aside a {
    margin: 0;
    text-align: justify;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.social-box{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.social{
    flex: 0 0 33.3333%;
      height: 120px;
      border: 2px solid white;
      display: flex;
      flex-direction: column; 
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      font-size: 16px;
}

.ads{
    max-width: 450px;
}
.ads img{
    width: 100%;
    height: 370px;
    object-fit: cover;
}
.social-box-footer {
    display: flex;
    flex-wrap: wrap;
    width: 150px;
}
.social-box-footer .social {
    flex: 0 0 33.3333%;
    height: 30px;
    border: 2px solid #1b1b1b;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.twitter-tweet{
    margin: 10px auto !important;
}

input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #cccccc !important;
}

@media all and (max-width: 767.5px){
    .carousel-caption h5,
    .carousel-caption p {
        max-width: 85%;
    }
}

/* forms */
#hide_password_icon, #hide_confirm_password_icon, #hide_old_password_icon, #hide_new_password_icon, #hide_confirm_new_password_icon{
	display: none;
}
label.is-invalid {
    color: #dc3545;
    font-size: 14.5px;
    display: block;
    margin-top: 3px;
    font-weight: 600;
    position: relative;
    left:  5px;
    text-align: left;
}
.password_icon{
    position: absolute;
    float: left;
    left: 20px;
    margin-top: 8px;
    font-size: 15px;
    width: 25px;
}
input[type="file"]{
    display: none;
}


/*youtube*/
.iframe-container{
	max-width: 1000px;
	margin: 0 auto;
}

.iframe{
	position: relative;
	overflow: hidden;
	height: 0;
	padding-bottom: 56.25%;
	border: 1px solid #C1003A;
}
.iframe > iframe{
	position: absolute;
	width: 100%;
	height: 100%;
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
    z-index: 999;
}

/* custom css */
.text-justify {
    text-align: justify;
}
.reflect-y{
	transform: rotateY(180deg);
}
.reflect-x{
	transform: rotateX(180deg);
}
.text-hover-danger {
    color: #4e4e4e;
    transition: color 0.3s ease;
}
.cursor-pointer{
    cursor: pointer;
}
  
.text-hover-danger:hover {
    color: #dc3545;
}
.facebook-bg{
    background-color: #3B5998;
}
.twitter-bg{
    background-color: #1DA1F2;
}
.youtube-bg{
    background-color: #FF0000;
}
.rotate-90 {
    transform: rotate(90deg);
}
.bg-black{
    background: #1b1b1b;
}
.bg-light-black{
    background: #181818;
}
.bg-light-dark{
    background: #444444;
}
.text-light-dark{
    color: #444444;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.btn-custom {
    color: #fff;
    background-color: #444444;
    border: none;
}
  
.btn-custom:hover {
    color: #fff;
    background-color: #d32f2f;
}
  
.btn-custom:focus, .btn-custom.focus {
    color: #fff;
    background-color: #d32f2f;
}
  
.btn-custom:active, .btn-custom.active,
.show > .btn-custom.dropdown-toggle {
    color: #eeeeee !important;
    background-color: #c52c2c !important;
}