details {
  margin-top: 20px; /* Встановіть потрібний вам відступ перед елементом <details> */
}
summary{
        font-weight: bold;
    }  
#spoiler_1 > summary::before,
#spoiler_2 > summary::before {
  content: "\25BC"; 
  display: inline; /*inline-block;*/
/*   margin-right: 5px;  */
  margin-left: 5px; /* замість margin-right */
  float: right; /* нова властивість */
}

#spoiler_1[open] > summary::before,
#spoiler_2[open] > summary::before {
  content: "\25B2"; 
}
#spoiler_1 > summary,
#spoiler_2 > summary {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 100%;
  text-align: center;  
  cursor: pointer;    
}
#spoiler_1 > summary{
  color: #fff;
  background-color: #4c70a5;
}
#spoiler_2 > summary {
  color: #000000;
  background-color: #dad8d8;
}

#spoiler_2 {
  width: 95%;
  margin: 0 auto;
  margin-top: 20px; 
}

#spoiler_1 summary:hover,
#spoiler_2 summary:hover {
  background-color: #9b8282;
}

#spoiler_1[open] > summary,
#spoiler_2[open] > summary,
[open] > summary {
  border-radius: 10px 10px 0px 0px;
  font-style:italic;
  font-weight: normal;
}

#spoiler_1[open] + div #spoiler_2[open] summary {
  background-color: #cea58a;
  border-radius: 10px 10px 0px 0px;
}
#spoiler_1[open] > summary {
  background-color: #9aacdf;}
#spoiler_2[open] > summary {
  background-color: #cea58a;
}

:is(#spoiler_1, #spoiler_2)  {
  padding: 2px 2px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 15px 1px #000000;
}
a[href$=".pdf"] {
  background: url('../img/pdfs.svg') 0 50% no-repeat;
  background-size: 20px; /* Змінити розмір іконки */
  padding-left: 35px; /* Відступ вліво */
}
a[href$=".jpg"] {
  background: url('../img/jpgs.svg') 0 50% no-repeat;
  background-size: 20px; /* Змінити розмір іконки */
  padding-left: 35px; /* Відступ вліво */
}


.list li{
  padding: 5px;
  font-size: medium;
}
/*КАТЕГОРІЯ DEPARTAMENT START*/
.post-item {
  display: flex;
  margin: 20px 20px;
  box-shadow: 3px 3px 30px -3px #09223d;
/*   box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease; */
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: space-evenly;
  align-items: center;
  background-color: rgba(155, 186, 255, 0.55);
  border-radius: 10px;
}
.post-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.post-thumbnail {
  position: relative;
  flex-basis: 26%;
  margin-right: 30px; 
  border: 2px solid #ddd;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.post-thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("your-image.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5; /* Прозорість фонового зображення */
  z-index: -1;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-thumbnail img:hover {
  transform: scale(1.1);
}

.post-content {
  flex-basis: 70%;
  position: static;
  z-index: 1;
}

.post-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.post-date {
  color: #999;
  font-style: italic;
  margin-bottom: 10px;
}

.post-excerpt {
  margin-bottom: 10px;
}
div.post-excerpt p {
    text-indent: 25px;
    text-align: justify;
    margin: 0px 20px 0px 0px;
}

.read-more {
  display: inline-block;
  color: #fff;
  background-color: #2a4775;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.read-more:hover {
  background-color: #0c2c52;
}
@media (max-width: 790px) {
  .post-thumbnail {
    flex-basis: 90%;
    margin-right: 0;
  }

  .post-thumbnail img {
    width: 100%;
  }
  .post-content {
    flex-basis: 90%;
    margin-right: 0;
  }
}
/*КАТЕГОРІЯ DEPARTAMENT STOP*/
/*ЗАПИС КАТЕГОРІЇ START*/
.post-title-cat {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.post-content-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}
.post-image-cat {
  flex-basis: 45%;
}
.post-image-cat img {
  width: -webkit-fill-available;
  height: auto;
}
.post-description-cat {
  flex-basis: 55%;
  padding-left: 20px;
}
div.post-description-cat p {
    text-indent: 25px;
    text-align: justify;
}
.post-content-cat p {
  margin-right: 20px;
}
.post-content-cat .main-content-cat {
  flex-basis: 100%;
}
@media (max-width: 790px) {
  .post-image-cat {
    flex-basis: 90%;
  }
  .post-image-cat img {
    width: 100%;
    height: auto;
  }
  .post-description-cat {
    flex-basis: 100%;
    margin-right: 10px;
    margin-top: 20px;
  }
}
/*ЗАПИС КАТЕГОРІЇ STOP*/
/*розклад*/
#dekanat {
  width: 100%;
}
#dekanat,
#dekanat td,
#dekanat th {
  border: 1px solid #238cbb;
  word-wrap: break-word;
}
#dekanat td,
#dekanat th {
  text-align: center;
}
#dekanat_tr {
  background: #9bacb5;
  font-weight: bold;
}
/* #dekanat tr:hover {
  background-color: #f5f5f5;
} */
#dekanat_td {
  text-align: left;
}

