/* notice-board.css */

.custom-notice-board {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(23, 50, 77, 0.06);
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid rgba(23, 50, 77, 0.05);
    backdrop-filter: blur(8px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-notice-board:hover {
    box-shadow: 0 18px 50px rgba(23, 50, 77, 0.12);
    transform: translateY(-4px);
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 60%, #0d4f47 100%);
    position: relative;
    overflow: hidden;
}

.notice-header::after {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.notice-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notice-title .icon-wrap {
    background: rgba(255, 255, 255, 0.18);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-filter {
    position: relative;
    flex-shrink: 0;
}

.notice-category-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 7px 32px 7px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
}

.notice-category-select:hover,
.notice-category-select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.notice-category-select option {
    background: #ffffff;
    color: #2d3748;
    padding: 8px;
}

.notice-filter::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    font-size: 0.85rem;
}

.notice-body {
    padding: 12px 16px 16px;
    position: relative;
    flex: 1;
    min-height: 180px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.notice-item {
    border-bottom: 1px solid rgba(233, 237, 242, 0.6);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 14px;
    border-radius: 10px;
    margin: 2px 0;
}

.notice-link:hover {
    background: rgba(15, 118, 110, 0.04);
}

.notice-link:hover .notice-text {
    color: #0f766e;
}

.notice-link:hover .notice-arrow {
    transform: translateX(5px);
    color: #0f766e;
}

.notice-link:hover .notice-date {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.2);
    color: #0f766e;
}

.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(240, 244, 248, 0.8);
    color: #4a5568;
    border-radius: 10px;
    min-width: 62px;
    padding: 6px 5px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.date-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.date-year {
    font-size: 0.65rem;
    opacity: 0.7;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.notice-arrow {
    color: #a0aec0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.notice-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 0 0 20px 20px;
}

.notice-footer {
    padding: 12px 20px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #0f766e, #115e59);
    color: #ffffff;
    padding: 9px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.2);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
}

.btn-view-all i {
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

/* ======= National Anthem ======= */

.national-anthem-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(23, 50, 77, 0.06);
    border: 1px solid rgba(23, 50, 77, 0.05);
    backdrop-filter: blur(8px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s ease;
}

.national-anthem-card:hover {
    box-shadow: 0 18px 50px rgba(23, 50, 77, 0.12);
    transform: translateY(-4px);
}

.national-anthem-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #244b6b 0%, #1a3a52 60%, #152d3e 100%);
    position: relative;
    overflow: hidden;
}

.national-anthem-card__header::after {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.national-anthem-card__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f59e0b;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.national-anthem-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.national-anthem-card__body {
    padding: 22px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.national-anthem-card__flag {
    position: relative;
    padding: 6px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.national-anthem-card__flag img {
    display: block;
    max-width: 160px;
    border-radius: 10px;
}

.national-anthem-card__audio {
    width: 100%;
    max-width: 260px;
}

.national-anthem-card__audio audio {
    width: 100%;
    height: 42px;
    border-radius: 21px;
}

.national-anthem-card__lyrics {
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.national-anthem-card__lyrics p {
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
    margin: 0;
    font-weight: 400;
}

.national-anthem-card__credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.national-anthem-card__credits p {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

@media (max-width: 991px) {
    .national-anthem-card__flag img {
        max-width: 130px;
    }

    .national-anthem-card__audio {
        max-width: 220px;
    }
}

@media (max-width: 576px) {
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-category-select {
        width: 100%;
    }

    .national-anthem-card__flag img {
        max-width: 120px;
    }

    .national-anthem-card__lyrics p {
        font-size: 12px;
    }
}