/* ---------------------------------
Globle
--------------------------------- */
.w-85 {
    width: 85%;
}

/* ---------------------------------
Navbar
--------------------------------- */
.offcanvas .dropdown-menu {
    position: relative;
    margin-top: 0.5rem;
    width: auto;
    box-shadow: none;
}

.navbar-nav .input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.navbar-brand {
    width: 75px;
    height: 90px;
}

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

.navbar .logo {
    width: 100%;
    height: 100%;
}

@media (min-width: 990px) {
    .dropdown-menu {
        left: -3rem !important;
    }
}

@media (max-width: 990px) {
    html[lang='en'] .offcanvas-body {
        text-align: left;
        direction: ltr;
    }

    .offcanvas .navbar-nav .nav-link {
        justify-content: start;
    }
}

@media (max-width: 465px) {
    .search {
        margin-bottom: 10px;
        order: 3 !important;
    }
    .navbar-toggler {
        order: 2 !important;
    }
}

/* ---------------------------------
Hero Section Silder Swiper
--------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -24px;
    overflow: hidden;
}

@media (max-width: 465px) {
    .hero-section {
        position: relative;
        width: 100%;
        height: calc(100vh - 156px);
    }
}

.hero-section .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    padding: 20px;
}

.hero-section .swiper-container {
    width: 100%;
    height: 100%;
}

.hero-section .swiper-slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-section .swiper-pagination-bullet {
    background-color: white !important;
}

/* ---------------------------------
Steps Section
--------------------------------- */
.steps-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.step-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-10px);
}

.icon-wrapper img {
    max-width: 60px;
    margin: auto;
}

.icon-wrapper i {
    font-size: 50px;
    margin-bottom: 10px;
}

html[lang='ar'] .steps-section img {
    transform: rotate(180deg);
}

/* ---------------------------------
About us Section
--------------------------------- */
.about-section {
    box-shadow: 0px 0px 8px 0px #0000001a;
}

/* ---------------------------------
Sponsors Section
--------------------------------- */
.sponsors-section .container {
    overflow: hidden;
}

.sponsors-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.sponsors-section .scroll-container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
    background-color: var(--tblr-bg-white);
    border-radius: 10px;
}

.sponsors-section h2 {
    font-weight: bold;
}

.sponsors-section .carousel-primary {
    left: 100%;
    width: 100%;
    position: absolute;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.carousel-primary {
    animation: scroll-horizontal 60s linear infinite;
}

html[lang='ar'] .carousel-primary {
    animation: scroll-horizontal-ar 60s linear infinite;
}

.sponsor-item {
    display: flex;
    min-width: 150px;
    min-height: 150px;
    justify-content: space-between;
    flex-direction: column;
}

.sponsor-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.sponsor-item a {
    color: var(--tblr-bg-black);
}

.sponsor-item h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0px 10px;
    height: 50px;
}

@keyframes scroll-horizontal {
    0% {
        left: 100%;
    }
    50% {
        left: -200%;
    }
    100% {
        left: 100%;
    }
}

@keyframes scroll-horizontal-ar {
    0% {
        left: 250%;
    }
    50% {
        left: -10%;
    }
    100% {
        left: 265%;
    }
}

@media (max-width: 760px) {
    .scroll-container {
        width: 600px;
    }
}

.carousel-primary:hover,
html[lang='ar'] .carousel-primary:hover {
    animation-play-state: paused;
}

.scroll-container:hover > .carousel-primary:not(:hover),
html[lang='ar'] .scroll-container:hover > .carousel-primary:not(:hover) {
    animation-play-state: paused;
}

/* ---------------------------------
Friendly Sites  Section
--------------------------------- */
.friendly-sites-section .container {
    overflow: hidden;
}

.friendly-sites-section .scroll-container {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--tblr-bg-white);
    border-radius: 10px;
}

.friendly-sites-section h2 {
    font-weight: bold;
}

