/* refresh.css — loaded last on every public page (header.blade.php).
   Layout, responsive and accessibility fixes layered over the two legacy sheets
   (style.css, newstyle.css). Keeps the theme's own black + yellow palette. */

:root {
    --rf-ink: #000;
    --rf-dark: #1a1a1a;
    --rf-dark-700: #333;
    --rf-dark-500: #555;
    --rf-muted: #555;
    --rf-rule: #e3e3e3;
    --rf-rule-strong: #c8c8c8;
    --rf-tint: #f5f5f5;
    --rf-accent: #f4d500;
    --rf-accent-hover: #ffe52e;
    --rf-live: #d92d20;
    --rf-radius: 14px;
    --rf-radius-sm: 10px;
    --rf-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
    --rf-shadow-hover: 0 2px 4px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .14);
    --rf-mobile-nav: 64px;

    /* legacy variables, re-pointed (theme colours — black / yellow — are left as newstyle.css defines them) */
    --b-font-size: 16px;
    --b-line-height: 1.7;
    --btn-theme-primary-hover-bg: var(--rf-dark-700);
}

/* ---------- Base ---------- */
a:hover { color: var(--rf-dark-500); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--rf-dark-500); outline-offset: 2px; border-radius: 4px; }
.main-navbar :focus-visible,
.sidebar :focus-visible,
footer :focus-visible,
.mobile-nav :focus-visible,
.home-hero-section :focus-visible { outline-color: var(--rf-accent); }

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -100px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-accent);
    color: var(--rf-ink);
    font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--rf-ink); }

/* [dir] arrows: one glyph, mirrored for RTL */
[dir="rtl"] .la-arrow-right { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn-theme-primary {
    background-color: var(--rf-dark);
    border-color: var(--rf-dark);
    border-radius: var(--rf-radius-sm);
    padding: 12px 22px;
    font-weight: 700;
}
.btn-theme-primary:hover,
.btn-theme-primary:focus {
    background-color: var(--rf-dark-700);
    border-color: var(--rf-dark-700);
}
.cousrses-add-card {
    min-height: 44px;
    border-radius: var(--rf-radius-sm);
    background-color: var(--rf-dark);
    font-weight: 600;
}
.cousrses-add-card:hover,
.cousrses-add-card:focus { background-color: var(--rf-dark-700); color: #fff !important; }

/* ---------- Header ---------- */
.main-navbar { background-color: var(--rf-ink); }
.main-navbar .line { border-color: rgba(255, 255, 255, .12); }
.main-navbar .nav-list a,
.sidebar .nav-list a { color: #fff; }
.main-navbar .nav-list a:hover,
.sidebar .nav-list a:hover { color: var(--rf-accent); }
.certification a i { color: var(--rf-accent); }

.promo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    min-height: 44px;
    margin: 0;
    padding: 8px 16px;
    background: var(--rf-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #ededed;
    font-size: 14px;
    text-align: center;
}
.promo-bar strong { color: var(--rf-accent); font-weight: 700; letter-spacing: .02em; }
.promo-bar i { color: var(--rf-accent); font-size: 20px; }

.nav-logo img { display: block; width: 100%; max-width: 170px; height: auto; }

.main-navbar .dropdown-menu {
    background-color: var(--rf-ink);
    border-color: rgba(255, 255, 255, .16);
    border-radius: var(--rf-radius-sm);
    text-align: start;
}
.main-navbar .dropdown-menu .dropdown-item { padding: 10px 18px; }
.main-navbar .dropdown-menu .dropdown-item:hover,
.main-navbar .dropdown-menu .dropdown-item:focus { background: rgba(255, 255, 255, .08); color: #fff; }

.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

@media (min-width: 992px) {
    .nav-2-row { flex-wrap: nowrap; gap: 20px; }
    .nav-2-row > .nav-logo { flex: 0 0 150px; max-width: 150px; padding: 0; }
    .nav-2-row > .primary-nav { flex: 1 1 auto; max-width: none; min-width: 0; padding: 0; }
    .nav-2-row > .nav-user { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
    .primary-nav .nav-item-margin { margin: 2px 11px; font-size: 15px; }
    .primary-nav .nav-list a { display: inline-block; padding-block: 8px; white-space: nowrap; }
}

/* Below the theme's 1299px breakpoint the hamburger + drawer take over (and the login/cart block is
   already hidden), so the inline menu is redundant there and only wraps onto a second row. */
@media (max-width: 1298.98px) {
    .main-navbar .primary-nav { display: none !important; }
    .nav-2-row { justify-content: space-between; }
}
@media (min-width: 1299px) and (max-width: 1439.98px) {
    .nav-2-row { gap: 12px; }
    .primary-nav .nav-item-margin { margin: 2px 6px; font-size: 14px; }
}
.certification a { white-space: nowrap; }

.openbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--rf-radius-sm);
    background: transparent;
    font-size: 24px;
}

/* Mobile drawer: slides in from the start edge, hidden from keyboard + AT while closed */
.sidebar {
    left: 0;
    right: auto;
    z-index: 1040;
    width: min(86vw, 360px);
    padding: 64px 0 32px;
    overflow-y: auto;
    background-color: var(--rf-ink);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .3s ease, visibility 0s linear .3s; /* stay focusable-hidden only after it has slid out */
}
[dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(100%); }
.sidebar.is-open { visibility: visible; transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); transition: transform .3s ease, visibility 0s; }
.sidebar .closebtn {
    top: 8px;
    right: auto;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
}
.sidebar-welcome { margin-top: 20px; color: var(--rf-accent); }
.sidebar .nav-list { flex-direction: column; align-items: stretch !important; width: 100%; padding: 8px 20px 0; }
.sidebar .nav-item-margin { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: start; }
.sidebar .nav-list a { display: block; padding: 14px 4px; font-size: 16px; }
.sidebar .nav-user-ul { gap: 8px; padding: 0; }
.sidebar .certification a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ---------- Section headers ---------- */
.home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
}
.section-title {
    margin: 0;
    color: var(--rf-ink);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
    font-weight: 800;
    line-height: 1.35;
}
.section-subtitle { margin: 6px 0 0; color: var(--rf-muted); }
.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--rf-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--rf-rule-strong);
    text-underline-offset: 6px;
}
.home-section-link:hover { color: var(--rf-dark-500); text-decoration-color: currentColor; }
.home-section-title-wrap h2 { border-bottom-color: var(--rf-rule-strong); color: var(--rf-ink); }
.home-section-title-wrap .section-sub { color: var(--rf-muted); }

