:root{--color-primary:#69bd45;--color-secondary:#007ab8;--color-tertiary:#1ea4a9;--color-state:#4b7e2b;--color-state-hover:#3c6721;--color-state-focus:#3c6721;--color-state-active:#30541a;--color-state-highlight:#f6f9d7;--color-state-highlight-neutral:var(--color-neutral-3);--color-state-disabled:var(--color-neutral-5);--color-neutral-1:#fff;--color-neutral-2:#fafafa;--color-neutral-3:#f7f7f7;--color-neutral-4:#e6e4e4;--color-neutral-5:#c7c7c7;--color-neutral-6:#767676;--color-neutral-7:#262626;--color-background:var(--color-neutral-1);--color-border:var(--color-neutral-5);--color-text:var(--color-neutral-7);--color-text-disabled:var(--color-neutral-5);--color-text-hint:var(--color-neutral-6);--link-color:var(--color-state);--link-color-hover:var(--color-state-hover);--nav-bg-color:#fff;--nav-text-color:var(--color-text);--footer-bg-color:#fff;--footer-text-color:var(--color-text);--footer-text-color-hover:var(--footer-text-color);--btn-accent-color:var(--color-state);--btn-accent-color-active:var(--color-state-active);--btn-accent-color-focus:var(--color-state-focus);--btn-accent-color-disabled:var(--color-state-disabled);--btn-prim-accent-color:var(--color-state);--btn-prim-accent-color-active:var(--color-state-active);--btn-prim-accent-color-focus:var(--color-state-focus);--btn-prim-accent-color-disabled:var(--color-state-disabled)}:root{--nav-bg-color: #FAF8F0;--nav-text-color: #3e4156;--color-primary: #d37f66;--btn-prim-accent-color: #d37f66;--btn-accent-color: #3e4156;--link-color: #3e4156;--color-state: #3e4156;--color-text: #3e4156;--footer-bg-color: #222222;--footer-text-color: #ffffff;--btn-prim-accent-color-focus: #c9755c;--btn-prim-accent-color-active: #b8644b;--btn-accent-color-focus: #34374c;--btn-accent-color-active: #23263b;--link-color-hover: #34374c;--color-state-hover: #34374c;--color-state-focus: #34374c;--color-state-active: #23263b;--footer-text-color-hover: #f5f5f5;}
* {box-sizing: border-box;margin: 0;padding: 0;}
body {
  background-color: #FAF8F0;
  margin: 0;
  padding: 0;
}
.no-overflow {margin: -1px; padding: 0;}
.tui-core_auth-loginNav__image {height: 100%;}
body.loggedin .guest-only {
  display: none !important;
}

body.notloggedin .member-only {
  display: none !important;
}

.member-only {
  padding-top: 1em;
}

/* Hide English menu item for Spanish pages */
html[lang="es"] #totaramenuitem38 {  /* Curriculum */
    display: none !important;
}

/* Hide Spanish menu item for English pages */
html[lang="en"] #totaramenuitem39 {  /* Plan de Estudios */
    display: none !important;
}

/* Hide Footer */
.page-footer-poweredby, .tui-core_auth-footer {
    display: none !important;
}

a[data-guest-link] {
    display: inline-block;       /* Makes it behave like a button */
    padding: 5px 25px;
    background-color: #D37F66;
    border: 1px solid #D37F66;
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.5rem;
    margin-top: 15px;
}

a[data-guest-link]:hover {
    text-decoration: none;
    color: #fff;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
}

/* Hide restricted activity buttons */
a.btn-danger, .btn-danger {
    display: none !important;
}

body#page-login-index #custom-footer {
  display: none !important;
}
body.loggedin .lin {
  display: none !important;
}
body.notloggedin .nolin {
  display: none !important;
}

body.notloggedin #totaramenuitem16{
  display: none !important;
}

#collapse-container-24 #section-0 {
    display: none;
}

