/* Notice Page Styles */

/* Hero Section */
.notice-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.notice-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: white;
}

.notice-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.notice-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.notice-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.notice-hero .hero-title {
    font-size: 3rem;
    font-weight: 330;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.notice-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.notice-hero .hero-description {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.notice-hero .scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.notice-hero .scroll-arrow {
    width: 45px;
    height: 45px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.notice-hero .scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-5px) !important;
    animation: none
}

/* Main Content */
.main-content {
    padding: 60px 0 0 0;
    background: white;
}

/* Notice Main Background - 안전한 고정 */
.main-content.notice-main-bg {
    position: relative;
    min-height: 100vh;
    background: url('../images/sub-visual-bg.jpg') center center/cover no-repeat;
    background-color: #f0f0f0;
}

.main-content.notice-main-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    pointer-events: none;
}

.main-content.notice-main-bg .container {
    position: relative;
    z-index: 2;
}

/* Notice Board Container */
.notice-board-container {
    width: 100%;
    margin: 0;
}

/* Iframe Container */
.iframe-container {
    position: relative;
    background: transparent;
    overflow: visible;
    min-height: 800px;
    border: none;
    box-shadow: none;
    transition: min-height 0.3s ease;
    margin-bottom: 30px;
}

.notice-iframe {
    width: 100%;
    height: 800px;
    min-height: 800px;
    border: none;
    display: block;
    background: transparent;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Loading Styles */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.iframe-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    margin-bottom: 20px;
}

.loading-spinner i {
    font-size: 2rem;
    color: #007bff;
}

.iframe-loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Iframe Responsive Wrapper */
.iframe-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    /* 4:3 비율 */
    overflow: hidden;
}

.iframe-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .notice-hero {
        height: 28vh;
        margin-bottom: 40px;
        margin-top: -12px;
    }

    .notice-hero .hero-title {
        font-size: 2rem;
    }

    .notice-hero .hero-description {
        font-size: 0.9rem;
    }

    .notice-hero .scroll-indicator {
        bottom: 10px;
    }

    .notice-hero .scroll-arrow {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
        font-size: 1rem;
    }

    .main-content {
        padding: 40px 0 0 0;
    }

    .notice-iframe {
        height: 1000px;
    }

    .iframe-container {
        min-height: 1000px;
    }
}

@media (max-width: 480px) {
    .notice-hero .hero-content {
        padding: 0 15px;
    }

    .notice-hero .hero-title {
        font-size: 1.3rem;
    }

    .notice-hero .hero-description {
        font-size: 0.85rem;
    }

    .notice-iframe {
        height: 800px;
    }

    .iframe-container {
        min-height: 800px;
    }
}