/* =====================================================
   PREMIUM ANNOUNCEMENT BAR
===================================================== */

.announcement-bar {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;

    background: linear-gradient(
        135deg,
        #07111f,
        #0d1b2e,
        #111827
    );

    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    color: #ffffff;

    overflow: hidden;

    position: relative;
    z-index: 100;
}


/* =====================================================
   LEFT LABEL
===================================================== */

.announcement-label {
    flex-shrink: 0;

    height: 58px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 22px;

    background: linear-gradient(
        135deg,
        #c9a227,
        #e3c65a
    );

    color: #101010;

    font-weight: 800;

    position: relative;
    z-index: 5;

    box-shadow:
        8px 0 25px rgba(0,0,0,0.25);
}


.announcement-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.35);

    font-size: 15px;
}


.announcement-title {
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}


/* =====================================================
   MARQUEE
===================================================== */

.announcement-wrapper {
    flex: 1;

    overflow: hidden;

    position: relative;

    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 4%,
        #000 96%,
        transparent 100%
    );
}


.announcement-track {
    display: flex;
    align-items: center;

    width: max-content;

    animation: announcementScroll 32s linear infinite;
}


.announcement-wrapper:hover .announcement-track {
    animation-play-state: paused;
}


@keyframes announcementScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}


/* =====================================================
   ANNOUNCEMENT ITEM
===================================================== */

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    padding: 0 18px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: 0.3s ease;
}


.announcement-item:hover {
    color: #e3c65a;
}


.announcement-item i {
    font-size: 11px;
    opacity: 0.7;
}


/* =====================================================
   BADGES
===================================================== */

.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 22px;

    padding: 0 8px;

    border-radius: 20px;

    background: #d90429;

    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.8px;

    box-shadow:
        0 4px 12px rgba(217,4,41,0.25);
}


.notice-badge {
    background: #2563eb;
}


.announcement-separator {
    color: #c9a227;

    font-size: 9px;

    opacity: 0.8;
}


/* =====================================================
   VIEW ALL
===================================================== */

.announcement-view {
    flex-shrink: 0;

    height: 58px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 22px;

    border: 0;
    border-left: 1px solid rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.04);

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}


.announcement-view:hover {
    background: #c9a227;
    color: #111111;
}


.announcement-view i {
    transition: 0.3s ease;
}


.announcement-view:hover i {
    transform: translateX(4px);
}


/* =====================================================
   POPUP OVERLAY
===================================================== */

.notice-popup-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 8, 18, 0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


.notice-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =====================================================
   POPUP BOX
===================================================== */

.notice-popup {
    width: 100%;
    max-width: 760px;

    max-height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    transform:
        translateY(30px)
        scale(0.96);

    transition:
        transform 0.4s cubic-bezier(.22,1,.36,1);
}


.notice-popup-overlay.active .notice-popup {
    transform:
        translateY(0)
        scale(1);
}


/* =====================================================
   POPUP HEADER
===================================================== */

.notice-popup-header {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 24px;

    background:
        linear-gradient(
            135deg,
            #07111f,
            #13243a
        );

    color: #ffffff;
}


.notice-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}


.notice-header-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #c9a227,
            #e7cd65
        );

    color: #111111;

    font-size: 19px;

    box-shadow:
        0 8px 20px rgba(201,162,39,0.25);
}


.notice-small-title {
    display: block;

    margin-bottom: 3px;

    color: #d9bd55;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.8px;
}


.notice-popup-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 800;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.notice-close {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: #ffffff;

    cursor: pointer;

    font-size: 17px;

    transition: 0.3s ease;
}


.notice-close:hover {
    background: #ffffff;
    color: #111111;

    transform: rotate(90deg);
}


/* =====================================================
   POPUP BODY
===================================================== */

.notice-popup-body {
    flex: 1;

    overflow-y: auto;

    padding: 20px;

    background: #f7f8fa;
}


/* Scrollbar */

.notice-popup-body::-webkit-scrollbar {
    width: 6px;
}


.notice-popup-body::-webkit-scrollbar-track {
    background: transparent;
}


.notice-popup-body::-webkit-scrollbar-thumb {
    background: #c9a227;
    border-radius: 20px;
}


/* =====================================================
   NOTICE CARD
===================================================== */

.notice-card {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-bottom: 12px;
    padding: 16px;

    background: #ffffff;

    border: 1px solid #e9ebef;

    border-radius: 16px;

    text-decoration: none;

    color: #111111;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.notice-card:last-child {
    margin-bottom: 0;
}


.notice-card:hover {
    transform: translateY(-3px);

    border-color: #c9a227;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.09);
}