/* Blocks */
#block-region-side-post .block {
   background-color: #E6A48F !important;
}

/* Header */

.totaraNav_prim--side .usermenu .login a {
   padding: 5px 15px;
   border: 1px solid #3E4156;
   border-radius: 15px;
}

.breadcrumb-nav,
.breadcrumb,
.breadcrumbs {
    display: none !important;
}

#page-header .breadcrumb-nav .breadcrumb > li:first-of-type::before {
    display: none;  /* hides the bullet */
}
#page-header .breadcrumb-nav .breadcrumb {
   background-color: rgba(230, 164, 143, 0.15);
   padding: 8px 15px 8px 15px;
}

/* Footer */

#page-footer .container-fluid {
  max-width: 100% !important;
}

#page-footer, #page-footer .container-fluid, #page-footer .page-footer-main-content {
  padding: 0 !important;
}

#custom-footer {
  background: #3c3d54;
  padding: 5rem;
  text-align: center;
  color: #fff;
}

.custom-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo {
  display: block;
  margin: 0 auto 2rem;
}
.footer-nav {
  margin: 3rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* spacing between links on desktop */
}
.footer-nav-contact {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer-nav a, .footer-nav-contact a {
  color: #fff;
  text-decoration: underline;
}
/* Stack vertically on small screens */
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* smaller vertical spacing */
  }

  .footer-nav a {
    display: block;
  }
}
.social-links {
  margin-top: 1.5rem;
  display: none !important;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0.5rem;
  border-radius: 50%;
  background: #fff;
  color: #3c3d54 !important;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.social-links a:hover {
  background: #ddd;
  color: #3c3d54;
  text-decoration: none;
}

/* Hero blocks */



/* Homepage - Hero */

  .hero-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #2f3448;
    color: #ffffff;
    height: 100%;
    width: 100%;
  }
  .hero-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    min-height: 100%;
    align-items: center;
  }
  .hero-text {
    flex: 1 1 50%;
    padding: 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  .hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 90%;
  }
  .hero-image {
    flex: 1 1 50%;
    height: 100%;
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 768px) {
    .hero-text,
    .hero-image {
      flex: 1 1 100%;
    }
    .hero-text {
      padding: 2rem 1.5rem;
    }
    .hero-text h1 {
      font-size: 2.25rem;
    }
    .hero-text p {
      font-size: 1.125rem;
    }
    .hero-image {
      min-height: 500px;
    }
  }

/* Homepage - section 2 */

.training-section {
    font-family: Helvetica, Arial, sans-serif;
    padding: 5rem 2rem;
    box-sizing: border-box;
  }
  .training-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  .training-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
  }
  .training-left,
  .training-right {
    flex: 1 1 300px;
  }
  .training-left h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333344;
    margin: 0 0 1rem 0;
  }
  .training-right ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
  }
  .training-right ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2em;
    color: #333344;
  }
  .training-right ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333344;
    font-weight: bold;
  }
  .training-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .training-buttons a {
    padding: 5px 20px 1px;
    border-radius: 24px;
    font-size: 1.75rem;
    text-decoration: none;
    display: inline-block;
  }
  .btn-primary {
    background-color: #d87e67;
    color: white;
    border: none;
  }
  .btn-primary:hover {
    background-color: #d87e67;
    text-decoration: none;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
  }
  .btn-outline {
    border: 2px solid #333344;
    color: #333344;
    background-color: transparent;
  }
  .btn-outline:hover {
    text-decoration: none;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
  }
  @media (max-width: 768px) {
    .training-grid {
      flex-direction: column;
    }
    .training-buttons {
      flex-direction: column;
      align-items: stretch;
    }
  }

/* Homepage  - Course block */
.popular-courses-container {
     width: 100%;
     background: #8BB19C;
}

.popular-courses {
     max-width: 100%;
     margin: 0 auto;
     padding: 1.5em 0 0 3em;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
}

