*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  & * { 
    font-family: "Quicksand", sans-serif;
  }
  
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  color: #333;
  background-color: #F2F3F7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  border: none;
  outline: none;
  background-color: inherit;
  color: currentColor;
  cursor: pointer;
}

.container {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 740px;
    padding: 0;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1160px;
  }
}

.wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;

  .content {
    max-width: 737px;
    width: 100%;
  }

  .side {
    padding: 12px 0;
    max-width: 353px;
    flex: 1;
  }
}

@media (width < 1200px) {
  .wrapper {
    .content {
      padding: 15px 0;
    }
  }
}

.login-form__control,
.input__control {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 12px;
  background: #F2F3F7;
  outline: none;
  border: 1px solid #F2F3F7;
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.login-form__control:focus {
  border: 1px solid #224dfb;
}

.input__control--inline {
  display: inline-block;
  margin-right: 10px;
  max-width: 120px;
}

.input__control--inline:first-of-type {
  margin-right: 20px;
  max-width: 162px;
}

.input__control--inline:last-of-type {
  margin-right: 0;
  margin-left: 10px;
}

.btn {
  min-width: 80px;
  padding: 12px 20px;
  border-radius: 50px;

  font-size: 14px;
  font-weight: 700;
  line-height: 17.5px;
  text-align: center;

  color: #FFFFFF;
  background: #1F5BDF;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus,
.btn:active {
  color: #FFFFFF;
  background: #1748b3;
}

.btn-gradient {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(92.9deg, #F600CE 3.02%, #0700FF 99.64%);
  width: 100%;
  padding: 6px 10px;
  border-radius: 50px;
  min-width: 120px;
  overflow: hidden;
  z-index: 1;
  transition: background-size 0.3s ease;
  background-size: 100%;
}
.btn-gradient--disabled {
    background: #B9BDC7;
    color: #DEE3EB;
}
.btn-gradient--disabled:hover {
    cursor: default;
}
    .btn-gradient:hover,
    .btn-gradient:active,
    .btn-gradient:focus {
        background-size: 200%;
    }

.btn--secondary {
  padding: 6px 17.5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  color: #FFFFFF;
  background: #848998;
  border-radius: 6px;
  min-width: 147px;
}
.btn--secondary-disabled {
    background: #E1E6F1 !important;
    cursor: default !important;
}
.btn--secondary-disabled > p{
    color: #BCC5DA;
    cursor: default;
}
.btn--secondary:hover,
.btn--secondary:focus,
.btn--secondary:active {
  background: #535660;
  transition: all 0.3s ease;
}

.btn--submit {
  background-color: #1F5BDF;
}

.btn--submit:hover,
.btn--submit:focus,
.btn--submit:active {
  background: #1748b3;
}

.btn--rect {
  padding: 6px 17.5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  border-radius: 50px;
  width: auto;
}

.ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px dashed #B6BBC4 !important;
}

.ql-container.ql-snow {
  border: none !important;
}

.hero {
  padding: 30px 10px;
  background-color: #B6BBC4;
}
@media (min-width: calc(375px + 2 * 60px)) {
  .hero {
    padding: 30px 60px;
    background-color: #B6BBC4;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding: 66px 95px 60px;
  }
}

.hero--small {
  padding: 40px 0 42px;
  background-color: #D2D2DB;
}

.hero--big {
  padding: 30px 20px;
  background-color: #262A38;
}

@media (min-width: 1200px) {
  .hero--big {
    padding: 50px;
  }
}


.hero__text {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 35px;
  color: #192033;
}

.video-wrapper,
.poster-wrapper {
  max-width: 929px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  aspect-ratio: 16/9;
}

.quill-content {
  padding-bottom: 172px;

  color: #484D5C;
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #192033;
    font-weight: 700;
  }

  h1 {
    font-size: 30px;
    line-height: 37.5px;
    margin-bottom: 29px;
    padding: 31px 0 22px;
    border-bottom: 1px dashed #B6BBC4;
  }

  h2 {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 5px;
  }

  h1+p {
    img {
      margin-bottom: 20px;
    }
  }

  p {
    margin-bottom: 24px;
  }

  .ql-align-center {
    display: flex;
    justify-content: center;
  }

  img {
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    height: auto;
  }
}

.quill-content--lecture {
  padding: 56px 0;

  h2,
  h3:first-of-type {
    font-size: 30px;
    font-weight: 700;
    line-height: 37.5px;
    color: #192033;
    padding-right: 77px;
  }

  p:has(img) {
    padding: 0 94px;
    margin-top: 25px;
    margin-bottom: 28px;
  }

  img {
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    width: fit-content;
    height: auto;
    max-height: 303px;
  }

  h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    margin-bottom: 5px;
    color: #192033;
  }

  p {
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    color: #484D5C;
    margin-bottom: 1rem;
  }

  & .ql-code-block-container {
    & .ql-ui {
      display: none;
    }
  }

  ol {
    padding-left: 3rem;
    margin-bottom: 1rem;
  }

  li[data-list="ordered"] {
    list-style: decimal;
    margin-left: -0.5rem;
    padding-left: 10px;
  }

  li[data-list="ordered"]::marker {
    color: #1F5BDF;
    font-weight: bold;
  }

  li[data-list="bullet"] {
    position: relative;
  }

  li[data-list="bullet"]::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #1F5BDF;
    border-radius: 50%;
    background-image: url('/images/icons/checked.svg');
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
  }

  .ql-code-block-container {
    position: relative;
    background-color: #2d2d2d;
    color: #f8f8f2;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 12px;
    /* 4px 4px 12px 12px; for mac window header styles */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
    margin-top: 12px;
    /* 30px; for mac window header styles */
  }

  /* mac window header styles */
  /* .ql-code-block-container::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, #f6f6f6 0%, #dadada 100%);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    background-image: url('/images/icons/mac.svg');
    background-size: 60px 12px;
    background-position: 8px 4px;
    background-repeat: no-repeat;
  } */
}

