/**
 * БФ «Ева» — Стили каталога и страниц программ
 */

/* ==========================================================================
   Каталог программ: карточки и особенности
   ========================================================================== */

/* Программы фонда */
.programs-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch; 
}
.showcase-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.showcase-nav-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 20px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.showcase-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}
.showcase-nav-item:hover {
    border-color: rgba(197, 78, 112, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.showcase-nav-item.active {
    border-color: rgba(197, 78, 112, 0.25);
    background: linear-gradient(135deg, #fff 0%, rgba(197, 78, 112, 0.01) 100%);
    box-shadow: var(--shadow-md);
}
.showcase-nav-item.active::before {
    height: 60%;
}
.showcase-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    background: #FDF4F6;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
}
.showcase-nav-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Manrope', sans-serif;
}
.showcase-preview {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: sticky;
    top: 100px;
}
.showcase-preview-img-wrapper {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}
.showcase-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.showcase-preview-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: start;
    flex-grow: 1; 
}
.showcase-preview-body .btn-primary, .showcase-preview-body #showcase-btn {
    margin-top: auto; 
}
.showcase-preview h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}
.showcase-preview #showcase-desc,
.showcase-preview #showcase-desc p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
.showcase-preview #showcase-desc p + p {
    margin-top: 10px;
}

.showcase-nav-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.showcase-mobile-content {
    display: none;
}

@media (max-width: 900px) {
    .programs-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }
    .showcase-preview {
        display: none;
    }
    .showcase-nav-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 20px;
    }
    .showcase-nav-item::before {
        left: 0;
        top: 0;
        transform: none;
        width: 4px;
        height: 0;
        border-radius: 0 4px 4px 0;
    }
    .showcase-nav-item.active::before {
        height: 40px;
        top: 16px;
    }
    .showcase-mobile-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
        padding-top: 0;
    }
    .showcase-nav-item.active .showcase-mobile-content {
        max-height: 600px;
        opacity: 1;
        padding-top: 16px;
        margin-top: 4px;
    }
    .showcase-mobile-img-wrapper {
        width: 100%;
        height: 180px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
    }
    .showcase-mobile-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .showcase-mobile-content p {
        font-size: 14px;
        color: var(--text-light);
        line-height: 1.5;
        margin-bottom: 16px;
    }
    .showcase-mobile-content .btn-primary {
        align-self: flex-start;
        width: auto;
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Каталог программ: цветовые варианты
   ========================================================================== */

/* Каталог программ */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
        margin-bottom: 40px;
    }
    .program-card-body {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .program-card {
        min-width: 0;
        width: 100%;
    }
    .program-title {
        font-size: 19px;
    }
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    position: relative;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(197, 78, 112, 0.08);
    border-color: rgba(197, 78, 112, 0.2);
}

/* Цветовые варианты для программ */
.program-card.secondary-accent:hover {
    box-shadow: 0 15px 35px rgba(235, 160, 78, 0.1);
    border-color: rgba(235, 160, 78, 0.3);
}
.program-card.accent-coral:hover {
    box-shadow: 0 15px 35px rgba(226, 125, 116, 0.1);
    border-color: rgba(226, 125, 116, 0.3);
}

.program-card:hover img {
    transform: scale(1.06);
}

.program-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    line-height: 1.3;
}

.program-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-active {
    background: #4caf50;
    color: var(--white);
}

.status-fz {
    background: var(--primary);
    color: var(--white);
}

.program-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.program-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 30px;
}

.program-features li {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.program-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
        
.program-card.secondary-accent .program-features li::before {
    color: var(--secondary);
}
.program-card.accent-coral .program-features li::before {
    color: var(--accent);
}

.program-action {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.action-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.action-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.action-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: #e0e0e0;
}

.action-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(197, 78, 112, 0.02);
    transform: translateY(-2px);
}

/* ==========================================================================
   Галереи проектов
   ========================================================================== */

/* Галерея проектов */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 45px;
}

.gallery-row img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-row a:hover img {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .gallery-row {
        display: flex;
        flex-direction: row;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 12px;
        margin-bottom: 30px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .gallery-row::-webkit-scrollbar {
        display: none;
    }
    .gallery-row a {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }
    .gallery-row img {
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        border-radius: var(--radius);
    }
}

/* ==========================================================================
   Карточки каталога и кнопки поддержки
   ========================================================================== */

/* Карточки каталога программ (page-programs.php) */
.program-card-media {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: #eaeaea;
}

.program-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-card-img {
    transform: scale(1.04);
}

.program-card-badge-wrap {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.program-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-action--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.program-action--secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 32px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.form-section-desc {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.form-submit-group {
    margin-top: 10px;
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Кнопка поддержки проекта */
.btn-support-project {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e54e73 0%, #f77062 100%);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 8px 25px rgba(229, 78, 115, 0.35);
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-support-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(229, 78, 115, 0.45);
    color: var(--white);
}

.btn-support-project:active {
    transform: translateY(0);
}

/* ==========================================================================
   Страница отдельной программы
   ========================================================================== */

/* Страница отдельной программы */
.page-container {
    margin-top: 50px;
    margin-bottom: 70px;
}
.program-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 15px;
}
.program-title,
.program-title-main {
    font-size: 38px;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.25;
}
.program-lead,
.program-lead-box {
    font-size: 18px;
    color: var(--text-light);
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 30px;
}
.program-body-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}
.program-activities-header {
    margin-top: 40px;
    margin-bottom: 25px;
}
.program-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
@media (max-width: 992px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.details-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}
.program-section-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}
.program-section-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}
.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}
@media (max-width: 576px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}
.activity-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.activity-card h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin: 0 0 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}
.activity-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}
.activity-card-action {
    margin-top: 15px;
}
.activity-card-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.sidebar-widget--highlight {
    background: linear-gradient(135deg, rgba(197, 78, 112, 0.05), rgba(235, 160, 78, 0.05));
    border: 1px solid rgba(197, 78, 112, 0.15);
}
.sidebar-widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}
.sidebar-contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.sidebar-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fde8eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #c54e70;
    font-size: 14px;
    flex-shrink: 0;
}
.sidebar-contact-name {
    font-weight: 700;
    color: var(--text-dark);
}
.sidebar-contact-role {
    font-size: 13px;
    color: var(--text-light);
}
.sidebar-phone-btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 12px;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.sidebar-phone-btn--second {
    margin-bottom: 0;
}
.sidebar-support-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}
.sidebar-support-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}
.sidebar-form-input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}
.sidebar-form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-size: 14px;
}
