/*
 * ITG Brands — Key Announcements Page
 * Matches Imperial Brands card style from articlefilterpane CSS.
 *
 * Card values from Imperial source:
 *   date: text-transform uppercase, font-size .875em, color #453628, font-weight 200
 *   title link: font-size 1.125em, line-height 1.4em, color inherit, text-decoration none
 *   card border: 1px solid #f2f2f2, padding-bottom 30px, margin-bottom 30px
 *   heading: font-size 1.7em, color #ff7321, border-bottom 2px solid #ff7321, padding-bottom 20px, margin-bottom 40px
 */

/* ── Page wrapper ───────────────────────────────────────────── */
.itg-announcements-page {
    padding-bottom: 80px;
}

/* Push content below fixed nav — nav is at top:24px, height ~66px = bottom ~90px */
.itg-announcements-page .itg-announcements-inner {
    padding-top: 120px;
}

.itg-announcements-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Page heading — Imperial exact ─────────────────────────── */
.itg-announcements-heading {
    font-family: 'Play', sans-serif;
    font-size: 3.1em;
    font-weight: 700;
    line-height: 1.3em;
    color: #ff7321;
    margin-bottom: 40px;
    padding-bottom: 0;
    border-bottom: 0;
    width: 100%;
}

/* ── 3-column card grid ─────────────────────────────────────── */
.itg-announcements-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Individual card ────────────────────────────────────────── */
.itg-announcement-item {
    margin: 0;
    padding: 0;
}

.itg-announcement-card {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 28px;
    border: 1px solid #f2f2f2;
    border-radius: 4px;
    height: 100%;
    box-sizing: border-box;
    color: #453628;
    text-decoration: none;          /* card is now an <a> tag */
    transition: box-shadow 0.2s ease;
}

.itg-announcement-card:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
}

/* ── Date — Imperial exact ──────────────────────────────────── */
.itg-announcement-date {
    display: block;
    font-family: 'Play', sans-serif;
    font-size: 0.875em;
    font-weight: 700;
    color: #ff7321;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* ── Title link — Imperial exact ────────────────────────────── */
.itg-announcement-title {
    display: block;
    font-family: 'Play', sans-serif;
    font-size: 1em;
    line-height: 1.4em;
    color: #453628;
    text-decoration: none;
    font-weight: 400;    /* requires Play 400 — loaded via functions.php */
    transition: color 0.2s ease;
}

.itg-announcement-title:hover {
    color: #ff7321;
}

/* ── Empty state ────────────────────────────────────────────── */
.itg-announcements-empty {
    color: #453628;
    font-size: 1em;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media only screen and (max-width: 1099px) {
    .itg-announcements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 640px) {
    .itg-announcements-inner {
        padding: 0 20px;
    }
    .itg-announcements-grid {
        grid-template-columns: 1fr;
    }
    .itg-announcements-page {
        padding-top: 30px;
    }
}