body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
.btn,
select,
.btn-primary,
.nav.navbar .navbar-nav .nav-link,
.tp-footer-widget ul li a {
    font-family: 'Tajawal', sans-serif !important;
}

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    font-family: 'Tajawal', sans-serif !important;
}

::-moz-placeholder {
    /* Firefox 19+ */
    font-family: 'Tajawal', sans-serif !important;
}

:-ms-input-placeholder {
    /* IE 10+ */
    font-family: 'Tajawal', sans-serif !important;
}

:-moz-placeholder {
    /* Firefox 18- */
    font-family: 'Tajawal', sans-serif !important;
}

.offcanvas-btn {
    margin-left: 20px;
    margin-right: 0;
}

.tp-header-2 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.tp-hero-2-title {
    font-size: 40px;
    font-weight: 800;
}


.otp-input-wrapper input {
    padding: 0;
    margin-left: 10px;
    width: 60px;
    text-align: center !important
}

.tp-dashboard-rating {
    text-align: center;
    margin-top: 10px;
}

.events .tp-course-item:hover .tp-course-content {
    transform: translateY(-5px);
}

.events .tp-course-teacher span {
    font-size: 20px;
    font-weight: 500;
}

.events .tp-course-teacher {
    padding-right: 0
}

.events .tp-course-filter-meta span:nth-child(1) {
    border-left: 0;
}

.tp-header-logo img {
    width: auto;
}

.offcanvas-open-btn,
.tp-header-2 .offcanvas-open-btn:hover {
    background: #204A93;
}

.tp-header-2 .offcanvas-open-btn {
    line-height: 36px;
}

.tp-header-inner-login {
    cursor: pointer;
}

.tp-header-inner-category {
    border-radius: 8px;
    border: 1px solid #EEE;
    background: transparent;
    padding-right: 10px;
    padding-left: 8px;
}

.offcanvas__close-btn svg {
    color: #777;
}

.offcanvas__2 .offcanvas__close-btn {
    background-color: transparent;
}

.offcanvas-content {
    position: relative;
}

.offcanvas__close {
    right: auto;
    left: 0;
    top: -10px;
}

.offcanvas__top {
    margin-bottom: 45px;
    justify-content: center !important;
}

.offcanvas-title {
    font-size: 25px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 0;
}

.tp-main-menu-mobile ul li .main {
    font-weight: bold
}

.offcanvas-social ul li a {
    color: #fff;
    border-color: #000;
    background-color: #000;
}

.tp-course-item {
    padding: 7px 15px 9px 15px;
}

.tp-hero-2-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

.tp-hero-2-btn .tp-btn-border {
    border-radius: 8px;
}

.tp-category-icon {
    margin-bottom: 10px;
    border-right: 2px solid #ddd;
    padding-right: 7px;
}

.advantages .tp-category-icon {
    border-right: 0;
    padding-right: 0;
}

.tp-team-2-thumb img {
    height: 250px;
}

.tp-team-2-content {
    background: #F4F4F4;
    text-align: right;
    padding-right: 10px;
}

.tp-team-2-title {
    font-size: 16px;
}

.tp-team-2-bg {
    background-color: transparent !important;
    border: 1px solid #DDD;
}

.tp-team-2-thumb {
    padding-bottom: 25px;
}

.tp-team-2-content {
    left: 15px;
    right: 15px;
    bottom: 15px;
}

.tp-blog-stories-thumb {
    overflow: visible;
}

.tp-blog-stories-area .cat {
    font-size: 14px;
    font-weight: 400;
    padding: 0px 14px;
    display: inline-block;
    border-radius: 6px;
    background-color: #EFE9FE;
    color: #000;
    position: absolute;
    top: 20px;
    left: -15px;
    z-index: 9999999;
}

.tp-blog-stories-tag-wrap a {
    background-color: transparent;
    margin-left: 0;
    margin-right: 0;
}

.tp-blog-stories-tag-wrap {
    margin-bottom: 0;
    justify-content: space-between;
}

.tp-blog-stories-tag-wrap span::after {
    display: none;
}

.tp-blog-stories-item {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 15px;
    border-radius: 8px;
}

.tp-blog-stories-title {
    min-height: 93px
}

footer {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.tp-footer-bottom-social a {
    background: #2E3136;
    color: #fff;
}

.header-bottom__lang-2>ul>li>a {
    border: 0;
    padding: 0;
}

.header-bottom__lang-2>ul>li {
    display: inline;
    margin-left: 10px;
    border-left: 1px solid #CCC;
    padding-left: 10px;
}

.header-bottom__lang-2>ul>li:last-child {
    margin-left: 0px;
    border-left: 0px;
    padding-left: 0px;
}

#carouselExampleCaptions .carousel-inner {
    overflow: hidden;
}

#carouselExampleCaptions {
    margin-top: 0;
}

#carouselExampleCaptions h5,
#carouselExampleCaptions p {
    color: #FFF
}

#carouselExampleCaptions .carousel-item {
    position: relative;
    background-color: rgba(255, 255, 255, .3);
    padding: 20px;
    border-radius: 8px
}

#carouselExampleCaptions .carousel-caption {
    position: relative;
    left: 0;
    bottom: 0;
    right: 0;
}

.carousel-item {
    display: none;
    width: 70%;
    margin-left: 0;
    text-align: center;
    margin-right: 15%;
}