/* ---------- Hero ---------- */
.home-hero-section,
.home-hero-bg { background-color: var(--rf-ink); }
.home-hero-section { min-height: min(92vh, 760px); }
.home-hero-bg::before {
    background: linear-gradient(to right, rgba(0, 0, 0, .97) 32%, rgba(0, 0, 0, .82) 54%, rgba(0, 0, 0, .45) 76%, rgba(0, 0, 0, .2) 100%);
}
body.rtl .home-hero-bg::before {
    background: linear-gradient(to left, rgba(0, 0, 0, .97) 32%, rgba(0, 0, 0, .82) 54%, rgba(0, 0, 0, .45) 76%, rgba(0, 0, 0, .2) 100%);
}
.home-hero-title { font-size: clamp(1.875rem, 1.2rem + 3vw, 3.25rem); line-height: 1.3; }
.home-hero-subtitle { color: rgba(255, 255, 255, .84); }
.home-hero-highlights li { color: rgba(255, 255, 255, .9); }
.home-hero-actions .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--rf-radius-sm); font-size: 1rem; font-weight: 700; }
.home-hero-actions .btn-theme-primary { background-color: #f9a134; border-color: #f9a134; color: var(--rf-ink) !important; }
.home-hero-actions .btn-theme-primary:hover,
.home-hero-actions .btn-theme-primary:focus { background-color: #ffb24f; border-color: #ffb24f; }
.home-hero-text-link { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .88); text-decoration: underline; text-underline-offset: 5px; }
.home-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; max-width: none; margin: 0; }
.home-hero-stat-card { display: flex; flex: 0 1 132px; flex-direction: column-reverse; height: auto; padding: 14px 12px; }
.home-hero-stat-card dd { margin: 0; color: #fff; font-size: 32px; font-weight: 800; line-height: 1; }
.home-hero-stat-card dt { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 400; }

@media (max-width: 991px) {
    .home-hero-section { min-height: 0; }
    .home-hero-bg::before { background: rgba(0, 0, 0, .82) !important; }
    .home-hero-content { padding: 56px 0 48px; }
    .home-hero-stats { justify-content: center; }
}
@media (max-width: 575px) {
    .home-hero-highlights li { width: auto; }
    .home-hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Homepage slider (Slider module) ---------- */
.home-slider-section .carousel-item img { max-height: 80vh; object-fit: cover; }
.home-slider-section .carousel-indicators li { width: 24px; height: 4px; }

/* ---------- Live events ---------- */
.live-events { padding-block: clamp(40px, 5vw, 64px); }
.live-events__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rf-rule);
}
.live-events__head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--rf-ink);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
    font-weight: 800;
}
.live-events__head p { margin: 0; color: var(--rf-muted); }
.live-events__dot {
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rf-live);
    animation: rf-pulse 1.8s ease-out infinite;
}
@keyframes rf-pulse {
    from { box-shadow: 0 0 0 0 rgba(217, 45, 32, .5); }
    to { box-shadow: 0 0 0 12px rgba(217, 45, 32, 0); }
}
.live-events__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.live-event {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rf-rule);
    border-radius: var(--rf-radius);
    background: #fff;
    box-shadow: var(--rf-shadow);
}
.live-event__media { display: block; background: var(--rf-tint); }
.live-event__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.live-event__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; text-align: start; }
.live-event__date { display: inline-flex; align-items: baseline; gap: 8px; color: var(--rf-dark-500); font-weight: 700; }
.live-event__date strong { color: var(--rf-ink); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.live-event h3 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.live-event h3 a { color: var(--rf-ink); }
.live-event h3 a:hover { color: var(--rf-dark-500); }
.live-event__type { margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--rf-tint); color: var(--rf-dark); font-size: 13px; font-weight: 600; }
.live-event__desc { margin: 0; color: var(--rf-muted); }
.live-event__cta { margin-top: auto; }
@media (min-width: 768px) {
    .live-events__list--single .live-event { flex-direction: row; }
    .live-events__list--single .live-event__media { flex: 0 0 55%; }
    .live-events__list--single .live-event__media img { height: 100%; }
    .live-events__list--single .live-event__body { justify-content: center; padding: 32px; }
    .live-events__list--single .live-event__cta { margin-top: 8px; }
}

