/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.lang-switcher {
    position: absolute;
    right: 40px;
    top: 45px;
    z-index: 9999;
}

.lang-switcher img {
    width: 20px;
    height: auto;
    margin-left: 5px;
}

.lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.lang-switcher li {
    list-style: none;
}

.lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-switcher li {
    list-style: none;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    background: #f3f3f3;

    text-decoration: none;

    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.lang-switcher li {
    list-style: none;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    /* стекло */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    transition: all 0.25s ease;
}

.lang-switcher a:hover {
    transform: translateY(-3px) scale(1.05);

    background: rgba(255, 255, 255, 0.35);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.lang-switcher img {
    width: 18px;
    height: 18px;
}

.section-carousel {
    position: relative;
    z-index: 1;
}

.slider-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.site-header {
    position: relative;
    z-index: 10;
}

.section-carousel {
    margin-top: 0;
}

.section-carousel {
    margin-top: 20px;
}

.section-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-carousel .slick-carousel {
    width: 100%;
}

.slider-item {
    height: 350px; /* можно 300–400 под вкус */
    background-size: cover;
    background-position: center;
}

.slider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slider-item h2,
.slider-item p,
.slider-item a {
    color: white;
}

.slick-prev,
.slick-next {
    z-index: 10;
}

.slick-prev:before,
.slick-next:before {
    color: white;
    font-size: 30px;
}

.slider-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
}

.slider-item > * {
    position: relative;
    z-index: 1;
}

.section-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 15px;
}

.slider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.section-carousel {
    width: 100%;
    display: block;
}

.news-grid {
    display: grid;
    width: 100%;
    margin-top: 40px;
}

.section-carousel,
.news-sections {
    clear: both;
    width: 100%;
    display: block;
}

.site-content {
    background: transparent !important;
}

.ast-container {
    display: block !important;
}

.section-carousel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.section-carousel .slick-list {
    margin: 0;
}

.section-carousel .slick-next {
    right: 30px;
}

.section-carousel .slick-prev {
    left: 15px;
}

.section-carousel .slick-arrow {
    z-index: 5;
}

.section-carousel .slick-arrow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    z-index: 10;
    transition: all 0.25s ease;
}

.section-carousel .slick-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 18px rgba(120, 200, 255, 0.55);
    transform: scale(1.08);
}

.section-carousel .slick-arrow:active {
    transform: scale(0.95);
}

.section-carousel {
    position: relative;
}

.section-carousel::before,
.section-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.section-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.35), transparent);
}

.section-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.35), transparent);
}

@media (max-width: 768px) {
    .section-carousel {
        overflow: hidden;
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    .section-carousel .slick-list {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .section-carousel .slick-arrow {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.25);
    }
}

@media (max-width: 768px) {
    .section-carousel .slick-arrow {
        width: 38px;
        height: 38px;
    }

    .section-carousel .slick-prev {
        left: 10px;
    }

    .section-carousel .slick-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .section-carousel::before,
    .section-carousel::after {
        width: 60px;
        background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
    }

    .section-carousel::after {
        background: linear-gradient(to left, rgba(0,0,0,0.25), transparent);
    }
}

.post .entry-meta {
    display: flex;
    gap: 0;
}

.post .entry-meta .posted-by {
    display: none !important;
}

.post .entry-meta .posted-on {
    margin-left: 0;
}

.posted-on-only {
    font-weight: 600;
    color: #233b6c;
    font-size: 14px;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card a {
    color: #000 !important;
    text-decoration: none;
}

.news-card a:last-child {
    margin-top: auto;
    color: #233b6c;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card a {
    color: #111 !important;
    font-weight: 600;
    text-decoration: none;
}

.news-card p {
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card a:last-child {
    margin-top: auto;
    font-weight: 600;
    color: #233b6c;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-text {
    color: #444;
    margin-top: 10px;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    color: #233b6c;
}

.news-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0)
    );
    transition: opacity 0.3s ease;
}

.news-card {
    position: relative;
    backdrop-filter: blur(0px);
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: 0.3s ease;
    border-radius: 14px;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(35, 59, 108, 0.25);
    transform: translateY(-6px) scale(1.01);
}

