/* =========================================
   IMYEON / FORUM NEWSPAPER
   Theme colors
   ========================================= */

.newspaper-wrap,
.imyeon-stories {
    --imyeon-bg: #101116;
    --imyeon-panel: #181920;
    --imyeon-red: #F04465;
    --imyeon-cyan: #25DDF5;
    --imyeon-white: #F4F0EC;
    --imyeon-muted: #C6C6CE;
    --imyeon-border: rgba(255, 255, 255, .09);
    --imyeon-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

/* =========================================
   NEWSPAPER OVERVIEW
   ========================================= */

.newspaper-wrap {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.newspaper-wrap *,
.newspaper-wrap *::before,
.newspaper-wrap *::after {
    box-sizing: border-box;
}

.newspaper-heading {
    padding: 15px;
    font-size: 32px;
    font-weight: bold;
	text-align: center;
	font-family: font-family: Arial, Helvetica, sans-serif;
}

.newspaper-content {
    padding: 22px;
}

.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 252px);
    justify-content: start;
    gap: 16px;
    align-items: stretch;
}

/* Individual magazine card */

.newspaper-card {
    display: flex;
    flex-direction: column;
    width: 252px;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    justify-self: start;
    padding: 0 0 22px;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        rgba(0, 0, 0, .96),
        rgba(8, 12, 16, .94)
    );

    border: 1px solid var(--imyeon-border);
    border-top: 2px solid var(--imyeon-cyan);
    box-shadow: var(--imyeon-shadow);
}

.newspaper-card__header {
    height: 88px;
    flex-shrink: 0;
    padding: 15px 15px 10px;
}

.newspaper-card__date {
    margin-bottom: 7px;
    color: var(--imyeon-red);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.newspaper-card__title {
    margin: 0;
    color: var(--imyeon-white);
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.newspaper-card__title a {
    color: inherit;
    text-decoration: none;
}

.newspaper-card__title a:hover {
    color: var(--imyeon-cyan);
}

.newspaper-card__cover-link {
    display: block;
    margin: 0 15px;
}

.newspaper-card__cover {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
}

.newspaper-card__footer {
    margin-top: auto;
    padding: 15px 15px 0;
}

.newspaper-card__button {
    display: inline-block;
    padding: 9px 13px;
    background: var(--imyeon-red);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-left: 3px solid var(--imyeon-cyan);
    transition: background .2s ease, color .2s ease;
}

.newspaper-card__button a:link, a:visited, a:hover {
}

.newspaper-card__button:hover {
    background: var(--imyeon-cyan);
    color: #101116;
}

/* =========================================
   ARTICLE CONTENT
   Existing IMYEON article styling
   ========================================= */

.imyeon-stories {
    max-width: 760px;
    margin: 30px auto;
    padding: 24px;
    background: var(--imyeon-bg);
    color: var(--imyeon-white);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    border: 1px solid #30313B;
    position: relative;
    overflow: hidden;
}

.imyeon-stories *,
.imyeon-stories *::before,
.imyeon-stories *::after {
    box-sizing: border-box;
}

.imyeon-stories .imyeon-kicker {
    color: var(--imyeon-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.imyeon-stories .imyeon-main-title {
    margin: 0;
    color: var(--imyeon-white);
    font-size: clamp(30px, 6vw, 48px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    text-align: center;
}

.imyeon-stories .imyeon-main-subtitle {
    margin: 14px 0 28px;
    color: var(--imyeon-muted);
    font-size: 13px;
    line-height: 1.7;
    font-style: italic;
}

.imyeon-stories .imyeon-divider {
    height: 2px;
    margin-bottom: 26px;
    background: linear-gradient(
        90deg,
        var(--imyeon-red),
        var(--imyeon-cyan),
        transparent
    );
}

.imyeon-stories .imyeon-story {
    position: relative;
    margin: 0 0 20px;
    padding: 22px;
    background: var(--imyeon-panel);
    border-left: 3px solid var(--imyeon-red);
}

.imyeon-stories .imyeon-story:nth-of-type(even) {
    border-left-color: var(--imyeon-cyan);
}

.imyeon-stories .imyeon-story-title {
    margin: 0 0 8px;
    color: var(--imyeon-red);
    font-size: clamp(20px, 4vw, 27px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story-subtitle {
    margin: 0 0 14px;
    color: var(--imyeon-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story-text {
    margin: 0;
    color: var(--imyeon-muted);
    font-size: 13px;
    line-height: 1.85;
}

.imyeon-stories .imyeon-page {
    display: block;
    margin-top: 17px;
    padding-top: 10px;
    border-top: 1px solid #393943;
    color: var(--imyeon-cyan);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.imyeon-stories .imyeon-story:nth-of-type(even) .imyeon-story-title {
    color: var(--imyeon-cyan);
}

.imyeon-stories .imyeon-footer {
    padding: 18px 0 2px;
    color: var(--imyeon-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .imyeon-stories {
        padding: 14px;
    }

    .imyeon-stories .imyeon-story {
        padding: 16px;
    }

    .newspaper-content {
        padding: 12px;
    }

    .newspaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(0, 252px));
    }
}
