:root {
    --am-green: #337742;
    --am-green-light: #9dbca4;
    --am-dark: #25262c;
    --am-topbar: #337742;
}

html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
}

.form-control::placeholder {
    font-size: 0.8rem;
    opacity: 0.7;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.nav-link,
.footer-title,
.btn,
.badge {
    font-family: 'Open Sans', sans-serif;
}

/* Buttons */
.btn-am-green {
    background-color: var(--am-green);
    border-color: var(--am-green);
}
.btn-am-green:hover {
    background-color: #2c6038;
    border-color: #2c6038;
    color: white;
}
.bg-am-green-light {
    background-color: var(--am-green-light);
    color: white;
}
.btn-am-dark {
    background-color: var(--am-dark);
    border-color: var(--am-dark);
}
.btn-am-dark:hover {
    background-color: #1e1f24;
    color: white;
}
.bg-am-dark {
    background-color: var(--am-dark) !important;
}
.bg-am-green {
    background-color: var(--am-green) !important;
}
.bg-am-green-light {
    background-color: var(--am-green-light) !important;
}
.w-15px { width: 15px; text-align: center; }
.z-index-1 { z-index: 1; }

/* Course Card */
.course-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.05) !important;
    overflow: visible !important; /* allow book now button to overflow */
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.course-card .rounded-4 {
    /* keep the image clipped even when card is overflow:visible */
    overflow: hidden;
}
.btn-book-now {
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}
.btn-book-now:hover {
    background: #2a6035 !important;
    transform: scale(1.08);
    color: white;
}

/* Category Hero */
.category-hero, .category-hero-section {
    border-bottom: 5px solid var(--am-dark);
    position: relative;
}

/* Pagination Custom - Force 2 Lines */
.custom-pagination nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
}
.custom-pagination nav > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.custom-pagination nav > div:first-child {
    margin-bottom: 5px;
}
.custom-pagination .page-item.active .page-link {
    background-color: var(--am-green) !important;
    border-color: var(--am-green) !important;
    color: white !important;
}
.custom-pagination .page-link {
    color: var(--am-green);
}

/* Course Detail Page */
.text-am-green { color: var(--am-green) !important; }
.course-banner {
    transition: box-shadow 0.3s;
}
.course-content {
    font-size: 0.95rem;
}
.course-content ul, .course-content ol {
    padding-left: 20px;
}
.course-content li {
    margin-bottom: 6px;
}

