:root {
    --border: #e5e1de;
    --text-dark: #231815;
    --text-muted: #6b625f;
    --sceptre-red: #4d0e12;
    --bg-light: #f9f8f6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* HEADER */
#mainHeader {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e5e5e5;
    transition: box-shadow 0.3s ease;
}

#mainHeader .nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: #231815;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* NAVIGATION */
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #231815;
}

.nav-link {
    position: relative;
    padding: 10px 0;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    height: 2px;
    background: #231815;
    left: 0;
    right: 0;
    bottom: 3px;
}

/* SIGN UP AND LOG IN BUTTONS */
.btn-signin,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid #777;
    border-radius: 30px;
    background: transparent;
    transition: 0.3s ease;
}

.btn-signin:hover,
.btn-login:hover {
    background: #231815;
    color: #fff;
}

/* GET STARTED BUTTON */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    border-radius: 30px;
    background: #080b12;
    border: 1px solid #080b12;
    color: #fff !important;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* MOBILE MENU */
.menu-toggle {
    display: none;
}

/* BULLETIN GRID & CARDS */
.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bulletin-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 17px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bulletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(35, 24, 21, 0.12);
}

.bulletin-image-two {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(
            circle at 70% 25%,
            rgba(245, 239, 198, 0.95),
            transparent 25%
        ),
        linear-gradient(135deg, #f5efc6, #eaf2f8);
}

.bulletin-image-two span {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: var(--sceptre-red);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
}

.bulletin-image-icon {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--sceptre-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(35, 24, 21, 0.08);
    transition: transform 0.35s ease;
}

.bulletin-card:hover .bulletin-image-icon {
    transform: scale(1.08) rotate(-3deg);
}

.bulletin-content {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bulletin-content h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.bulletin-content p {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.55;
    flex-grow: 1;
}

.bulletin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.65rem;
}

.bulletin-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.favorite-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
    color: var(--sceptre-red);
}

.favorite-btn.is-active i {
    font-weight: 900;
    color: var(--sceptre-red);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 24, 21, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-header-badge {
    display: inline-block;
    background: rgba(77, 14, 18, 0.1);
    color: var(--sceptre-red);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.modal-card h2 {
    font-size: 1.35rem;
    color: var(--sceptre-red);
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.modal-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.modal-body p {
    font-size: 0.85rem;
    color: #4a2e27;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.modal-body li {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.modal-body li i {
    color: #1a4d7c;
    margin-top: 3px;
}

.no-update-box {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.no-update-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: rgba(26, 77, 124, 0.1);
    color: #1a4d7c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.no-update-box h2 {
    font-size: 1.35rem;
    color: var(--sceptre-red);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.no-update-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.btn-modal-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--sceptre-red);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.btn-modal-primary:hover {
    background: #380a0d;
}