:root { --primary: #D32F2F; --bg: #f3f4f6; --text: #111827; --card-bg: #ffffff; }
    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    body { font-family: 'Inter', sans-serif; background: var(--bg); margin: 0; padding: 0; color: var(--text); padding-bottom: 40px; }
    
    /* Header */
    header { background: var(--card-bg); padding: 15px 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; }
    .brand h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
    .brand span { color: var(--primary); }
    
    /* User Profile */
    .user-profile { display: flex; align-items: center; gap: 12px; }
    .user-info { text-align: right; display: none; }
    @media (min-width: 768px) { .user-info { display: block; } }
    #userPhoto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; }
    .logout-btn { padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; border: 1px solid #ddd; background: white; font-size: 0.85rem; }

    /* Grid Layout */
    .container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
    
    /* Cards */
    .nav-card {
        background: white; padding: 25px; border-radius: 16px; text-decoration: none; color: var(--text);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
        display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid transparent;
    }
    .nav-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
    .icon { font-size: 2.5rem; margin-bottom: 15px; }
    .title { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
    .desc { font-size: 0.8rem; color: #6b7280; }

    .welcome-box { margin-bottom: 30px; }
    .welcome-box h2 { font-size: 1.8rem; margin: 0 0 10px 0; }
    .welcome-box p { color: #666; margin: 0; }

    /* Announcement Card */
    .announce-card {
        background: linear-gradient(135deg, #fff, #fff5f5);
        padding: 20px 25px;
        border-radius: 16px;
        margin-top: 40px;
        border: 1px solid #fee2e2;
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.05);
        position: relative;
        overflow: hidden;
    }
    .announce-card::before {
        content: "";
        position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
        background: var(--primary);
    }
    .announce-header {
        display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
    }
    .announce-title { font-weight: 700; font-size: 1.1rem; color: var(--primary); display: flex; align-items: center; gap: 8px; }
    .update-list { list-style: disc; padding-left: 20px; margin: 0; }
    .update-list li {
        margin-bottom: 8px; color: #374151; font-size: 0.95rem;
    }
    
    .last-updated {
        margin-top: 15px; padding-top: 10px; border-top: 1px dashed #e5e7eb;
        font-size: 0.75rem; color: #9ca3af; text-align: right; font-style: italic;
    }

    /* --- NEW CSS FOR FOOTER BUTTONS --- */
    .footer-nav {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        flex-wrap: wrap; /* Allows wrapping on mobile */
        justify-content: center;
        gap: 10px;
    }

    .footer-btn {
        background-color: white;
        color: #4b5563;
        text-decoration: none;
        padding: 10px 18px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
        display: inline-block;
    }

    .footer-btn:hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-2px);
    }
