/*
 * Styles for the IT Alerts module.
 *
 * These rules are namespaced under the `.it-alerts-module` container to
 * avoid interfering with other styles on the site.  The color scheme
 * uses UNM’s cherry red and light grey for accents.
 */

:root {
    --unm-cherry: #ba0c2f;
    --unm-grey: #f9f9f9;
}

/* Container for the entire module */
.it-alerts-module {
    background-color: var(--unm-grey);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-family: Arial, Helvetica, sans-serif;
    /* Increase base font size for better readability and override site defaults */
    font-size: 16px !important;
}

/* Header */
.it-alerts-module .alerts-header {
    background-color: var(--unm-cherry);
    color: #fff;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    /* Make the module heading more prominent */
    font-size: 24px !important;
    font-weight: bold !important;
}

/* Introductory text */
.it-alerts-module .alerts-intro {
    color: #555;
    margin-bottom: 1rem;
    font-size: 14px !important;
}

/* Section wrapper */
.it-alerts-module .alert-section {
    margin-bottom: 2rem;
}

/* Section title row */
.it-alerts-module .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.it-alerts-module .section-title .section-icon {
    width: 8px;
    height: 14px;
    background-color: var(--unm-cherry);
    margin-right: 0.5rem;
}

.it-alerts-module .section-title h3 {
    font-size: 24px !important;
    color: #000000;
    font-weight: bold !important;
    margin: 0;
}

.it-alerts-module .section-title .section-bar {
    flex-grow: 1;
    height: 12px;
    background-color: #b3b3b3;
    margin-left: 0.5rem;
}

/* Notice container */
.it-alerts-module .notice {
    margin-bottom: 1rem;
}

/* Layout for a single notice */
.it-alerts-module .notice-row {
    display: flex;
    align-items: flex-start;
}

.it-alerts-module .date-box {
    border: 1px solid #000;
    border-radius: 6px;
    width: 60px;
    min-width: 60px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.it-alerts-module .date-box .month {
    background-color: var(--unm-cherry);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 4px 0;
    font-family: 'Vitesse', 'Gotham', 'Arial Black', sans-serif;
    font-size: 15px !important;
    font-weight: bold !important;
    text-transform: capitalize;
}

.it-alerts-module .date-box .day {
    background-color: #fff;
    color: #000;
    width: 100%;
    text-align: center;
    padding: 4px 0;
    font-family: 'Vitesse', 'Gotham', 'Arial Black', sans-serif;
    font-size: 22px !important;
    font-weight: bold !important;
}

/* Toggle button for each alert */
.it-alerts-module .alert-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: #222630;
    cursor: pointer;
    font-weight: bold !important; /* Make alert headings bold */
    font-size: 18px !important;
    text-align:left;
}

.it-alerts-module .alert-toggle:focus {
    outline: none;
}

.it-alerts-module .alert-toggle .chevron {
    display: inline-block;
    transition: transform 0.3s ease;
    /* Increase the size of the dropdown arrow as requested */
    font-size: 2.4rem;
    margin-right: 0.5rem;
}

.it-alerts-module .alert-toggle.collapsed .chevron {
    transform: rotate(0deg);
        color: #ba0c2f;
}

.it-alerts-module .alert-toggle:not(.collapsed) .chevron {
    transform: rotate(90deg);
        color: #ba0c2f;
}

/* Collapsible details container */
.it-alerts-module .collapse {
    display: none;
}

.it-alerts-module .collapse.show {
    display: block;
}

.it-alerts-module .details-box {
    background-color: #f5f5f5;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 16px !important;
    line-height: 1.5;
}

/* Reduce extra spacing in paragraphs inside details */
.it-alerts-module .details-box p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 16px !important;
}

/* Separate multiple alerts within a section */
.it-alerts-module .notice:not(:last-child) {
    border-bottom: 1px dotted #999;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Lists inside details */
.it-alerts-module .details-box ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
}

.it-alerts-module .details-box li {
    margin-bottom: 0.25rem;
}
.it-alerts-module .details-box .meta-row {
  font-size: 18px;
  margin-bottom: 4px;
}

.it-alerts-module .details-box .meta-sep {
  height: 10px;
}

.it-alerts-module .details-box p {
  margin-top: 0;
  margin-bottom: 12px; /* more like source */
}
.it-alerts-module .details-box .meta-row {
  font-size: 18px !important;
  margin-bottom: 6px;
}

.it-alerts-module .details-box .meta-sep {
  height: 10px;
}

.it-alerts-module .details-box div {
  display: block !important;
}

.it-alerts-module .details-box br {
  display: block !important;
  content: "" !important;
  margin-bottom: 6px;
}
/* FORCE line breaks inside the alert details box (overrides any site CSS) */
.it-alerts-module .details-box,
.it-alerts-module .details-box * {
  white-space: normal !important;
}

.it-alerts-module .details-box .meta-row {
  display: block !important;
  width: 100% !important;
  margin: 0 0 6px 0 !important;
}

.it-alerts-module .details-box .meta-row strong {
  display: inline !important;
}

.it-alerts-module .details-box .meta-sep {
  display: block !important;
  height: 12px !important;
}

.it-alerts-module .details-box p {
  display: block !important;
  margin: 0 0 12px 0 !important;
}
