/* =========================================================
   Online Teaching Platform Tutorial page - Top section
   Scoped to article itemid-1628
   ========================================================= */

body.itemid-1628 #sp-main-body {
  background: #f7f8fa;
}

body.itemid-1628 #sp-component {
  font-family: Inter, Arial, sans-serif;
  color: #333333;
}

body.itemid-1628 .tt-platform-tutorial-page {
  width: 100%;
  max-width: 1180px;
  margin: -24px auto 70px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Existing Joomla green title banner spacing */
body.itemid-1628 .tt-platform-tutorial-page .resource_header {
  margin-bottom: 4px;
}


/* =========================================================
   Choose tutorial format section
   ========================================================= */

body.itemid-1628 .tt-platform-format-section {
  margin: 0 0 44px;
  padding: 0;
  text-align: center;
}

body.itemid-1628 .tt-platform-format-section h2 {
  margin: 0 0 14px;
  padding: 0;
  color: #374151;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

body.itemid-1628 .tt-platform-format-section h2 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #0071bb, #65b45c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Intro text */
body.itemid-1628 .tt-platform-format-intro {
  max-width: 850px;
  margin: 0 auto 34px;
  padding: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}


/* =========================================================
   Tutorial format cards
   ========================================================= */

body.itemid-1628 .tt-platform-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

body.itemid-1628 .tt-platform-format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 330px;
  padding: 32px 28px 28px;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(38, 50, 56, 0.09);
  color: #374151;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.itemid-1628 .tt-platform-format-card:hover,
body.itemid-1628 .tt-platform-format-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(38, 50, 56, 0.13);
  color: #374151;
  text-decoration: none;
}

body.itemid-1628 .tt-platform-format-video {
  background: #eaf6ff;
}

body.itemid-1628 .tt-platform-format-pdf {
  background: #fff0fb;
}

body.itemid-1628 .tt-platform-format-read {
  background: #fffaf0;
}


/* =========================================================
   Card icons
   CSS icons are used because Joomla may strip inline SVG
   ========================================================= */

body.itemid-1628 .tt-platform-format-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 112px;
  margin: 0 auto 18px;
}

/* Hide inline SVG if Joomla keeps it, to avoid duplicate icons */
body.itemid-1628 .tt-platform-format-icon > svg {
  display: none;
}

body.itemid-1628 .tt-platform-format-icon::before {
  content: "";
  display: block;
  width: 112px;
  height: 112px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 112px 112px;
}

