/**
 * Islamic Accents CSS
 * Исламские декоративные акценты для секций главной страницы и всего сайта
 */

/* ===== Единый стиль карточек по всему сайту ===== */

/* Базовые стили для всех карточек */
.news-card,
.impression-card,
.project-card,
.media-about-us-card,
.video-report-card,
.partner-card,
.category-post-card {
    border: 1px solid rgba(34, 139, 34, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Зелёная полоса сверху всех карточек */
.news-card::before,
.impression-card::before,
.project-card::before,
.media-about-us-card::before,
.category-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32, #228B22);
    z-index: 3;
}

/* Hover для всех карточек */
.news-card:hover,
.impression-card:hover,
.project-card:hover,
.media-about-us-card:hover,
.video-report-card:hover,
.category-post-card:hover {
    border-color: rgba(34, 139, 34, 0.25);
    box-shadow: 0 8px 28px rgba(34, 139, 34, 0.12);
}

/* Декоратор заголовков карточек */
.news-card__title,
.impression-card__title,
.project-card__title,
.media-about-us-card__title,
.video-report-card__title,
.category-post-card .news-card__title {
    position: relative;
    padding-left: 14px;
}

.news-card__title::before,
.impression-card__title::before,
.project-card__title::before,
.media-about-us-card__title::before,
.video-report-card__title::before,
.category-post-card .news-card__title::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: #228B22;
    font-size: 9px;
    opacity: 0.7;
}

/* Золотой нижний акцент для проектов */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #FFD700, #228B22);
    z-index: 3;
}

/* Партнёры — без полосы сверху, мягче */
.partner-card::before {
    display: none;
}

.partner-card {
    border-radius: 12px;
    border: 1px solid rgba(34, 139, 34, 0.08);
}

.partner-card:hover {
    border-color: rgba(34, 139, 34, 0.2);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.1);
}

/* Кнопка "Подробнее" / "Читать далее" внутри overlay */
.news-card__read-more,
.category-post-card .news-card__read-more {
    border-color: #ffffff;
    color: #ffffff;
    transition: all 0.3s ease;
}

.news-card:hover .news-card__read-more,
.category-post-card:hover .news-card__read-more {
    background: #228B22;
    border-color: #228B22;
    color: #ffffff;
}

/* ===== Общие стили заголовков секций ===== */
.news-feed-section__header,
.impressions-section__header,
.video-reports__title,
.partners__title,
.media-about-us-section__title,
.projects__title,
.about-title {
    position: relative;
}

/* Декоративный разделитель — через border-bottom */
.news-feed__title,
.impressions__title,
.about-title,
.projects__title,
.video-reports__title,
.media-about-us-section__title,
.partners__title,
.section-title {
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #228B22, #FFD700, #228B22) 1;
    display: inline-block;
    text-align: center;
}

/* Центрирование inline-block заголовков через родителя */
.news-feed-section,
.impressions-section,
.projects-section,
.video-reports-section,
.media-about-us-section,
.partners-section,
.about-section {
    text-align: center;
}

.news-feed-section .news-feed-grid,
.impressions-section .impressions-grid,
.projects-section .projects-grid,
.video-reports-section .video-report-card,
.media-about-us-section .media-about-us-section__list,
.partners-section .partners-carousel,
.partners-section .partners-carousel__nav,
.about-section .about-blocks,
.about-section .about-text {
    text-align: left;
}

/* Footer с кнопками — по центру */
.news-feed-section .news-feed__footer,
.impressions-section .impressions__footer,
.projects-section .projects__footer,
.video-reports-section .video-reports__footer,
.media-about-us-section .media-about-us-section__footer {
    text-align: center;
}

/* Декоративные символы ✦ слева и справа от заголовков всех секций */
.video-reports__title::before,
.partners__title::before,
.media-about-us-section__title::before,
.news-feed__title::before,
.impressions__title::before,
.projects__title::before,
.about-title::before,
.section-title::before {
    content: '✦';
    margin-right: 10px;
    color: #228B22;
    font-size: 14px;
    opacity: 0.7;
}

.video-reports__title::after,
.partners__title::after,
.media-about-us-section__title::after,
.news-feed__title::after,
.impressions__title::after,
.projects__title::after,
.about-title::after,
.section-title::after {
    content: '✦';
    margin-left: 10px;
    color: #228B22;
    font-size: 14px;
    opacity: 0.7;
}

/* ===== Секция Видеоотчёты ===== */
.video-report-card {
    border-radius: 15px;
}

