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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: auto;
}

.top-header {
    background: linear-gradient(135deg, #063970, #0b72b9);
    color: white;
    padding: 18px 0;
}

.header-flex, .nav-flex, .hero-grid, .footer-grid, .card-grid, .faculty-grid, .dashboard-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-circle {
    background: #ffcc00;
    color: #063970;
    font-weight: bold;
    font-size: 26px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.logo-box h1 {
    font-size: 26px;
}

.logo-box p {
    font-size: 14px;
}

.admin-btn, .btn {
    background: #ffcc00;
    color: #063970;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.admin-btn:hover, .btn:hover {
    background: #ffd84d;
}

.navbar {
    background: #04294f;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-flex {
    justify-content: center;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 12px;
    display: block;
    font-weight: 600;
}

.navbar a:hover {
    background: #0b72b9;
}

.hero {
    background: linear-gradient(rgba(6,57,112,0.80), rgba(6,57,112,0.80)), url('../images/hero-bg.svg');
    background-size: cover;
    color: white;
    padding: 70px 0;
}

.hero-grid {
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-box {
    background: rgba(255,255,255,0.13);
    padding: 24px;
    border-radius: 18px;
    width: 320px;
    backdrop-filter: blur(4px);
}

.notice-strip {
    background: #fff3cd;
    border-bottom: 1px solid #f1d277;
    padding: 10px 0;
    color: #664d03;
}

.notice-label {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.section {
    padding: 48px 0;
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: #063970;
    margin-bottom: 25px;
}

.card-grid, .faculty-grid, .dashboard-grid {
    align-items: stretch;
    flex-wrap: wrap;
}

.card, .faculty-card, .form-card, .table-card, .dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card {
    flex: 1;
    min-width: 250px;
}

.card h3, .faculty-card h3, .dashboard-card h3 {
    color: #063970;
    margin-bottom: 10px;
}

.page-banner {
    background: linear-gradient(135deg, #0b72b9, #063970);
    color: white;
    padding: 42px 0;
    text-align: center;
}

.page-banner h2 {
    font-size: 34px;
}

.form-card {
    max-width: 760px;
    margin: auto;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

textarea {
    min-height: 120px;
}

.success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.error {
    background: #f8d7da;
    color: #842029;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.faculty-card {
    width: 31%;
    min-width: 260px;
    text-align: center;
}

.faculty-photo {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    background: #dbeafe;
    margin-bottom: 12px;
}

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

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

th {
    background: #063970;
    color: white;
}

.dashboard-card {
    min-width: 220px;
    flex: 1;
    text-align: center;
}

.dashboard-card .count {
    font-size: 36px;
    color: #0b72b9;
    font-weight: bold;
}

.admin-layout {
    display: flex;
    min-height: 70vh;
}

.sidebar {
    width: 240px;
    background: #04294f;
    padding: 20px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
}

.sidebar a:hover {
    background: #0b72b9;
}

.admin-content {
    flex: 1;
    padding: 25px;
}

.footer {
    background: #04294f;
    color: white;
    padding-top: 35px;
}

.footer-grid {
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-grid div {
    flex: 1;
    min-width: 250px;
}

.footer a {
    color: #ffcc00;
    text-decoration: none;
}

.copyright {
    background: #021b35;
    text-align: center;
    padding: 12px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .header-flex, .hero-grid, .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 30px;
    }

    .hero-box {
        width: 100%;
    }

    .faculty-card {
        width: 100%;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}
