/* ============================================
   LENSPO NOTICES STYLING
   Self-contained styles for the Notices page,
   single notice page, cards, filters and badges.
   Brand green: #2B8B47
   ============================================ */

:root {
    --notice-green: #2B8B47;
    --notice-green-dark: #238f61;
    --notice-ink: #1d1d1d;
    --notice-muted: #7a7a7a;
    --notice-line: #e7efe9;
    --notice-soft: #f7faf8;
}

/* ---------- Shared buttons ---------- */
.btn-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.2;
}

.btn-notice-primary {
    background: var(--notice-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(43, 139, 71, 0.25);
}

.btn-notice-primary:hover {
    background: var(--notice-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 139, 71, 0.32);
}

.btn-notice-outline {
    background: #fff;
    color: var(--notice-green);
    border-color: var(--notice-green);
}

.btn-notice-outline:hover {
    background: var(--notice-green);
    color: #fff;
}

/* ---------- Badges ---------- */
.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.notice-badge.badge-featured { background: #fff4d6; color: #9a6a00; }
.notice-badge.badge-expired  { background: #fde2e1; color: #b32d2e; }
.notice-badge.badge-expiry   { background: #e3efe8; color: var(--notice-green); }

/* ---------- Hero / breadcrumb ---------- */
.notices-breadcrumb {
    margin-top: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.notices-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.notices-breadcrumb a:hover { color: #fff; }
.notices-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.notices-breadcrumb .current { color: #fff; font-weight: 600; }

/* ---------- Intro ---------- */
.notices-intro-text {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    line-height: 1.7;
    padding-top: 100px;
}

/* ---------- Featured notice ---------- */
.featured-notice-section { margin: 10px 0 40px; }

.featured-notice-card {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, var(--notice-soft) 0%, #eef6f1 100%);
    border: 1px solid var(--notice-line);
    border-left: 6px solid var(--notice-green);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.featured-notice-media {
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
}

.featured-notice-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 240px;
}

.featured-notice-content {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.featured-notice-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 4px 0;
}

.featured-notice-title a { color: var(--notice-ink); text-decoration: none; }
.featured-notice-title a:hover { color: var(--notice-green); }

.featured-notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: var(--notice-muted);
}

.featured-notice-meta i { color: var(--notice-green); margin-right: 4px; }

.featured-notice-desc {
    color: #555;
    line-height: 1.7;
    margin: 4px 0 8px;
}

.featured-notice-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Filter bar ---------- */
.notice-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--notice-line);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 35px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.notice-filter-search {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.notice-filter-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--notice-muted);
}

.notice-filter-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e0e6e2;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice-filter-search input:focus {
    border-color: var(--notice-green);
    box-shadow: 0 0 0 3px rgba(43, 139, 71, 0.12);
}

.notice-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.notice-filter-field select {
    appearance: none;
    -webkit-appearance: none;
    padding: 11px 38px 11px 16px;
    border: 1px solid #e0e6e2;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a7a7a' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.notice-filter-field select:focus { border-color: var(--notice-green); }
.notice-filter-submit { white-space: nowrap; }

/* ---------- Notice cards ---------- */
.notices-grid { margin-bottom: 20px; }

.notice-card {
    position: relative;
    background: #fff;
    border: 1px solid #eef0ee;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.notice-card.is-featured { border-color: #f3dca0; }

.notice-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px 0;
}

.notice-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--notice-green);
    background: var(--notice-soft);
}

.notice-card-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.notice-card-body {
    padding: 16px 22px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--notice-muted);
    margin-bottom: 10px;
}

.notice-card-meta i { color: var(--notice-green); margin-right: 4px; }

.notice-cat-badge {
    background: var(--notice-soft);
    color: var(--notice-green);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.notice-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.notice-card-title a { color: var(--notice-ink); text-decoration: none; }
.notice-card-title a:hover { color: var(--notice-green); }

.notice-card-desc {
    font-size: 14px;
    color: #5d5d5d;
    line-height: 1.6;
    margin-bottom: 14px;
}

.notice-card-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 13px;
    color: #555;
    background: #f6f7f6;
    border: 1px solid #ecefec;
    border-radius: 8px;
    padding: 7px 12px;
    align-self: flex-start;
}

.notice-card-file i { color: var(--notice-green); }
.notice-card-file .notice-file-size { color: var(--notice-muted); }

.notice-card-actions {
    display: flex;
    gap: 10px;
    padding: 14px 22px 22px;
    flex-wrap: wrap;
}

.notice-card-actions .btn-notice {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
}

/* ---------- Pagination ---------- */
.notices-pagination { margin: 30px 0 10px; }

.notices-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.notices-pagination a,
.notices-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e0e6e2;
    background: #fff;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notices-pagination a:hover {
    border-color: var(--notice-green);
    color: var(--notice-green);
}

.notices-pagination .current {
    background: var(--notice-green);
    border-color: var(--notice-green);
    color: #fff;
}

/* ---------- Single notice ---------- */
.notices-single .notice-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.notices-single .notice-info-strip li {
    flex: 1;
    min-width: 150px;
    background: var(--notice-soft);
    border: 1px solid var(--notice-line);
    border-radius: 10px;
    padding: 14px 18px;
}

.notices-single .notice-info-strip .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a8a;
    margin-bottom: 4px;
    font-weight: 600;
}

