/* --- Секция Digital Edition --- */
.digital-edition {
    padding: 40px 0 60px 0;
    font-family: 'Times New Roman', Times, serif; /* Классический газетный шрифт для заголовков */
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    color: #000000;
}

/* Сетка карточек */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 35px;
    margin: 0 auto;
}

/* Карточка выпуска */
.issue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cover-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Внешний каркас карточки */
.cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cover-link:hover .cover-frame {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* Газетный принт на фоне */
.newspaper-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/newspaper-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 1;
}

/* Центральный прямоугольный блок */
.cover-content {
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 10%;
    right: 10%;
    background-color: #727376;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 2;
}

/* Картинка внутри центрального прямоугольника */
.inner-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Полупрозрачное затемнение поверх картинки */
.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.45) 0%, 
        rgba(0, 0, 0, 0.25) 50%, 
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 2;
}

/* Надписи поверх картинки */
.cover-brand {
    position: relative;
    z-index: 3;
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cover-title {
    position: relative;
    z-index: 3;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #ffffff;
    font-weight: 500;
    white-space: pre-line;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


/* Ссылка под обложкой */
.download-link {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.download-link:hover {
    opacity: 0.7;
}

/* Изображение обложки поверх рамки */
/* Картинка обложки (средний слой, z-index: 2) */
.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}




/* --- Адаптивность для мобильных версий --- */
@media (max-width: 900px) {
    .issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        padding: 0 15px;
    }
}

@media (max-width: 580px) {
    .issues-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}