/* Video icon */
body.itemid-1628 .tt-platform-format-video .tt-platform-format-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 112 112' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='24' y='25' width='64' height='45' rx='8' fill='none' stroke='%23087aa5' stroke-width='7'/%3E%3Cpath d='M52 39L69 47.5L52 56V39Z' fill='%23087aa5'/%3E%3Cpath d='M45 83H67' stroke='%23087aa5' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M56 70V83' stroke='%23087aa5' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Download icon */
body.itemid-1628 .tt-platform-format-pdf .tt-platform-format-icon::before {
  width: 98px;
  height: 98px;
  background-size: 98px 98px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 112 112' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M27 18H66L85 37V86C85 91 81 95 76 95H36C31 95 27 91 27 86V18Z' fill='none' stroke='%23a23ac8' stroke-width='7' stroke-linejoin='round'/%3E%3Cpath d='M66 18V38H85' fill='none' stroke='%23a23ac8' stroke-width='7' stroke-linejoin='round'/%3E%3Cpath d='M56 43V68' stroke='%23a23ac8' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M42 56L56 70L70 56' fill='none' stroke='%23a23ac8' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M41 80H71' stroke='%23a23ac8' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Book icon */
body.itemid-1628 .tt-platform-format-read .tt-platform-format-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 112 112' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M56 36C47 29 34 28 24 34V80C34 74 47 76 56 84V36Z' fill='none' stroke='%23f2a21e' stroke-width='7' stroke-linejoin='round'/%3E%3Cpath d='M56 36C65 29 78 28 88 34V80C78 74 65 76 56 84V36Z' fill='none' stroke='%23f2a21e' stroke-width='7' stroke-linejoin='round'/%3E%3Cpath d='M56 36V84' stroke='%23f2a21e' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* =========================================================
   Card text and buttons
   ========================================================= */

body.itemid-1628 .tt-platform-format-card strong {
  display: block;
  margin: 0 0 14px;
  color: #374151;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

body.itemid-1628 .tt-platform-card-copy {
  display: block;
  max-width: 235px;
  margin: 0 auto 24px;
  color: #5f6670;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  margin-top: auto;
  padding: 0 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(38, 50, 56, 0.12);
  box-sizing: border-box;
}

body.itemid-1628 .tt-platform-format-card:hover .tt-platform-card-button,
body.itemid-1628 .tt-platform-format-card:focus .tt-platform-card-button {
  border-color: #d2d2d2;
  box-shadow: 0 4px 10px rgba(38, 50, 56, 0.16);
}


/* =========================================================
   Video section
   ========================================================= */

body.itemid-1628 .tt-platform-video-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 54px;
  padding: 34px 28px 44px;
  background: #eaf6ff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.08);
  box-sizing: border-box;
  text-align: center;
  scroll-margin-top: 135px;
}

body.itemid-1628 .tt-platform-video-section h2 {
  margin: 0 0 24px;
  padding: 0;
  color: #374151;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

body.itemid-1628 .tt-platform-video-section h2 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #0071bb, #65b45c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* YouTube frame */
body.itemid-1628 .tt-platform-video-frame {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(38, 50, 56, 0.14);
  overflow: hidden;
  box-sizing: border-box;
}

body.itemid-1628 .tt-platform-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}


/* =========================================================
   PDF section
   ========================================================= */

body.itemid-1628 .tt-platform-pdf-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 54px;
  padding: 32px 28px 38px;
  background: #fff0fb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.08);
  box-sizing: border-box;
  scroll-margin-top: 135px;
}