/* =====================================================
   DATE BOX
===================================================== */

.notice-date {
    flex-shrink: 0;

    width: 62px;
    height: 66px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #07111f,
            #16283f
        );

    color: #ffffff;
}


.notice-date strong {
    font-size: 24px;
    line-height: 1;

    font-weight: 800;
}


.notice-date span {
    margin-top: 5px;

    color: #d9bd55;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =====================================================
   NOTICE CONTENT
===================================================== */

.notice-content {
    flex: 1;
    min-width: 0;
}


.notice-top {
    margin-bottom: 5px;
}


.notice-badge-popup {
    display: inline-flex;

    padding: 4px 9px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.notice-badge-popup.new {
    background: #fee2e2;
    color: #b91c1c;
}


.notice-badge-popup.event {
    background: #dbeafe;
    color: #1d4ed8;
}


.notice-badge-popup.placement {
    background: #dcfce7;
    color: #15803d;
}


.notice-badge-popup.notice {
    background: #fef3c7;
    color: #a16207;
}


.notice-content h3 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 16px;
    font-weight: 750;

    line-height: 1.35;
}


.notice-content p {
    margin: 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   CARD ARROW
===================================================== */

.notice-arrow {
    flex-shrink: 0;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f4f1e5;

    color: #9b7b00;

    transition: 0.3s ease;
}


.notice-card:hover .notice-arrow {
    background: #c9a227;
    color: #111111;

    transform: translateX(4px);
}


/* =====================================================
   POPUP FOOTER
===================================================== */

.notice-popup-footer {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 22px;

    border-top: 1px solid #e9ebef;

    background: #ffffff;
}


.notice-popup-footer div {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #6b7280;

    font-size: 11px;
}


.notice-popup-footer div i {
    color: #c9a227;
}


.notice-popup-footer > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #111827;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.3s ease;
}


.notice-popup-footer > a:hover {
    color: #b08a00;
}


.notice-popup-footer > a i {
    transition: 0.3s ease;
}


.notice-popup-footer > a:hover i {
    transform: translateX(4px);
}


/* =====================================================
   BODY LOCK
===================================================== */

body.notice-popup-open {
    overflow: hidden;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .announcement-title {
        display: none;
    }

    .announcement-label {
        padding: 0 15px;
    }

    .announcement-item {
        font-size: 13px;
    }

    .announcement-view {
        padding: 0 16px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .announcement-bar {
        min-height: 52px;
    }


    .announcement-label {
        height: 52px;

        padding: 0 11px;
    }


    .announcement-icon {
        width: 30px;
        height: 30px;
    }


    .announcement-wrapper {
        min-width: 0;
    }


    .announcement-item {
        gap: 8px;

        padding: 0 12px;

        font-size: 11px;
    }


    .new-badge {
        min-width: 37px;
        height: 19px;

        padding: 0 6px;

        font-size: 8px;
    }


    .announcement-separator {
        font-size: 7px;
    }


    .announcement-view {
        height: 52px;

        padding: 0 13px;

        font-size: 11px;
    }


    .announcement-view i {
        font-size: 10px;
    }


    /* POPUP */

    .notice-popup-overlay {
        padding: 10px;
    }


    .notice-popup {
        max-height: 94vh;

        border-radius: 19px;
    }


    .notice-popup-header {
        padding: 17px;
    }


    .notice-header-icon {
        width: 42px;
        height: 42px;

        border-radius: 12px;

        font-size: 16px;
    }


    .notice-small-title {
        font-size: 8px;
    }


    .notice-popup-header h2 {
        font-size: 19px;
    }


    .notice-close {
        width: 36px;
        height: 36px;
    }


    .notice-popup-body {
        padding: 12px;
    }


    .notice-card {
        gap: 11px;

        padding: 12px;

        border-radius: 13px;
    }


    .notice-date {
        width: 50px;
        height: 57px;

        border-radius: 11px;
    }


    .notice-date strong {
        font-size: 20px;
    }


    .notice-date span {
        font-size: 8px;
    }


    .notice-content h3 {
        font-size: 13px;
    }


    .notice-content p {
        display: none;
    }


    .notice-arrow {
        width: 30px;
        height: 30px;

        font-size: 11px;
    }


    .notice-popup-footer {
        padding: 12px 15px;
    }


    .notice-popup-footer div span {
        display: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .announcement-view span {
        display: none;
    }


    .announcement-view {
        width: 42px;

        justify-content: center;

        padding: 0;
    }


    .announcement-label {
        padding: 0 9px;
    }


    .notice-content h3 {
        font-size: 12px;
    }


    .notice-date {
        width: 46px;
    }

}