:root{
  --ezmq-primary:#1479ff;
  --ezmq-secondary:#071f49;
  --ezmq-bg:#f8fafc;
  --ezmq-surface:#ffffff;
  --ezmq-text:#0f172a;
  --ezmq-radius:14px;
}

html{scroll-behavior:smooth}
body.ezmq-platform-theme{background:var(--ezmq-bg);color:var(--ezmq-text);overflow-x:hidden}
body.ezmq-platform-theme a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease}
body.ezmq-platform-theme :focus-visible{outline:3px solid color-mix(in srgb,var(--ezmq-primary) 35%,transparent);outline-offset:2px}

/* Brand-safe header. No hard-coded client/EzMedQ artwork. */
body.ezmq-platform-theme header.header-default{background:var(--ezmq-surface);border-bottom:1px solid rgba(15,23,42,.08);box-shadow:0 4px 20px rgba(15,23,42,.035)}
body.ezmq-platform-theme header.header-default .custom-logo,
body.ezmq-platform-theme header.header-default .navbar-brand img{max-height:46px;width:auto;object-fit:contain}
body.ezmq-platform-theme header.header-default .navbar-toggler{border-radius:12px}

/* Primary actions across Tutor / TutorStarter. */
body.ezmq-platform-theme .tutor-btn-primary,
body.ezmq-platform-theme .tutor-btn.tutor-btn-primary,
body.ezmq-platform-theme button.tutor-btn-primary,
body.ezmq-platform-theme input[type=submit].tutor-btn-primary{
  background:var(--ezmq-primary)!important;
  border-color:var(--ezmq-primary)!important;
  border-radius:calc(var(--ezmq-radius) * .72)!important;
}
body.ezmq-platform-theme .tutor-btn-outline-primary{color:var(--ezmq-primary)!important;border-color:var(--ezmq-primary)!important;border-radius:calc(var(--ezmq-radius) * .72)!important}

/* Tutor dashboard white-label surface system. */
body.ezmq-platform-theme .tutor-dashboard{background:var(--ezmq-bg)!important;color:var(--ezmq-text)}
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu,
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-content,
body.ezmq-platform-theme .tutor-dashboard .tutor-card,
body.ezmq-platform-theme .tutor-dashboard [class*="tutor-card"]{border-radius:var(--ezmq-radius)}
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu{background:var(--ezmq-surface)}
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a,
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks a:hover{color:var(--ezmq-primary)!important;background:color-mix(in srgb,var(--ezmq-primary) 10%,transparent)!important}
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a:before{background:var(--ezmq-primary)!important}
body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-header-avatar img{border-radius:50%}
body.ezmq-platform-theme .tutor-dashboard img.custom-logo{width:auto;max-width:min(220px,80%);height:auto;max-height:58px;object-fit:contain}

/* Course cards / public content. */
body.ezmq-platform-theme .tutor-card,
body.ezmq-platform-theme .tutor-course-card,
body.ezmq-platform-theme .tutor-course-details-card,
body.ezmq-platform-theme .tutor-login-wrap,
body.ezmq-platform-theme .tutor-form-wrap{border-radius:var(--ezmq-radius)!important}
body.ezmq-platform-theme .tutor-course-card:hover{box-shadow:0 14px 38px rgba(15,23,42,.08)}
body.ezmq-platform-theme .tutor-color-primary{color:var(--ezmq-primary)!important}

/* Forms. */
body.ezmq-platform-theme .tutor-form-control,
body.ezmq-platform-theme input:not([type=checkbox]):not([type=radio]),
body.ezmq-platform-theme select,
body.ezmq-platform-theme textarea{border-radius:calc(var(--ezmq-radius) * .65)}

/* Elementor pages remain fully editable while the system chrome stays consistent. */
body.ezmq-platform-theme .elementor-button{border-radius:calc(var(--ezmq-radius) * .72)}

@media (max-width:767px){
  body.ezmq-platform-theme header.header-default{min-height:70px}
  body.ezmq-platform-theme header.header-default nav.navbar{min-height:70px;padding-left:14px!important;padding-right:14px!important}
  body.ezmq-platform-theme header.header-default .custom-logo,
  body.ezmq-platform-theme header.header-default .navbar-brand img{max-width:180px;max-height:42px}
  body.ezmq-platform-theme .tutor-dashboard .tutor-dashboard-left-menu{border-radius:0}
}
