/* Custom Overrides */

/* Topbar links — always stay white, no hover color change */
.topbar-link,
.topbar-link:hover,
.topbar-link:focus,
.topbar-link:active,
.topbar-link:visited {
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Classic Search & Filter Bar (Courses / Blog pages) ── */
.classic-search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.classic-search-group {
    display: flex;
}

.classic-search-group .form-control {
    border-radius: 0 4px 4px 0 !important;
    border: 1px solid #ddd;
    height: 50px;
    min-width: 280px;
}

[dir="rtl"] .classic-search-group .form-control {
    border-radius: 4px 0 0 4px !important;
}

.classic-search-group .btn-primary {
    border-radius: 4px 0 0 4px !important;
    height: 50px;
    padding: 0 20px;
    background-color: var(--site-secondary) !important;
    border: none;
}

[dir="rtl"] .classic-search-group .btn-primary {
    border-radius: 0 4px 4px 0 !important;
}

.classic-dropdown-wrapper .form-select {
    height: 50px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .classic-search-filter-bar {
        justify-content: center;
    }
    .classic-search-group {
        width: 100%;
    }
    .classic-search-group .form-control {
        flex-grow: 1;
        min-width: auto;
    }
    .classic-dropdown-wrapper {
        width: 100%;
    }
    .classic-dropdown-wrapper .form-select {
        width: 100%;
    }
}

/* Mobile Menu Fix */
.mean-container .mean-bar {
    background: var(--header-bg) !important;
}

.mean-container .mean-nav {
    background: #ffffff;
    margin-top: 50px;
}

/* Category badge on course/blog cards */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    color: var(--site-primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

[dir="rtl"] .category-badge {
    left: auto;
    right: 15px;
}

/* Ensure navbar background is applied */
.navbar-area,
.main-navbar,
.navbar {
    background-color: var(--header-bg) !important;
}

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

/* Primary/Secondary Colors application */
.default-btn {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.default-btn:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Announcement Bar */
.top-header-area {
    background-color: var(--secondary-color);
    padding-top: 10px;
    padding-bottom: 10px;
}

.top-header-content p {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Course Video Popup - Enhanced Centering */
.courses-details-info .image {
    position: relative !important;
    overflow: hidden;
    border-radius: 5px;
    display: block;
}

.courses-details-info .image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Absolute Centering for Play Button */
.courses-details-area .courses-details-info .image .link-btn,
.courses-details-info .image a.link-btn,
.courses-details-info .image .popup-youtube,
.courses-details-info .image .popup-local-video,
a.link-btn.popup-video {
    /* Generic fallback */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    /* High Z-index */
    text-decoration: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
    /* Remove line-height reliance */
    line-height: normal !important;
}

/* Pulse Animation using pseudo-element */
.courses-details-info .image .link-btn::after,
a.link-btn.popup-video::after {
    content: "";
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    animation: video-pulse 2s infinite !important;
    z-index: -1 !important;
    pointer-events: none;
}

@keyframes video-pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.8);
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

/* Play Icon - SVG for perfect centering */
.courses-details-info .image .link-btn::before,
a.link-btn.popup-video::before {
    content: "";
    width: 65px;
    height: 65px;
    display: block;

    /* SVG play icon - perfectly centered geometry */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(26,182,157,1)"><path d="M8 5v14l11-7z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.courses-details-info .image .link-btn:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    /* Keep centering on hover */
}

.courses-details-info .image .link-btn:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-to-top.show {
    display: flex;
}

/* Mobile Header Fixes */
@media only screen and (max-width: 991px) {

    /* Mobile responsive nav */
    .main-responsive-nav {
        display: flex !important;
        background: var(--header-bg);
        padding: 10px 0;
        /* Shrink navbar slightly */
    }

    .main-responsive-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-responsive-nav .logo img,
    .navbar-brand img {
        max-width: 100px;
        /* Reduced from 150px */
        max-height: 35px;
        /* Reduced from 45px */
        width: auto;
        height: auto;
        object-fit: contain;
        /* Don't stretch the logo */
    }

    /* Make sure navbar toggler is visible */
    .main-responsive-nav .navbar-toggler {
        display: block !important;
        border: none !important;
        padding: 8px 12px;
        background: transparent;
        cursor: pointer;
    }

    .main-responsive-nav .navbar-toggler-icon {
        -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
        mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        background-image: none !important;
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
    }

    /* Hide desktop navbar on mobile */
    .main-navbar {
        display: none !important;
    }

    /* Mobile menu styling */
    .main-responsive-nav .navbar-collapse {
        border-radius: 16px;
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        margin-top: 15px;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .main-responsive-nav .navbar-nav {
        margin-top: 10px;
        padding-left: 0;
        list-style: none;
    }

    .main-responsive-nav .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .main-responsive-nav .navbar-nav .nav-item .dropdown-menu {
        border: none !important;
        width: 100%;
        border-radius: 0px;
        padding: 0 !important;
    }

    .main-responsive-nav .navbar-nav .nav-link {
        font-size: 14px !important;
        font-weight: 600;
        padding: 10px 15px !important;
        border-radius: 5px;
        display: block;
        color: #333;
        text-decoration: none;
    }

    .main-responsive-nav .navbar-nav .nav-link:hover {
        color: #ffffff !important;
    }

    .main-responsive-nav .others-options {
        margin-top: 15px;
    }
}

@media only screen and (min-width: 992px) {

    /* Hide mobile nav on desktop */
    .main-responsive-nav {
        display: none !important;
    }

    /* Show desktop navbar */
    .main-navbar {
        display: flex !important;
        visibility: visible !important;
    }

    .navbar-area .main-navbar .navbar {
        display: flex !important;
    }
}

@media only screen and (max-width: 767px) {

    /* Hide the books image on small screens */
    .b-shape.shape-2,
    .inner-shape.img-shape-2 {
        display: none !important;
    }

    /* Move lamp to the right and scale it down to avoid overlapping text */
    .b-shape.shape-1,
    .inner-shape.img-shape-1 {
        left: auto !important;
        right: 5% !important;
        width: 80px !important;
    }

    /* Shrink the main mobile navbar and add bottom margin */
    .main-responsive-nav {
        padding: 2px 0 !important;
        /* Minimum padding */
        margin-bottom: 5px !important;
    }

    .mean-container a.meanmenu-reveal {
        color: #1ab69d !important;
        display: block !important;
    }

    .mean-container a.meanmenu-reveal span {
        background-color: #1ab69d !important;
        display: block !important;
    }

    /* Custom Mobile Hamburger Icon styles */
    .custom-mobile-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border: 2px solid #f14d5d !important;
        /* Secondary Color by default */
        border-radius: 8px;
        background: transparent !important;
        color: #f14d5d !important;
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease-in-out !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .custom-mobile-toggler i {
        font-size: 24px;
        color: #f14d5d;
        transition: all 0.3s ease-in-out;
    }

    .custom-mobile-toggler:hover,
    .custom-mobile-toggler:focus {
        border-color: #1ab69d !important;
        /* Primary Color on hover */
        color: #1ab69d !important;
        background-color: transparent !important;
        transform: translateY(-2px);
    }

    .custom-mobile-toggler:hover i,
    .custom-mobile-toggler:focus i {
        color: #1ab69d !important;
    }

    .main-responsive-nav .logo {
        max-width: 150px;
    }

    /* Shrink the top announcement header */
    .top-header-area {
        text-align: center;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .top-header-content p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    /* Ensure content is readable on small screens */
    .page-banner-content {
        max-width: 100% !important;
    }
    .page-banner-content h1,
    .page-banner-content h2 {
        font-size: 24px !important;
    }

    .courses-details-desc h3 {
        font-size: 20px !important;
    }
}

/* Price styles moved to professional-cards.css */

/* Course Card Consistent Sizing & Enhanced Styling */
.course-item {
    margin-bottom: 30px;
    /* Space between rows */
}

.courses-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    /* Soft, elegant shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

/* Add slight delay for alternate cards so they don't jump all together */
.col-xl-4:nth-child(2n) .courses-card {
    animation-delay: 1.5s;
}

.courses-card:hover {
    transform: translateY(-10px);
    /* Elegant lift on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@keyframes jumpCard {
    0% {
        transform: scale(0.96) translateY(0);
    }

    100% {
        transform: scale(0.96) translateY(-15px);
        /* Jump up */
    }
}

/* ── Blog Card Enhancements ── */
.single-blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Subtle border for definition */
}

.single-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.single-blog-card .blog-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.single-blog-card .blog-image img {
    transition: transform 0.5s ease;
}

.single-blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.courses-card .courses-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    /* Add some negative space inside the card */
}

.courses-card .bottom-list {
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
    margin-top: 20px;
}

.courses-card .courses-image {
    display: block;
    overflow: hidden;
}

.courses-card .courses-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.courses-card:hover .courses-image img {
    transform: scale(1.05);
    /* Slight image zoom on hover */
}

/* Banner Specific Shapes & Dots */
.main-banner-area {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-area,
.main-navbar {
    margin-bottom: 0 !important;
}

#page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.banner-shapes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.b-shape {
    position: absolute;
    opacity: 0.8;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Shape 1 (Lamp) hanging from the top nav area */
.b-shape.shape-1 {
    top: -10px;
    /* Slight offset to look connected to navbar */
    inset-inline-start: 45%;
    width: 130px;
    transform-origin: top center;
    animation: swingLamp 4s ease-in-out alternate infinite;
    z-index: 2;
}

/* Shape 2 (Books) next to the hero image on the right */
.b-shape.shape-2 {
    bottom: 45%;
    inset-inline-end: 42%;
    width: 140px;
    z-index: 1;
}

/* RTL: push shape-2 more to the right */
[dir="rtl"] .b-shape.shape-2 {
    bottom: 45%;
    inset-inline-end: 46%;
    width: 140px;
    z-index: 1;
}

/* Shape 3 (Moving Books at bottom) */
.b-shape.book-moves {
    bottom: 12%;
    /* Adjusted vertical level */
    inset-inline-start: 45%;
    /* Shifted more to the left */
    width: 120px;
    transform-origin: center center;
    animation: moveLeftRight 6s ease-in-out alternate infinite;
    /* Changed from floatUpDown */
    z-index: 2;
}

/* Pink Glow / Halo behind the main banner image */
.main-banner-image {
    z-index: 3;
}

.main-banner-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(238, 59, 107, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(45px);
}

/* Banner Search Form */
.banner-search-form {
    margin-top: 35px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    position: relative;
    z-index: 5;
}

.banner-search-form .form-control {
    font-size: 15px;
    color: #444;
}

.banner-search-form .form-control::placeholder {
    color: #999;
}

.banner-search-form .search-btn {
    background-color: #f14d5d !important;
    border-color: #f14d5d !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-search-form .search-btn:hover {
    background-color: #d13a48 !important;
    border-color: #d13a48 !important;
}

.main-banner-content {
    position: relative;
    z-index: 5;
}

.main-banner-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #2b2b2b;
    position: relative;
    display: inline-block;
}

.main-banner-content .brush-stroke {
    position: absolute;
    bottom: -15px;
    inset-inline-start: 10%;
    /* Center under English and Arabic specific part */
    width: 80%;
    /* Expand to cover the relevant words */
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 20" preserveAspectRatio="none"><path d="M5,15 Q100,20 195,10 Q100,16 5,15 Z" fill="%23f14d5d"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

html[dir="rtl"] .main-banner-content .brush-stroke {
    transform: translateX(-15px);
}

.brush-stroke-2 {
    position: absolute;
    bottom: -10px;
    inset-inline-start: 0;
    width: 100%;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 20" preserveAspectRatio="none"><path d="M5,15 Q100,20 195,10 Q100,16 5,15 Z" fill="%23f14d5d"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

.single-footer-widget h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.single-footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background-color: var(--site-secondary);
    border-radius: 2px;
}

.main-banner-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}



/* Small elegant dots scattered in the banner background */
.b-shape.dot-1 {
    top: 15%;
    left: 5%;
    width: 25px;
    animation: jumpDot 2.2s ease-in-out infinite alternate;
}

.b-shape.dot-2 {
    bottom: 15%;
    left: 8%;
    width: 20px;
    animation: jumpDot 2.8s ease-in-out infinite alternate reverse;
}

.b-shape.dot-3 {
    top: 10%;
    right: 45%;
    width: 15px;
    animation: jumpDot 1.9s ease-in-out infinite alternate;
}

.b-shape.dot-4 {
    bottom: 10%;
    right: 5%;
    width: 22px;
    animation: jumpDot 2.5s ease-in-out infinite alternate reverse;
}

/* Page Banner Content Centering & Spacing */
.page-banner-content {
    max-width: 850px !important;
    margin-inline: auto !important;
    position: relative;
    z-index: 5;
    padding-inline: 15px;
}

.page-banner-content h1, 
.page-banner-content h2 {
    font-size: 38px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    word-wrap: break-word;
}

/* Inner Page Banners (Courses, Blog, Contact) Shapes */
.inner-shapes-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* For contact page specifically, allow shapes to float visually fixed or over the full height */
.page-title-area .inner-shapes-wrapper {
    position: fixed;
    height: 100vh;
    z-index: -1;
}

/* Specific shape positioning for the Contact Page */
.page-title-area .inner-shape.img-shape-1 {
    top: 10%;
    left: auto;
    right: 15%;
    /* Lamp at top right */
    transform: translateY(0);
    animation: moveLeftRightSync 10s linear infinite alternate;
}

.page-title-area .inner-shape.img-shape-2 {
    top: auto;
    bottom: 20%;
    right: auto;
    left: 5%;
    /* Books halfway between the edge and the text */
    transform: translateY(0);
    animation: moveLeftRightSync 10s linear infinite alternate;
}

.inner-shape {
    position: absolute;
    opacity: 0.95;
    /* Increased opacity for vibrant colors */
    z-index: 1;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.inner-shape.img-shape-1 {
    top: 60px;
    left: 4%;
    transform: translateY(0);
    width: 110px;
    animation: moveLeftRightSimple 8s ease-in-out infinite alternate;
}

.inner-shape.img-shape-2 {
    top: 60px;
    right: 4%;
    transform: translateY(0);
    width: 120px;
    animation: moveLeftRightSimple 8s ease-in-out infinite alternate;
}

/* Dots specific to inner pages with jumping animation */
.inner-shape.dot-1 {
    top: 20%;
    right: 30%;
    width: 25px;
    animation: jumpDot 2s ease-in-out infinite alternate;
}

.inner-shape.dot-2 {
    bottom: 15%;
    left: 20%;
    width: 20px;
    animation: jumpDot 2.5s ease-in-out infinite alternate;
}

.inner-shape.dot-3 {
    top: 25%;
    left: 45%;
    width: 15px;
    animation: jumpDot 1.8s ease-in-out infinite alternate;
}

.inner-shape.dot-4 {
    bottom: 30%;
    right: 15%;
    width: 22px;
    animation: jumpDot 2.2s ease-in-out infinite alternate;
}

@keyframes jumpDot {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes moveLeftRight {
    0% {
        transform: translateX(0px) rotate(0deg);
    }

    100% {
        transform: translateX(30px) rotate(10deg);
    }
}

@keyframes moveLeftRightSync {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(40px);
    }
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(30px) rotate(-10deg);
    }
}

@keyframes moveLeftRightSimple {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(15px);
    }
}

@keyframes swingLamp {
    0% {
        transform: rotate(-6deg);
    }

    100% {
        transform: rotate(6deg);
    }
}

/* Course Filters Buttons CSS */
.course-filters .filter-btn {
    border-color: var(--secondary-color, #f14d5d);
    color: var(--secondary-color, #f14d5d);
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
}

.course-filters .filter-btn.active,
.course-filters .filter-btn:hover {
    background-color: var(--secondary-color, #f14d5d);
    border-color: var(--secondary-color, #f14d5d);
    color: #ffffff;
}

/* Remove decorative lines from footer/section titles only */
.single-footer-widget h3::after,
.single-footer-widget h3::before,
.section-title h2::after,
.section-title h2::before {
    display: none !important;
    content: none !important;
}

/* Fix footer layout if lines were adding space */
.single-footer-widget h3 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 0;
}

/* Hide banner shapes on mobile */
@media (max-width: 768px) {

    .banner-shapes-wrapper .shape-1,
    .banner-shapes-wrapper .book-moves {
        display: none !important;
    }
}

/* Premium Course Card Styles */
.premium-price-badge {
    position: absolute;
    bottom: 5px;
    right: 15px;
    background: linear-gradient(135deg, #e31e24 0%, #ff4b4b 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(227, 30, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
}

[dir="rtl"] .premium-price-badge {
    right: auto;
    left: 15px;
}

.courses-card:hover .premium-price-badge {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(26, 182, 157, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #1ab69d 0%, #31d2b8 100%);
}

.price-content {
    display: flex;
    flex-direction: column;
}

.premium-price-badge .old-price {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 1.5px;
    margin-bottom: -2px;
    letter-spacing: 0.5px;
}

.premium-price-badge .new-price {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.courses-image {
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.courses-card .courses-content .top-content .price {
    display: none !important;
    /* Hide the old floating circle price */
}

.course-item .courses-card .courses-content h3 {
    margin-top: 10px;
}

/* Banner title underline - using the Moodle theme border image */
.main-banner-content h1 {
    position: relative;
}

/* Arabic: underline under "للنمو" - positioned from right */
[dir="rtl"] .main-banner-content h1::before {
    position: absolute;
    content: "";
    right: 79px;
    bottom: -5px;
    width: 137px;
    height: 17px;
    background-image: url('/theme/image.php?theme=edly&component=theme&image=border');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: -1;
}

/* English: underline under "Growth" - positioned from left */
[dir="ltr"] .main-banner-content h1::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: -5px;
    width: 137px;
    height: 17px;
    background-image: url('/theme/image.php?theme=edly&component=theme&image=border');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: -1;
}

/* span.underline-word - just for HTML structure */
.main-banner-content h1 .underline-word {
    display: inline;
}

/* Reposition Decorative Shapes for Arabic (mirror of LTR) */

/* Shape 1 (Lamp) - in LTR it's at left:45%, in RTL mirror it to right:45% */
[dir="rtl"] .b-shape.shape-1 {
    left: auto !important;
    right: 45% !important;
}

/* Shape 2 (Books) - in LTR it's at inset-inline-end:42% (right side)
   inset-inline-end handles RTL automatically, no override needed */

/* Book-moves - in LTR at inset-inline-start:45% (left side)
   inset-inline-start handles RTL automatically, no override needed */

/* --- Opportunities Section (About Us / Start To Success) Shapes --- */

/* 1. Top image (Shape 2 - Vase) MUST ALWAYS be on the RIGHT */
.opportunities-area .opportunities-shape-2 {
    position: absolute !important;
    top: -150px !important;
    right: auto !important;
    left: 0px !important;
    z-index: 2;
}

[dir="rtl"] .opportunities-area .opportunities-shape-2 {
    right: 1px !important;
    left: auto !important;
    top: -150px !important;
}

/* 2. Bottom image (Shape 1 - Books) MUST ALWAYS be on the LEFT */
.opportunities-area .opportunities-shape-1 {
    position: absolute !important;
    bottom: -100px !important;
    left: auto !important;
    right: 15px !important;
    z-index: 2;
}

[dir="rtl"] .opportunities-area .opportunities-shape-1 {
    left: 10px !important;
    right: auto !important;
    top: auto !important;
    bottom: -100px !important;
}