/* style.css */

.custom-alert {
    background-color: #ff7361;
    color: white;
    /* Ensure the text is readable */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 9s ease-out;
    /* Smooth fade out over 3 seconds */
}

#error-alert {
    background-color: #ff7361;;
    color: white;
    /* Ensure the text is readable */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 15s ease-out;
    /* Smooth fade out over 3 seconds */
}


#error_alert {
    background-color: #ff7361;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    opacity: 1;
    /* No transition or fade-out effect */
}

.tox-notifications-container{
    display: none!important;
}

.fade-out {
    opacity: 0;
}

:root {
    --primary-color: rgb(135 147 154);
    --secondary-color: #333;
    --light-color: #fff;
    --dark-color: rgb(47 50 57);
    --text-color: hsla(333, 68%, 50%, 0.602);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tajawal", sans-serif;
    font-weight: 700;
    font-size: small;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color) !important;
}

.top-bar {
    background-color: var(--primary-color) !important;
}

.top-bar .social-icons a {
    font-size: 1.2rem;
}

.top-bar .search-bar input {
    max-width: 200px;
}

.navbar {
    background-color: var(--secondary-color);
}

.nav-link {
    color: var(--light-color) !important;
}
.nav-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    border-radius: 5px;
}
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    border-radius: 5px;
}

.top-bar .social-icons :hover {
    color: var(--secondary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' linecap='round' linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

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

.search-input {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100px;
    padding-right: 30px;
}

.search-input:focus {
    width: 200px;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    cursor: pointer;
}
/* Ticker styles */
.ticker {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

.ticker-inner {
    display: flex; /* Use flexbox for a smoother layout */
    animation: ticker 50s linear infinite; /* Default duration for desktop */
}

.ticker-item {
    padding: 0 2rem; /* Padding for spacing between items */
}

/* Animation keyframes */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Media query for mobile devices */
@media (max-width: 768px) { /* Adjust max-width as necessary */
    .ticker-inner {
        animation: ticker 25s linear infinite; /* Faster duration for mobile */
    }
}



.border-1 {
    border: 1px solid #ffffff;
}

/* New category section styles */
.category-section {
    background-color: var(--primary-color);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.category-item:hover {
    background-color: var(--dark-color);
}

/* hero */

.hero-section {
    position: relative;
    text-align: center;
    background-color: var(--light-color);
}

.search-bar-wrapper {
    margin-bottom: 10px;
    padding: 10px;
}

.search-container {
    background-color: var(--light-color);
    padding: 20px 0;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.search-input {
    border: none;
    width: 100%;
    padding: 10px;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 10px 20px;
    color: var(--light-color);
    cursor: pointer;
}

.search-btn i {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .search-form {
        width: 100%;
    }
}
.hero-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* questions card */

.questions .btn-primary {
    background-color: #ff7361;
    border: none;
}

.questions .btn-secondary {
    background-color: #ddd;
    border: none;
    color: #333;
}

#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
 }
 #preloader-img img {
    width: 150px; /* Adjust as needed */
    /* /animation: bounce 1s infinite;/ */
    animation: fadeInOut 2s ease-in-out infinite alternate;
}
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.lead img {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* Make videos responsive */
.lead iframe,
.lead video {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.questions .btn-secondary:hover {
    background-color: #ccc;
}

.questions .nav-tabs .nav-link.active {
    background-color: #ff7361;
    color: #fff;
    border: none;
}



@media (max-width: 768px) {
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overflow-y: hidden;
    }

    .nav-tabs .nav-item {
        flex: 0 0 auto;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }
}

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

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

.questions .nav-link {
    color: #000000 !important;
}

.question {
    background-color: #fff;
}

.question .badge {
    font-size: 1rem;
}

.question h5 {
    margin-top: 10px;
}
.title-text:hover {
    color: var(--secondary-color) !important;
    cursor: pointer;
}

.question p {
    margin-top: 10px;
    color: #666;
}

.question .text-secondary {
    font-size: 0.9rem;
}

.question-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.user-info .user-image {
    width: 40px;
    height: 40px;
}

.question-card .text-muted {
    color: #888 !important;
}

.question-card .fa-angle-up,
.question-card .fa-angle-down {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color) !important;
}

.question-card .fa-comment-dots,
.question-card .fa-layer-group,
.question-card .fa-eye {
    cursor: pointer;
    margin-left: 5px;
}
@media (min-width: 768px) {
    .col-md-3 {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
        height: fit-content;
    }
}
/* Filter Button */
.filter-button-container {
    text-align: end;
    position: relative;
}

#filter-toggle {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#filter-toggle:focus {
    outline: none;
}

/* Filter Bar */
.filter-bar {
    position: absolute;
    right: 50px;
    top: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(100%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1;
}

.filter-bar.d-block {
    opacity: 1;
    transform: translateX(0);
}

.filter-bar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.filter-bar .nav-link {
    margin: 5px 0;
    color: #333;
    border-radius: 4px;
}

.filter-bar .nav-link.active {
    background-color: #ff7361;
    color: #fff;
}

/* for signup */
.popup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: unset !important;
    box-shadow: unset !important;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin-bottom: 120px !important;
}

.popup .popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    text-align: right;
    margin-right: 10%;
    margin-top: -120px;
}
/* query on mobile remove the margin top */
@media (max-width: 768px) {
    .popup .popup-content {
        margin-top: -120;
        margin-right: -20px;
    }
}

.popup .close {
    color: red;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup label {
    margin-top: 10px;
}

.popup input[type="text"],
.popup input[type="email"],
.popup input[type="password"] {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup button[type="submit"] {
    padding: 10px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button[type="submit"]:hover {
    background-color: #ff4b4b;
}

.notification-popup {
    display: none;
    position: absolute;
    top: 50px;
    left: 15px;
    width: 300px;
    z-index: 4;
    max-height: 200px;
    overflow-y: auto;
}

/* footer */
footer {
    border-top: 1px solid #ddd;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #000;
}

footer a:hover {
    color: #dc3545;
}

footer .fab {
    margin-left: 10px;
}

footer .fab:hover {
    color: #dc3545;
}

/* alert  */
/* style.css */

/* Alert Box Styles */
.alert {
    font-weight: bold;
    font-size: 0.7rem;
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2px;
}

.alert .fas {
    color: #856404;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.alert-ticker-container {
    display: inline-block;
    overflow: hidden;
    width: calc(90% - 60px); /* Adjust width to fit within alert box */
    position: relative;
}

@media (max-width: 576px) {
    .embed-responsive-item {
        width: 210px; /* Full width on mobile */
        height: 180px; /* Adjust height as necessary */
        margin-left: 0; /* Reset margin on very small screens */
    }

    .d-flex {
        margin-left:10px; /* Adjust left margin for small screens */
        margin-right: 4px; /* Adjust right margin for small screens */
    }
}

.social-icons a {
    color: black; /* Set icon color to black */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.social-icons a:hover {
    color: #dc3545; /* Change hover color to your preferred color */
}




.alert-ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 20%; /* Change padding to the right */
    animation: ticker 17s linear infinite;
    direction: ltr; /* Change direction to left-to-right */
    margin-top: 10px;
}

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

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

/* statistics */
@media (max-width: 786px) {
    .stat {
        display: none;
    }
}

@media (min-width: 787px) {
    .stat-notmobile {
        display: none;
    }
}
.custom-file-input {
    display: none;
}
.no-wrap {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

 .modal-backdrop
{
    position: static!important;
}