/* ---------- Feature cards ---------- */
.home-feature-card { border: 1px solid var(--rf-rule); background: #fff; box-shadow: var(--rf-shadow); }
.home-feature-card:hover { box-shadow: var(--rf-shadow-hover); }
.home-feature-card-body { text-align: start; }
.home-feature-card-body h3 { margin: 0 0 6px; color: var(--rf-ink); font-size: 1.125rem; font-weight: 700; }
.home-feature-card-body p { color: var(--rf-muted); }

/* ---------- Course cards (home, /courses, topics) ----------
   Scoped to .is-course (set in template-part/course-loop): the gallery and other pages
   reuse .course-card as a generic tile and must keep their own layout. */
.course-card-grid-wrap.is-course { display: flex; }
.course-card.is-course {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--rf-rule);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.course-card.is-course:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow-hover); }
.course-card.is-course .course-card-img-wrap img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; background: var(--rf-tint); }
.course-card.is-course .course-card-contents { display: flex; flex: 1; flex-direction: column; padding: 16px; text-align: start; }
.course-card.is-course .course-card-title { height: auto; min-height: 2.9em; margin-bottom: 8px; color: var(--rf-ink); font-weight: 700; line-height: 1.45; }
.course-card.is-course a { color: var(--rf-ink); }
.course-card.is-course .course-card-contents a:hover { color: var(--rf-dark-500); }
.course-card.is-course .course-card-short-info,
.course-card.is-course .course-card-author { color: var(--rf-muted); }
.course-card.is-course .course-card-footer { margin-top: auto !important; padding-top: 8px; }
.course-card.is-course .price-html-wrap { padding: 4px 0 10px; color: var(--rf-ink); font-weight: 800; }
.course-card.is-course .price-html-wrap span { white-space: nowrap; }
.course-card.is-course .price-html-wrap .old-price { color: var(--rf-muted); font-size: 14px; font-weight: 400; }
@media (min-width: 576px) and (max-width: 991.98px) {
    .popular-courses-cards-wrap .course-card-grid-wrap.is-course.col-md-3 { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- Quote ---------- */
.home-quote { max-width: 760px; margin: clamp(32px, 5vw, 64px) auto; padding: 0 24px; text-align: center; }
.home-quote::before {
    content: "\201D";
    display: block;
    height: 44px;
    color: var(--rf-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 88px;
    line-height: 1;
}
.home-quote blockquote {
    margin: 0;
    color: var(--rf-ink);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.7;
}
.home-quote figcaption { margin-top: 12px; color: var(--rf-muted); font-size: 15px; }
.home-quote figcaption::before { content: "\2014\00a0"; }

/* ---------- Clients ---------- */
.home-clients { padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); background: var(--rf-tint); }
.home-clients .home-section-title-wrap { padding-top: 0; }
.home-clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 20px 24px;
    align-items: center;
    justify-items: center;
    margin: 24px 0 0;
    padding: 0;
}
.home-clients__grid img { width: 80px; height: 60px; object-fit: contain; }

/* ---------- Programs grid ---------- */
.home-programs { padding-block: clamp(40px, 6vw, 80px); }
.home-programs .home-section-title-wrap { padding-top: 0; }
.home-programs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; margin-top: 28px; }
.home-program-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rf-rule);
    border-radius: var(--rf-radius);
    background: #fff;
    box-shadow: var(--rf-shadow);
    color: var(--rf-ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-program-card:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow-hover); color: var(--rf-ink); }
