section p {
    line-height: 1.2;
    text-align: justify;
    text-align-last: start; 
}

.preview {
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 5px;
}

.mobile-slider {
	display: none;
}

/* Блок статистики*/
#facts{
    background-image: url(../images/Ready.png);
    background-size: cover;
}

#facts h1 {
    color: white;
    font-size: 45px;
    margin-top: 0px;
    margin-bottom: 20px;
}

#facts footer{ 
    width: 620px;
    font-size: 20px;
    background: none;
    color: white;
    margin-top: 40px;
    text-align: justify;
}

.facts-blocks {
    width: 700px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.facts-blocks h2 {
    Color: white;
    font-size: 45px;
    font-weight: bold;
    margin: 0;
}

.one-fact-block {
    padding: 15px 25px 0px 25px;
    width: 250px;
    height: 150px;
    background: linear-gradient(#0073E6, #1F407A);
    border-radius: 15px;
    color: white;
}

 /* Блок направлений*/
#direction {
    display: grid;
    grid-template-columns: 45% 55%;
	gap: 20px;
    margin-top: 80px;
    padding: 20px;
}

#direction .direction-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    margin: 0 auto;
    gap: 40px;
}

.direction-info h1 {
    margin-bottom: 20px;
    font-weight: bold;
}

.direction-info .title-list {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.direction-info .custom-list {
    margin-bottom: 30px;
}

.custom-list li {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: justify;
}

.illustrations {
    height: max-content;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.illustrations-block {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    width: 290px;
	height: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #fff;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.illustrations-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(0,115,230,0.1) 0%,
        rgba(0,115,230,0.3) 50%,
        rgba(0,115,230,0.1) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.illustrations-block:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,115,230,0.15);
}

.illustrations-block:hover::before {
    opacity: 1;
    animation: card-glow 0.8s linear;
}

@keyframes card-glow {
    0% {
        transform: rotate(45deg) translate(-30%, -30%);
    }
    100% {
        transform: rotate(45deg) translate(0%, 0%);
    }
}

.illustrations-block h2 {
    font-size: 17px;
    margin: 15px 0 10px;
    font-weight: bold;
    color: #333;
}

.illustrations-block p {
    font-size: 13px;
    color: #666;
}

.illustrations-block #image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/*Образование и карьера*/

.buttons-quotes {
    width: max-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
  }

  .buttons-quotes span {
    margin: 0 20px;
    font-size: var(--font-size-medium);
  }

  .buttons-quotes button {
    padding: 5px 10px;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }

  .buttons-quotes button:hover {
    background-color: var(--primary-color);
  }

  #education h1 {
    text-align: center;
  }

  .quotes-slider {
    position: relative;
    height: 400px;
  }

  .slides-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .quote-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .quote-slide.active {
    opacity: 1;
  }

  .quote-slide .quote-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transform: skew(2deg, 2deg);
  }

  .quote-slide article {
    background: linear-gradient(#0073E6, #1F407A);
    transform: skew(-2deg, -2deg);
    margin: 0px -5% 50px -5%;
  }

  .quote-content blockquote {
    position: relative;
    padding: 40px 80px;
    margin: 0;
    overflow: hidden;
    max-width: 700px;
    text-align: justify;
  }

  .quote-content blockquote footer {
    background: none;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
  }

  .quote-content blockquote::before,
  .quote-content blockquote::after {
    content: '“';
    position: absolute;
    font-size: 105px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
  }

  .quote-content blockquote::before {
    top: -50px;
    left: 25px;
    transform: rotate(180deg);
  }

  .quote-content blockquote::after {
    bottom: -45px;
    right: 30px;
  }

  .quote-content .quote-image img {
    overflow: hidden;
    border-radius: 50%;
    width: 230px;
    height: 230px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin: 0 20px;
  }

  .quote-slide:nth-child(even) .quote-image {
    order: 1;
  }

  @media (max-width: 768px) {
    .quotes-slider {
      height: auto;
      min-height: 500px;
    }

    .quote-content {
      flex-direction: column;
    }

    .quote-content .quote-image img {
      width: 150px;
      height: 150px;
      margin-bottom: 20px;
    }

    .quote-content blockquote {
      padding: 30px 40px;
    }

    .slider-prev,
    .slider-next {
      width: 30px;
      height: 30px;
      font-size: 16px;
    }
  }

/*Работа*/
#companies {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 100px 0 60px 0;
}

#companies .pictures-company {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    grid-template-rows: 133px 133px 133px;
    gap: 15px;
}

.gallery--item:nth-child(1) {
    grid-row-start: 1;
    grid-row-end: 2;
}

.gallery--item:nth-child(2) {
    grid-row-start: 1;
    grid-row-end: 1;
}

.gallery--item:nth-child(3) {
    grid-row-start: 2;
    grid-row-end: 2;
}

.gallery--item:nth-child(4) {
    grid-row-start: 3;
    grid-row-end: 3;
}

.gallery--item:nth-child(5) {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
}

.pictures-company img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.pictures-company img:hover {
    transform: scale(1.02);
}

.information {
    padding: 30px;
    width: 80%;
}

.information h1 {
    color: #000;
    margin-bottom: 20px;
    text-align: left;
}

/*PNB */
.download-button a {
    color: white;
    text-decoration: none;
}
.menu a {
	text-decoration: none;
}
.menu li{}
#navbar li:hover, #footernav li:hover { background:rgba(255,255,255,0.1);
	border-radius:5px; }
.menu li.current-menu-item, li.current-menu-parent {
	background:rgba(255,255,255,0.2);
	border-radius:5px;
}
.pagination {color:black;} 
.pagination a {color:#346CCD;}

.page-links {
    display: flex;
    gap: 10px;
}
.page-links a {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}
.page-links span {
    padding: 5px 10px;
    background-color: #0073E6;
    color: white;
    border-radius: 5px;
}
.page-links a:hover {
    background-color: #ddd;
    color: black;
}


/* Основные стили для блока */
.wp-block-details.is-layout-flow {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Стили для заголовка */
.wp-block-details.is-layout-flow summary {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    outline: none;
}

/* Стили для контента внутри блока */
.wp-block-details.is-layout-flow .wp-block-columns {
    margin-top: 20px;
}

/* Стили для изображения */
.wp-block-details.is-layout-flow .wp-block-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* Стили для текста */
.wp-block-details.is-layout-flow .wp-block-column p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Стили для ссылок */
.wp-block-details.is-layout-flow a {
    color: #0073e6;
    text-decoration: none;
}

.wp-block-details.is-layout-flow a:hover {
    text-decoration: underline;
}

/* Стили для заголовков внутри блока */
.wp-block-details.is-layout-flow h2.wp-block-heading {
    font-size: 1.8em;
    color: #222;
    margin-top: 20px;
    margin-bottom: 15px;
}