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

:root{
    --primary:#0A2342;
    --secondary:#123D73;
    --accent:#D4AF37;
    --light:#f5f8fc;
    --white:#fff;
    --text:#1f2937;
    --muted:#6b7280;
    --red:#dc2626;
    --green:#16a34a;
    --sky:#4FC3F7;
    --orange:#f97316;
}

body{
    font-family:"Segoe UI", Arial, sans-serif;
    background:var(--light);
    color:var(--text);
}

.header{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:white;
    padding:35px 20px;
    text-align:center;
}

.header h1{
    font-size:38px;
}

.header p{
    margin-top:8px;
    font-size:17px;
}

.container{
    max-width:1150px;
    margin:30px auto;
    padding:0 20px;
}

.top-actions{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:11px 18px;
    border-radius:8px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-weight:700;
    background:var(--primary);
    color:white;
}

.btn:hover{
    background:var(--secondary);
}

.btn-gold{
    background:var(--accent);
    color:var(--primary);
}

.btn-red{
    background:var(--red);
}

.notice-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.notice-card{
    background:white;
    border-radius:18px;
    padding:22px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    border-top:6px solid var(--primary);
}

.notice-card.urgent{border-top-color:var(--red);}
.notice-card.event{border-top-color:var(--green);}
.notice-card.info{border-top-color:var(--sky);}
.notice-card.deadline{border-top-color:var(--orange);}

.badge{
    display:inline-block;
    padding:6px 12px;
    border-radius:20px;
    color:white;
    font-size:12px;
    font-weight:700;
    margin-bottom:12px;
}

.badge.urgent{background:var(--red);}
.badge.event{background:var(--green);}
.badge.info{background:var(--sky); color:var(--primary);}
.badge.deadline{background:var(--orange);}

.notice-card h3{
    color:var(--primary);
    margin-bottom:10px;
    font-size:22px;
}

.notice-card p{
    line-height:1.6;
    margin-bottom:14px;
}

.meta{
    border-top:1px solid #e5e7eb;
    padding-top:12px;
    display:flex;
    justify-content:space-between;
    gap:8px;
    font-size:13px;
    color:var(--muted);
}

.form-box, .login-box{
    max-width:650px;
    margin:30px auto;
    background:white;
    padding:28px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.form-box h2, .login-box h2{
    color:var(--primary);
    margin-bottom:18px;
}

input, select, textarea{
    width:100%;
    padding:12px;
    margin-bottom:14px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font-size:15px;
}

textarea{
    min-height:140px;
}

.alert{
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:15px;
    background:#fee2e2;
    color:#991b1b;
}

.success{
    background:#dcfce7;
    color:#166534;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

th, td{
    padding:13px;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}

th{
    background:var(--primary);
    color:white;
}

.action-links a{
    margin-right:8px;
}

.footer{
    text-align:center;
    background:var(--primary);
    color:white;
    padding:20px;
    margin-top:35px;
}

@media(max-width:900px){
    .notice-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .notice-grid{
        grid-template-columns:1fr;
    }
    table{
        font-size:13px;
    }
    th,td{
        padding:9px;
    }
}
