/* ================================
   HOH Notices — Sanctuary Soft
   Clean, Light, Modern
   ================================ */

/* Wrapper */
.hoh-notices {
    background: var(--wp--preset--color--accent-4);
    border-radius: 18px;
    padding: var(--wp--preset--spacing--40);
    margin: var(--wp--preset--spacing--40) auto;
    max-width: 900px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    color: var(--wp--preset--color--accent-3);
}

/* Title */
.hoh-notices-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: var(--wp--preset--spacing--30);
    font-weight: 600;
    color: var(--wp--preset--color--accent-3);
}

/* List */
.hoh-notices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Divider between notices */
.hoh-notices-list li + li {
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: var(--wp--preset--spacing--30);
    padding-top: var(--wp--preset--spacing--30);
}

/* Notice Card */
.hoh-notice-item {
    background: var(--wp--preset--color--accent-5);
    border-radius: 16px;
    padding: var(--wp--preset--spacing--30);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Urgent Badge */
.hoh-notice-urgent {
    display: inline-block;
    background: #c62828;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

/* Title + Icon */
.hoh-notice-title {
    display: flex;
    align-items: center;
    gap: 10px; /* perfect spacing between icon, urgent badge, and title */
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--wp--preset--spacing--20);
    color: var(--wp--preset--color--accent-3);
}

/* Dashicons icon (actual visible glyph is in ::before) */
.hoh-notice-title .dashicons:before {
    font-size: 20px;
    color: var(--wp--preset--color--accent-3);
    display: inline-block;
}

/* Content */
.hoh-notice-content,
.hoh-notice-content p {
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--wp--preset--color--accent-3);
}

/* Auto Date */
.hoh-notice-date {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.55);
}

/* Empty State */
.hoh-notices-empty {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    padding: var(--wp--preset--spacing--0) 0;
}

/* List */
.hoh-notices-list {
    list-style: none;
    padding: 0;
    margin: 0;

    /* add these: */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--20);
}

/* Notice Card */
.hoh-notice-item {
    background: var(--wp--preset--color--accent-5);
    border-radius: 16px;
    padding: var(--wp--preset--spacing--30);
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);

    /* add these: */
    max-width: 600px;
    width: 100%;
}

.hoh-notice-item {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hoh-notices-list li + li {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: var(--wp--preset--spacing--30);
}

/* Divider width control */
.hoh-notices-list li + li::before {
    content: "";
    display: block;
    width: 90%;
    margin: 0 auto var(--wp--preset--spacing--30);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Remove the original border so it doesn't double up */
.hoh-notices-list li + li {
    border-top: none;
}







/* ================================
   Mobile Refinements
   ================================ */

@media (max-width: 600px) {
    .hoh-notices {
        padding: var(--wp--preset--spacing--30);
    }

    .hoh-notices-title {
        font-size: 22px;
    }

    .hoh-notice-title {
        font-size: 18px;
    }
}
