/**
 * MAC Education — Brand theme (logo-derived palette)
 * Logo: shield + "MAC EDUCATION" on dark blue.
 * Background: #0C2546 (MAC Navy) | MAC text: #0A3D73 (Deep Blue) | Primary: #0F5DA8 | Accent: #1C86C8 (Sky)
 */
:root {
    --mac-primary: #0F5DA8;
    --mac-deep-blue: #0A3D73;
    --mac-navy: #0C2546;
    --mac-sky: #1C86C8;
    --mac-light-blue: #4FA6E6;
    /* Override app skin/primary to match logo */
    --skinColor: #0F5DA8;
    --color-1: #0F5DA8;
    --skinColor5: #0F5DA8;

    /* Homepage design tokens */
    --home-section-py: clamp(44px, 6vw, 86px);
    --home-h1: clamp(32px, 2.9vw, 48px);
    --home-h2: clamp(24px, 2.2vw, 36px);
    --home-eyebrow: clamp(14px, 1.15vw, 16px);
    --home-body: clamp(15px, 1.1vw, 17px);
    --home-meta: 14px;
}

/* Backend: primary button hover */
.ol-btn-primary:active,
.ol-btn-primary:hover {
    background-color: #0A3D73 !important;
}

/* Backend: light button hover */
.ol-btn-light:active,
.ol-btn-light:hover {
    background: #0F5DA8 !important;
}

/* Backend: outline secondary hover */
.ol-btn-outline-secondary:active,
.ol-btn-outline-secondary:hover {
    border-color: #0F5DA8 !important;
    color: #0F5DA8 !important;
}

/* Backend: light primary background tint and hover */
.ol-btn-light-primary {
    background: rgba(15, 93, 168, 0.11);
    color: #0F5DA8;
}
.ol-btn-light-primary:active,
.ol-btn-light-primary:hover {
    background-color: #0F5DA8 !important;
}

/* Badge primary */
.badge.bg-primary {
    background-color: rgba(15, 93, 168, 0.18) !important;
    color: #0F5DA8 !important;
    border: 1px solid rgba(15, 93, 168, 0.18) !important;
}

/* Daterangepicker / pagination (backend custom) */
.daterangepicker td.active,
.daterangepicker td.active:hover,
.drp-buttons .applyBtn.btn-primary,
.active > .page-link,
.page-link.active {
    background-color: #0F5DA8 !important;
    border-color: #0F5DA8 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background-color: #E8F2FC;
}

/* ========== Dashboard sidebar: UI/UX — hierarchy, spacing, feedback, a11y ========== */
.ol-sidebar {
    background-color: #0A3D73;
}