.notices-single .notice-info-strip .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--notice-ink);
}

.notices-single .notice-info-strip .value a {
    color: var(--notice-green);
    text-decoration: none;
}

.notice-single-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.notice-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-section-title i { color: var(--notice-green); }

/* Attachments */
.notice-attachments { margin-bottom: 36px; }

.notice-attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-attachment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eef0ee;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.notice-attachment-item:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }

.notice-attachment-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--notice-green);
    background: var(--notice-soft);
}

.notice-attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notice-attachment-name {
    font-weight: 700;
    color: var(--notice-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-attachment-meta {
    font-size: 13px;
    color: var(--notice-muted);
}

/* Content */
.notice-content {
    font-size: 16px;
    line-height: 1.8;
    color: #3f3f3f;
    margin-bottom: 30px;
}

.notice-content img { max-width: 100%; height: auto; border-radius: 8px; }

.notice-external-link { margin-bottom: 30px; }

/* Share */
.notice-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.notice-share-label { font-weight: 700; color: var(--notice-ink); margin-right: 4px; }

.notice-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notice-share-btn:hover { transform: translateY(-3px); color: #fff; opacity: 0.92; }
.notice-share-btn.share-fb   { background: #1877f2; }
.notice-share-btn.share-x    { background: #1da1f2; }
.notice-share-btn.share-li   { background: #0a66c2; }
.notice-share-btn.share-wa   { background: #25d366; }
.notice-share-btn.share-mail { background: var(--notice-green); }

/* Prev / next */
.notice-adjacent {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.notice-adjacent-item {
    flex: 1;
    min-width: 220px;
}

.notice-adjacent-item.next { text-align: right; }

.notice-adjacent-item a {
    display: block;
    padding: 16px 20px;
    border: 1px solid #eef0ee;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice-adjacent-item a:hover {
    border-color: var(--notice-green);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.notice-adjacent-item .dir {
    display: block;
    font-size: 13px;
    color: var(--notice-green);
    font-weight: 600;
    margin-bottom: 4px;
}

.notice-adjacent-item .title {
    display: block;
    font-weight: 700;
    color: var(--notice-ink);
}

/* Related */
.notices-related {
    background: var(--notice-soft);
    padding: 60px 0;
    margin-top: 50px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .featured-notice-card { flex-direction: column; }
    .featured-notice-media { max-width: 100%; flex-basis: auto; }
    .featured-notice-media img { min-height: 220px; max-height: 320px; }
}

@media (max-width: 767px) {
    .notice-filter-bar { flex-direction: column; align-items: stretch; }
    .notice-filter-controls { justify-content: space-between; }
    .notice-filter-field { flex: 1; }
    .notice-filter-field select { width: 100%; }
    .featured-notice-content { padding: 24px; }
    .featured-notice-title { font-size: 22px; }
    .notice-adjacent-item.next { text-align: left; }
    .notice-attachment-item { flex-wrap: wrap; }
    .notice-attachment-item .btn-notice { width: 100%; justify-content: center; }
}
