/* HMCALUMNI - Public Portal Stylesheet */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --dark: #1e293b;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ── Navbar ── */
.navbar {
    background: #60a5fa;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .3px;
}

.navbar-brand .brand-icon {
    width: 38px; height: 38px;
    background: transparent;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.navbar-links { display: flex; gap: 8px; align-items: center; }

.navbar-links a {
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}

.navbar-links a:hover, .navbar-links a.active { background: rgba(255,255,255,.2); color: #fff; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #2563eb 100%);
    color: #fff;
    padding: 72px 32px;
    text-align: center;
}

.hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 14px; }
.hero p  { font-size: 17px; color: #94a3b8; max-width: 560px; margin: 0 auto 28px; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Section ── */
.section { padding: 48px 0; }
.section-title { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.section-sub   { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

/* ── Service Cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-card .svc-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

.service-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); }
.service-card p  { font-size: 13px; color: var(--text-muted); flex: 1; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white     { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--primary-light); }
.btn-success   { background: var(--success); color: #fff; }
.btn-sm        { padding: 7px 14px; font-size: 13px; }
.btn-block     { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.form-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.form-card .subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* ── Alerts ── */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

/* ── Status Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-pending  { background: #fef3c7; color: #b45309; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* ── Tracking Result ── */
.tracking-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 24px auto 0;
}

.tracking-card .trk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.tracking-card .trk-row:last-child { border-bottom: none; }
.tracking-card .trk-label { color: var(--text-muted); font-weight: 500; }
.tracking-card .trk-value { font-weight: 600; color: var(--dark); }

/* ── Footer ── */
.portal-footer {
    background: var(--dark);
    color: #64748b;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    margin-top: 48px;
}

.portal-footer a { color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .navbar { padding: 0 16px; }
    .container { padding: 0 16px; }
    .form-card { padding: 20px; }
    .services-grid { grid-template-columns: 1fr; }
}


