/*
Theme Name: Galaxydk Blocksy Child
Template: blocksy
Version: 1.0.0
Description: Дочерняя тема для сайта ДК Галактика
*/

/* =====================
   Наш коллектив
   ===================== */
.galaxydk-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.galaxydk-person-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.galaxydk-person-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.galaxydk-person-info {
    padding: 16px;
}
.galaxydk-person-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.galaxydk-person-rang {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.galaxydk-person-tel a {
    color: inherit;
    font-size: 14px;
}

/* =====================
   Нормативные документы
   ===================== */
.galaxydk-documents {
    margin-top: 16px;
}
.galaxydk-document-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.galaxydk-document-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: #f5f5f5;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.galaxydk-document-item summary::-webkit-details-marker { display: none; }
.galaxydk-document-item summary::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.2s;
}
.galaxydk-document-item[open] summary::after {
    transform: rotate(180deg);
}
.galaxydk-document-body {
    padding: 16px;
}
.galaxydk-document-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.galaxydk-document-page img {
    height: 180px;
    width: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.galaxydk-document-page img:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.galaxydk-btn-download {
    display: inline-block;
    padding: 8px 20px;
    background: #2872fa;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.galaxydk-btn-download:hover {
    background: #1559ed;
}

/* =====================
   Клубные формирования
   ===================== */
.galaxydk-clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.galaxydk-club-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.galaxydk-club-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.galaxydk-club-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.galaxydk-club-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.galaxydk-club-card-body {
    padding: 14px;
}
.galaxydk-club-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.galaxydk-club-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* =====================
   Фон сайта — синий градиент
   ===================== */
.site-main,
#main,
main.site-main {
    background: linear-gradient(135deg, #1E88E5 0%, #8E24AA 100%) !important;
    min-height: 100vh;
}

/* =====================
   Шапка — компактное меню
   ===================== */
.ct-header nav ul li a,
.ct-header .ct-menu li a,
#header nav ul li a {
    padding-left: 5px !important;
    padding-right: 5px !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
}

/* =====================
   BVI — скрытый контейнер + ссылка в шапке
   ===================== */

/* Скрываем контейнер с BVI (нужен только для JS) */
.galaxydk-bvi-hidden {
    display: none !important;
}

/* Прячем плавающую BVI-кнопку за экран, но не display:none — иначе JS не сработает */
.bvi-link-fixed-top,
a.bvi-link.bvi-link-fixed-top {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Стиль ссылки "Версия для слабовидящих" — как у остальных пунктов меню */
.galaxydk-bvi-item a.galaxydk-bvi-trigger {
    font-size: 12px !important;
    font-family: var(--theme-font-stack-default) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    color: var(--theme-palette-color-8) !important;
    text-decoration: none !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5 !important;
}
.galaxydk-bvi-item a.galaxydk-bvi-trigger:hover {
    opacity: 0.7;
}

/* =====================
   Галерея новостей
   ===================== */
.galaxydk-post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.galaxydk-post-gallery a img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s;
}
.galaxydk-post-gallery a:hover img {
    opacity: 0.85;
}