#ttitle {
  /* font-size: 1.2em; */
  color: #2449ff;
  text-align: center;
  font-size: 1.5em; 
  margin-top: 20px;
}
#content_title {
  margin-bottom: 20px;
  font-size: large;
}

#content_text {
  margin-top: 20px;
}
h4 {
  margin-top: 20px;
  font-size: 1.1em;
}
/*кнопка для всього розкладу*/
.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Для адаптивності на малих екранах */
}

#ttitle {
  margin: 0;
  font-size: 24px;
  flex-grow: 1; /* Щоб зайняло всю доступну ширину */
}

.btn-full-schedule {
  display: inline-block;
  padding: 10px 20px;
  font-size: 18px;
  text-decoration: none;
  background-color: #446ca5;
  color: white;
  border-radius: 8px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Запобігає переносу кнопки на новий рядок */
}

.btn-full-schedule:hover {
  background-color: #0056b3;
}
/*кнопка для всього розкладу stop*/
/*кнопка назад*/
.back-button-container {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 20px;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  background-color: #4670b1;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #0056b3;
}
/*кнопка назад stop*/
/*forma*/
.custom-form-container{
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.custom-form-container label {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.custom-form-container select {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.custom-form-container input[type="submit"] {
  padding: 8px 15px;
  font-size: 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.custom-form-container input[type="submit"]:hover {
  background: #0056b3;
}
/*forma stop*/
/*button week*/
.week-navigation {
  text-align: center;
  /* margin: 20px 0; */
}

.btn-nav {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn-nav:hover {
  background-color: #005bb5;
}
/*stop*/
@media only screen and (max-width: 790px) {
  h4, #ttitle {
    font-size: 1.2em;
  }
  #content_text {
    font-size: 0.8em; 
  }
  td.vertical {
    /* writing-mode:vertical-rl;
    text-align: center; 
    padding: 5px; */
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: center;
    vertical-align: middle;
  }
}
/*розкад stop* start title-btn*/
.schedule-header, .week-navigation {
  text-align: center;
  padding: 10px;
}

#ttitle {
  font-size: 24px;
  margin-bottom: 10px;
}

.btn-full-schedule, .btn-nav {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  text-decoration: none;
  color: white;
  background-color: #4771ab;
  border-radius: 5px;
  font-size: 16px;
}

.btn-full-schedule:hover, .btn-nav:hover {
  background-color: #515c8d;
}

@media (max-width: 480px) {
  #ttitle {
      font-size: 18px;
  }

  .btn-full-schedule, .btn-nav {
      padding: 8px 16px;
      margin: 5px 0;
      display: block;
      width: 100%;
  }
  .week-navigation {
    display: flex;
    flex-direction: column;
  }
}

/*end title-btn*/