.home-program-card img { display: block; width: 100%; height: auto; aspect-ratio: 940 / 440; object-fit: cover; background: var(--rf-tint); }
.home-program-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; text-align: start; }
.home-program-card h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.home-program-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--rf-dark); font-weight: 700; }

/* ---------- Blog cards ---------- */
article.home-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--rf-rule);
    border-radius: var(--rf-radius);
    background: #fff;
    box-shadow: var(--rf-shadow);
}
article.home-blog-card img { display: block; width: 100%; margin: 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; background: var(--rf-tint); }
article.home-blog-card .excerpt { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 22px; text-align: start; }
article.home-blog-card h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }
article.home-blog-card h3 a { color: var(--rf-ink); }
article.home-blog-card a:hover { color: var(--rf-dark-500); }
article.home-blog-card .post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--rf-muted); font-size: 13px; }
article.home-blog-card .post-meta a { color: inherit; }
.home-blog-card__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; color: var(--rf-dark); font-weight: 700; }

/* ---------- Inner page head (courses) ---------- */
.page-banner img { display: block; width: 100%; height: auto; }
.page-head { padding-block: clamp(28px, 4vw, 48px) 8px; text-align: start; }
.page-head h1 { margin: 0 0 8px; color: var(--rf-ink); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; line-height: 1.3; }
.page-head p { max-width: 64ch; margin: 0; color: var(--rf-muted); }
.courses-list { padding-block: 24px 16px; }