.tp-course-categories-area .tp-course-categories-icon {
    margin-bottom: 10px;
    border-right: 2px solid #ddd;
    padding-right: 7px;
}

.tp-course-categories-icon span {
    margin-bottom: 0px;
}

.tp-user-menu ul li a.active {
    border-radius: 8px;
    background: transparent;
    color: #FFF;
    box-shadow: none;
    color: #204A93;
    border: 1px solid #204A93;
}

.tp-dashboard-banner-bg {
    background-image: none !important;
}

.tp-instructor-wrap {
    transform: translateY(20px);
}

.tp-hero-2-content p {
    max-width: 43%
}


.packages .package-item {
    margin-bottom: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 15px;
    border-radius: 15px;
}

.packages .package-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.packages .package-title {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 20px;
}

.packages .package-price {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.packages .package-price b {
    font-size: 36px;
    font-weight: 700;
    color: #000
}

.packages .package-price a {
    background: #4085CB;
    border-color: #4085CB;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.packages .active_package {
    background: #204A93;
}

.packages .package-item-content .discount {
    color: #FA3337;
    background: #FFEBEB;
    padding: 3px 10px;
    border-radius: 6px;
}

.packages .active_package .cover {
    background: #FFF;
    padding: 8px 10px;
    border-radius: 10px;
    margin-top: 10px
}

.packages .submit_btn {
    border-radius: 6px;
    background-color: #4085CB;
    border-color: #4085CB;
    padding-top: 11px;
    padding-bottom: 11px;
}

.packages .submit_btn:hover {
    color: #fff;
}

.custom_slider .slider-container {
    width: 100%;
}

.custom_slider .slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.custom_slider .slide {
    position: absolute;
    width: 100%;
    height: 500px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: revert !important;
    background-repeat: round !important;
}

.custom_slider .slide.active {
    opacity: 1;
    position: relative;
}

.custom_slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.custom_slider .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
}

.custom_slider .slide-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.custom_slider .slide-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 700px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.custom_slider .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.custom_slider .nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.custom_slider .prev-btn {
    left: 20px;
}

.custom_slider .next-btn {
    right: 20px;
}

.custom_slider .dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.custom_slider .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(32, 74, 147, .5);
    transition: all 0.3s ease;
}

.custom_slider .dot.active {
    width: 32px;
    background: #204A93;
    border-radius: 5px;
}

.custom_slider .dot:hover {
    background: rgba(32, 74, 147, .8);
}

.custom_slider .counter {
    text-align: center;
    margin-top: 30px;
    color: #9ca3af;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .custom_slider .slide {
        height: 280px !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .custom_slider .slide-title {
        font-size: 1.3rem;
    }

    .custom_slider .slide-description {
        font-size: 0.9rem;
    }

    .custom_slider .slide-content {
        padding: 20px !important;
    }

    .custom_slider .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .tp-hero-2-content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-right: 0 !important;
    }
}

.tp-breadcrumb__bg {
    background-size: cover;
    background-repeat: no-repeat;
}

.tp-team-2-thumb img {
    height: 320px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #204A93 0%, #4085CB 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 74, 147, 0.3);
}

.lang-toggle-btn:hover {
    background: linear-gradient(135deg, #4085CB 0%, #204A93 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 74, 147, 0.4);
}

.lang-flag {
    font-size: 18px;
}

.lang-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Show login/user on mobile */
@media only screen and (min-width: 768px) and (max-width: 991px),
only screen and (max-width: 767px) {
    .tp-header-inner-login {
        display: block !important;
    }

    .tp-header-inner-login img {
        display: block !important;
    }

    .tp-header-user-hover {
        display: block !important;
    }
}

/* Mobile Search Toggle Styles */
.mobile-search-toggle {
    background: #F4F4F4;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #204A93;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: #204A93;
    color: #fff;
}

.mobile-search-toggle svg {
    color: inherit;
}

/* Hide regular search form on mobile */
@media only screen and (max-width: 767px) {
    .search_dev .search-form {
        display: none !important;
    }

    .mobile-search-toggle {
        display: flex !important;
    }
}

/* Show regular search form on desktop */
@media only screen and (min-width: 768px) {
    .mobile-search-toggle {
        display: none !important;
    }

    .search_dev .search-form {
        display: block !important;
    }

    .mobile-search-dropdown {
        display: none !important;
    }
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-radius: 0 0 10px 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search-dropdown form {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #F4F4F4;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #204A93;
    background: #fff;
}

.mobile-search-btn {
    width: 48px;
    height: 48px;
    background: #204A93;
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #4085CB;
}

.mobile-search-btn svg {
    color: #fff;
}

.tp-filter-dropdown-wrapper {
    display: block !important;
}

.tp-filter-dropdown-wrapper {
    z-index: 4;
}

@media (max-width: 767px) {

    .tp-header-2 .row>div:first-child {
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }

    .tp-header-2 .row>div:last-child {
        flex: 0 0 15% !important;
        max-width: 15% !important;
    }

    .offcanvas-btn {
        margin-left: 0;
        margin-right: 0;
    }

    .tp-header-inner-logo {
        margin-right: 0;
        margin-left: 0;
    }

    .tp-footer-2 .tp-footer-bottom-social {
        text-align: center;
    }

    .tp-footer-copyright span {
        display: block;
        text-align: center;
    }

    .custom_slider .container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    section.custom_slider {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .custom_slider .slide {
        height: 350px !important;
    }

}