body.itemid-1628 .tt-platform-pdf-section h2 {
  margin: 0 0 24px;
  padding: 0;
  color: #374151;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

body.itemid-1628 .tt-platform-pdf-section h2 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #0071bb, #65b45c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.itemid-1628 .tt-platform-pdf-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

body.itemid-1628 .tt-platform-pdf-content p {
  margin: 0;
  padding: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-pdf-button,
body.itemid-1628 .tt-platform-pdf-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 58px;
  padding: 0 30px;
  background: #2f78bd;
  border: 0;
  border-radius: 6px;
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(47, 120, 189, 0.28);
  box-sizing: border-box;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.itemid-1628 .tt-platform-pdf-button:hover,
body.itemid-1628 .tt-platform-pdf-button:focus,
body.itemid-1628 .tt-platform-pdf-button:active {
  background: #2469aa;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(47, 120, 189, 0.34);
}


/* =========================================================
   Guide tabs section
   ========================================================= */

body.itemid-1628 .tt-platform-guide-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 54px;
  padding: 34px 42px 40px;
  background: #fffaf0;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.08);
  box-sizing: border-box;
  scroll-margin-top: 135px;
}

body.itemid-1628 .tt-platform-guide-section h2 {
  margin: 0 0 26px;
  padding: 0;
  color: #374151;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

body.itemid-1628 .tt-platform-guide-section h2 span {
  display: inline;
  color: transparent;
  background: linear-gradient(90deg, #0071bb, #65b45c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Intro copy */
body.itemid-1628 .tt-platform-guide-intro {
  max-width: 960px;
  margin: 0 auto 28px;
}

body.itemid-1628 .tt-platform-guide-intro p {
  margin: 0 0 16px;
  padding: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-guide-intro p:last-child {
  margin-bottom: 0;
}

/* Desktop tabs */
body.itemid-1628 .tt-platform-guide-tabs {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid rgba(95, 102, 112, 0.22);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.itemid-1628 .tt-platform-guide-tab {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 9px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.itemid-1628 .tt-platform-guide-tab:hover,
body.itemid-1628 .tt-platform-guide-tab:focus {
  color: #087aa5;
  outline: none;
}

body.itemid-1628 .tt-platform-guide-tab.is-active {
  color: #4b5563;
  border-bottom-color: #4b5563;
  font-weight: 700;
}

/* Panels */
body.itemid-1628 .tt-platform-guide-panels {
  width: 100%;
}

body.itemid-1628 .tt-platform-guide-panel {
  width: 100%;
}

body.itemid-1628 .tt-platform-guide-panel[hidden] {
  display: none !important;
}

body.itemid-1628 .tt-platform-guide-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 22px;
  border: 1px solid rgba(95, 102, 112, 0.16);
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

body.itemid-1628 .tt-platform-guide-image-secondary {
  margin-top: 26px;
}

body.itemid-1628 .tt-platform-guide-copy {
  max-width: 960px;
  margin: 0 auto;
}

body.itemid-1628 .tt-platform-guide-copy p {
  margin: 0 0 16px;
  padding: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-guide-copy p:last-child {
  margin-bottom: 0;
}

body.itemid-1628 .tt-platform-guide-copy a {
  color: #087aa5;
  font-weight: 700;
  text-decoration: underline;
}

body.itemid-1628 .tt-platform-guide-copy a:hover,
body.itemid-1628 .tt-platform-guide-copy a:focus {
  color: #006f94;
}


/* =========================================================
   Guide help note
   ========================================================= */

body.itemid-1628 .tt-platform-guide-help {
  width: 100%;
  max-width: 1080px;
  margin: -32px auto 54px;
  padding: 0 28px;
  box-sizing: border-box;
  text-align: center;
}

body.itemid-1628 .tt-platform-guide-help p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-guide-help a {
  color: #2f78bd;
  font-weight: 700;
  text-decoration: none;
}

body.itemid-1628 .tt-platform-guide-help a:hover,
body.itemid-1628 .tt-platform-guide-help a:focus {
  color: #2469aa;
  text-decoration: underline;
}


/* =========================================================
   Disclaimer section
   ========================================================= */

body.itemid-1628 .tt-platform-disclaimer-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 34px;
  padding: 30px 34px 32px;
  background: #e6fbf5;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(38, 50, 56, 0.08);
  box-sizing: border-box;
}

body.itemid-1628 .tt-platform-disclaimer-content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

body.itemid-1628 .tt-platform-disclaimer-content h2 {
  margin: 0 0 16px;
  color: #374151;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

body.itemid-1628 .tt-platform-disclaimer-content p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

body.itemid-1628 .tt-platform-disclaimer-content p:last-child {
  margin-bottom: 0;
}

/* Remove accidental empty paragraph after disclaimer */
body.itemid-1628 .tt-platform-disclaimer-section + p {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}


/* =========================================================
   Mobile styles
   ========================================================= */

@media (max-width: 767.98px) {
  body.itemid-1628 .tt-platform-tutorial-page {
    margin-top: -14px;
    padding: 0 14px;
  }

  body.itemid-1628 .tt-platform-tutorial-page .resource_header {
    margin-bottom: 8px;
  }

  /* Format section */
  body.itemid-1628 .tt-platform-format-section {
    margin-bottom: 36px;
  }

  body.itemid-1628 .tt-platform-format-section h2 {
    margin-bottom: 12px;
    font-size: 27px;
    line-height: 1.25;
  }

  body.itemid-1628 .tt-platform-format-intro {
    max-width: 420px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  body.itemid-1628 .tt-platform-format-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
  }

  body.itemid-1628 .tt-platform-format-card {
    min-height: 0;
    padding: 28px 22px 24px;
  }

  body.itemid-1628 .tt-platform-format-icon {
    width: 110px;
    height: 100px;
    margin-bottom: 16px;
  }

  body.itemid-1628 .tt-platform-format-icon::before {
    width: 98px;
    height: 98px;
    background-size: 98px 98px;
  }

  body.itemid-1628 .tt-platform-format-card strong {
    font-size: 21px;
  }

  body.itemid-1628 .tt-platform-card-copy {
    margin-bottom: 22px;
    font-size: 15px;
  }

  /* Video section */
  body.itemid-1628 .tt-platform-video-section {
    margin-bottom: 42px;
    padding: 28px 16px 34px;
    border-radius: 8px;
    scroll-margin-top: 105px;
  }

  body.itemid-1628 .tt-platform-video-section h2 {
    margin-bottom: 20px;
    font-size: 27px;
    line-height: 1.25;
  }

  body.itemid-1628 .tt-platform-video-frame {
    max-width: 100%;
  }

  /* PDF section */
  body.itemid-1628 .tt-platform-pdf-section {
    margin-bottom: 42px;
    padding: 28px 18px 32px;
    scroll-margin-top: 105px;
  }

  body.itemid-1628 .tt-platform-pdf-section h2 {
    margin-bottom: 20px;
    font-size: 27px;
    line-height: 1.25;
  }

  body.itemid-1628 .tt-platform-pdf-content {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }

  body.itemid-1628 .tt-platform-pdf-content p {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
  }

  body.itemid-1628 .tt-platform-pdf-button {
    min-width: 170px;
    min-height: 52px;
    font-size: 15px;
  }

  /* Guide section */
  body.itemid-1628 .tt-platform-guide-section {
    margin-bottom: 42px;
    padding: 28px 18px 32px;
    scroll-margin-top: 105px;
  }

  body.itemid-1628 .tt-platform-guide-section h2 {
    margin-bottom: 22px;
    font-size: 27px;
    line-height: 1.25;
  }

  body.itemid-1628 .tt-platform-guide-intro {
    margin-bottom: 24px;
  }

  body.itemid-1628 .tt-platform-guide-intro p,
  body.itemid-1628 .tt-platform-guide-copy p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Mobile guide tabs - wrapped buttons instead of slider */
  body.itemid-1628 .tt-platform-guide-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    border-bottom: 0;
    overflow: visible;
  }

  body.itemid-1628 .tt-platform-guide-tab {
    flex: 0 1 calc(33.333% - 8px);
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid #e6dec8;
    border-radius: 999px;
    background: #ffffff;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 42px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(38, 50, 56, 0.06);
    box-sizing: border-box;
  }

  body.itemid-1628 .tt-platform-guide-tab:hover,
  body.itemid-1628 .tt-platform-guide-tab:focus {
    color: #087aa5;
    border-color: #bdddea;
    background: #ffffff;
    outline: none;
  }

  body.itemid-1628 .tt-platform-guide-tab.is-active {
    background: #fff7df;
    border-color: #f2a21e;
    color: #374151;
    box-shadow: 0 3px 9px rgba(242, 162, 30, 0.18);
  }

  body.itemid-1628 .tt-platform-guide-tab.is-active::after {
    display: none;
  }

  body.itemid-1628 .tt-platform-guide-image {
    margin-bottom: 20px;
  }

  body.itemid-1628 .tt-platform-guide-image-secondary {
    margin-top: 24px;
  }

  /* Guide help note */
  body.itemid-1628 .tt-platform-guide-help {
    margin: -24px auto 42px;
    padding: 0 18px;
  }

  body.itemid-1628 .tt-platform-guide-help p {
    font-size: 15px;
    line-height: 1.55;
  }

  /* Disclaimer */
  body.itemid-1628 .tt-platform-disclaimer-section {
    margin-bottom: 28px;
    padding: 26px 20px 30px;
  }

  body.itemid-1628 .tt-platform-disclaimer-content h2 {
    margin-bottom: 14px;
    font-size: 24px;
  }

  body.itemid-1628 .tt-platform-disclaimer-content p {
    font-size: 15px;
    line-height: 1.55;
  }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media (max-width: 479.98px) {
  body.itemid-1628 .tt-platform-guide-tab {
    flex: 0 1 calc(50% - 6px);
    font-size: 13.5px;
    padding: 0 8px;
  }
}