/* ---------- Footer ---------- */
footer { background-color: var(--rf-ink); color: #dcdcdc; }
footer a:hover { color: var(--rf-accent); }
footer .footer-top { border-bottom-color: rgba(255, 255, 255, .12); }
footer .line { border-color: rgba(255, 255, 255, .12); }
.footer-brand { margin-bottom: 14px; color: #fff; font-size: 18px; font-weight: 700; }
.footer-about p { max-width: 80ch; margin-inline: auto; }
.footer-address { margin: 8px 0 16px; text-align: center; font-size: 13px; font-style: normal; line-height: 1.8; }
.footer-address p { margin: 0 0 4px; }
.footer-address a { display: inline-block; margin-inline-start: 8px; font-weight: 700; white-space: nowrap; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; padding: 0; }
.footer-menu .footer-nav { padding: 0; }
.footer-menu .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
.footer-company { margin: 0; color: var(--rf-accent); font-size: 16px; font-weight: 600; }

/* ---------- Fixed chrome: mobile tab bar, WhatsApp, cookie notice ---------- */
.mobile-nav {
    height: calc(var(--rf-mobile-nav) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--rf-ink);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, .1);
}
.mobile-nav-li a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; margin: 0; }
.mobile-nav-li a i { font-size: 26px; }
.mobile-nav-li { padding-inline: 4px; }
.mobile-nav-li a p { margin: 0; font-size: 11px; line-height: 1.5; white-space: nowrap; }
@media (max-width: 767.98px) {
    .site-end { padding-bottom: calc(var(--rf-mobile-nav) + 24px + env(safe-area-inset-bottom, 0px)); }
}

.float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    color: #fff;
}
.float .my-float { margin: 0; }

