.md-button {
    width: 300px; /* Set the desired width */
    text-align: center; /* Center the button text */
}

/* Responsive video embeds */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Language selector buttons on Get Started page */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 90px;
  padding: 14px 10px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: #FF6600;
  background: rgba(255, 102, 0, 0.08);
}

.lang-btn img,
.lang-btn svg {
  width: 36px !important;
  height: 36px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: none !important;
}

.lang-btn span {
  font-size: 0.75rem;
  font-weight: 600;
}

.md-button:hover,
.md-button:focus,
.md-button--primary:hover,
.md-button--primary:focus {
    background-color: #212441 !important;
    border-color: #212441 !important;
    color: #ffffff !important;
}
  
  
  
  /* Align the video to the right */
.video-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}
  
  /* Align the video to the left */
.video-left {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

  /* Large grid cards custom colours */
.md-typeset .grid.cards>ol>li,
.md-typeset .grid.cards>ul>li,
.md-typeset .grid>.card {
  border: 1px solid #8b8686; /* Darker border */
  transition: border .75s,box-shadow .75s
}
  
  
 /* Smaller grid cards custom colours */
 :root {
    --card-bg-light: white;
    --card-bg-dark:  white;
    --card-border-focus-light: black;
    --card-border-focus-dark: #212441;
    
  }
  
  [data-md-color-scheme="default"] {
    --card-bg: var(--card-bg-light);
  }
  
  [data-md-color-scheme="slate"] {
    --card-bg: var(--card-bg-dark);
  }

  
  /*Custom grid card colours*/
  .md-typeset .grid.cards>ol>li,
  .md-typeset .grid.cards>ul>li,
  .md-typeset .grid>.card {
      transition: border .75s,box-shadow .75s;
      background-color: var(--card-bg);

  }

  .md-typeset .grid.cards>ol>li:focus-within,
  .md-typeset .grid.cards>ol>li:hover,
  .md-typeset .grid.cards>ul>li:focus-within,
  .md-typeset .grid.cards>ul>li:hover,
  .md-typeset .grid>.card:focus-within,
  .md-typeset .grid>.card:hover {
      border-color: var(--card-border-focus);
  }
  
.md-nav {    font-size: 0.6rem;  /* Reduces nav font */
    line-height: 1.8; /* Creates space between nav items*/
}

/* Nav: white links, grey bold section headings */
[data-md-color-scheme="slate"] .md-nav__item .md-nav__link {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-nav__item .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav__item .md-nav__link--active {
  color: #FF6600;
}

[data-md-color-scheme="slate"] .md-nav__title {
  color: #888888;
}

/* Sub-links and top-level non-section items bold grey - both modes */
.md-sidebar--primary .md-nav__item--section .md-nav .md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section) > .md-nav__link {
  color: #888888 !important;
  font-weight: bold !important;
}

/* Header logo: larger and hide site title text */
.md-header__button.md-logo img {
  width: 120px;
  height: auto;
}

.md-header__title {
  display: none;
}

/* Hide site name in nav */
.md-nav--primary > .md-nav__title {
  display: none !important;
}

/* Push logo left, search and icons right */
.md-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.md-header__inner .md-header__button.md-logo {
  margin-right: auto;
}

.md-header__inner form.md-search {
  margin-left: auto;
}

/* Light mode: black header, white nav */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #000000;
  --md-accent-fg-color: #FF6600;
  --md-accent-fg-color--transparent: rgba(255, 102, 0, 0.1);
}

/* Light mode nav: white background, dark text */
[data-md-color-scheme="default"] .md-sidebar--primary,
[data-md-color-scheme="default"] .md-sidebar--primary *,
[data-md-color-scheme="default"] .md-sidebar--primary .md-nav,
[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__list,
[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__item,
[data-md-color-scheme="default"] .md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__link {
  color: #222222 !important;
}

[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__title {
  color: #888888 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  font-weight: bold !important;
}

[data-md-color-scheme="default"] .md-nav__item--section > label.md-nav__link {
  color: #000000 !important;
  font-weight: bold !important;
}

[data-md-color-scheme="slate"] .md-nav__item--section > label.md-nav__link {
  color: #ffffff !important;
  font-weight: bold !important;
}

[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__link:hover,
[data-md-color-scheme="default"] .md-sidebar--primary .md-nav__link--active {
  color: #FF6600 !important;
}

/* Dark mode: slate header, black main content */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #27272a;
  --md-primary-fg-color--light: #27272a;
  --md-primary-fg-color--dark: #27272a;
  --md-accent-fg-color: #FF6600;
  --md-accent-fg-color--transparent: rgba(255, 102, 0, 0.1);
  --md-default-bg-color: #0d0d0d;
  --md-default-bg-color--light: #111111;
}

/* Dark mode nav: always black */
[data-md-color-scheme="slate"] .md-sidebar--primary,
[data-md-color-scheme="slate"] .md-sidebar--primary *,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__list,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: #0d0d0d !important;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link {
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__title {
  color: #888888 !important;
  background-color: #0d0d0d !important;
  box-shadow: none !important;
  font-weight: bold !important;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link--active {
  color: #FF6600 !important;
}

/* Footer navigation */
.md-footer,
.md-footer-meta,
.md-footer__inner {
  background-color: var(--md-default-bg-color);
  color: #cccccc;
}

.md-footer__title,
.md-footer__direction {
  color: #cccccc;
}

/* Dark mode: white headings, grey body text, visible links */
[data-md-color-scheme="slate"] {
  --md-typeset-color: #b0b0b0;
  --md-typeset-a-color: #FF6600;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: #FF6600;
}

[data-md-color-scheme="slate"] .md-typeset a:hover {
  color: #ff8533;
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  color: #ffffff;
}