.popular-courses-link {
  padding: .5em 3em 1.75em;
}

.popular-courses h2 {
     font-size: 2.5rem;
     margin: 0;
     color: #3E4156;
     text-align: left;
     margin-bottom: 0.25em !important;
}

.see-all-courses {
     font-size: 1.75rem;
     color: #3E4156;
     text-align: left;
     text-decoration: underline;
}

.see-all-courses:hover {
     color: #d87e67;
}

.course-rotator {
    width: 100%;
    background: #8bb19c;
    padding: 2rem 0;
}

.course-rotator .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.course-rotator .viewport {
    overflow: hidden;
}

.course-rotator .track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.course-rotator .slide {
    flex: 0 0 calc(33.333% - 13.333px);
    box-sizing: border-box;
    background: #3E4156;
    border-radius: 8px;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 6px 6px 0 0;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.slide:hover img {
    opacity: 0.7;
}

.slide .slide-txt {
    padding: 1rem;
    text-align: left;
}

.slide h3 {
    font-size: 1.85rem !important;
    margin: 0.5rem 0 !important;
    color: #f4f1E0;
}

.slide p {
    font-size: 1.25rem !important;
    color: #f4f1E0;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #3e4156;
    color: #FAF7E4;
    border: 2px solid #3e4156;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: none; /* hidden by default, will show if slides>3 */
}

.nav-arrow:hover {
    background: #FAF7E4;
    color: #3e4156;
    border: 2px solid #3e4156;
}

.nav-arrow.left { left: -22px; }
.nav-arrow.right { right: -22px; }

/* Tablet - 2 slides + 25% peek */
@media (max-width: 900px) {
  .course-rotator .slide {
    flex: 0 0 45%; /* 2 slides + peek */
    margin-right: 10px;
  }
}

/* Mobile - 1 slide + 25% peek */
@media (max-width: 600px) {
  .course-rotator .slide {
    flex: 0 0 75%; /* 1 slide + peek */
    margin-right: 10px;
  }

  .nav-arrow.left,
  .nav-arrow.right {
    display: none !important;
  }
}

/* =========================================================
   Homepage - Why Join
   ========================================================= */

.why-join-section {
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  border-top: 5px solid #e6a48f;
  border-bottom: 5px solid #e6a48f;
  padding: 4rem 1rem;
  text-align: center;
  overflow: visible;
}

.why-join-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why-join-section h2 {
  font-size: 2.5rem;
  margin: 0 0 2rem;
  color: #3E4156;
  text-align: left;
}

/* Layout */
.why-join-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 0 auto;
  padding: 1rem 0;
  overflow: visible;
}

/* Circle Cards */
.why-join-item {
  width: 280px;
  height: 280px;
  flex: 0 0 280px;

  background-color: #e6a48f;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 1.25rem;
  box-sizing: border-box;

  transition: transform 0.3s ease;
}

.why-join-item:hover {
  transform: scale(1.05);
}