.news-text,
.news-card h3,
.read-more {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.news-card:hover .news-text,
.news-card:hover h3,
.news-card:hover .read-more {
    transform: translateY(-4px);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.custom-footer {
  background: linear-gradient(180deg, #233b6c, #5075c0);
  color: #fff;
  padding: 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  text-align: center;
  margin-top: 30px;
}

.footer-social a {
  margin: 0 10px;
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #fff;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #fff;
}

.custom-footer {
  background: #17274d;
  color: #e5e7eb;
  padding: 60px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-text {
  opacity: 0.8;
  line-height: 1.5;
}

/* контакты */
.email::before {
  content: "✉ ";
}

.phone::before {
  content: "☎ ";
}

/* ссылки */
.footer-social a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  margin-bottom: 8px;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* нижняя полоса */
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

text-shadow: 0 0 8px rgba(255,255,255,0.2);

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: #e5e7eb;
  opacity: 0.9;
}

@media (max-width: 768px) {

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: left;
  }

  .footer-bottom {
    margin-top: 25px;
    font-size: 12px;
  }

  .footer-social a {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 6px;
  }
}

.footer-col h3 {
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: #e5e7eb;

  opacity: 0.85;
  transition: all 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: #e5e7eb;
  opacity: 0.9;
  transition: 0.2s ease;
}

.social-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

.social-link:hover svg {
  fill: #ffffff;
}

.social-link:hover {
  transform: translateX(6px);
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-image {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
}

.entry-content img,
.wp-block-image img,
.post img {
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.header img,
.custom-logo,
.footer img,
.slick-slide img {
  padding: 0;
  background: none;
  box-shadow: none;
}

.entry-content img,
.wp-block-image img {
  padding: 6px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.entry-content {
  border-left: 2px solid rgba(0,0,0,0.05);
  padding-left: 16px;
}

.load-more {
  text-align: center;
  margin-top: 30px;
}

.load-more a {
  font-size: 22px;
  text-decoration: none;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  transition: 0.2s;
}

.load-more a:hover {
  transform: scale(1.1);
}

.load-more {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  clear: both;
}

.load-more a,
.load-more span {
  font-size: 14px;
}

.load-more a,
.load-more span {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.load-more .current {
  font-weight: bold;
}

.pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.section-carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.slide {
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.slide-content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 600px;
  padding: 20px;
}

.slide-content .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #2c4a8a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.section-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: hidden; 
  scroll-snap-type: x mandatory;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 22px;

  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(255,255,255,0.35);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.section-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}

/* ===== трек ===== */
.carousel-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* ===== слайд ===== */
.slide {
  min-width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  scroll-snap-align: start;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;

  background: 
    radial-gradient(
      circle at center,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.55) 100%
    );

  z-index: 1;
}

.slide-content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 700px;
  padding: 20px;
	 text-shadow: 0 1px 18px rgba(0,0,0,0.6);
}

.slide-content .btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #2c4a8a;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;
  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.15);

  color: white;
  font-size: 26px;

  backdrop-filter: blur(10px);
  cursor: pointer;

  transition: 0.25s ease;
  z-index: 10;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 18px rgba(120,200,255,0.4);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.25s ease;
}

.carousel-dot.active {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.carousel-btn {
  transition: 0.25s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  color: #fff;

  cursor: pointer;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

  transition: all 0.25s ease;

  z-index: 20;

	outline: none;
}

.carousel-btn:hover {
  transform: translateY(-55%) scale(1.12);

  background: rgba(255, 255, 255, 0.28);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(120, 200, 255, 0.35);
}

.carousel-btn:focus,
.carousel-btn:focus-visible,
.carousel-btn:active {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.15);
}

.slide {
  overflow: hidden;
}

.slide {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.carousel-track {
  position: relative;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 2;

  opacity: 0;
  transform: translateY(20px);

  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide.active {
  animation: slowZoom 8s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.site-footer.custom-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.section-carousel {
    margin-bottom: 40px;
}