/**
 * GHVM Notice Board — allnotice.php
 */
.ghvm-notices {
    --ghvm-n-teal: var(--color-primary, #1ab69d);
    --ghvm-n-teal-deep: #0f8f7a;
    --ghvm-n-coral: var(--color-secondary, #ee4a62);
    --ghvm-n-ink: var(--color-heading, #181818);
    --ghvm-n-muted: #6b7385;
    --ghvm-n-stage: #eef7f5;
    --ghvm-n-ease: cubic-bezier(0.22, 1, 0.36, 1);
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(26, 182, 157, 0.09), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 5%, rgba(238, 74, 98, 0.04), transparent 50%),
        #fafcfb;
    padding: 48px 0 72px !important;
    font-family: var(--font-primary);
}

.ghvm-notices .container {
    max-width: 920px;
}

.ghvm-notices-head {
    text-align: center;
    margin-bottom: 28px;
}

.ghvm-notices-head .title {
    margin: 0 0 8px;
    font-family: var(--font-secondary);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--ghvm-n-ink);
    line-height: 1.2;
}

.ghvm-notices-head .ghvm-notices-lead {
    margin: 0 auto;
    max-width: 480px;
    color: var(--ghvm-n-muted);
    font-size: 15px;
    line-height: 1.55;
}

.ghvm-notices-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(20, 32, 43, 0.08);
    font-size: 13px;
    font-weight: 650;
    color: var(--ghvm-n-teal-deep);
    box-shadow: 0 4px 12px rgba(20, 32, 43, 0.04);
}

.ghvm-notices-list {
    display: grid;
    gap: 14px;
}

.ghvm-notice-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(20, 32, 43, 0.07);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 32, 43, 0.05);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ghvm-notice-card:hover {
    border-color: rgba(26, 182, 157, 0.35);
    box-shadow: 0 16px 36px rgba(20, 32, 43, 0.09);
}

.ghvm-notice-date {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--ghvm-n-stage), #fff);
    border: 1px solid rgba(26, 182, 157, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.ghvm-notice-date .day {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--ghvm-n-ink);
}

.ghvm-notice-date .mon {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ghvm-n-teal-deep);
}

.ghvm-notice-date .yr {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ghvm-n-muted);
}

.ghvm-notice-body {
    min-width: 0;
}

.ghvm-notice-body .ghvm-notice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ghvm-notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--ghvm-n-stage);
    color: var(--ghvm-n-teal-deep);
}

.ghvm-notice-tag.is-pdf {
    background: #fff1f2;
    color: #be123c;
}

.ghvm-notice-card h3 {
    margin: 0 0 6px;
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 750;
    color: var(--ghvm-n-ink);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ghvm-notice-card:hover h3 {
    color: var(--ghvm-n-teal-deep);
}

.ghvm-notice-card p {
    margin: 0;
    color: var(--ghvm-n-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ghvm-notice-go {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ghvm-n-stage);
    color: var(--ghvm-n-teal-deep);
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ghvm-n-ease);
}

.ghvm-notice-card:hover .ghvm-notice-go {
    background: var(--ghvm-n-teal);
    color: #fff;
    transform: translateX(3px);
}

.ghvm-notices-empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed rgba(26, 182, 157, 0.3);
}

.ghvm-notices-empty i {
    font-size: 36px;
    color: var(--ghvm-n-teal);
    display: block;
    margin-bottom: 12px;
}

.ghvm-notices-empty h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 750;
    color: var(--ghvm-n-ink);
}

.ghvm-notices-empty p {
    margin: 0;
    color: var(--ghvm-n-muted);
}

.ghvm-notices-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    list-style: none;
    padding: 0;
}

.ghvm-notices-pager a,
.ghvm-notices-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(20, 32, 43, 0.1);
    background: #fff;
    color: var(--ghvm-n-ink);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ghvm-notices-pager a:hover {
    border-color: rgba(26, 182, 157, 0.4);
    color: var(--ghvm-n-teal-deep);
}

.ghvm-notices-pager .is-active a,
.ghvm-notices-pager .is-active span {
    background: linear-gradient(135deg, var(--ghvm-n-teal), var(--ghvm-n-teal-deep));
    border-color: transparent;
    color: #fff;
}

.ghvm-notices-pager .is-disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .ghvm-notice-card {
        grid-template-columns: 72px 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 16px;
    }

    .ghvm-notice-date {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    .ghvm-notice-date .day {
        font-size: 22px;
    }

    .ghvm-notice-go {
        display: none;
    }

    .ghvm-notice-card h3 {
        font-size: 16px;
    }
}