.why-join-item img {
  width: 110px;
  height: auto;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.why-join-item:hover img {
  transform: scale(1.1);
}

.why-join-item h4 {
  font-size: 1.25rem;
  line-height: 1.2;
  color: #2f3448;
  margin: 0 0 0.5rem;
  max-width: 85%;
}

.why-join-item p {
  font-size: 1rem;
  line-height: 1.25;
  color: #2f3448;
  margin: 0;
  max-width: 85%;
}

/* Tablet */
@media (max-width: 1024px) {

  .why-join-item {
    width: 220px;
    height: 220px;
    flex-basis: 220px;
    padding: 1rem;
  }

  .why-join-item img {
    width: 85px;
  }

  .why-join-item h4 {
    font-size: 0.9rem;
  }

  .why-join-item p {
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 640px) {

  .why-join-section h2 {
    text-align: center;
    font-size: 2rem;
  }

  .why-join-grid {
    gap: 1rem;
  }

  .why-join-item {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
    padding: 0.75rem;
  }

  .why-join-item img {
    width: 55px;
    margin-bottom: 0.35rem;
  }

  .why-join-item h4 {
    font-size: 0.8rem;
    line-height: 1.15;
    margin-bottom: 0.25rem;
  }

  .why-join-item p {
    font-size: 0.75rem;
    line-height: 1.2;
    max-width: 95%;
  }
}

/* Small Mobile - 1 bubble per row */
@media (max-width: 400px) {
  .why-join-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .why-join-item {
    width: 230px;
    height: 230px;
    flex: 0 0 230px;
    padding: 1rem;
  }

  .why-join-item img {
    width: 80px;
  }

  .why-join-item h4 {
    font-size: 1rem;
    line-height: 1.15;
  }

  .why-join-item p {
    font-size: 0.9rem;
    line-height: 1.2;
    max-width: 88%;
  }
}

/* homepage - infographs */

.infograph-wrapper {
  width: 100%;
  border-bottom: 5px solid #d37f66;
}

.infograph-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .infograph-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
  }

  .infograph-row img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  @media (max-width: 900px) {
    .infograph-row {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .infograph-row {
      grid-template-columns: 1fr;
    }
  }

/* Homepage - testimonials */
.testimonials-section {
  padding: 3rem 1rem;
  font-family: Helvetica, Arial, sans-serif;
}

.testimonials-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  margin: 0;
  color: #3E4156;
  text-align: left; /* Keep heading left-aligned */
}

/* Slick-compatible grid */
.testimonial-grid.slick-carousel {
  margin-top: 5rem;
  margin-bottom: 4rem;
}

/* Slide wrapper: no max-width, use padding for spacing */
.testimonial-grid.slick-carousel .testimonial-box-wrapper {
  flex: 0 0 calc(33.3333% - 20px); /* 3 slides per row minus spacing */
  margin: 0 10px; /* 20px gap total */
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  height: 100% !important; /* Ensure wrapper stretches */
}

/* Slick track: flex */
.testimonial-grid.slick-carousel .slick-track {
  display: flex !important;
  justify-content: center;
  align-items: stretch !important; /* Stretch slides to equal height */
}

/* Ensure slides don't shrink and stretch */
.testimonial-grid.slick-carousel .slick-slide {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

/* Testimonial box fills wrapper */
.testimonial-box {
  background-color: #f2D5C3;
  border-radius: 10px;
  padding: 4rem 1.5rem 1.5rem;
  font-size: 1.125rem;
  font-style: italic;
  color: #3E4156;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* quote top, author bottom */
  flex: 1 1 auto !important;
  height: 100% !important;
  position: relative;
  z-index: 0;
}

.testimonial-box p {
  font-size: 1.5rem;
}

/* Flex layout for author + image */
.testimonial-author-wrapper {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

/* Circular image */
.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Author text stays the same */
.testimonial-author-text {
  font-size: 1.5rem;
  font-style: italic;
  color: #3E4156;
}

/* Quote icon adjustments */
.testimonial-box-wrapper .quote-icon {
  font-family: helvetica;
  position: relative; /* relative so it doesn't get cut off */
  font-size: 8em;
  color: #3E4156;
  line-height: 1;
  margin-bottom: -10rem;
  z-index: 1;
  text-align: left;
}

/* Position dots at the bottom */
.testimonial-grid .slick-dots {
  bottom: -40px; /* adjust as needed */
}

/* Reset default button */
.testimonial-grid .slick-dots li button:before {
  content: '';
}

/* Inactive dot */
.testimonial-grid .slick-dots li button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F2D5C3;
  transition: all 0.3s ease;
  margin: 0 6px;
  padding: 0;
}

/* Active dot */
.testimonial-grid .slick-dots li.slick-active button {
  background: #3E4156;
  transform: scale(1.2); /* 20% larger */
}

/* Slick height fix */
.testimonial-grid.slick-carousel .slick-list {
  display: flex !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .testimonial-box-wrapper .quote-icon {
    font-size: 5rem;
    margin-bottom: -2rem;
  }

  .testimonial-grid.slick-carousel .testimonial-box-wrapper {
    flex: 1 1 100% !important;
    margin: 0 auto 2rem;
    height: auto !important;
  }

  .testimonial-box {
    height: auto !important;
    justify-content: flex-start;
  }
}

/* Homepage - Explore block */

.explore-section {
    color: #faf7e2;
    padding: 2rem;
    display: flex;
    justify-content: center;
  }

  .explore-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #2f3448;
  }

  .explore-text {
    flex: 1 1 50%;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .explore-text h2 {
    font-size: 2.75rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2rem;
  }

.explore-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0;
  }
  .explore-buttons a {
    padding: 5px 20px;
    border-radius: 24px;
    font-size: 1.75rem;
    text-decoration: none;
    display: inline-block;
  }
  .explore-buttons .btn-primary {
    background-color: #d37f66;
    color: #faf7e2;
    border: 2px solid #d37f66;
  }
  .explore-buttons .btn-primary:hover {
    background-color: #faf7e2;
    color: #d37f66;
  }
  .explore-buttons .btn-outline {
    border: 2px solid #faf7e2;
    color: #faf7e2;
    background-color: transparent;
  }
  .explore-buttons .btn-outline:hover {
    background-color: #faf7e2;
    color: #d37f66;
    border: 2px solid #d37f66;
  }
  @media (max-width: 768px) {
    .explore-buttons {
      flex-direction: column;
      align-items: stretch;
    }
  }

  .explore-image {
    flex: 1 1 50%;
    margin: 0;
    padding: 0;
    display: flex;
  }

  .explore-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  @media (max-width: 768px) {
    .explore-text,
    .explore-image {
      flex: 1 1 100%;
    }

    .explore-text {
      padding: 2rem 1.5rem;
    }

    .explore-text h2 {
      font-size: 2rem;
    }

    .explore-image img {
      border-radius: 0 0 20px 20px;
      min-height: 300px;
    }
  }

/* Partner section */

.partners-section {
  padding: 3rem 1rem;
  font-family: Helvetica, Arial, sans-serif;
}

.partners-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.partners-header {
  text-align: left;
  margin-bottom: 2rem;
  color: #3E4156;
}

.partners-header h2 {
  font-size: 2rem;
  margin: 0 !important;
  color: #3E4156;
  text-align: left;
}

.partners-header h3 {
  font-size: 1.5rem !important;
  font-weight: normal !important;
  margin: 0 !important;
}

.partners-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Ensure vertical alignment */
  justify-content: space-between;
  gap: 3rem;
}