/* ===== Секция О нас (About) ===== */
.about-section .video-container {
    border: 2px solid rgba(34, 139, 34, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.about-section .video-container:hover {
    border-color: rgba(34, 139, 34, 0.35);
}

/* ===== Кнопки "Все ..." в секциях — единый стиль ===== */
.news-feed__all-btn,
.video-reports__all-btn,
.media-about-us-section__all-btn,
.impressions__all-btn,
.projects__all-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #228B22 0%, #2ea82e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.news-feed__all-btn:hover,
.video-reports__all-btn:hover,
.media-about-us-section__all-btn:hover,
.impressions__all-btn:hover,
.projects__all-btn:hover {
    background: transparent;
    color: #228B22;
    border-color: #228B22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.25);
    text-decoration: none;
}

.news-feed__all-btn::before,
.video-reports__all-btn::before,
.media-about-us-section__all-btn::before,
.impressions__all-btn::before,
.projects__all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.news-feed__all-btn:hover::before,
.video-reports__all-btn:hover::before,
.media-about-us-section__all-btn:hover::before,
.impressions__all-btn:hover::before,
.projects__all-btn:hover::before {
    left: 100%;
}

/* ===== Единая анимация зелёных кнопок (исключая пагинацию) ===== */
.btn-primary,
.btn-outline-primary,
.action-card__btn,
.hero-slider__btn,
.video-report-card__read-more,
.promo-card__footer .action-card__btn,
.donation-block,
.back-to-home,
.footer__social-link,
.quform-submit,
.quform-upload-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.action-card__btn:hover,
.video-report-card__read-more:hover,
.donation-block:hover,
.back-to-home:hover,
.footer__social-link:hover,
.quform-submit:hover,
.quform-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.25);
    text-decoration: none;
}

.btn-primary::before,
.btn-outline-primary::before,
.action-card__btn::before,
.video-report-card__read-more::before,
.donation-block::before,
.back-to-home::before,
.footer__social-link::before,
.quform-submit::before,
.quform-upload-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-primary:hover::before,
.btn-outline-primary:hover::before,
.action-card__btn:hover::before,
.video-report-card__read-more:hover::before,
.donation-block:hover::before,
.back-to-home:hover::before,
.footer__social-link:hover::before,
.quform-submit:hover::before,
.quform-upload-button:hover::before {
    left: 100%;
}

/* Исключаем пагинацию, навигацию и header из анимации */
.nav-links a,
.posts-navigation a,
.obf-pagination .page-numbers,
.post-navigation a,
.header .btn,
.header__actions-buttons .btn,
.header__user-actions .btn {
    transform: none !important;
    box-shadow: none !important;
}

.nav-links a::before,
.posts-navigation a::before,
.obf-pagination .page-numbers::before,
.post-navigation a::before,
.header .btn::before,
.header__actions-buttons .btn::before,
.header__user-actions .btn::before {
    display: none !important;
}

/* ===== Секция Статистика — звёздочки и стиль заголовка ===== */
.statistics-section .statistic-card__label-main::before {
    content: '✦';
    margin-right: 8px;
    color: #FFD700;
    font-size: 10px;
    opacity: 0.8;
}

.statistics-section .statistic-card__label-main::after {
    content: '✦';
    margin-left: 8px;
    color: #FFD700;
    font-size: 10px;
    opacity: 0.8;
}

/* Если секция имеет h2 заголовок (на сервере может быть) */
.statistics-section h2,
.statistics-section .section-title,
.statistics-section__title {
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #FFD700, #ffffff, #FFD700) 1;
    display: inline-block;
    text-align: center;
}

.statistics-section h2::before,
.statistics-section .section-title::before,
.statistics-section__title::before {
    content: '✦';
    margin-right: 10px;
    color: #FFD700;
    font-size: 14px;
    opacity: 0.8;
}

.statistics-section h2::after,
.statistics-section .section-title::after,
.statistics-section__title::after {
    content: '✦';
    margin-left: 10px;
    color: #FFD700;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== Общий фон секций с лёгким зелёным оттенком ===== */
.news-feed-section,
.impressions-section,
.media-about-us-section {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(34, 139, 34, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 139, 34, 0.02) 0%, transparent 50%);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .video-reports__title::before,
    .partners__title::before,
    .media-about-us-section__title::before,
    .news-feed__title::before,
    .impressions__title::before,
    .projects__title::before,
    .about-title::before,
    .video-reports__title::after,
    .partners__title::after,
    .media-about-us-section__title::after,
    .news-feed__title::after,
    .impressions__title::after,
    .projects__title::after,
    .about-title::after {
        font-size: 10px;
        margin-left: 6px;
        margin-right: 6px;
    }

    .news-card__title,
    .impression-card__title,
    .project-card__title,
    .media-about-us-card__title,
    .video-report-card__title,
    .category-post-card .news-card__title {
        padding-left: 12px;
    }

    .news-card__title::before,
    .impression-card__title::before,
    .project-card__title::before,
    .media-about-us-card__title::before,
    .video-report-card__title::before,
    .category-post-card .news-card__title::before {
        font-size: 8px;
    }
}
