
/* ==================================================
   CODEWORD ANNOUNCEMENTS PAGE
   Theme: Navy Blue + Orange
================================================== */

:root {
    --ann-navy: #142746;
    --ann-blue: #244b7c;
    --ann-orange: #ff8a24;
    --ann-orange-dark: #ed7413;
    --ann-text: #243650;
    --ann-muted: #77849a;
    --ann-border: #e4eaf2;
    --ann-bg: #f5f7fb;
}

section.announcements p{
    color: white;
}
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ann-text);
}

/* Shared container */

.ann-page-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==================================================
   HERO SECTION
================================================== */

.ann-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 85px 0 90px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 138, 36, .13), transparent 28%),
        linear-gradient(120deg, #122441 0%, #1d3b66 58%, #284c7b 100%);
    color: #fff;
}

.ann-hero::after {
    position: absolute;
    z-index: -1;
    right: -130px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
}

.ann-hero-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.ann-hero-decoration-one {
    top: -90px;
    right: 14%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.ann-hero-decoration-two {
    right: 24%;
    bottom: -100px;
    width: 270px;
    height: 270px;
    background: rgba(255, 255, 255, .025);
}

.ann-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.ann-hero-content {
    max-width: 780px;
}

.ann-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 30px;
    background: rgba(255, 255, 255, .08);
    color: #ffd09f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.ann-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(32px, 4.3vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.3px;
}

.ann-hero h1 span {
    color: #ffad61;
}

.ann-hero-content > p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #d5e0ef;
    font-size: 15px;
    line-height: 1.9;
}

.ann-home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: .25s ease;
}

.ann-home-link:hover {
    border-color: var(--ann-orange);
    background: var(--ann-orange);
    color: #fff !important;
}

.ann-hero-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 35px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .15),
        rgba(255, 255, 255, .035)
    );
    box-shadow: 0 20px 55px rgba(0, 0, 0, .12);
    color: #ffad61;
    font-size: 65px;
    transform: rotate(4deg);
}

/* ==================================================
   MAIN SECTION
================================================== */

.ann-main {
    min-height: 500px;
    padding: 65px 0 80px;
    background:
        radial-gradient(ellipse at top left, #eaf0ff 0%, transparent 38%),
        var(--ann-bg);
}

.ann-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.ann-toolbar-heading {
    min-width: 0;
}

.ann-section-label {
    color: var(--ann-orange-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ann-toolbar-heading h2 {
    margin: 8px 0;
    color: var(--ann-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
}

.ann-toolbar-heading p {
    margin: 0;
    color: var(--ann-muted);
    font-size: 13px;
    line-height: 1.7;
}

.ann-summary {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    border: 1px solid var(--ann-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 39, 70, .04);
}

.ann-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #fff0df;
    color: var(--ann-orange-dark);
    font-size: 17px;
}

.ann-summary > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ann-summary strong {
    color: var(--ann-navy);
    font-size: 21px;
    font-weight: 800;
}

.ann-summary > div span {
    color: var(--ann-muted);
    font-size: 10px;
}

/* ==================================================
   SEARCH BAR
================================================== */

.ann-search-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    margin-bottom: 42px;
    border: 1px solid var(--ann-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(20, 39, 70, .035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ann-search-wrap:focus-within {
    border-color: #e8a35d;
    box-shadow: 0 0 0 4px rgba(255, 138, 36, .09);
}

.ann-search-wrap > i {
    color: var(--ann-orange-dark);
    font-size: 16px;
}

.ann-search-wrap input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 15px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ann-text);
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
}

.ann-search-wrap input::placeholder {
    color: #9aa5b6;
}

.ann-search-wrap input:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.ann-search-wrap button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #77849a;
    cursor: pointer;
}

.ann-search-wrap button:hover {
    background: #fff0df;
    color: var(--ann-orange-dark);
}

/* ==================================================
   FEATURED ANNOUNCEMENT
================================================== */

.ann-featured-section {
    margin-bottom: 48px;
}

.ann-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--ann-orange-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ann-featured-label i {
    font-size: 13px;
}

.ann-featured-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 23px;
    overflow: hidden;
    padding: 32px;
    border: 1px solid #f3d4b4;
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 170, 92, .15), transparent 35%),
        linear-gradient(115deg, #fff 0%, #fff9f2 100%);
    box-shadow: 0 12px 32px rgba(20, 39, 70, .045);
}

.ann-featured-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffb15d, #f47713);
    content: "";
}

.ann-featured-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9d43, #f47713);
    box-shadow: 0 8px 18px rgba(244, 119, 19, .2);
    color: #fff;
    font-size: 25px;
}

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

.ann-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.ann-latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #bce8cd;
    border-radius: 6px;
    background: #eaf9ef;
    color: #17814b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
}

.ann-latest-badge > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1aaf67;
}

.ann-card-meta time {
    color: #8994a5;
    font-size: 10px;
    line-height: 1.6;
}

