@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  box-sizing: border-box;
}
body{
 /*background-image: url('./img/background.jpg');*/
  background-color: #fff;
   }
   /* Variables */
:root {
    --container-color: #1a1e21;
    --second-color: #fd8f44;
    --text-color: #172317;
    --bg-color: #fff;
  }
  ::selection {
    color: var(--bg-color);
    background: var(--second-color);
  }
  a {
    text-decoration: none;
  }
  li {
    list-style: none;
  }
 
  section {
    padding: 3rem 0 2rem;
  }
.container {
    max-width: 1068px;
    margin: auto;
    width: 100%;
  }
  /* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
}
header.shadow {
  background: var(--bg-color);
  box-shadow: 0 1px 4px hsl(0 4% 14% / 10%);
  transition: 0.4s;
}
header.shadow .logo {
  color: var(--text-color);
}

.single-post-page header {
  position: static;
}

.single-post-page header.shadow {
  background: transparent;
  box-shadow: none;
}

.single-post-page header.shadow .logo {
  color: var(--bg-color);
}

.single-post-page .header-content {
  margin-top: 0 !important;
}

.single-post-page .posts {
  margin-top: 40px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem !important;
}
.back-home {
  color: var(--second-color);
  font-size: 0.9rem;
}
.header-title {
  width: 90%;
  font-size: 2.6rem;
  color: var(--bg-color);
  text-align: center;
  margin-bottom: 1rem;
}
.header-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}
/* Post Content */
.post-header {
  width: 100%;
  height: 500px;
  background: var(--container-color);
}
.post-container {
  max-width: 800px;
  margin: auto;
  width: 100%;
}
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem !important;
}
.back-home {
  color: var(--second-color);
  font-size: 0.9rem;
}
.header-title {
  width: 90%;
  font-size: 2.6rem;
  color: var(--bg-color);
  text-align: center;
  margin-bottom: 1rem;
}
.header-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
}
/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo  {
  font-family: 'Tangerine', serif;
  font-size: 40px;
  color: var(--bg-color);
  text-shadow: 4px 4px 4px #aaa;
  margin-right: 50px;
}
.login  {
  font-family: 'Tangerine', serif;
  font-size: 40px;
  color: var(--second-color);
  text-shadow: 4px 4px 4px #aaa;
  border-radius:50%;
  padding: 20px;
  margin-right: 50px;
  display: inline-block;
  transform: translateY(-7px);
}
.login:hover {
  background: var(--text-color);
  transition: 0.3s;
}
.logo span {
  font-size: 36px;
  color: var(--second-color);
}


.subtitle {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  color:white;
}
.post-title {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
  color: var(--text-color);
}
   /* Home */
.home {
    width: 100%;
    min-height: 200px;
    background-image: url('./img/apex_background_04.jpg'); 

    background-size: cover;
    justify-content: center;
    align-items: center;
  }
  .home-text {
    color: var(--bg-color);
    text-align: center;
  }
  .home-title{
    font-family: "Pacifico", cursive;
      font-weight: 400;
      font-style: normal;
      font-size: 58px;
      text-shadow: 4px 4px 4px #aaa;
   }

  .home-subtitle {
    font-size: 1rem;
    font-weight: 400;
  }
  /* Post Filter */
   .post-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
  }
 
  .filter-item {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 28px;
    color: #aaa;
    border-radius:50%;
    padding:20px;
  }
  .filter-item:hover { 
   color: var(--second-color);
   background: var(--bg-color);
  }

  .active-filter {
    background: var(--bg-color);
    color: var(--second-color);
    padding: 4px 10px;
    border-radius: 4px;
  }
  /* slider */
  
  .slider__container {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 15px;
  }
  .slider {
    background-color: #81e4ed;
    padding: 20px 0 40px;
  }
  /* .slider__inner{
    
  } */
  .slider__item,
  #slick-slide00,
  #slick-slide01,
  #slick-slide02,
  #slick-slide03,
  #slick-slide04 {
    /* background-image: url('img/slider-bg.jpg'); */
    min-height: 440px;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
  }
  #slick-slide00{
    background-image: url('img/slider-bg-1.jpg');
    background-position: center;
  }
  #slick-slide01{
    background-image: url('img/slider-bg-2.jpg');
  }
  #slick-slide02{
    background-image: url('img/slider-bg-3.jpg');
    background-position: center;
  }
  #slick-slide03{
    background-image: url('img/slider-bg-4.jpg');
  }
  #slick-slide04{
    background-image: url('img/slider-bg-5.jpg');
  }
  /* video::-webkit-media-controls {
    display:none!important; /* Стандартные элементы управления отключены.
  } */
 
  
  .slider__item-title {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-size: 45px;
    text-shadow: 4px 4px 4px #aaa;
    font-style: 50px;
    line-height: 57px;
    color: #fff;
    width: 400px;
    margin-left: 60px;
    padding-top: 100px;

  }
  .slick-dots li button {
    width: 14px;
    height: 14px;
    background-color: rgba(98, 98, 98, 0.5);
    border-radius:50%;
  }
  .slick-dots li.slick-active button {
    background-color: #fff;
  }
  .slick-dots li button::before {
    display:none;
  }
  .slick-dots li {
    margin: 0 9px;
    width: auto;
    height: auto;
  }
  /* postlist */
    #postList {
        list-style-type: none;
        padding: 0;
        margin: 0;
      }
      #postList > li {
  border: 1px solid var(--second-color);
  margin-left: 10px;
  padding: 5px;
  font-size: 20px;
  list-style: none; /* only top-level items */
}