.partners-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-image img {
  max-width: 100% !important;
  width: 400px; /* Roughly half original size */
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-on-scroll.visible img {
  opacity: 1;
  transform: translateY(0);
}

.partners-content {
  flex: 1 1 50%;
  color: #3E4156;
  display: flex;
  align-items: center;
}

.partners-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 1.5rem;
  margin: 0;
}

.partners-content li {
  margin-bottom: 1rem;
}

/* Homepage -  About */

.about-section {
  padding: 3rem 1rem;
  font-family: Helvetica, Arial, sans-serif;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2rem;
  color: #3E4156;
  margin-bottom: 2rem;
}

.about-box {
  position: relative;
  background-image: var(--img-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 3 / 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.description-wrapper {
  max-width: 90%;
}

.one-third .description-wrapper {
  max-width: 100%;
}

@media (max-width: 768px) {
  .description-wrapper {
    max-width: 100%;
  }
}

/* Hover blur and dark overlay */
.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  transition: background-color 0.4s ease, filter 0.4s ease;
  z-index: 1;
}

.about-box:hover::before {
  background-color: rgba(0, 0, 0, 0.45);
  filter: blur(2px);
  cursor: pointer;
}

.about-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
  pointer-events: none;
}

.about-overlay h3 {
  margin: 0 !important;
  font-size: 2.5rem !important;
  font-weight: bold;
  color: #fff;
}