.cookie_notice_popup {
    right: auto;
    left: 24px;
    bottom: 24px;
    width: min(340px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--rf-rule);
    border-radius: var(--rf-radius);
    background-color: #fff;
    box-shadow: var(--rf-shadow-hover);
    color: var(--rf-muted);
    font-size: 14px;
    text-align: start;
}
.cookie_notice_popup .cookie-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background-color: var(--rf-dark);
    font-weight: 700;
}
.cookie_notice_popup .cookie-dismiss:hover { background-color: var(--rf-dark-700); color: #fff; }

@media (max-width: 767.98px) {
    .float { right: 16px; bottom: calc(var(--rf-mobile-nav) + 16px + env(safe-area-inset-bottom, 0px)); }
    .cookie_notice_popup {
        left: 12px;
        right: 84px;
        bottom: calc(var(--rf-mobile-nav) + 12px + env(safe-area-inset-bottom, 0px));
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Small-screen trims ---------- */
@media (max-width: 575.98px) {
    /* 38 logos stacked three-wide ran to ~1000px of scroll; show the first 16 as a 4x4 block */
    .home-clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
    .home-clients__grid li:nth-child(n+17) { display: none; }
    .home-clients__grid img { width: 64px; height: 48px; }
}
footer .footer-top .row.justify-content-center { gap: 4px 12px; text-align: center; }
.footer-bottom-right-links { margin: 0; padding: 0; }
.footer-bottom-right-links li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* ---------- Inner page headers (legacy black bands) ---------- */
.bg-dark-blue { background-color: var(--rf-ink) !important; }
.page-header-jumborton { background: linear-gradient(180deg, var(--rf-ink) 0%, var(--rf-dark) 100%); }
.page-header-jumborton h1 { font-weight: 800; line-height: 1.4; }
.page-header-wrapper { border-bottom-color: var(--rf-rule); background: var(--rf-tint); text-align: start; }
.page-header-wrapper h1 { color: var(--rf-ink); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.page-header-wrapper .breadcrumb { padding-inline: 0; }
.page-header-right-enroll-box { border-top-color: var(--rf-accent); }

/* ---------- Article / static page ---------- */
.post-page__header { padding-block: clamp(32px, 5vw, 64px); background: var(--rf-ink); color: #fff; text-align: start; }
.post-page__header .container,
.post-page__body { max-width: 860px; }
.post-page__header .breadcrumb { margin: 0 0 16px; padding: 0; background: none; font-size: 14px; }
.post-page__header .breadcrumb a { color: #d6d6d6; text-decoration: underline; text-underline-offset: 4px; }
.post-page__header .breadcrumb-item.active,
.post-page__header .breadcrumb-item + .breadcrumb-item::before { color: #b0b0b0; }
.post-page__header h1 { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; line-height: 1.4; }
.post-page__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; color: #d6d6d6; font-size: 14px; }
.post-page__body { padding-block: clamp(28px, 4vw, 56px); text-align: start; }
.post-page__cover { display: block; width: 100%; height: auto; margin-bottom: 32px; border-radius: var(--rf-radius); background: var(--rf-tint); }
.post-content { color: var(--rf-ink); font-size: 1.0625rem; line-height: 1.9; overflow-wrap: anywhere; }
.post-content h2 { margin: 2em 0 .6em; font-size: 1.5rem; font-weight: 800; line-height: 1.5; }
.post-content h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.post-content p { margin-bottom: 1.1em; }
.post-content a { color: var(--rf-dark-700); text-decoration: underline; text-underline-offset: 4px; }
.post-content img,
.post-content iframe,
.post-content video { max-width: 100%; height: auto; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; }
.post-page__contact { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rf-rule); color: var(--rf-muted); }
.post-page__contact a { color: var(--rf-dark); font-weight: 700; }

/* ---------- 404 ---------- */
.error-page-wrap { max-width: 560px; margin-inline: auto; }
.error-page-code { margin: 0; color: var(--rf-rule-strong); font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; }
.error-page-wrap h1 { margin: 8px 0 12px; color: var(--rf-ink); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 800; }
.error-page-text { margin-bottom: 28px; color: var(--rf-muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--rf-radius-sm); font-size: 1rem; font-weight: 700; }

/* ---------- Page hero (blog index, contact) ---------- */
.page-hero { padding-block: clamp(36px, 5vw, 72px); background: var(--rf-ink); color: #fff; text-align: start; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 800; line-height: 1.4; }
.page-hero p { max-width: 64ch; margin: 10px 0 0; color: #d6d6d6; }
.blog-list { padding-block: clamp(28px, 4vw, 56px); }
article.home-blog-card h2 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.6; text-align: start; }
article.home-blog-card h2 a { color: var(--rf-ink); }
.home-blog-card__excerpt { margin: 0; color: var(--rf-muted); font-size: 14px; line-height: 1.8; }
.pagination-wrapper { display: flex; justify-content: center; margin-top: 16px; overflow-x: auto; }
.pagination .page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--rf-dark); }
.pagination .page-item.active .page-link { background-color: var(--rf-dark); border-color: var(--rf-dark); color: #fff; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-block: clamp(28px, 4vw, 48px); }
.contact-card { padding: 22px; border: 1px solid var(--rf-rule); border-radius: var(--rf-radius); background: #fff; box-shadow: var(--rf-shadow); text-align: start; }
.contact-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--rf-ink); font-size: 1.0625rem; font-weight: 700; }
.contact-card h2 i { color: var(--rf-accent); font-size: 24px; }
.contact-card p { margin: 0 0 4px; color: var(--rf-muted); overflow-wrap: anywhere; }
.contact-card a { color: var(--rf-dark); font-weight: 600; }
.contact-form { max-width: 760px; margin-inline: auto; text-align: start; }
.contact-form__title { margin: 0 0 20px; color: var(--rf-ink); font-size: 1.375rem; font-weight: 800; text-align: center; }
.contact-form label { color: var(--rf-ink); font-weight: 600; }
.contact-form .form-control,
.auth-form-wrap .form-control { min-height: 48px; border-color: var(--rf-rule-strong); border-radius: var(--rf-radius-sm); font-size: 16px; }
.contact-form textarea.form-control { min-height: 140px; }
.contact-form .form-control:focus,
.auth-form-wrap .form-control:focus { border-color: var(--rf-dark-500); box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.mapHolder iframe { display: block; }

/* ---------- Auth ---------- */
.auth-title { color: var(--rf-ink); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 800; }
.auth-title small { font-size: .6em; font-weight: 400; }
.auth-title a { color: var(--rf-dark-700); text-decoration: underline; text-underline-offset: 4px; }

.gallery-caption { margin: 0; color: #fff; font-size: 12px; }

/* Editor-pasted content carries inline fonts (Times/Arial); keep article text in the site face */
.post-content :where(p, span, li, a, h2, h3, h4, strong, b, em, div, td, th) { font-family: inherit !important; }
.login-card .btn-theme-primary { min-height: 48px; }
.login-card a { color: var(--rf-dark-700); }
.home-hero-title { max-width: 20ch; }
@media (max-width: 991px) { .home-hero-title { max-width: none; } }
.cousrses-add-card { white-space: nowrap; }