#postList li ul li {
  list-style: disc; /* restore bullets for nested lists */
  margin-left: 20px;
}

  
      .post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .post-grid li {
    background: var(--bg-color);
    border-radius: 0px;
    position: relative;
    padding-bottom: 50px; /* Задаем отступ снизу для размещения кнопки */   
    transition: all .5s;
  }

  .post-grid li:hover {
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }
  
      #postList  li  {
        border: 1px solid  var(--second-color);       
        padding: 5px;
        font-size: 20px;
      }
      #postList > li ul,
      #postList > li ol {
        margin: 10px 0 10px 28px;
        padding-left: 18px;
      }
      #postList > li ul li,
      #postList > li ol li {
        border: 0;
        list-style: disc;
        margin: 4px 0;
        padding: 0;
      }
      #postList .content {
        border: 1px solid #ddd;
        padding: 5px;
        font-size: 20px;
      }
      #postList p,
      #postList > li ul li,
      #postList > li ol li {
        font-family: "Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 20px;
        text-align: justify;
      }
      #postList img {
        border: 1px solid #d7a3a3;
        background: var(--text-color);
        box-shadow: 0 4px 14px hsl(355deg 25% 15% / 10%);
        border-radius: 10px;
        margin:10px;
        padding:5px;
      }

      #postList .youtube-card-preview {
        aspect-ratio: 16 / 9;
        background: #111827;
        border-radius: 10px;
        box-shadow: 0 4px 14px hsl(355deg 25% 15% / 10%);
        cursor: pointer;
        margin: 10px 0 14px;
        overflow: hidden;
        position: relative;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        width: 100%;
      }

      #postList .youtube-card-preview:hover,
      #postList .youtube-card-preview:focus {
        box-shadow: 0 8px 20px hsl(355deg 25% 15% / 18%);
        outline: 2px solid var(--second-color);
        outline-offset: 2px;
        transform: translateY(-2px);
      }

      #postList .youtube-card-preview img {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block;
        height: 100%;
        margin: 0;
        object-fit: cover;
        padding: 0;
        width: 100%;
      }

      #postList .youtube-card-play {
        background: rgba(253, 143, 68, 0.92);
        border-radius: 50%;
        height: 54px;
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 54px;
      }

      #postList .youtube-card-play::before {
        border-bottom: 12px solid transparent;
        border-left: 18px solid #fff;
        border-top: 12px solid transparent;
        content: "";
        left: 21px;
        position: absolute;
        top: 15px;
      }

      #postList button {
        background-color: var(bg-color);
        border: 1px solid  transparent;
        color: #1d5b4c;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        cursor: pointer;
        float: left;
        border-radius: 10px;    
        position: absolute;
        bottom: -15px;
        right: -10px;
        transition: all .5s;
      }
      #postList button:hover {
        background-color: #fafafa;
        color: var(--second-color);
        border: 1px solid  var(--second-color);
      }
      .deletebutton{
          background: red;
          border: 1px solid silver;
          color: var(--bg-color);
          padding: 10px;
          text-align: center;
          text-decoration: none;
          font-size: 16px;
          cursor: pointer;
          float: right;
          margin-top:10px;
          margin-right:120px;
          border-radius: 10px;    
        
      }
      .deletebutton:hover {
        background-color: var(--second-color);
      }

      .posts{
          display:block;
        background-image: url('./img/Space-Background-Image.jpg'); 
        /* background-color: #63344e; */
          border-radius: 20px;
          opacity:0.8;
          width:96%;
          margin:10px 2%;
          padding:20px;
          border: 1px solid silver;
          position:relative;
          margin-top:10px;
          padding-bottom:40px;
      }
      .posts p::first-letter {
  font-size: 1.5em; /* Увеличение первой буквы */
  font-weight: bold; /* Выделение первой буквы жирным */
  color: #333; /* Цвет первой буквы */
}
      h1{
        font-family: "Pacifico", cursive;
        font-weight: 400;
        font-style: normal;
        font-size: 36px;
        text-shadow: 4px 4px 4px #aaa;
        text-align: center;
      }
      h2{
        font-family: "Pacifico", cursive;
        font-weight: 400;
        font-style: normal;
        font-size: 28px;
        color: #333;
        text-shadow: 4px 4px 4px #aaa;
        text-align: center;
      }
      
