* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #333;
    background-image: url('campus.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* Dark overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar h2 {
    font-size: 22px;
    font-weight: 600;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 22px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover {
    color: #90caf9;
}

/* ========== CONTAINER ========== */
.container {
    width: 92%;
    max-width: 1150px;
    margin: 35px auto;
    position: relative;
    z-index: 1;
}

/* ========== CARDS ========== */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card h2,
.card h3 {
    color: #1a237e;
    margin-bottom: 12px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a237e, #303f9f);
    color: white;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1a237e);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.btn-danger {
    background: linear-gradient(135deg, #c62828, #e53935);
}

/* ========== FORMS ========== */
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fafafa;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a237e;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

/* ========== EVENT GRID ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
    border-top: 4px solid #1a237e;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.event-card h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 18px;
}

.event-meta {
    font-size: 13.5px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ========== MESSAGES ========== */
.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 5px solid #2e7d32;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 5px solid #c62828;
}

/* ========== WELCOME BANNER (Clear Text) ========== */
.welcome-banner {
    background: rgba(26, 35, 126, 0.92);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.welcome-banner h1,
.welcome-banner h2 {
    color: white !important;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-banner p {
    color: #e3f2fd !important;
}

/* ========== EXTRA ========== */
.stats-box {
    background: #e3f2fd;
    padding: 18px 22px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stats-box span {
    font-weight: 600;
    color: #1a237e;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #1a237e;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f5f7ff;
}