/* ==========================================================================
   Thailand 5S Award - Notice & Results Page Styles (styleNotice.css)
   Polished to match the Royal Gold theme and modern website design
   ========================================================================== */

:root {
    --not-gold-primary: #b87900;
    --not-gold-dark: #8c5d00;
    --not-gold-light: #df9e08;
    --not-gold-border: rgba(196, 149, 45, 0.24);
    --not-text-main: #3b2c0f;
    --not-text-sub: #6e5c3b;
    --not-text-muted: #8c7752;
    --not-card-bg: #ffffff;
    --not-shadow: 0 10px 32px rgba(120, 90, 20, 0.08);
    --not-shadow-hover: 0 18px 45px rgba(120, 90, 20, 0.16);
    --not-radius-lg: 24px;
    --not-radius-md: 16px;
}

/* Page Container */
.notice-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

/* ==================== Hero Header ==================== */
.notice-hero-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.notice-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: linear-gradient(135deg, #fff7e4 0%, #faecd0 100%);
    border: 1px solid rgba(196, 149, 45, 0.35);
    border-radius: 50px;
    color: var(--not-gold-dark);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(184, 121, 0, 0.08);
}

.notice-badge-pill svg {
    color: var(--not-gold-primary);
    flex-shrink: 0;
}

.notice-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--not-text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.notice-hero-title span {
    background: linear-gradient(135deg, #a46c00 0%, #df9e08 50%, #8c5d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notice-hero-subtitle {
    font-size: 1.1rem;
    color: var(--not-text-sub);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ==================== Featured Notice Card (Latest Announcement) ==================== */
.notice-featured-card {
    background: #ffffff;
    border-radius: var(--not-radius-lg);
    border: 1.5px solid rgba(223, 158, 8, 0.6);
    box-shadow: 0 14px 40px rgba(184, 121, 0, 0.12),
                0 0 0 4px rgba(245, 188, 40, 0.14);
    position: relative;
    overflow: hidden;
    margin-bottom: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9f6900 0%, #df9e08 35%, #ffd470 50%, #df9e08 65%, #9f6900 100%);
    z-index: 2;
}

.notice-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(184, 121, 0, 0.2);
}

.notice-featured-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 260px;
}

.notice-featured-media {
    background: linear-gradient(135deg, #faf3e0 0%, #f4e8cb 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.notice-featured-media img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(120, 90, 20, 0.15);
    transition: transform 0.35s ease;
}

.notice-featured-card:hover .notice-featured-media img {
    transform: scale(1.04);
}

.notice-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #b87900, #df9e08);
    box-shadow: 0 4px 12px rgba(184, 121, 0, 0.35);
}

.notice-featured-body {
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notice-meta-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.notice-round-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--not-gold-dark);
    background: #fdf5e2;
    border: 1px solid #ebd59e;
}

.notice-year-chip {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--not-text-muted);
}

.notice-featured-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--not-text-main);
    line-height: 1.35;
    margin: 0 0 12px;
}

.notice-featured-desc {
    font-size: 1.02rem;
    color: var(--not-text-sub);
    line-height: 1.7;
    margin: 0 0 24px;
}

.notice-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==================== Grid of Announcement Cards ==================== */
.notice-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f4ecdd;
    flex-wrap: wrap;
    gap: 10px;
}

.notice-section-heading h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--not-text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-section-heading h2 svg {
    color: var(--not-gold-primary);
}

.notice-count-badge {
    font-size: 0.88rem;
    color: var(--not-text-muted);
    font-weight: 500;
}

.notice-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 26px;
    margin-bottom: 46px;
}

.notice-card {
    background: #ffffff;
    border-radius: var(--not-radius-lg);
    border: 1px solid var(--not-gold-border);
    box-shadow: var(--not-shadow);
    padding: 30px 28px 26px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #9f6900 0%, #df9e08 50%, #ffd470 100%);
    z-index: 2;
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--not-shadow-hover);
    border-color: rgba(217, 150, 5, 0.55);
}

.notice-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.notice-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #faf3df 0%, #f4e7c7 100%);
    border: 1px solid rgba(196, 149, 45, 0.3);
    color: var(--not-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.notice-card:hover .notice-card-icon {
    background: linear-gradient(135deg, #df9e08, #b87900);
    color: #ffffff;
    transform: scale(1.08);
}

.notice-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--not-gold-dark);
    background: #fdf5e2;
    border: 1px solid #ebd59e;
    white-space: nowrap;
}

.notice-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--not-text-main);
    line-height: 1.45;
    margin: 0 0 10px;
    transition: color 0.2s ease;
}

.notice-card:hover .notice-card-title {
    color: var(--not-gold-primary);
}

.notice-card-desc {
    font-size: 0.95rem;
    color: var(--not-text-sub);
    line-height: 1.65;
    margin: 0 0 20px;
    flex-grow: 1;
}

.notice-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.notice-tag-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b5535;
    background: #f9f2e4;
    padding: 3px 10px;
    border-radius: 12px;
}

.notice-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed #ede1cb;
    display: flex;
    justify-content: flex-end;
}

/* ==================== Bottom CTA Banner ==================== */
.notice-cta-banner {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 50%, #f9edd0 100%);
    border: 1px solid var(--not-gold-border);
    border-radius: var(--not-radius-lg);
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--not-shadow);
    margin-top: 20px;
}

.notice-cta-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--not-text-main);
    margin: 0 0 6px;
}

.notice-cta-content p {
    font-size: 0.98rem;
    color: var(--not-text-sub);
    margin: 0;
}

.notice-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.notice-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 40px;
    background: linear-gradient(135deg, #df9e08, #b87900);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184, 121, 0, 0.28);
    transition: all 0.25s ease;
}

.notice-btn-primary:hover {
    background: linear-gradient(135deg, #e8a917, #9f6600);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 121, 0, 0.35);
    color: #ffffff;
}

.notice-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 40px;
    background: #ffffff;
    color: var(--not-gold-dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dfc798;
    transition: all 0.25s ease;
}

.notice-btn-outline:hover {
    background: #fbf5e6;
    border-color: var(--not-gold-primary);
    transform: translateY(-2px);
    color: var(--not-gold-dark);
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .notice-featured-inner {
        grid-template-columns: 1fr;
    }

    .notice-featured-media {
        min-height: 220px;
    }

    .notice-featured-body {
        padding: 26px 24px;
    }

    .notice-featured-title {
        font-size: 1.35rem;
    }

    .notice-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .notice-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .notice-btn-primary,
    .notice-btn-outline {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .notice-page-container {
        padding: 24px 14px 60px;
    }

    .notice-hero-title {
        font-size: 2rem;
    }

    .notice-hero-subtitle {
        font-size: 0.98rem;
    }

    .notice-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .notice-card {
        padding: 24px 20px 22px;
    }
}