.video-notes {
    margin: 10px auto;
    width: 100%;
}



.video-notes h4 {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
    margin-bottom: 0.5rem;
}



      .footer {
        display: flex;
        width:100%;
        background-image: url('./img/apex_background_04.jpg');
        color: var(--bg-color);
        justify-content: space-between;
        align-items: center;
        padding: 30px 20px;
      }
      .footer p {
        font-size: 0.938rem;
      }
      .social {
        display: flex;
        align-items: center;
        column-gap: 1rem;
      }
      .social .bx {
        font-size: 1.4rem;
        color: var(--bg-color);
      }
      .social .bx:hover {
        color: var(--second-color);
        transition: 0.3s all linear;
      }
.table-wrap {
  border: 1px solid #ddd2c7;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 35, 23, 0.1);
  width: 70%;
  margin: 22px auto;
  overflow-x: auto;
}

#postList table {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.45;
  margin: 22px 0;
  min-width: 560px;
  width: 100%;
}

#postList .table-wrap table {
  margin: 0;
}

#postList th,
#postList td {
  border-bottom: 1px solid #eadfd4;
  border-right: 1px solid #eadfd4;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

#postList th:last-child,
#postList td:last-child {
  border-right: 0;
}

#postList tbody tr:last-child td {
  border-bottom: 0;
}

#postList th {
  background: var(--container-color);
  color: var(--bg-color);
  font-weight: 700;
}

#postList tbody tr:nth-child(even) {
  background: #fff8f2;
}

#postList tbody tr:hover {
  background: #fff0e2;
}

.youtube-embed {
  background: #111827;
  border-radius: 10px;
  margin: 22px auto;
  max-width: 700px;
  overflow: hidden;
  padding-top: min(57.14%, 400px);
  position: relative;
  width: min(100%, 700px);
}

.youtube-embed iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

#postList > li > iframe {
  border: 0;
  display: block;
  height: min(57.14vw, 400px);
  margin: 22px auto;
  min-height: 220px;
  width: min(100%, 700px);
}

@media print {
  body {
    background: #fff;
  }

  header,
  .footer,
  #postList button {
    display: none !important;
  }

  .post-header {
    background: #fff;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .home {
    background: #fff;
  }

  .header-title,
  .header-title h1 {
    color: #111;
    text-shadow: none;
  }

  .header-img {
    height: auto;
    max-height: 300px;
  }

  .posts {
    background: #fff;
    border: 0;
    margin: 0;
    opacity: 1;
    padding: 0;
    width: 100%;
  }

  #postList > li {
    border: 0;
    margin: 0;
    padding: 0;
  }

  #postList p,
  #postList > li ul li,
  #postList > li ol li {
    font-size: 14pt;
  }
}


 /* Responsive */
 @media (max-width: 1060px) {
  .container {
    margin: 0 auto;
    width: 95%;
  }
  .home-text {
    width: 100%;
  }
  .filter-item {
    font-size: 22px;
    padding:20px 10px;
  }
  .post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

 }
@media (max-width: 812px) {
  .nav {
    padding: 14px 0;
  }
  .container {
    margin: 0 auto;
    width: 95%;
  }
  .filter-item {
    font-size: 18px;
    padding:20px 10px;
  }
  .header-img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: center;
  }
  .posts{
    width:95%;
    margin:10px;
    margin-top:40px;
    padding:20px;
  }
  #postList p,
  #postList > li ul li,
  #postList > li ol li {
    font-size: 16px;
  }
  .post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

}
@media (max-width: 375px) {
  .nav {
    padding: 10px 0;
  }
  section {
    padding: 2rem 0;
  }
    .container {
    margin: 0 auto;
    width: 95%;
  }
    .filter-item {
    font-size: 14px;
    padding:10px;
  }
  .header-content {
    margin-top: 3rem !important;
  }
  .post-filter {
    column-gap: 0.3rem;
  }
  .home {
    min-height: 380px;
  }
  .header-title {
    font-size: 2rem;  
  }
  .header-img {
    width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: center;
  }
  .posts{
    width:95%;
    margin:10px;
    margin-top:70px;
    padding:20px;
  }
  .post-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  #postList p,
  #postList > li ul li,
  #postList > li ol li {
    font-size: 16px;
  }


}
