/* ===================================================
   GLOBAL / SHARED STYLES
   =================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Mona Sans" !important;
}

/* --- Course cards --- */
.tutor-card-image-top {
  border-radius: 40px 40px 0 0;
}
.tutor-course-name > a {
  text-decoration: none;
}
.tutor-course-list-btn {
  width: 85px;
}
.list-item-button {
  width: 85px;
}
.tutor-course-list-btn > a {
  font-size: 0;
}
.list-item-button > a {
  font-size: 0;
}
.tutor-course-list-btn > a::after {
  content: "Start";
  font-size: 16px;
  visibility: visible;
}
.list-item-button > a::after {
  content: "Start";
  font-size: 16px;
  visibility: visible;
}
.tutor-card-footer {
  border-top: 0 !important;
}
.tutor-course-card {
  border-radius: 40px 40px 4px 4px;
  border: 1px solid var(--Beige, #d3d9cf);
  background: var(--White, #fff);
}

.tutor-login-wrap,
#tutor-registration-wrap {
  box-shadow: none;
}

/* --- Buttons --- */
.tutor-btn,
.tutor-btn-primary {
  border-radius: 200px;
  background: var(--Emerald, #173401);
  padding: 12px 24px !important;
  align-items: center;
  border-color: var(--Emerald, #173401);
  color: white;
}
.tutor-btn:hover,
.tutor-btn-primary:hover {
  color: var(--Emerald, #173401);
  background: white;
  border-color: var(--Emerald, #173401);
}
.tutor-btn-outline-primary:hover,
.tutor-btn-outline-primary:focus,
.tutor-btn-outline-primary:active {
  color: var(--Emerald, #173401);
  background: white;
  border-color: var(--Emerald, #173401);
}

/* --- Footer --- */
.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.footer-social-icon {
  list-style: none;
}
.is-layout-flex {
  justify-content: space-between;
}
.footer-social-icon .wp-social-link a,
.footer-social-icon .wp-social-link svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.footer-social-icon .wp-social-link a:hover svg {
  fill: #e2e8f0 !important;
  opacity: 0.8;
}

.tutor-course-card .tutor-course-name {
  color: #000 !important;

  /* H5 */
  font-family: "Mona Sans" !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: normal !important;
}

.tutor-course-card .tutor-course-name > a {
  text-decoration: none;
}

.tutor-course-card .tutor-course-list-btn {
  /*width: 32%;*/
}
.tutor-course-card .tutor-course-list-btn > a {
  font-size: 0;
}

.tutor-course-card .tutor-course-list-btn > a::after {
  content: "Start";
  font-size: 16px;
  visibility: visible;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-site-blocks {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  /*margin-top: -20px !important;*/
  /*background-image: url(https://jordankonsult.my/wp-content/uploads/2026/03/Fancy-Yellow-1.png);
  background-position: 0% 0%;
  background-size: cover;*/
}

.tutor-lms.single-lesson > .wp-site-blocks {
  margin-top: -20px !important;
  background-image: url(https://jordankonsult.my/wp-content/uploads/2026/03/Fancy-Yellow-1.png);
  background-position: 0% 0%;
  background-size: cover;
  background-repeat: no-repeat;
}
.tutor-lms.single-courses > .wp-site-blocks {
  margin-top: -20px !important;
  background-image: url(https://jordankonsult.my/wp-content/uploads/2026/03/Fancy-Yellow-1.png);
  background-position: 0% 0%;
  background-size: cover;
  background-repeat: no-repeat;
}
.tutor-lms.tutor-screen-frontend-dashboard > .wp-site-blocks {
  background-image: url(https://jordankonsult.my/wp-content/uploads/2026/03/Fancy-Yellow-1.png);
  background-position: 0% 0%;
  background-size: cover;
  background-repeat: no-repeat;
}

.wp-site-blocks > main,
.wp-site-blocks > .entry-content {
  flex: 1;
}

.wp-site-blocks > .tutor-wrap {
  flex: 1 1 auto !important;
}

.wp-site-blocks > footer.wp-block-template-part {
  margin-top: auto !important;
  /*flex-shrink: 0 !important;*/
}

html,
body {
  height: 100% !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
}

body > div.wp-site-blocks:last-of-type {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

body > div.wp-site-blocks:last-of-type > .tutor-wrap {
  flex: 1 1 auto !important;
}

footer .site-footer {
  margin-top: auto !important;
}

.tutor-meta {
  display: none !important;
}
.tutor-ratings-stars {
  display: none !important;
}

.tutor-wrap {
  flex: 1 !important;
}

footer.site-footer {
  margin-top: auto !important;
}

/* ===================================================
   MOBILE LAYOUT  (< 1400px)
   =================================================== */

@media (max-width: 991px) {
  .tutor-user-public-profile.tutor-user-public-profile-pp-circle .pp-area,
  .tutor-user-public-profile.tutor-user-public-profile-pp-rectangle .pp-area {
    margin-top: 21px !important;
    position: relative !important;
    display: flex;
    top: 0 !important;
  }
  .tutor-user-public-profile.tutor-user-public-profile-pp-circle .pp-area,
  .tutor-user-public-profile.tutor-user-public-profile-no-cp .pp-area,
  .tutor-user-public-profile.tutor-user-public-profile-pp-rectangle .pp-area {
    flex-wrap: nowrap !important;
  }
  .tutor-user-public-profile.tutor-user-public-profile-pp-circle .profile-name,
  .tutor-user-public-profile.tutor-user-public-profile-pp-circle
    .profile-rating-media,
  .tutor-user-public-profile.tutor-user-public-profile-no-cp .profile-name,
  .tutor-user-public-profile.tutor-user-public-profile-no-cp
    .profile-rating-media,
  .tutor-user-public-profile.tutor-user-public-profile-pp-rectangle
    .profile-name,
  .tutor-user-public-profile.tutor-user-public-profile-pp-rectangle
    .profile-rating-media {
    text-align: left !important;
    width: 100% !important;
  }
  .tutor-user-public-profile.tutor-user-public-profile-pp-circle .profile-pic {
    border-radius: 0;
    width: 180px !important;
    height: 123px !important;
    max-height: 123px !important;
    background-size: cover !important;
    background-position: center !important;
  }
}

@media (max-width: 992px) {
  .tutor-profile-mobile-layout {
    display: block;
    padding-right: var(--tutor-gutter-x, 0.75rem);
    padding-left: var(--tutor-gutter-x, 0.75rem);
  }
  .tutor-profile-desktop-layout {
    display: none;
  }
  .tutor-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  body.blog.tutor-lms .site-footer {
    min-height: 50px !important;
  }
  /*.site-footer {
    padding-bottom: 0 !important;
    background-size: auto !important;
  }*/
}

/* ===================================================
   DESKTOP LAYOUT  (>= 1400px)
   ===================================================

   Structure:
   ┌─────────────┬───┬──────────────────────────────────────┐
   │             │   │  Cover Image (bleeds to right edge)   │
   │   LOGO      │gap│──────────────────────────────────────│
   │  (3 cols)   │(1)│  Name / Meta / Bio / Courses          │
   │             │   │  (8 cols)                              │
   └─────────────┴───┴──────────────────────────────────────┘
      col 1-3     col4           col 5-12

   =================================================== */

@media (min-width: 993px) {
  /* --- Toggle visibility --- */
  .tutor-profile-mobile-layout {
    display: none;
  }
  .tutor-profile-desktop-layout {
    display: block;
  }

  /* ---------------------------------------------------
     MAIN 2-COLUMN GRID
     --------------------------------------------------- */

  .desktop-profile {
    display: flex;
    gap: var(--grid-gutter);
    /*max-width: 1400px;*/
    margin-left: auto;
    margin-right: auto;
  }

  .desktop-profile__left {
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 40px;*/
    height: 25vw;
    min-height: 360px;
    max-height: 580px;
  }

  .desktop-profile__logo {
    /*width: 240px;
    height: 240px;*/
    height: 50%;
    aspect-ratio: 600 / 600;
    /*border-radius: 50%;*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 6px solid #fff;
    flex-shrink: 0;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
  }

  /* RIGHT COLUMN: Cover + Content — cols 5-12 (col 4 = gap) */
  .desktop-profile__right {
    display: flex;
    flex-direction: column;
  }

  /* Cover image — bleeds to viewport right edge */
  .desktop-profile__cover {
    /*width: calc(100% + ((100vw - 1400px) / 2));
    max-width: none;*/
    height: 30vw;
    min-height: 360px;
    max-height: 580px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: 300px 0 0 300px;
    width: 100%;
    padding-right: 80px;
  }

  /* Content area below cover */
  .desktop-profile__content {
    padding: 48px 0 60px;
    /*max-width: 860px;*/
  }

  .desktop-profile__content h1 {
    margin-bottom: 8px;
  }

  .desktop-profile__content h2 {
    margin-top: 40px;
  }

  /* ---------------------------------------------------
     PROFILE META  (• 1 Course  • 6 Students)
     --------------------------------------------------- */

  .profile-meta {
    margin-top: 4px;
    margin-bottom: 24px;
  }

  .profile-meta__item {
    color: var(--Dark-Beige, #636c5e);
    font-family: "Mona Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: normal;
  }

  .profile-meta__spacer {
    display: inline-block;
    width: 16px;
  }

  /* ---------------------------------------------------
     MISC DESKTOP OVERRIDES
     --------------------------------------------------- */

  .site-footer > div {
    /*margin: -15px !important;*/
    margin-bottom: -30px !important;
  }

  .tutor-container-xxl,
  .tutor-container-xl,
  .tutor-container-lg,
  .tutor-container-md,
  .tutor-container-sm,
  .tutor-container {
    /*max-width: 1400px;*/
    max-width: none !important;
  }

  .biography {
    color: var(--Dark-Beige, #636c5e);

    /* Paragraph */
    font-family: "Mona Sans";
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
  }
}

@media (min-width: 1600px) {
  .desktop-profile__content {
    padding: 48px 0 60px;
    /*max-width: 100%;*/
  }
}

/* Fix: Hide mobile nav overlay on desktop */
@media (min-width: 782px) {
  body > div.wp-site-blocks > header {
    display: none !important;
  }
  body > div.wp-site-blocks > div.wp-site-blocks > header {
    display: none !important;
  }
  .wp-block-navigation__responsive-container:not(.is-menu-open) {
    /*display: none !important;*/
  }
}

.desktop-profile__left,
.desktop-profile__right {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  min-width: 0;
}

/* ==========================================================================
   RESPONSIVE GRID COLUMNS (for Tutor LMS grid blocks)
   Usage: Add alongside tutor-grid, e.g. "tutor-grid grid-1 grid-sm-2 grid-md-3 grid-lg-4"
   ========================================================================== */

.grid-1 {
  grid-template-columns: repeat(1, 1fr) !important;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (min-width: 576px) {
  .grid-sm-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-sm-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-sm-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-sm-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 782px) {
  .grid-md-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-md-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-md-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-md-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .grid-lg-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-lg-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-lg-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-lg-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1280px) {
  .grid-xl-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-xl-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-xl-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-xl-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1440px) {
  .grid-xxl-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-xxl-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-xxl-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-xxl-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1600px) {
  .grid-xxxl-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .grid-xxxl-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-xxxl-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .grid-xxxl-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1200px) {
  .tutor-g-xl-5,
  .tutor-gx-xl-5 {
    --tutor-gutter-x: 1.5rem !important;
  }
}

body.blog.tutor-lms .wp-container-core-group-is-layout-8165f36a {
  display: none !important;
}
body.tutor-screen-frontend-dashboard.tutor-lms
  .wp-container-core-group-is-layout-8165f36a {
  display: none !important;
}
body.tutor-frontend.tutor-lms .wp-container-core-group-is-layout-8165f36a {
  display: none !important;
}

/*@media (max-width: 998px) {
  body.blog.tutor-lms .site-footer {
    min-height: 50px !important;
  }
}*/

@media (max-width: 992px) {
  body.tutor-frontend .site-footer {
    padding: 190px 0 20px !important;
    background-size: cover !important;
    margin-top: 0 !important;
  }
  body.tutor-screen-frontend-dashboard.tutor-lms .site-footer {
    display: none !important;
  }
}

/* Preserve Tutor icon font */
[class*="tutor-icon-"] {
  font-family: "tutor" !important;
}

.tutor-avatar {
  border-radius: 0 !important;
}
