.notice-page {
    padding: 100px 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
}

.notice-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2rem;
    padding-top: 1rem;
}

.notice-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.notice-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.notice-item {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.notice-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.notice-item.expanded {
    max-height: none;
}

.notice-item.important {
    border-left: 4px solid #e74c3c;
}

.notice-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.notice-item.visible .notice-title {
    transform: translateX(0);
    opacity: 1;
}

.notice-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.notice-item.visible .notice-date {
    transform: translateX(0);
    opacity: 1;
}

.notice-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.notice-item.visible .notice-images {
    opacity: 1;
    transform: scale(1);
}

.notice-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.notice-image:hover {
    transform: scale(1.02);
}

.notice-content {
    position: relative;
    padding-bottom: 3rem;
    color: #444;
    line-height: 1.6;
    white-space: pre-line;
}

.read-more-button {
    display: block;
    background-color: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.read-more-button::before {
    content: '';
    position: absolute;
    left: -200%;
    right: -200%;
    bottom: -1rem;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, white 70%);
    z-index: -1;
}

.notice-item.expanded .read-more-button::before {
    display: none;
}

.read-more-button:hover {
    background-color: rgba(117, 117, 117, 0.05);
}

.read-more-button.hidden {
    display: none;
}

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-popup-overlay.active {
    display: flex;
}

.popup-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .notice-page {
        padding: 80px 1rem 1rem;
    }
    
    .notice-item {
        padding: 1rem;
    }

    .notice-images {
        flex-direction: column;
    }

    .notice-image {
        width: 100%;
    }
} 