/* Topbar */
.topbar {
    background-color: var(--am-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 500;
}
.topbar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar a:hover {
    color: white;
}
.topbar .dropdown-menu {
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 6px;
}
.topbar .dropdown-item {
    border-radius: 5px;
    color: #333 !important;
}
.topbar .dropdown-toggle::after {
    vertical-align: middle;
}

/* Compact & Elegant Header Redesign */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 10px 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.sticky-nav.scrolled {
    padding: 5px 0 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

@media (min-width: 992px) {
    .sticky-nav.scrolled .navbar-brand img {
        height: 32px !important;
    }
}

.nav-custom .nav-link {
    color: #333 !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px !important;
    border-radius: 6px;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

@media (max-width: 991px) {
    .nav-separator {
        display: none;
    }
}

/* Dropdowns with Animation - Desktop Only */
@media (min-width: 992px) {
    .nav-custom .dropdown-menu {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-custom .dropdown:hover > .dropdown-menu,
    .nav-custom .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mega-menu {
        display: block !important;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px) !important;
        transition: all 0.3s ease !important;
        pointer-events: none;
    }

    .mega-menu-container:hover > .mega-menu,
    .mega-menu.show {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    @keyframes dropdownItemFade {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-custom .dropdown:hover .dropdown-item,
    .mega-menu-container:hover .mega-menu-item {
        animation: dropdownItemFade 0.4s ease forwards;
        opacity: 0;
    }

    .nav-custom .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
    .nav-custom .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
    .nav-custom .dropdown-item:nth-child(3) { animation-delay: 0.15s; }
    .nav-custom .dropdown-item:nth-child(4) { animation-delay: 0.2s; }
    .nav-custom .dropdown-item:nth-child(5) { animation-delay: 0.25s; }

    .mega-menu .col-md-4:nth-child(1) .mega-menu-item { animation-delay: 0.05s; }
    .mega-menu .col-md-4:nth-child(2) .mega-menu-item { animation-delay: 0.1s; }
    .mega-menu .col-md-4:nth-child(3) .mega-menu-item { animation-delay: 0.15s; }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-custom .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        padding-left: 20px;
    }
    .mega-menu {
        padding: 0 !important;
        box-shadow: none !important;
    }
    .mega-menu .col-md-4 {
        margin-bottom: 20px;
    }
    .header-logos {
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
}

.mega-menu .col-md-4 {
    padding: 0 30px;
}

.nav-custom .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333 !important;
}

.nav-custom .dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    margin-inline-end: 10px;
    color: var(--am-green);
    font-size: 0.8rem;
}

/* Compact Mega Menu Full Width */
.mega-menu-container {
    position: static !important;
}
.mega-menu-item {
    font-size: 0.78rem;
    padding: 10px 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 2px;
    text-decoration: none !important;
    color: var(--am-green) !important;
}
.mega-menu-item:hover {
    background: #f4f7f5;
    color: var(--am-green-dark) !important;
    text-decoration: none !important;
}
.mega-menu-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-inline-end: 12px;
    opacity: 0.9;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mega-menu-item:hover .mega-menu-img {
    transform: scale(1.3);
    opacity: 1;
}
.mega-menu-item::before { display: none !important; }

/* Premium Breadcrumb */
.breadcrumb-premium {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}
.breadcrumb-premium a {
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.breadcrumb-premium a:hover {
    color: var(--am-green);
}
.breadcrumb-premium .separator {
    color: #ccc;
    font-size: 0.7rem;
    margin: 0 10px;
}
.breadcrumb-premium .active-item {
    color: var(--am-green);
}

/* Premium Footer Redesign */
.footer {
    background-color: #121316;
    color: #a0a0a0;
    padding-top: 80px;
    font-family: 'Open Sans', sans-serif;
}
.footer-newsletter {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(255,255,255,0.05);
}
.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5) !important;
}
.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--am-green);
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    margin-bottom: 15px;
}
.footer-list a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-list a:hover {
    color: white;
    transform: translateX(5px);
}
.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-contact-item i {
    color: var(--am-green);
    font-size: 1.1rem;
    margin-top: 4px;
}
.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.footer-social-link:hover {
    background: var(--am-green);
    color: white;
    transform: translateY(-3px);
}
.footer-bottom {
    background-color: #0a0b0d;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-link {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 20px;
    transition: color 0.2s;
}
.footer-bottom-link:hover {
    color: white;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--am-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(51, 119, 66, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
    background: #2a6035;
    color: white;
}
html[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}
.schedule-thumb {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}
.schedule-thumb:hover {
    transform: scale(1.03);
}
/* Premium Badges */
.badge-new-premium {
    position: absolute;
    z-index: 10;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1d976c 0%, #337742 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 20px rgba(29, 151, 108, 0.2);
}

.badge-online-premium {
    position: absolute;
    z-index: 10;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d976c;
    border: 1px solid #1d976c;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.badge-online-premium i {
    font-size: 10px;
    vertical-align: middle;
}

/* Premium Card Overrides */
.course-card.premium {
    border-radius: 1.5rem !important; /* rounded-4 equivalent or more */
}
.course-card.premium .card-img-top {
    height: 160px;
    object-fit: cover;
}
.course-card.premium .card-title {
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 700;
}
.course-card.premium .course-meta {
    font-size: 0.78rem;
    color: #555;
}
.course-card.premium .course-meta i {
    width: 14px;
    color: var(--am-green);
}
.course-card.premium .btn-book-now-premium {
    background: var(--am-green);
    color: white;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    transition: all 0.2s;
}
.course-card.premium .btn-book-now-premium:hover {
    background: #2a6035;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* RTL Overrides for Course Cards */
html[dir="rtl"] .badge-new-premium {
    right: auto !important;
    left: 12px !important;
}

html[dir="rtl"] .badge-online-premium {
    left: auto !important;
    right: 12px !important;
}

html[dir="rtl"] .course-card {
    text-align: right;
}

html[dir="rtl"] .form-control, 
html[dir="rtl"] .form-select {
    text-align: right !important;
}

/* For email and phone, we want the text aligned right but the typing direction LTR (since emails and phones are Latin digits/letters usually), 
   however if the user explicitly wants them RTL, we can set direction: rtl. Let's just enforce text-align first. */
html[dir="rtl"] input[type="email"], 
html[dir="rtl"] input[type="tel"] {
    direction: ltr;
    text-align: right !important;
}

/* Footer RTL Overrides */
html[dir="rtl"] .footer {
    text-align: right;
}
html[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}
html[dir="rtl"] .footer-list {
    padding-right: 0;
}
html[dir="rtl"] .footer-list a:hover {
    transform: translateX(-5px);
}
html[dir="rtl"] .footer-newsletter {
    text-align: right;
}
html[dir="rtl"] .footer-bottom .text-md-start {
    text-align: right !important;
}
html[dir="rtl"] .footer-bottom-link {
    margin-left: 0;
    margin-right: 20px;
}
html[dir="rtl"] .back-to-top {
    margin-right: auto;
    margin-left: 0;
}

/* RTL Icon Flipping */
html[dir="rtl"] [class*="fa-chevron-right"]::before { content: "\f053" !important; } /* fa-chevron-left */
html[dir="rtl"] [class*="fa-chevron-left"]::before { content: "\f054" !important; } /* fa-chevron-right */
html[dir="rtl"] [class*="fa-arrow-right"]::before { content: "\f060" !important; } /* fa-arrow-left */
html[dir="rtl"] [class*="fa-arrow-left"]::before { content: "\f061" !important; } /* fa-arrow-right */

/* Custom Hamburger Button */
.custom-hamburger {
    border: none !important;
    background: transparent !important;
    padding: 10px !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--am-dark);
    position: absolute;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before {
    content: "";
    top: -8px;
}
.hamburger-inner::after {
    content: "";
    bottom: -8px;
}
/* When offcanvas is open, animate hamburger */
.custom-hamburger[aria-expanded="true"] .hamburger-inner {
    background-color: transparent;
}
.custom-hamburger[aria-expanded="true"] .hamburger-inner::before {
    transform: rotate(45deg);
    top: 0;
}
.custom-hamburger[aria-expanded="true"] .hamburger-inner::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Custom Close Button for Mobile Drawer */
.btn-close-custom {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--am-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #f4f6f9;
}
.btn-close-custom:hover {
    background-color: rgba(51, 119, 66, 0.1);
    color: var(--am-green);
    transform: rotate(90deg);
}

/* Custom Offcanvas Styles */
.mobile-menu-offcanvas {
    width: 85% !important;
    max-width: 360px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    border: none !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-menu-offcanvas .offcanvas-header {
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f4f6f9;
}

.mobile-menu-offcanvas .offcanvas-body {
    scrollbar-width: thin;
    scrollbar-color: var(--am-green-light) #f8f9fa;
}

/* Beautiful Search Box */
.mobile-search-box .form-control {
    background: #f4f6f9 !important;
    border: 1px solid transparent !important;
    border-radius: 30px !important;
    padding: 12px 20px 12px 48px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--am-dark) !important;
    transition: all 0.3s ease !important;
}

html[dir="rtl"] .mobile-search-box .form-control {
    padding: 12px 48px 12px 20px !important;
}

.mobile-search-box .form-control:focus {
    background: #ffffff !important;
    border-color: var(--am-green) !important;
    box-shadow: 0 10px 20px rgba(51, 119, 66, 0.08) !important;
}

.mobile-search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #a0aab5;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

html[dir="rtl"] .mobile-search-box .search-icon {
    left: auto;
    right: 20px;
}

.mobile-search-box .form-control:focus + .search-icon {
    color: var(--am-green);
}

/* Navigation List */
.mobile-nav-list {
    margin-top: 10px;
}

.mobile-nav-item {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--am-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.mobile-nav-link:hover, 
.mobile-nav-link.active {
    background: rgba(51, 119, 66, 0.06);
    color: var(--am-green) !important;
}

.mobile-nav-link .nav-icon {
    font-size: 1.1rem;
    color: #7a8a9e;
    transition: color 0.3s ease;
    width: 24px;
    display: inline-block;
    text-align: center;
}

.mobile-nav-link:hover .nav-icon,
.mobile-nav-link.active .nav-icon {
    color: var(--am-green);
}

.mobile-nav-link .arrow-icon {
    font-size: 0.8rem;
    color: #a0aab5;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:not(.collapsed) {
    background: rgba(51, 119, 66, 0.08);
    color: var(--am-green) !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.mobile-nav-link:not(.collapsed) .nav-icon {
    color: var(--am-green);
}

.mobile-nav-link:not(.collapsed) .arrow-icon {
    transform: rotate(180deg);
    color: var(--am-green);
}

/* Submenu Styles */
.collapse-submenu {
    background: #fdfdfd;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid rgba(51, 119, 66, 0.05);
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
}

.submenu-list {
    margin: 0;
    padding: 8px 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    color: #4a5568 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    color: var(--am-green) !important;
    background: rgba(51, 119, 66, 0.03);
    padding-inline-start: 28px;
}

/* Footer Section of Drawer */
.mobile-menu-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

/* Language Switcher Button */
.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid var(--am-green);
    background: transparent;
    color: var(--am-green) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover {
    background: var(--am-green);
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(51, 119, 66, 0.15);
}

/* Direct Contacts icons and list */
.contact-details .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Social Icons */
.social-links .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f6f9;
    color: var(--am-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-links .social-icon:hover {
    background: var(--am-green);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Animation for offcanvas menu items appearance */
.mobile-menu-offcanvas.show .mobile-nav-item {
    animation: mobileMenuItemFade 0.5s ease forwards;
    opacity: 0;
}

@keyframes mobileMenuItemFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-offcanvas.show .mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }

/* Pulse animation for HOT badge */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(51, 119, 66, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(51, 119, 66, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(51, 119, 66, 0);
    }
}
.animate-pulse {
    animation: pulse 2s infinite;
}

/* Training Courses Hero Optimization */
.hero-content-row {
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 992px) {
    html[dir="ltr"] .hero-content-row {
        margin-left: 90px;
        margin-right: 0;
    }
    html[dir="rtl"] .hero-content-row {
        margin-right: 90px;
        margin-left: 0;
    }
}

/* Mobile Spacing & Layout Optimization */
@media (max-width: 991px) {
    /* Prevent containers and headers from sticking to screen edges */
    .container, 
    .navbar > .container,
    .topbar > .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}