.friendly-sites-section .carousel-primary,
.friendly-sites-section .carousel-secondary {
    left: 100%;
    width: 100%;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.friendly-sites-section .carousel-primary img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.friendly-sites-section .carousel-primary {
    animation: scroll-horizontal 20s linear infinite;
}

.friendly-sites-section .carousel-secondary {
    animation: scroll-horizontal 20s linear infinite;
    animation-delay: 10s;
}

.friendly-sites-section .site-item {
    display: inline-block;
    text-align: center;
    min-width: 60px;
    height: 100px;
}

.friendly-sites-section .site-item .image {
    width: 100%;
    height: 60px;
}

.friendly-sites-section .site-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friendly-sites-section .site-item .text {
    width: 100%;
    height: 40px;
    overflow: hidden;
}

.friendly-sites-section .site-item .text h3 {
    overflow: hidden;
}

.friendly-sites-section .site-item .text h3 a {
    display: block;
    width: 100%;
}

@media (max-width: 760px) {
    .friendly-sites-section .scroll-container {
        width: 600px;
    }
}

.friendly-sites-section .carousel-primary:hover,
.friendly-sites-section .carousel-secondary:hover {
    animation-play-state: paused;
}

.friendly-sites-section .carousel-primary:hover ~ .carousel-secondary {
    animation-play-state: paused;
}

.friendly-sites-section .scroll-container:hover > .carousel-primary:not(:hover) {
    animation-play-state: paused;
}

/* ---------------------------------
Counter Section
--------------------------------- */
.counter-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.counter-box {
    padding: 20px;
    background-color: var(--tblr-bg-surface);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.counter-box h3 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
}

.counter-box p {
    font-size: 20px;
    color: #6c757d;
}

.counter + span {
    font-size: 50px;
    font-weight: bold;
}

/* ---------------------------------
Categories Section
--------------------------------- */
.categories-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.category-card {
    height: 100%;
    padding: 15px;
    border-radius: 8px;
    background: var(--tblr-bg-surface);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.Categories-section .btn-outline-primary {
    border: 2px solid #a9884b;
    color: #a9884b;
    transition: all 0.3s ease;
    background-color: transparent;
}

.Categories-section .btn-outline-primary:hover {
    background-color: #a9884b;
    color: var(--tblr-bg-surface) fff;
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.category-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    height: 40px;
}

.category-info h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.category-info {
    flex-grow: 1;
}

.category-card p {
    margin-bottom: 0;
}

/* ---------------------------------
Courses Section
--------------------------------- */
.courses-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.course-card {
    background: var(--tblr-bg-surface);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.course-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card {
    background: var(--tblr-bg-surface);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-info h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.course-info {
    flex-grow: 1;
}

.course-card p {
    margin-bottom: 0;
}

i.fa-bookmark {
    transition: all 0.25s linear;
}

i.fa-bookmark:hover {
    font-weight: bold;
}

/* ---------------------------------
News Section
--------------------------------- */
.news-section h2 {
    font-size: 28px;
    color: #a9884b;
}

.news-detail-section {
    width: 100%;
    margin-top: -24px;
}

.news-detail-section img {
    width: 100%;
}

.news-detail-section .card-title {
    font-weight: bold;
    font-size: 25px;
    margin: 20px 0px;
}

.news-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-img-top {
    height: 200px;
    width: 100%;
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.single-news-container {
    position: relative;
}

/* ---------------------------------
Footer Section
--------------------------------- */
footer img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* ---------------------------------
About Us
--------------------------------- */
.about-section {
    padding: 60px 0;
    margin-top: -24px;
    background-color: var(--tblr-bg-surface);
}

.about-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--tblr-bg-black);
}

.about-section .icon-number {
    font-size: 64px;
    font-weight: bold;
    color: #0056b3;
}

.about-section .icon-number + h3 {
    font-size: 25px;
    margin: 0;
}

.about-section .content {
    background-color: var(--tblr-bg-white);
    padding: 30px;
    border-radius: 12px;
}

.about-section img {
    width: 100%;
    max-width: 320px;
}

/* ---------------------------------
Exam
--------------------------------- */
.exam {
    margin-top: -24px;
}

.exam .sidebar {
    min-height: 50vh;
    overflow-y: auto;
    background-color: var(--tblr-bg-surface);
}

.exam .question-slider {
    display: none;
}

.exam .question-slider.active {
    display: block;
}

.exam .b-question {
    padding: 10px;
    border: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    position: relative;
    box-shadow: 0px 1px 4px silver;
}

body[data-bs-theme='dark'] .exam .b-question {
    box-shadow: 0px 1px 4px rgba(24, 24, 24, 0.4);
}

.exam .b-question.active {
    background-color: var(--tblr-btn-hover-bg);
}

.exam .b-question p {
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.exam .b-question .text-question {
    font-size: 12px;
    font-weight: bold;
}

.exam .b-question .number-question {
    font-size: 18px;
    font-weight: bold;
}

.exam .b-question .type-question {
    font-size: 10px;
    font-weight: 200;
}

.exam .b-question .status-question {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--tblr-gray-400);
}

.exam .status-not-answered {
    background-color: red !important;
}

.exam .status-answered {
    background-color: green !important;
}

.exam .status-marked-review {
    background-color: orange !important;
}

@media (max-width: 967px) {
    .exam .sidebar {
        margin-bottom: 15px;
    }

    .exam .change-status {
        position: relative;
    }

    .exam .change-status .btn-text {
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #333;
        background-color: #fff;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .exam .change-status i {
        display: block !important;
        font-size: 20px;
    }

    .exam .change-status:hover .btn-text {
        display: block;
        opacity: 1;
    }

    .exam .change-status .btn-text::after {
        content: '';
        position: absolute;
        bottom: -19px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-top: 10px solid #fff;
        z-index: 0;
    }
}

/* ---------------------------------
Profile
--------------------------------- */
.profile {
    margin-top: -4px;
}

.certificates-container {
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.certificates-container .certificate-container {
    width: 350px;
    height: 500px;
}

.certificates-container .certificate-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------------------------------
CoursePlayer
--------------------------------- */
.course-player {
    margin-top: -24px;
}

.course-player .accordion-body {
    padding: 0;
}

.course-player .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-tabs .nav-link.active {
    border: 0;
    border-bottom: 2px solid #007bff;
    background-color: transparent !important;
}

.card-header-tabs .nav-link.active:hover {
    border-bottom: 2px solid #007bff;
}

.card-header-tabs .nav-link:hover,
.nav-tabs .nav-link {
    border: 0;
}

.course-player .details {
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-player .details .card {
    border: 0 !important;
}

.course-player .details .card-body {
    background-color: var(--tblr-light);
}

body[data-bs-theme='dark'] .card-body {
    background-color: var(--tblr-bg-surface-dark) !important;
}

.course-player .accordion .accordion-item .accordion-collapse .accordion-body .list-group-item div.d-flex div img {
    min-width: 100px !important;
    max-width: 100px;
    height: 100px;
    object-fit: contain;
}

@media (min-width: 767px) and (max-width: 991px) {
    .course-player .accordion .accordion-item .accordion-collapse .accordion-body .list-group-item div.d-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        justify-items: end;
    }

    .course-player
        .accordion
        .accordion-item
        .accordion-collapse
        .accordion-body
        .list-group-item
        div.d-flex
        div:nth-child(1) {
        order: 1;
    }

    .course-player
        .accordion
        .accordion-item
        .accordion-collapse
        .accordion-body
        .list-group-item
        div.d-flex
        div:nth-child(2) {
        order: 3;
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .course-player
        .accordion
        .accordion-item
        .accordion-collapse
        .accordion-body
        .list-group-item
        div.d-flex
        div:last-child {
        order: 2;
    }
}

/* ---------------------------------
Complaints & Inquiries
--------------------------------- */
.complaints form textarea {
    height: 200px;
    resize: none;
}

/* ---------------------------------
Privacy Policy
--------------------------------- */
.privacy-policy {
    padding: 60px 0;
    margin-top: -24px;
    background-color: var(--tblr-bg-surface);
}

.privacy-policy h2 {
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--tblr-bg-black);
}

/* ---------------------------------
Terms & Conditions
--------------------------------- */
.terms-and-conditions {
    padding: 60px 0;
    margin-top: -24px;
    background-color: var(--tblr-bg-surface);
}

.terms-and-conditions h2 {
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--tblr-bg-black);
}

/* ---------------------------------
Administrative Structure
--------------------------------- */
.administrative .admin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.administrative .admin-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.administrative .admin-card h5 {
    margin-top: 15px;
    font-weight: bold;
}

.administrative .admin-card p {
    color: #555;
}

.administrative .administrative .card {
    border-radius: 5px;
}

.administrative .card .row-0 {
    align-items: center;
}

.administrative .card img {
    object-fit: contain;
    max-width: 100px;
    height: 100px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* ---------------------------------
Exam Instructions
--------------------------------- */
.exam-instructions {
    padding: 60px 0;
    margin-top: -24px;
    background-color: var(--tblr-bg-surface);
}

.exam-instructions h2 {
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--tblr-bg-black);
}