/* Logo area — balanced padding, clear separation (Fitts’s law, visual hierarchy) */
.ol-sidebar .sidebar-logo-area {
    padding: 16px 20px;
    min-height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ol-sidebar .sidebar-logos {
    display: flex;
    align-items: center;
}
.ol-sidebar .sidebar-logo-lg,
.ol-sidebar .sidebar-logo-sm {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Section headers (MAIN MENU, SETTINGS) — clear hierarchy, grouping (Gestalt) */
.ol-sidebar .sidebar-title {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 20px 20px 10px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}
.ol-sidebar .sidebar-title:first-of-type {
    padding-top: 16px;
}

/* First-level menu items — touch targets (min 44px), spacing, transition (UX best practice) */
.ol-sidebar .sidebar-nav-area .px-14px {
    padding-left: 12px !important;
    padding-right: 12px !important;
}
.ol-sidebar .sidebar-first-li {
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ol-sidebar .sidebar-first-li > a {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ol-sidebar .sidebar-first-li > a:focus-visible {
    outline: 2px solid #4FA6E6;
    outline-offset: 2px;
}

/* Unselected items — readable on dark blue (contrast) */
.ol-sidebar .sidebar-first-li > a {
    color: #A0AEC0;
}
.ol-sidebar .sidebar-first-li > a .icon {
    color: #A0AEC0;
    flex-shrink: 0;
}
.ol-sidebar .sidebar-first-li > a path {
    fill: #A0AEC0;
    transition: fill 0.2s ease;
}

/* Active state — light background, high-contrast blue text (WCAG AA), left accent (visibility of system status) */
.ol-sidebar .sidebar-first-li.active > a,
.ol-sidebar .sidebar-first-li:hover > a {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0A3D73 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ol-sidebar .sidebar-first-li.active > a {
    border-left: 3px solid #0F5DA8;
    padding-left: 13px;
}
.ol-sidebar .sidebar-first-li:hover > a path,
.ol-sidebar .sidebar-first-li.active > a path {
    fill: #0A3D73;
}
.ol-sidebar .sidebar-first-li.active > a .icon,
.ol-sidebar .sidebar-first-li:hover > a .icon {
    color: #0A3D73 !important;
}

/* Expandable arrow — visible on dark sidebar; when active use blue arrow (light bg), else white/gray */
.ol-sidebar .first-li-have-sub > a::after {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ol-sidebar .first-li-have-sub.active > a::after {
    opacity: 1;
    background-image: url("../../backend/images/icons/angle-right-blue-16.svg");
}
.ol-sidebar .first-li-have-sub:hover > a::after {
    opacity: 1;
}

/* Submenu container — breathing room, avoid clipping on mobile */
.ol-sidebar .first-sub-menu {
    padding: 10px 16px 16px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 8px;
    overflow: visible;
}
.ol-sidebar .sidebar-nav-area {
    overflow-x: visible;
    overflow-y: auto;
}
/* Sub-menu section title — visible hierarchy (e.g. "Users" above Admin/Instructor/Student) */
.ol-sidebar .first-sub-menu-title {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 4px 0 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Second/third level — touch-friendly, clear hover/active (visual hierarchy) */
.ol-sidebar .sidebar-second-li,
.ol-sidebar .sidebar-third-li {
    margin-bottom: 2px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ol-sidebar .sidebar-second-li > a,
.ol-sidebar .sidebar-third-li > a {
    color: #A0AEC0;
    padding: 8px 12px 8px 26px;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
}
.ol-sidebar .sidebar-second-li > a .submenu-icon,
.ol-sidebar .sidebar-third-li > a .submenu-icon {
    font-size: 14px;
    opacity: 0.9;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.2s ease;
}
.ol-sidebar .sidebar-second-li:hover > a .submenu-icon,
.ol-sidebar .sidebar-third-li:hover > a .submenu-icon,
.ol-sidebar .sidebar-second-li.active > a .submenu-icon,
.ol-sidebar .sidebar-third-li.active > a .submenu-icon {
    color: inherit;
}
.ol-sidebar .sidebar-second-li:hover > a,
.ol-sidebar .sidebar-third-li:hover > a {
    color: #E8F2FC;
    background: rgba(255, 255, 255, 0.06);
}
/* Active sub-item — clear “you are here” (visibility of system status) */
.ol-sidebar .sidebar-second-li.active > a,
.ol-sidebar .sidebar-third-li.active > a {
    color: #fff;
    background: rgba(15, 93, 168, 0.35);
    font-weight: 600;
}
.ol-sidebar .sidebar-second-li > a::after,
.ol-sidebar .sidebar-third-li > a::after {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 4px;
    border-radius: 50%;
    background: #A0AEC0;
    transition: background 0.2s ease, height 0.2s ease, width 0.2s ease;
}
.ol-sidebar .sidebar-second-li.active > a::after,
.ol-sidebar .sidebar-second-li:hover > a::after,
.ol-sidebar .sidebar-third-li.active > a::after,
.ol-sidebar .sidebar-third-li:hover > a::after {
    background: #4FA6E6;
}
.ol-sidebar .sidebar-second-li.active > a::after,
.ol-sidebar .sidebar-third-li.active > a::after {
    background: #fff;
    height: 5px;
    width: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Submenu links — keyboard focus for accessibility */
.ol-sidebar .sidebar-second-li > a:focus-visible,
.ol-sidebar .sidebar-third-li > a:focus-visible {
    outline: 2px solid #4FA6E6;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Close/toggle button — affordance */
.ol-sidebar .sidebar-cross::before {
    color: #A0AEC0;
}
.ol-sidebar .sidebar-cross:hover::before {
    color: #fff;
}

/* Scrollable nav — subtle scrollbar (optional, improves feel) */
.ol-sidebar .sidebar-nav-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.ol-sidebar .sidebar-nav-area::-webkit-scrollbar {
    width: 6px;
}
.ol-sidebar .sidebar-nav-area::-webkit-scrollbar-track {
    background: transparent;
}
.ol-sidebar .sidebar-nav-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.ol-sidebar .sidebar-nav-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Collapsed sidebar (narrow) — keep navy, ensure icons and hover visible */
@media (min-width: 992px) {
    .ol-sidebar.hide .sidebar-first-li > a .icon,
    .ol-sidebar.hide .first-li-have-sub > a .icon {
        color: rgba(255, 255, 255, 0.75);
    }
    .ol-sidebar.hide .sidebar-first-li:hover > a .icon,
    .ol-sidebar.hide .first-li-have-sub:hover > a .icon {
        color: #fff;
    }
    .ol-sidebar.hide .sidebar-first-li.active > a {
        border-left: none;
        padding-left: 16px;
    }
}

/* ========== Student dashboard sidebar: white vertical combination logo ========== */
.student-sidebar-logo-area {
    background: linear-gradient(135deg, var(--mac-navy, #0C2546) 0%, var(--mac-deep-blue, #0A3D73) 100%);
}
.student-sidebar-logo-area a {
    display: inline-block;
    line-height: 0;
}
.student-sidebar-logo {
    max-height: 56px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* ========== Homepage hero: no logo as hero visual, proper banner image ========== */
.home-page-premium .section-padding {
    padding-top: var(--home-section-py);
    padding-bottom: var(--home-section-py);
}

.home-page-premium .section-title .title {
    font-size: var(--home-h2);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.home-page-premium .section-title .title-head {
    font-size: var(--home-eyebrow);
    font-weight: 650;
    letter-spacing: 0.02em;
}
.home-page-premium .section-title .description,
.home-page-premium .section-title p {
    font-size: var(--home-body);
    line-height: 1.65;
    color: #475569;
}

.home-page-premium .hero-section-premium .banner-content {
    padding-right: 1.5rem;
}
.home-page-premium .hero-section-premium .hero-eyebrow {
    font-size: var(--home-eyebrow);
    font-weight: 600;
    color: var(--mac-primary, #0F5DA8);
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.home-page-premium .hero-section-premium .hero-headline {
    font-size: var(--home-h1);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.home-page-premium .hero-section-premium .hero-subhead {
    font-size: var(--home-body);
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
}
.home-page-premium .hero-section-premium .hero-trust {
    font-size: var(--home-meta);
    line-height: 1.45;
    color: #64748b;
    font-weight: 500;
}
.home-page-premium .hero-section-premium .hero-trust.small {
    font-size: 0.95rem;
}

/* Hero CTA sizing + spacing (scoped) */
.home-page-premium .hero-section-premium .banner-btn {
    margin-top: 28px;
}
.home-page-premium .hero-section-premium .banner-btn .eBtn.gradient {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
}
.home-page-premium .hero-section-premium .banner-btn .learn-btn {
    font-weight: 650;
    font-size: 15px;
    color: #0f172a;
}
.home-page-premium .hero-section-premium .banner-btn .learn-btn i {
    height: 40px;
    width: 40px;
    line-height: 40px !important;
    padding-left: 0;
    display: inline-grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 93, 168, 0.14);
    border-radius: 999px;
    color: var(--mac-primary, #0F5DA8);
    border-left: 0;
}
.home-page-premium .hero-section-premium .hero-trust {
    margin-top: 14px !important;
    opacity: 0.95;
}
.banner-wraper .hero-banner-img {
    width: 100%;
    height: auto;
    min-height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 93, 168, 0.12);
}
.hero-image-wrap {
    min-height: 280px;
}
.hero-image-wrap .hero-banner-placeholder {
    min-height: 280px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 93, 168, 0.06) 0%, rgba(28, 134, 200, 0.1) 100%);
    border: 1px dashed rgba(15, 93, 168, 0.2);
}
.banner-wraper .hero-badge-icon {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}
.banner-wraper .hero-badge,
.banner-wraper h5 .builder-editable {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mac-primary, #0F5DA8);
}
.banner-wraper .banner-content h1 {
    line-height: 1.2;
}
@media (min-width: 992px) {
    .hero-image-wrap {
        min-height: 340px;
    }
    .banner-wraper .hero-banner-img {
        min-height: 320px;
    }
}

/* ========== Homepage value strip (feature band) ========== */
.home-page-premium .homepage-value-section .performance-wrapper {
    padding-top: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(28px, 4vw, 44px);
}
.home-page-premium .homepage-value-section .value-card {
    padding: 22px 20px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    height: 100%;
}
.home-page-premium .homepage-value-section .value-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.10);
    margin-bottom: 12px;
}
.home-page-premium .homepage-value-section .value-card-icon img {
    max-width: 32px;
    max-height: 32px;
}
.home-page-premium .homepage-value-section .ps-single-wrap h4 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
}
.home-page-premium .homepage-value-section .ps-single-wrap .description {
    font-size: 14.5px;
    line-height: 1.55;
    opacity: 0.92;
}

/* ========== Homepage categories: sparse-data friendly ========== */
.home-page-premium .homepage-categories-grid > [class*="col-"] {
    display: flex;
}
.home-page-premium .category-wrapper .single-category {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 93, 168, 0.10);
    box-shadow: 0 12px 32px rgba(15, 93, 168, 0.10);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
}
.home-page-premium .category-wrapper .single-category:hover {
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 16px 42px rgba(15, 93, 168, 0.14);
}
.home-page-premium .category-wrapper .single-category-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15, 93, 168, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.home-page-premium .category-wrapper .single-category-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.home-page-premium .category-wrapper .single-category-name h4 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 4px;
}
.home-page-premium .category-wrapper .single-category-name p {
    font-size: 14px;
    margin: 0;
    color: #64748b;
}

/* ========== Homepage empty state (categories/programs/blog) ========== */
.home-page-premium .homepage-empty-state {
    border: 1px dashed rgba(15, 93, 168, 0.24);
    background: linear-gradient(135deg, rgba(15, 93, 168, 0.05) 0%, rgba(28, 134, 200, 0.07) 100%);
    border-radius: 16px;
    padding: 34px 18px;
}
.home-page-premium .homepage-empty-state p {
    font-size: var(--home-body);
    color: #475569 !important;
}

/* ========== Footer readability uplift ========== */
.home-page-premium .footer-area .footer-content img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}
.home-page-premium .footer-area .description {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}
.home-page-premium .footer-area .footer-widget h4 {
    font-size: 16px;
    letter-spacing: 0.01em;
}
.home-page-premium .footer-area .footer-widget ul li a,
.home-page-premium .footer-area .footer-policy li a,
.home-page-premium .footer-area .copyright-text p {
    font-size: 14px;
    line-height: 1.6;
}

/* ========== Homepage: header + top bar refinements (scoped) ========== */
.home-page-premium .sub-header {
    padding: 12px 0;
}
.home-page-premium .sub-header-left ul li a {
    font-size: 14px;
    font-weight: 500;
}
.home-page-premium .right-sub ul {
    gap: 14px;
}
.home-page-premium .header-area {
    padding: 14px 0;
}
.home-page-premium .logo-image img {
    height: 42px;
    object-fit: contain;
}
.home-page-premium .primary-menu li a {
    font-size: 15px;
    font-weight: 600;
}
.home-page-premium .Esearch_entry .form-control {
    height: 44px;
    border-radius: 10px;
    padding-right: 40px;
}
.home-page-premium .Esearch_entry button {
    top: 12px;
    right: 18px;
}
.home-page-premium .primary-end .cart-top-number {
    transform: translate(20%, -10%);
}

/* ========== Homepage: about section refinements ========== */
.home-page-premium .about-section-image img {
    width: 100%;
    height: clamp(320px, 42vw, 520px);
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 44px rgba(15, 93, 168, 0.12);
}
.home-page-premium .about-badge {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 93, 168, 0.14);
}
.home-page-premium .skil-content .description {
    font-size: var(--home-body);
    line-height: 1.65;
    color: #475569;
    margin-top: 18px !important;
}
.home-page-premium .skil-content ul li .skill-text span {
    font-size: 16px;
    font-weight: 700;
}
.home-page-premium .skil-content ul li .skill-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

/* ========== Homepage: testimonial composition refinements ========== */
.home-page-premium .testimonials-wrapper .section-title .description {
    margin-top: 18px !important;
}
.home-page-premium .testimonials-wrapper .user-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}
.home-page-premium .testimonials-wrapper .testimonial-border {
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(15, 93, 168, 0.12);
}
.home-page-premium .testimonials-wrapper .testimonial-des {
    padding: 22px 22px 18px;
}
.home-page-premium .testimonials-wrapper .testimonial-des .description {
    font-size: var(--home-body);
    line-height: 1.65;
    color: #334155;
}
.home-page-premium .testimonials-wrapper .user-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}
.home-page-premium .testimonials-wrapper .user-info p {
    font-size: 14px;
    color: #64748b;
}
.home-page-premium .testimonials-wrapper .owl-nav button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 93, 168, 0.14);
}

/* ========== Homepage: blog cards + empty state ========== */
.home-page-premium .blog-wrapper .b-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 93, 168, 0.10);
    box-shadow: 0 12px 32px rgba(15, 93, 168, 0.10);
}
.home-page-premium .blog-wrapper .b-card .card-head img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}
.home-page-premium .blog-wrapper .b-card .card-body h4 {
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.home-page-premium .blog-wrapper .b_bottom span {
    font-size: 13px;
    color: #64748b;
}

/* Newsletter form balance */
.home-page-premium .footer-area .newslater-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.home-page-premium .footer-area .newslater-form .form-control {
    height: 44px;
    border-radius: 12px;
}
.home-page-premium .footer-area .newslater-form .eBtn {
    height: 44px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .home-page-premium .footer-area .newslater-form {
        grid-template-columns: 1fr;
    }
}

/* ========== Homepage: responsive polish ========== */
@media (max-width: 991.98px) {
    .home-page-premium .hero-section-premium .banner-content {
        padding-right: 0;
    }
    .home-page-premium .hero-section-premium .hero-headline {
        letter-spacing: -0.015em;
    }
    .home-page-premium .hero-section-premium .banner-btn {
        margin-top: 22px;
    }
    .home-page-premium .blog-wrapper .res-control {
        gap: 14px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .home-page-premium .hero-section-premium .hero-headline {
        font-size: clamp(30px, 8.4vw, 38px);
        line-height: 1.1;
    }
    .home-page-premium .hero-section-premium .banner-btn .eBtn.gradient,
    .home-page-premium .hero-section-premium .banner-btn .learn-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .home-page-premium .hero-section-premium .banner-btn {
        gap: 12px !important;
    }
    .home-page-premium .testimonials-wrapper .user-image img {
        height: 260px;
    }
    .home-page-premium .blog-wrapper .b-card .card-head img {
        height: 180px;
    }
}

/* ========== Public frontend: Mac Education brand gradients and buttons ========== */
.eBtn.gradient,
a.eBtn.gradient {
    background-image: linear-gradient(to right, #0F5DA8 0%, #1C86C8 51%, #1C86C8 100%) !important;
}
.gradient.color,
.gradient.color:hover {
    color: #0F5DA8 !important;
}
.gradient-border {
    background: linear-gradient(to right, #0F5DA8 0%, #1C86C8 51%, #1C86C8 100%) !important;
}
.gradient-border-btn:hover,
.c-card:hover .eBtn {
    background-image: linear-gradient(to right, #0F5DA8 0%, #1C86C8 51%, #1C86C8 100%) !important;
}

/* ========== Homepage value/feature cards: larger icons, spacing, premium feel ========== */
.homepage-value-section .value-card {
    padding: 2rem 1.25rem;
}
.homepage-value-section .value-card-icon {
    margin-bottom: 1.25rem;
}
.homepage-value-section .value-card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.homepage-value-section .ps-single-wrap h4 {
    margin-bottom: 0.6rem;
    line-height: 1.35;
    font-size: 1.1rem;
    font-weight: 600;
}
.homepage-value-section .ps-single-wrap .description {
    margin-bottom: 0;
    line-height: 1.55;
    font-size: 0.975rem;
}
.homepage-value-section .performance-wrapper {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.homepage-value-section .row.g-4 {
    row-gap: 2rem;
}
@media (min-width: 768px) {
    .homepage-value-section .value-card-icon img {
        width: 60px;
        height: 60px;
    }
}

/* ========== About section: badge position (no overlap) ========== */
.about-section-image {
    overflow: visible;
}
.about-section-image .about-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    bottom: auto;
    margin: 0;
}

/* ========== Testimonial carousel: visible nav, premium feel ========== */
.testimonials-wrapper .owl-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 93, 168, 0.12) !important;
    color: #0F5DA8 !important;
    border: 1px solid rgba(15, 93, 168, 0.35) !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.testimonials-wrapper .owl-nav button:hover {
    background: #0F5DA8 !important;
    color: #fff !important;
    border-color: #0F5DA8 !important;
}
.testimonials-wrapper .section-title .title-head {
    color: var(--mac-primary, #0F5DA8);
    font-weight: 600;
}
.testimonials-wrapper .section-title .description {
    line-height: 1.55;
}

/* ========== Empty-state sections: intentional, premium (UI/UX: clarity, hierarchy) ========== */
.homepage-empty-state {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.homepage-empty-state .text-muted {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    color: #64748b !important;
    font-weight: 500;
}
.homepage-empty-state .eBtn.gradient {
    margin-top: 0.5rem;
    font-weight: 600;
}
.category-wrapper .section-padding,
.feature-wrapper .section-padding,
.blog-wrapper .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.blog-wrapper .homepage-empty-state .text-muted {
    max-width: 32rem;
}
/* Single category or few items: consistent card spacing (proximity, balance) */
.category-wrapper .row.justify-content-center {
    row-gap: 1.5rem;
}
.category-wrapper .single-category {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-wrapper .single-feature .entry-details .creator p {
    font-size: 0.9rem;
    margin-bottom: 0;
}
.feature-wrapper .single-feature .entry-details .creator span {
    font-weight: 600;
}

/* ========== About section: spacing and hierarchy ========== */
.about-section-image .skill-image img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.about-section-image .about-badge {
    border-radius: 10px;
}
.testimonials-wrapper .skill-content .title {
    line-height: 1.3;
}
.testimonials-wrapper .skill-content .description {
    line-height: 1.6;
}

/* ========== Footer: hierarchy and spacing (enterprise-grade) ========== */
.footer-area .footer-content .description {
    line-height: 1.65;
    font-size: 0.95rem;
}
.footer-area .footer-widget {
    margin-bottom: 1.5rem;
}
.footer-area .footer-widget h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.footer-area .newslater-bottom {
    margin-top: 0.5rem;
}
.footer-area .newslater-bottom .description {
    line-height: 1.55;
    font-size: 0.9rem;
}
.footer-area .newslater-bottom h4 {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom .footer-policy {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}
.footer-bottom .footer-policy li + li {
    margin-left: 0;
}
.footer-area .footer-content .gradient-border-btn {
    margin-top: 0.75rem;
    font-weight: 500;
}
.footer-area .f-socials {
    gap: 0.5rem;
}

/* ========== Header: section title consistency (visual hierarchy) ========== */
.section-title .title-head {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.section-title .title {
    margin-top: 0.35rem;
}
.category-wrapper .section-title .title-head,
.feature-wrapper .section-title .title-head,
.blog-wrapper .section-title .title-head {
    color: var(--mac-primary, #0F5DA8);
}

/* ========== Tutors page (/tutors) — Mac Education colors ========== */
.tutors-page .lms1-breadcrumb-section {
    background: linear-gradient(270deg, rgba(15, 93, 168, 0.06) 1.37%, rgba(28, 134, 200, 0.06) 86.05%);
}
.tutors-page .lms1-breadcrumb .breadcrumb-item > a {
    color: var(--mac-primary, #0F5DA8);
}
.tutors-page .lms1-breadcrumb .breadcrumb-item > a:hover {
    color: var(--mac-deep-blue, #0A3D73);
}
.tutors-page .lms1-breadcrumb .breadcrumb-item.active {
    color: var(--mac-deep-blue, #0A3D73);
}
.tutors-page .tutors-page-home-icon {
    filter: brightness(0) saturate(100%) invert(28%) sepia(70%) saturate(1200%) hue-rotate(195deg);
}
.tutors-page .btn-purple-sm2 {
    background: var(--mac-primary, #0F5DA8);
}
.tutors-page .btn-purple-sm2:hover,
.tutors-page .btn-purple-sm2:active {
    background: var(--mac-deep-blue, #0A3D73) !important;
}
.tutors-page .btn-outline-purple-sm {
    border-color: var(--mac-primary, #0F5DA8);
    color: var(--mac-primary, #0F5DA8);
}
.tutors-page .btn-outline-purple-sm path {
    fill: var(--mac-primary, #0F5DA8);
}
.tutors-page .btn-outline-purple-sm:hover,
.tutors-page .btn-outline-purple-sm:active {
    background: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
}
.tutors-page .btn-outline-purple-sm:hover path,
.tutors-page .btn-outline-purple-sm:active path {
    fill: #fff;
}
.tutors-page .lms1-category-sidebar .form-check-input:checked,
.tutors-page .form-checkbox-input:checked {
    background-color: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
}
.tutors-page .form-checkbox-input:checked ~ .form-checkbox-label {
    color: var(--mac-primary, #0F5DA8);
}
.tutors-page .lms-slider-range-wrapper .ui-widget-header,
.tutors-page .lms-slider-range-wrapper .ui-widget.ui-widget-content .ui-widget-header {
    background: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
}
.tutors-page .lms1-sidebar-btn:hover,
.tutors-page .lms1-sidebar-btn:active {
    border-color: var(--mac-primary, #0F5DA8) !important;
    background: var(--mac-primary, #0F5DA8) !important;
}
.tutors-page .sm-search-btn {
    background: var(--mac-primary, #0F5DA8);
}
.tutors-page .sm-search-btn:hover {
    background: var(--mac-deep-blue, #0A3D73);
}
.tutors-page .sm-search-input:hover,
.tutors-page .sm-search-input:focus,
.tutors-page .sm-search-input:has(~ .sm-search-btn:hover) {
    border-color: var(--mac-primary, #0F5DA8);
}
.tutors-page .lms1-video-player .plyr--video .plyr__control:hover {
    background: var(--mac-primary, #0F5DA8);
}
.tutors-page .lms1-video-player .plyr--full-ui input[type=range] {
    color: var(--mac-primary, #0F5DA8);
}
.tutors-page .lms-pagination-link.active,
.tutors-page .lms-pagination-link:hover {
    background: var(--mac-primary, #0F5DA8);
    color: #fff;
}
.tutors-page .entry-pagination .page-link:hover,
.tutors-page .entry-pagination .page-item.active .page-link,
.tutors-page .entry-pagination .pagination li.active a {
    background: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
    background-image: none !important;
}
.tutors-page .entry-pagination .page-link {
    color: var(--mac-primary, #0F5DA8);
}
.tutors-page .entry-pagination .page-link:hover {
    color: #fff !important;
}

/* Filter offcanvas (when moved to body by Bootstrap) — same Mac Education colors */
.tutors-filter-offcanvas .lms1-category-sidebar .form-check-input:checked,
.tutors-filter-offcanvas .form-checkbox-input:checked {
    background-color: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
}
.tutors-filter-offcanvas .form-checkbox-input:checked ~ .form-checkbox-label {
    color: var(--mac-primary, #0F5DA8);
}
.tutors-filter-offcanvas .lms-slider-range-wrapper .ui-widget-header,
.tutors-filter-offcanvas .lms-slider-range-wrapper .ui-widget.ui-widget-content .ui-widget-header {
    background: var(--mac-primary, #0F5DA8) !important;
    border-color: var(--mac-primary, #0F5DA8) !important;
}

/* ========== Homepage header: mega dropdown — Mac Education colors ========== */
.header-area .main-mega-menu .mega-menu-icon-macedu svg path {
    fill: var(--mac-primary, #0F5DA8);
}
.header-area .main-mega-menu .mega-menu-icon-macedu svg path[opacity="0.4"] {
    fill: var(--mac-light-blue, #4FA6E6);
}
.header-area .main-mega-menu .mega_list li a:hover {
    background-color: rgba(15, 93, 168, 0.08);
    color: var(--mac-primary, #0F5DA8) !important;
}
.header-area .main-mega-menu .mega_list li a:hover .mega-menu-icon-macedu svg path {
    fill: var(--mac-deep-blue, #0A3D73);
}
.header-area .main-mega-menu .mega_list li a:hover .mega-menu-icon-macedu svg path[opacity="0.4"] {
    fill: var(--mac-primary, #0F5DA8);
}

/* ========== Avatar dropdown: fix overlap + UX (cursor, stacking) ========== */
.header-area .primary-end {
    position: relative;
}
.header-area .Userprofile {
    position: relative;
    z-index: 1120;
}
.header-area .Userprofile .dropdown-menu.dropmenu-end {
    z-index: 1120;
    min-width: 220px;
    cursor: default;
}
.header-area .Userprofile .us-btn.dropdown-toggle {
    cursor: pointer;
}
.header-area .Userprofile .dropmenu-end .dropdown-item {
    cursor: pointer;
}
.header-area .Userprofile .dropmenu-end .figure_user {
    cursor: default;
}