.quill-content--application {
  border-bottom: 1px dashed #D6DAE0 !important;
  margin-bottom: 20px;

  h1 {
    padding: 19px 0 36px;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #262A38;
  }

  .ql-align-center {
    display: flex;
    justify-content: center;
  }

  img {
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
  }

  p {
    font-size: 14px;
    font-weight: 500;
    line-height: 25px;
    color: #484D5C;
    margin: 0;
    margin-bottom: 10px;
  }
}

.quill-content--project-description {
  padding: 0;
  
  h1 {
    padding-top: 0;
  }

  p:has(br) {
    margin-bottom: 0;
    line-height: 0;
  }

  img {
    border-radius: 12px;
    overflow: hidden;
    max-width: 371px;
    width: fit-content;
    height: auto;
  }

  h1 + p > img {
    max-width: 100%;
  }
  
  h2 {
    font-size: 22px;

    + p {
      font-size: 18px;
      font-weight: 500;
      line-height: 28px;
    }
  }
  
  h3 {
    font-size: 20px;

    + ol {
      font-size: 14px;
      line-height: 25px;
      margin-bottom: 20px;

      li[data-list="ordered"] {
        list-style: decimal;
        margin-left: 1rem;
        padding-left: 8px;
      }

      li[data-list="bullet"] {
        list-style: disc;
        margin-left: 1.5rem;
      }
    }
  }
  
  h2:last-of-type{
    font-size: 21px;
    line-height: 25px;
    margin-bottom: 1rem;
    
    + p:has(strong) {
      margin-bottom: 0;
    }

    + strong {
      font-size: 16px;
      line-height: 25px;
    }
    
    + p {
      font-size: 14px;
      line-height: 25px;
    }
  }

  p:last-of-type {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px dashed #B6BBC4;
  }
}

.page-section {
  background-color: #FFFFFF;
  padding: 20px 30px;
  border-radius: 12px;
}

.hide-scrollbar {
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE & Edge */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari, Opera */
}

.spinner {
    display: inline-block;
    width: var(--spinner-width);
    height: var(--spinner-height);
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theory {
  padding: 26px 0 13px;
  color: #192033;
  font-weight: 500;

  article {
    h3 {
      font-size: 30px;
      font-weight: 700;
      margin-bottom: 16px;
    }

    h4 {
      font-size: 20px;
      font-weight: 700;
    }

    p {
      font-weight: 500;
      font-size: 18px;
      line-height: 28px;
    }
  }

  section {
    color: #484D5C;
    padding-top: 34px;
    margin-top: 34px;
    border-top: 1px dashed #B6BBC4;

    h3 {
      font-weight: 700;
      font-size: 20px;
      line-height: 25px;
      color: #192033;
    }

    p {
      font-weight: 500;
      font-size: 14px;
      line-height: 25px;
    }

    ul {
      list-style: disc;
      padding-left: 40px;
    }

    ul {
      margin-top: -1rem;
    }

    h4 {
      margin-top: 1rem;
      margin-bottom: 0;
      font-weight: 700;
      font-size: 14px;
      line-height: 25px;
    }
  }
}

math-field::part(mathit) {
  font-family: 'Roboto', sans-serif !important;
}


/*side menu --  start*/

@media (width < 1200px) {
  main {
    .wrapper{
      .content {
        display: block;
      }
      
      .side {
        display: none;

        .ai-assistant {
          display: none;
        }
      }
    }
  }
}

main:has(.side-menu--open) {
  .wrapper{
    .side {
      display: block;
    }

    .content {
      display: none;
    }
  }
}
/*side menu --  end*/
