/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/
b, strong {
    font-weight: 500 !important;
}
.wp-block-table {
    width: 100%;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

/* Стили для десктопа */
@media (min-width: 769px) {
    .wp-block-table table {
        display: table;
    }
    
    .wp-block-table tr {
        display: table-row;
    }
    
    .wp-block-table td {
        display: table-cell;
    }
}

/* Стили для мобильных - карточный вид */
@media (max-width: 768px) {
    .wp-block-table table,
    .wp-block-table tbody,
    .wp-block-table tr,
    .wp-block-table td {
        display: block;
        width: 100%;
    }
    
    .wp-block-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .wp-block-table tr:first-child {
        display: none; /* Скрываем заголовки на мобильных */
    }
    
    .wp-block-table td {
        border: none;
        padding: 8px 0;
        position: relative;
    }
    
    .wp-block-table td:before {
        content: attr(data-label);
        font-weight: 500;
        display: inline-block;
        width: 40%;
        color: #666;
    }
    
    .wp-block-table td:nth-child(1):before { content: "Канал:"; }
    .wp-block-table td:nth-child(2):before { content: "География:"; }
    .wp-block-table td:nth-child(3):before { content: "CTR:"; }
    .wp-block-table td:nth-child(4):before { content: "Стоимость:"; }
}


h1.entry-title {
  font-size: clamp(2.5rem, 3rem, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #aaa9a9ee 50%, #ced4da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.3;
} 
    
/* Контейнер сетки */
.blog-grid {
    display: grid;
    /* Адаптивная сетка: колонки сами подстраиваются */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Карточка */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Чтобы карточки были одной высоты */
    display: flex;
    flex-direction: column;
}

/* Эффект при наведении */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Картинка */
.blog-card-image {
    height: 220px; /* Фиксированная высота для превью */
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок, не искажаясь */
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05); /* Легкое увеличение картинки при наведении */
}

.no-image {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Контент */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card-excerpt {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Толкает кнопку вниз */
}

.read-more {
    font-weight: 500;
    color: #0073aa; /* Ваш акцентный цвет */
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Основные стили карточки */
.uagb-block-350cde0d .uagb-post__inner-wrap {
    background: #364651;
    text-align: left;
    border: 2px solid lightgrey; 
    border-radius: 15px; 
    transition: all 0.3s ease;
}

.uagb-block-350cde0d .uagb-post__inner-wrap:hover {

    border-color: #ff4d4d; 
    transform: translateY(-5px);  
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Пагинация */
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 40px 0;
    padding: 0;
}

.pagination-list li {
    margin: 0;
    padding: 0;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #334155;
    color: #F0F5FA;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination-list a:hover,
.pagination-list span.current,
.pagination-list .active a {
    background: #FD2C2C;
    color: #fff;
    border-color: #FD2C2C;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 44, 44, 0.35);
}

.pagination-list .disabled span,
.pagination-list .dots span {
    opacity: 0.6;
    cursor: default;
    background: transparent;
    border-color: #475569;
}

/* Адаптив */
@media (max-width: 768px) {
    .pagination-list {
        gap: 8px;
        margin: 30px 0;
    }
    .pagination-list a,
    .pagination-list span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 1.25rem;
    }
    .entry-content > .wp-block-group, 
    .entry-content > .wp-block-cover, 
    .entry-content > .wp-block-columns {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .entry-content,
    .ast-plain-container {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Кнопка */
.footer-form-submit {
    width: 100%;
    margin-top: 4px;
    display: flex;
    justify-content: center;
}
.footer-form-wrap .footer-btn,
.footer-form-wrap input.footer-btn[type="submit"],
.footer-form-wrap button.footer-btn[type="submit"] {
    display: inline-block;
    background-color: #28343e !important;
    color: #F0F5FA !important;
    border: 1px solid #FD2C2C !important;
    border-radius: 25px !important;
    padding: 12px 32px !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}
/* Поля ввода */
/* Поля ввода */
.footer-form-wrap input[type=email].footer-input,
.footer-form-wrap input[type=number].footer-input,
.footer-form-wrap input[type=password].footer-input,
.footer-form-wrap input[type=search].footer-input,
.footer-form-wrap input[type=tel].footer-input,
.footer-form-wrap input[type=text].footer-input,
.footer-form-wrap input[type=url].footer-input,
.footer-form-wrap select.footer-input,
.footer-form-wrap textarea.footer-input {
    width: 100%;
    box-sizing: border-box;
    background: #28343e !important;
    border: 1px solid #4a5966 !important;
    border-radius: 16px !important;
    color: #F0F5FA !important;
    font-size: 1.1rem !important;
    padding: 12px 18px !important;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.footer-form-wrap input.footer-input::placeholder,
.footer-form-wrap textarea.footer-input::placeholder {
    color: #F0F5FA !important;
    font-size: 1.2rem !important;
    opacity: 0.7;
}
.footer-form-wrap input.footer-input:focus,
.footer-form-wrap textarea.footer-input:focus {
    outline: none;
    border-color: #FD2C2C !important;
    background: #333844 !important;
}

.cf7-popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.cf7-popup-overlay.active {
  display: flex;
}

.cf7-popup-window {
  background: #161c20;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.cf7-popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.my-callback-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 15px;
  padding: 6px 16px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.my-callback-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.ast-icon.icon-arrow .ast-arrow-svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.ast-icon.icon-arrow .ast-arrow-svg {
  width: 18px !important;
  height: 18px !important;
  overflow: visible;
}
@media (max-width: 921px) {
  .ast-builder-menu-mobile .main-navigation .menu-item.menu-item-has-children > .ast-menu-toggle {
    right: 30px !important;
     transform: none !important;
  }
}