.about-overlay p {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  color: #fff;
}

/* Layout widths */
.full-width {
  width: 100%;
}

.about-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.two-thirds {
  flex: 0 0 66.666%;
}

.one-third {
  flex: 0 0 31.333%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
  }

  .two-thirds,
  .one-third {
    flex: 1 1 100%;
  }
}

/* Homepage - FAQs */

.faq-section {
  padding: 3rem 1rem;
  font-family: Helvetica, Arial, sans-serif;
  color: #3E4156;
}
.faq-section a {
  text-decoration: underline;
}
.faq-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.faq-left {
  flex: 1 1 30%;
  min-width: 250px;
}

.faq-left h2 {
  color: #3E4156;
  line-height: 1.2;
  text-align: left;
}

.faq-right {
  flex: 1 1 65%;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h5 {
  font-size: 2rem !important;
  color: #3E4156;
  margin-bottom: 0.5rem !important;
  font-weight: bold !important;
}

.faq-item p,
.faq-item ul {
  font-size: 1.5rem  !important;
  color: #3E4156;
  margin: 0 0 0.5rem 0 !important;
}

.faq-item ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.faq-section hr {
  border: none !important;
  border-top: 1px solid #ccc !important;
  margin: 1.5rem 0 !important;
}

@media (max-width: 768px) {
  .faq-container {
    flex-direction: column;
  }

  .faq-left,
  .faq-right {
    flex: 1 1 100%;
  }

  .faq-left h2 {
    font-size: 1.5rem;
    text-align: left;
  }
}

/* Dashboard page */

/* Dashboard Hero */
#block-totara-featured-links-tile-4 {
  height: 430px !important;
}

.block-region .block {
  margin: 10px auto;
}

#block-totara-featured-links-tile-4 .block-totara-featured-links-content-bottom {
    background: rgba(255, 255, 255, 0.2) !important;
    background-image: none !important;
    padding: 2rem 3rem !important;
    position: relative;
    z-index: 1;
}

#block-totara-featured-links-tile-4 .block-totara-featured-links-content-bottom::before {
    background: rgba(255, 255, 255, 0.2) !important;
}

#block-totara-featured-links-tile-4 .block-totara-featured-links-content-bottom h3,
#block-totara-featured-links-tile-4 .block-totara-featured-links-content-bottom p {
    color: #333344 !important;
    margin-bottom: 0.5rem !important;
}

.block_calendar_upcoming {
   background-color: #E6A48F !important;
}

/* Courses */

/* Hide breadcrumb only on course 24 */
body.course-24 .breadcrumb-nav {
    display: none !important;
}

#fte-course-header > div {
  min-height: 350px !important;
}

#fte-course-header > div > div {
  max-width: 50% !important;
}

@media (max-width: 768px) {
  #fte-course-header > div > div {
    max-width: 100% !important;
  }
}

.course-header-btn {
  padding: 5px 10px;
  background-color: #D37F66;
  border: 1px solid #D37F66;
  color: #fff;
  border-radius: 15px;
  font-size: 1.85rem;
}

.course-header-btn:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
}

.generaltable > tbody > tr:nth-of-type(2n+1) {
  background-color: rgba(230, 164, 143, 0.15);
}
.prog-course-launch input {
  background-color: #D37F66;
  border: 1px solid #D37F66;
  color: #FAF7E4;
}

/* === Curriculum Feature Block === */

.curriculum-section {
   width: 100%;
   max-width: 1000px;
   margin: 0 auto;
 }
