:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-dark: #0f172a;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    padding-top: 80px;
    /* Offset for fixed navbar */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.9) 40%, rgba(15, 23, 42, 0.95) 100%),
        var(--bg-image, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-top: 0;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.main-nav {
    background: #0f172a !important;
    /* Solid background to prevent transparency issues */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    /* Explicit height */
    z-index: 10000 !important;
    /* Max z-index */
    border-bottom: 1px solid var(--glass-border);
    display: flex !important;
    /* Ensure flex container */
    align-items: center !important;
    /* Vertically center content */
    visibility: visible !important;
    opacity: 1 !important;
}

.main-nav>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex !important;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    margin-right: auto;
}

.nav-brand:empty {
    display: none;
}

.main-nav a {
    color: var(--text-light) !important;
    font-weight: 500;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
}
.brand-badge {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    font-weight: 900;
    color: #fff;
}
.brand-name {
    font-size: 1rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* About Section */
.section-padding {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 rgba(37, 99, 235, 0.1);
}

.about-info {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.info-list {
    margin-top: 2rem;
}

.info-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.info-label {
    font-weight: bold;
    color: var(--text-light);
    width: 100px;
}

/* Timeline (Education/Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.activity-img {
    height: 200px;
    background-color: #333;
    overflow: hidden;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-img img {
    transform: scale(1.1);
}

.activity-info {
    padding: 1.5rem;
}

.activity-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact/Footer */
footer {
    background: #020617;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }

    .main-nav ul.open {
        display: flex !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Generic Page Styles */
.page-header {
    padding: 120px 2rem 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.1), transparent 70%);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Filter Forms */
.filter-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-stacked .form-group {
    width: 100%;
}

/* Generic Card Grid (reusing activity-card styles where possible or creating new ones) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.card-text {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-top: 4rem;
}

.pagination li a,
.pagination li span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.pagination li.active a,
.pagination li.active span,
.pagination li a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Admin / Auth */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}
.admin-body main .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecdd3;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.4);
    color: #bbf7d0;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    display: grid;
    place-items: center;
}

.password-wrapper .toggle-password:hover {
    color: var(--primary-color);
}
.btn-primary.full-width {
    width: 100%;
    text-align: center;
}

.footer-links {
    text-align: center;
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Admin dashboard */
.admin-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.75));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.admin-hero-left h1 {
    margin: 0.25rem 0 0.5rem;
}

.admin-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.15rem;
}

.mini-stat .stat-label {
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.4px;
}

.mini-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
}

.mini-stat .stat-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.admin-page-header h1 {
    margin: 0.25rem 0 0;
}

.admin-page-header .muted {
    margin: 0;
    color: var(--text-dim);
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-ghost {
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary,
.btn-ghost,
.chip-link {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-ghost:hover,
.chip-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.btn-primary:active,
.btn-ghost:active,
.chip-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    cursor: pointer;
    border: none;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stat-label {
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-meta {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.chip-link {
    align-self: flex-start;
    padding: 0.45rem 0.9rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--text-light);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.chip-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.chip-link.danger {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecdd3;
}

.chip-link.danger:hover {
    background: rgba(239, 68, 68, 0.95);
    border-color: rgba(239, 68, 68, 0.95);
    color: #fff;
}

.admin-quick-links {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-link-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eyebrow {
    color: var(--primary-color);
    letter-spacing: 0.6px;
    font-weight: 700;
    margin: 0;
}

.muted {
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Admin tables/forms/detail */
.admin-table-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.action-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.action-links form {
    margin: 0;
}

.admin-empty {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.admin-form-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.admin-form .form-group {
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem 1.25rem;
}

.form-grid .full-span {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-photo {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 3 / 4;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.profile-name {
    margin: 0;
}

.profile-meta {
    display: grid;
    gap: 0.3rem;
    color: var(--text-dim);
}

.profile-block h4 {
    margin: 0 0 0.3rem;
}

.profile-block p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.6;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-profile-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    color: #0f172a;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #e5e7eb;
    background: #e5e7eb;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-headings h2 {
    margin: 0 0 0.3rem;
    color: #0f172a;
    font-size: 2rem;
}

.profile-meta-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    color: #4b5563;
}

.divider {
    border: none;
    border-top: 2px solid #d1d5db;
    margin: 1.5rem 0;
}

.profile-section h3 {
    margin: 0 0 0.5rem;
    letter-spacing: 0.5px;
}

.profile-section p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.admin-profile-card .pill {
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.4);
}

.admin-profile-card.resemble-public {
    background: #f9fafb;
    color: #0f172a;
    padding: 2.5rem;
}

.public-bio-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.public-bio-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #e5e7eb;
    background: #e5e7eb;
    flex-shrink: 0;
}

.public-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-bio-heading h1 {
    margin: 0;
    font-size: 2.4rem;
    color: #111827;
}

.public-bio-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    color: #4b5563;
    margin-top: 0.4rem;
}

.public-bio-section {
    margin-top: 1.4rem;
}

.public-bio-section h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
    color: #111827;
}

.public-bio-section p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* New home layout */
.home-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto 1rem;
    align-items: center;
}

.hero-left h1 {
    font-size: 3rem;
    margin: 0.3rem 0 0.6rem;
}

.hero-left .muted {
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    position: relative;
}

.hero-mosaic::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 60%);
    z-index: 0;
}

.hero-mosaic > div {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    min-height: 140px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 1;
}

.mosaic-large { grid-column: span 2; min-height: 220px; }
.mosaic-tall { min-height: 200px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.home-highlight {
    padding-top: 3rem;
}

.home-section-light {
    background: rgba(255,255,255,0.02);
}

.horizontal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.feature-card-body h3 {
    margin: 0.3rem 0;
    color: var(--text-light);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.admin-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Admin gallery */
.admin-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.gallery-thumb {
    height: 160px;
    background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(37,99,235,0.08));
}

.gallery-meta {
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.gallery-meta h4 {
    margin: 0;
    color: var(--text-light);
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.story-thumb {
    height: 140px;
    background: linear-gradient(120deg, rgba(37,99,235,0.25), rgba(37,99,235,0.05));
}

.story-body {
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.story-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* CV Card (public & admin biodata) */
.cv-card {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cv-card h1,
.cv-card h2,
.cv-card h3,
.cv-card h4 {
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.cv-card p,
.cv-card li,
.cv-card a,
.cv-card span {
    color: #374151;
}

.cv-card section {
    margin-bottom: 1.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.cv-card section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cv-contact-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.cv-contact-list strong {
    color: #111827;
}

@media (max-width: 768px) {
    .home-hero {
        padding-top: 1rem;
    }
}