.ann-featured-content h3 {
    margin: 0 0 13px;
    color: var(--ann-navy);
    font-size: clamp(21px, 2.6vw, 28px);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ann-featured-content > p {
    margin: 0;
    color: #66748a;
    font-size: 14px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* ==================================================
   REMAINING ANNOUNCEMENTS
================================================== */

.ann-list-section {
    margin-bottom: 50px;
}

.ann-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.ann-list-heading h2 {
    margin: 0;
    color: var(--ann-navy);
    font-size: 23px;
    font-weight: 800;
}

.ann-list-heading > span {
    padding: 7px 12px;
    border: 1px solid #e1e7f0;
    border-radius: 30px;
    background: #fff;
    color: #69778e;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.ann-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ann-card {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--ann-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(20, 39, 70, .035);
    transition: transform .25s ease, border-color .25s ease,
                box-shadow .25s ease;
}

.ann-card:hover {
    transform: translateY(-4px);
    border-color: #f3c18e;
    box-shadow: 0 12px 28px rgba(20, 39, 70, .075);
}

.ann-card-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #fff1e2;
    color: var(--ann-orange-dark);
    font-size: 18px;
}

.ann-card-body {
    flex: 1;
    min-width: 0;
}

.ann-card .ann-card-meta {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.ann-category-badge {
    padding: 5px 8px;
    border-radius: 5px;
    background: #edf2fa;
    color: #315482;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.ann-card h3 {
    margin: 0 0 10px;
    color: var(--ann-navy);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ann-card p {
    margin: 0;
    color: #6d7a90;
    font-size: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* ==================================================
   LOADING / EMPTY / ERROR STATES
================================================== */

.ann-state {
    padding: 55px 20px;
    margin: 20px 0 35px;
    border: 1px dashed #d6dfec;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.ann-state[hidden],
.ann-featured-section[hidden],
.ann-list-section[hidden] {
    display: none !important;
}

.ann-state > i {
    display: block;
    margin-bottom: 18px;
    color: var(--ann-orange);
    font-size: 35px;
}

.ann-state h3 {
    margin: 0 0 9px;
    color: var(--ann-navy);
    font-size: 19px;
    font-weight: 800;
}

.ann-state p {
    margin: 0;
    color: var(--ann-muted);
    font-size: 12px;
    line-height: 1.8;
}

.ann-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    background: var(--ann-navy);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ann-retry-btn:hover {
    background: var(--ann-orange-dark);
}

/* ==================================================
   BOTTOM CTA
================================================== */

.ann-bottom-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 28px;
    border: 1px solid #e1e7f0;
    border-radius: 15px;
    background: linear-gradient(110deg, #fff 0%, #f8faff 100%);
}

.ann-bottom-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--ann-navy);
    color: #ffb15d;
    font-size: 22px;
}

.ann-bottom-text {
    flex: 1;
    min-width: 0;
}

.ann-bottom-text h3 {
    margin: 0 0 6px;
    color: var(--ann-navy);
    font-size: 16px;
    font-weight: 800;
}

.ann-bottom-text p {
    margin: 0;
    color: var(--ann-muted);
    font-size: 11px;
    line-height: 1.8;
}

.ann-bottom-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 8px;
    background: var(--ann-navy);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .25s ease;
}

.ann-bottom-btn:hover {
    background: var(--ann-orange-dark);
    transform: translateY(-2px);
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 900px) {
    .ann-hero {
        padding: 65px 0;
    }

    .ann-hero-icon {
        width: 115px;
        height: 115px;
        border-radius: 27px;
        font-size: 48px;
    }

    .ann-grid {
        grid-template-columns: 1fr;
    }

    .ann-main {
        padding: 48px 0 60px;
    }
}

@media (max-width: 600px) {
    .ann-page-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ann-hero {
        padding: 50px 0;
    }

    .ann-hero-inner {
        gap: 20px;
    }

    .ann-hero h1 {
        font-size: 32px;
        letter-spacing: -.6px;
    }

    .ann-hero-content > p {
        font-size: 13px;
    }

    .ann-hero-icon {
        display: none;
    }

    .ann-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .ann-summary {
        width: 100%;
    }

    .ann-search-wrap {
        margin-bottom: 32px;
    }

    .ann-featured-card {
        flex-direction: column;
        gap: 17px;
        padding: 23px 19px;
    }

    .ann-featured-icon {
        width: 49px;
        height: 49px;
        border-radius: 12px;
        font-size: 20px;
    }

    .ann-featured-content h3 {
        font-size: 21px;
    }

    .ann-featured-content > p {
        font-size: 12px;
    }

    .ann-card {
        gap: 13px;
        padding: 18px 15px;
    }

    .ann-card-icon {
        width: 39px;
        height: 39px;
        font-size: 15px;
    }

    .ann-card h3 {
        font-size: 14px;
    }

    .ann-card p {
        font-size: 11px;
    }

    .ann-list-heading h2 {
        font-size: 20px;
    }

    .ann-bottom-cta {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 21px 17px;
    }

    .ann-bottom-text {
        flex-basis: calc(100% - 72px);
    }

    .ann-bottom-text h3 {
        font-size: 14px;
    }

    .ann-bottom-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ann-card,
    .ann-home-link,
    .ann-bottom-btn {
        transition: none;
    }

    .ann-card:hover,
    .ann-bottom-btn:hover {
        transform: none;
    }
}