.curriculum-feature-block {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0px 2px 8px 1px rgba(0,0,0,0.3);
  -webkit-box-shadow: 0px 2px 8px 1px rgba(0,0,0,0.3);
  -moz-box-shadow: 0px 2px 8px 1px rgba(0,0,0,0.3);
  gap: 1rem;
  flex-wrap: wrap;
}

.curriculum-feature-item {
  flex: 1;
  min-width: 220px;
  padding: 0 1rem;
  position: relative;
  text-align: center;
}

/* Titles and text */
.curriculum-feature-title {
  font-size: 2.5rem !important;
  font-weight: 600;
  color: #2A2C3C;
  margin-bottom: 0.25rem;
}

.curriculum-feature-text {
  font-size: 1.5rem;
  color: #2A2C3C;
  margin: 0;
}

/* Separator for desktop */
.curriculum-feature-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #ddd;
}

/* Mobile stack */
@media (max-width: 768px) {
  .curriculum-feature-block {
    flex-direction: column;
    padding: 1.5rem;
  }
  .curriculum-feature-item {
    padding: 1rem 0;
  }
  .curriculum-feature-item:not(:last-child)::after {
    position: static;
    display: block;
    width: 100%;
    height: 1px;
    margin: 1rem 0;
    background: #ddd;
  }
}

/* === Skills Section === */
.skills-section {
  margin: 2rem 0;
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d3a;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.skills-list-wrapper {
  flex: 0.5;
}

.skill-pill {
  background: #9bb8ad;
  color: #2A2C3C;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0.5rem 1.5rem;
  border-radius: 15px;
  display: inline-block;
  white-space: nowrap;
  margin: 8px 5px;
}

.certificate-section {
  padding: 4rem 0;
  position: relative;
  overflow: visible; /* allow image to break out */
}

.certificate-content {
  background-color: rgba(230, 164, 143, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  gap: 2rem;
  border-radius: 15px;
}

.certificate-text {
  padding: 20px;
  flex: 1;
}

.certificate-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.certificate-image img {
  max-width: 100%;
  height: auto;
  margin-top: -4rem;   /* pull upward */
  margin-bottom: -4rem; /* pull downward */
}

/* Mobile */
@media (max-width: 768px) {
  .certificate-content {
    flex-direction: column;
    text-align: center;
  }

  .certificate-image img {
    margin-top: -2rem;
    margin-bottom: -2rem;
  }
}

/* -------------------------------
   Curriculum Header Layout
   Header + Summary stay in one column
   Enroll button aligns right
--------------------------------*/
.curriculum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.curriculum-text {
  flex: 0.5; /* text takes up left side */
}

.curriculum-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d2d3a;
  margin: 0 0 0.5rem;
}

.curriculum-text p {
  margin: 0;
  color: #333;
}

/* Enroll button sits on the right */
.curriculum-header .enroll-btn {
  margin-left: 2rem;
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  background: #D37F66;
  color: #fff;
  border-radius: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.curriculum-header .enroll-btn:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
}


/* Enroll button sits on the right */
.program-card .enroll-btn {
  margin: 2rem 0;
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  background: #D37F66;
  color: #fff;
  border-radius: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.program-card .enroll-btn:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
}

/* Mobile: stack button below text */
@media (max-width: 768px) {
  .curriculum-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .curriculum-header .enroll-btn {
    margin: 1rem 0 0;
    align-self: flex-start;
  }

  .guest-only {
    margin-top: 2rem;
  }
}

.program-card {
  border-top: 1px solid #ddd;
  padding: 2rem 0;
}

.program-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.program-subtitle {
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  color: #3E4156;
  margin-bottom: 0.75rem;
}

.program-meta {
  display: flex;
  gap: 1rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #444;
}

.program-meta span {
   color: #fff;
   background-color: #3E4156;
   border-radius: 15px;
   font-weight: 600;
   padding: 0.5rem 1.5rem;
}

.program-meta span i {
   margin: 0 5px 2px 0;
}

.program-card h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.program-card ul {
  list-style: disc;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.5;
}

#inst210 .no-overflow {
   padding: 15px;
}


