/* 
 * 현대인의 5대 질병 - Poster Style (Rectangular)
 */

@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Do+Hyeon&family=Jua&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --bg-wall: #E0E0E0;
    /* Perforated board look */

    /* Header & Theme */
    --header-blue: #1A237E;
    /* Dark Navy Blue from image */
    --text-navy: #1A237E;

    /* Card Colors */
    --card-bg: #FFFFFF;
    --card-border: #CFD8DC;

    /* Depression Card */
    --dep-bg: #FFF9C4;
    /* Light Yellow */
    --dep-header: #FBC02D;

    /* Section Headers */
    --sect-blue: #1565C0;
    --sect-light: #E3F2FD;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-wall);
    /* Dot pattern for pegboard effect */
    background-image: radial-gradient(#9E9E9E 15%, transparent 16%);
    background-size: 20px 20px;
    color: #333;
}

header {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 5px solid var(--header-blue);
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.poster-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 4rem;
    color: #000;
    margin: 0;
    /* Ultra thin white stroke */
    -webkit-text-stroke: 0.05px white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    word-break: keep-all;
    line-height: 1.2;
}

.title-blue {
    color: #1A237E;
}

.title-red {
    color: #D32F2F;
}

.header-team {
    margin-top: 10px;
    font-family: 'Jua';
    color: #555;
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/*
 * POSTER CARD STYLE
 * Rectangular Layout
 */
.poster-card {
    background: white;
    border: 1px solid #B0BEC5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Remove fixed aspect-ratio to prevent clipping.
       Grid will ensure uniform height based on tallest card. */
    height: 100%;
    position: relative;
    /* overflow: hidden; Removed to allow content to dictate height if needed */
}

/* Paper pin/clip visual */
.poster-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Card Header Area */
.p-header {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 3px solid var(--header-blue);
    background: #FAFAFA;
}

.p-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2rem;
    margin: 0;
    color: var(--text-navy);
    -webkit-text-stroke: 0.05px white;
}

.p-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 5px;
}

/* Card Body */
.p-body {
    padding: 12px 10px;
    /* Tighter padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap */
    font-size: 0.78rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

/* Content Sections */
.section-box {
    margin-bottom: 4px;
}

.sect-title {
    background-color: var(--header-blue);
    color: white;
    font-family: 'Jua', sans-serif;
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    width: 100%;
    margin-bottom: 6px;
    text-align: center;
    font-size: 0.95rem;
}

.content-row {
    display: flex;
    gap: 10px;
}

.col-half {
    flex: 1;
    background: #F5F5F5;
    padding: 6px;
    /* Reduced from 8px */
    border-radius: 5px;
}

.col-full {
    background: #E8EAF6;
    padding: 6px;
    /* Reduced from 10px */
    border-radius: 5px;
    width: 100%;
}

ul {
    padding-left: 15px;
    margin: 0;
}

li {
    margin-bottom: 2px;
}

/* Special Card: Depression styling removed to match others */


/* Responsive */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        /* Reduce padding */
    }

    .poster-title {
        font-size: 2.5rem;
        /* Reduce title size */
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .poster-title {
        font-size: 2rem;
        /* Further reduce for very small screens */
    }

    header {
        padding: 1.5rem 0;
    }
}

/* Floating Back Button */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Jua', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .back-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}