/* Course layout */

@supports not (background: paint(something)) {
  .format-topics_extended .progress-circle {
    background: conic-gradient(
      #369a66 var(--levelprogress),   /* ✅ new fill color */
      #e9ecef var(--levelprogress)    /* existing remainder (background track) */
    ) !important;
  }
}

.progress-bar {
   background-color: #369a66 !important;
}

.block-totara-featured-links-layout.fullwidth .block-totara-featured-links-content h3 {
  padding: 10px 20px 10px;
  margin-bottom: 0 !important;
}

.block-totara-featured-links-layout.fullwidth .block-totara-featured-links-content p {
  padding: 10px 20px;
}


.topics-extended-activity-list .activity-done {
  display: none !important;
}

.topics-extended-activity-wrapper .no-overflow {
   overflow: visible;
}

.topics-extended-activity-content-title {
   width: 100%;
}

/* Make two items per row on medium+ screens */
.activities-wrapper .topics-extended-activity-list li.topics-extended-activity-wrapper {
    flex: 0 0 50% !important;  /* take 50% width */
    max-width: 50% !important;
    display: flex;              /* make li a flex container */
    flex-direction: column;     /* stack inner content vertically */
}

/* Stretch inner content to match height */
.activities-wrapper .topics-extended-activity-list li.topics-extended-activity-wrapper .topics-extended-activity-main {
    flex: 1 1 auto;             /* fill available height */
    display: flex;
    flex-direction: column;     /* keep inner content stacked */
}

/* Stack on mobile */
@media (max-width: 767.98px) {
    .activities-wrapper .topics-extended-activity-list li.topics-extended-activity-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Card styling */
.topics-extended-activity-main {
   border: 1px solid;
   border-color: #e6e4e4;
   border-radius: 1.5rem;
}

/* =========================================================
   LOGO TICKER — TOTARA 18 SAFE VERSION
   Adds smooth infinite scroll animation and prevents clipping
   ========================================================= */

.partners-section,
.partners-columns,
.logo-ticker {
  overflow: visible !important;
}

.logo-ticker {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  z-index: 1;
}

/* --- Track + Animation --- */
.ticker-track {
  display: flex !important;
  width: max-content !important;
  animation: ticker 45s linear infinite !important;
  will-change: transform;
}

/* Duplicate groups for seamless loop */
.ticker-group {
  display: flex;
  gap: 5rem;
}

/* --- Logo styling --- */
.ticker-group img {
  height: 80px;
  width: auto;
  padding: 0 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
  /* filter: grayscale(100%); */
   /* opacity: 0.85; */
}

.ticker-group img:hover {
  transform: scale(1.15);
  cursor: pointer;
   /* filter: grayscale(0%); */
   /* opacity: 1; */
}

/* --- Keyframes animation --- */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) { 
.skills-list-wrapper {
  flex: 1;
}
  .ticker-group img {
    height: 60px;
  }
}

/* --- Prevent Totara's .no-overflow or block containers from hiding animation --- */
.logo-ticker .no-overflow,
.block .logo-ticker,
.block-region .block .logo-ticker {
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Optional: pause ticker on hover */
.logo-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* --- Prevent horizontal scroll --- */
html, body {
  overflow-x: hidden !important;
}
.partners-section,
.partners-container,
.partners-columns,
.logo-ticker {
  overflow-x: clip !important;
}
.ticker-track {
  margin-right: -2px;
}

/* =========================================================
   END LOGO TICKER STYLES
   ========================================================= */

/*== 55193: Hide manual login fields ==*/
.tui-core_auth-login form {
    display: none;
}
/*== END Hide manual login fields ==*/

/*== 56523: Hide profile picture fieldset==*/
#id_moodle_picture {
    display: none
}
/*== END: Hide profile picture fieldset==*/
